Hi, thanks for the suggestion, but the problem persists. I have changed the version of the Visual Build to 2019 and I get the following error:
Building "IndustryExamples.AutomotiveTransportation.Driveline.DrivelineModel" as experiment "DrivelineModel 1" started at 09:37:13
Notification: The initialization problem is underdetermined, the following variables were chosen to be initialized from their start values: transmission.clutch1.phirel, body.lumpedBody.v, body.lumpedBody.s, transmission.TCU1.firstOrder1.y, engine.smoothingFilter1.firstOrder1.y, driver1.pidControler.I.y, driver1.pidControler.D.x, engine.firstOrderFilter.y, driver1.firstOrder1.y, engine.Jm.w, fuelGauge.consumedEnergy, driveShaftRight.wrel, driveShaftRight.phirel, driveShaftLeft.wrel, driveShaftLeft.phirel.
Notification: The start value for transmission.clutch1.arel was not used, since higher priority was given to the start value of driveShaftLeft.phirel, driveShaftLeft.wrel, driveShaftRight.phirel, driveShaftRight.w_rel, engine.firstOrderFilter.y.
Notification: The start value for engine.tdemand.mac_demand was not used, since higher priority was given to the start value of driver1.pidControler.D.x, driver1.pidControler.I.y, transmission.TCU1.firstOrder1.y.
Notification: The start value for engine.EngineTorqueOut.tau was not used, since higher priority was given to the start value of driveShaftLeft.phirel, driveShaftLeft.wrel, driveShaftRight.phirel, driveShaftRight.w_rel, engine.firstOrderFilter.y.
Notification: The start value for body.lumpedBody.a was not used, since higher priority was given to the start value of driveShaftLeft.phirel, driveShaftLeft.wrel, driveShaftRight.phirel, driveShaftRight.wrel.
Notification: The start value for driveShaftRight.arel was not used, since higher priority was given to the start value of driveShaftLeft.phirel, driveShaftLeft.wrel, driveShaftRight.phirel, driveShaftRight.w_rel, engine.firstOrderFilter.y.
Notification: The start value for driveShaftLeft.arel was not used, since higher priority was given to the start value of driveShaftLeft.phirel, driveShaftLeft.wrel, driveShaftRight.phirel, driveShaftRight.w_rel, engine.firstOrderFilter.y.
Notification: The start value for engine.EngineTorqueOut.phi was not used, since higher priority was given to the start value of body.lumpedBody.s, transmission.clutch1.phirel.
Notification: The start value for transmission.clutch1.w_rel was not used, since higher priority was given to the start value of body.lumpedBody.v.
Warning: Equation system in engine.Jm.a and 17 other variables is too complex for checking conditional solvability that might be caused by if-expressions where the variable is only solvable in one of the branches. [373»]
Warning: Equation system in engine.Jm.a and 17 other variables is too complex for checking conditional solvability that might be caused by if-expressions where the variable is only solvable in one of the branches. [253»]
Error: Compilation of generated code failed (exit code 2). Build log:
"Calling Visual C++ setup script "C:/Program Files (x86)/Microsoft Visual Studio/2019/BuildTools/Common7/Tools/VsDevCmd.bat" -arch=x86"
**********************************************************************
** Visual Studio 2019 Developer Command Prompt v16.8.3
** Copyright (c) 2020 Microsoft Corporation
**********************************************************************
Utilidad de mantenimiento de programas de Microsoft (R) versi�n 14.28.29335.0
(C) Microsoft Corporation. Todos los derechos reservados.
"cl" /MT /EHa /c /I"C:\\Program Files\\Wolfram Research\\SystemModeler 12.1\\L\\IndustryExamples\\AutomotiveTransportation\\Driveline" /I"C:\\Program Files\\Wolfram Research\\SystemModeler 12.1\\include" /I"C:\\Program Files\\Wolfram Research\\SystemModeler 12.1\\include\\platform\\win32\\VS2019" /I"C:\\Program Files\\Wolfram Research\\SystemModeler 12.1\\include\\sundials" /I"C:\\Program Files\\Wolfram Research\\SystemModeler 12.1\\include\\fmil" /I"C:\\Program Files\\Wolfram Research\\SystemModeler 12.1\\include\\msl\\3.2.3" /I"C:\\Program Files\\Wolfram Research\\SystemModeler 12.1\\L\\Modelica 3.2.3\\Modelica\\Resources\\Include" sme.12.1.0_1607611033_12469_main.cpp /Fo"sme.12.1.0_1607611033_12469_main.obj"
Compilador de optimizaci�n de C/C++ de Microsoft (R) versi�n 19.28.29335 para x86
(C) Microsoft Corporation. Todos los derechos reservados.
sme.12.1.0160761103312469main.cpp
C:\Program Files\Wolfram Research\SystemModeler 12.1\include\modelicatypes.h(21): fatal error C1083: No se puede abrir el archivo incluir: 'inttypes.h': No such file or directory
NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.28.29333\bin\HostX86\x86\cl.EXE"' : c�digo devuelto '0x2'
Stop.
Build finished at 09:37:18 (took 00:04).
Error: No executable generated C:/Users/Julio César/AppData/Local/Temp/WolframSystemModeler-12.1/sme.12.1.0160761103312469.exe
