Running command: "" <> buildModelFMU(Modelica.Mechanics.Translational.Examples.Vehicle,fileNamePrefix="Modelica_trunk_cpp_Modelica_Mechanics_Translational_Examples_Vehicle",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.993/1.993, allocations: 225.8 MB / 239.3 MB, free: 11.19 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.229e-05/3.241e-05, allocations: 4 kB / 292.2 MB, free: 8.742 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1184/0.1184, allocations: 50.41 MB / 342.6 MB, free: 6.309 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4859/0.6044, allocations: 86.3 MB / 428.9 MB, free: 7.617 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002658/0.6047, allocations: 73.03 kB / 429 MB, free: 7.582 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.0982/0.7029, allocations: 22.09 MB / 451.1 MB, free: 5.137 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.324e-06/0.703, allocations: 0 / 451.1 MB, free: 5.137 MB / 362.7 MB Notification: Performance of Transformations before backend: time 0.0001432/0.7031, allocations: 31.98 kB / 451.1 MB, free: 5.105 MB / 362.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 249 * Number of variables: 249 Notification: Performance of Generate backend data structure: time 0.003806/0.707, allocations: 1.2 MB / 452.3 MB, free: 3.93 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.279e-05/0.707, allocations: 12.03 kB / 452.3 MB, free: 3.918 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004153/0.7075, allocations: 149.4 kB / 452.5 MB, free: 3.824 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004251/0.7079, allocations: 143.2 kB / 452.6 MB, free: 3.684 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002153/0.7101, allocations: 0.7357 MB / 453.4 MB, free: 3.047 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.585e-05/0.7102, allocations: 75.06 kB / 453.4 MB, free: 3.004 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002766/0.7105, allocations: 103 kB / 453.5 MB, free: 2.938 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002384/0.7129, allocations: 0.8692 MB / 454.4 MB, free: 2.355 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.638e-05/0.713, allocations: 19.08 kB / 454.4 MB, free: 2.34 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001498/0.7131, allocations: 36.5 kB / 454.4 MB, free: 2.332 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.328e-05/0.7132, allocations: 24 kB / 454.5 MB, free: 2.309 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001863/0.7151, allocations: 0.5955 MB / 455.1 MB, free: 1.926 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008539/0.7236, allocations: 3.299 MB / 458.4 MB, free: 14.95 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002114/0.7258, allocations: 0.5901 MB / 459 MB, free: 14.36 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007882/0.7266, allocations: 283.2 kB / 459.2 MB, free: 14.08 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.639e-05/0.7267, allocations: 12.77 kB / 459.2 MB, free: 14.07 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008976/0.7276, allocations: 340.5 kB / 459.6 MB, free: 13.72 MB / 378.7 MB Notification: Performance of pre-optimization done (n=80): time 3.847e-06/0.7276, allocations: 0 / 459.6 MB, free: 13.72 MB / 378.7 MB Notification: Performance of matching and sorting (n=100): time 0.008484/0.7361, allocations: 2.765 MB / 462.3 MB, free: 10.88 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.514e-05/0.7362, allocations: 60.41 kB / 462.4 MB, free: 10.8 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001963/0.7382, allocations: 0.8134 MB / 463.2 MB, free: 9.988 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002149/0.7385, allocations: 53.69 kB / 463.3 MB, free: 9.93 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005927/0.7391, allocations: 0.5064 MB / 463.8 MB, free: 9.418 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004894/0.7396, allocations: 343 kB / 464.1 MB, free: 9.078 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.366e-05/0.7397, allocations: 20 kB / 464.1 MB, free: 9.059 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001908/0.7399, allocations: 354.7 kB / 464.5 MB, free: 8.703 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007946/0.7407, allocations: 250 kB / 464.7 MB, free: 8.461 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009498/0.7416, allocations: 411.2 kB / 465.1 MB, free: 8.008 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009166/0.7426, allocations: 325.9 kB / 465.4 MB, free: 7.691 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.681e-06/0.7426, allocations: 0 / 465.4 MB, free: 7.691 MB / 378.7 MB Notification: Performance of matching and sorting (n=125) (initialization): time 0.002677/0.7453, allocations: 0.9153 MB / 466.4 MB, free: 6.762 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.433e-05/0.7454, allocations: 8 kB / 466.4 MB, free: 6.754 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.904e-05/0.7454, allocations: 4 kB / 466.4 MB, free: 6.75 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007723/0.7462, allocations: 149.7 kB / 466.5 MB, free: 6.598 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001683/0.7479, allocations: 211.7 kB / 466.7 MB, free: 6.391 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005293/0.7532, allocations: 3.599 MB / 470.3 MB, free: 2.527 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001122/0.7544, allocations: 35.98 kB / 470.4 MB, free: 2.492 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001094/0.7545, allocations: 32 kB / 470.4 MB, free: 2.461 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 17 * Number of states: 0 () * Number of discrete variables: 5 ($whenCondition1,$PRE.timeTableTorqueInclination.nextTimeEvent,timeTableTorqueInclination.nextTimeEvent,$PRE.timeTableTorqueInclination.nextTimeEventScaled,timeTableTorqueInclination.nextTimeEventScaled) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (108): * Single equations (assignments): 106 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 4,(1,100.0%) 13} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003049/0.7548, allocations: 163.9 kB / 470.5 MB, free: 2.297 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000278/0.7551, allocations: 118.7 kB / 470.7 MB, free: 2.18 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002858/0.758, allocations: 0.9322 MB / 471.6 MB, free: 1.234 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.899e-05/0.758, allocations: 16.08 kB / 471.6 MB, free: 1.219 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.103e-05/0.758, allocations: 8 kB / 471.6 MB, free: 1.211 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.693e-05/0.7581, allocations: 3.984 kB / 471.6 MB, free: 1.207 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00688/0.765, allocations: 2.532 MB / 474.2 MB, free: 14.55 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.418e-05/0.765, allocations: 4 kB / 474.2 MB, free: 14.55 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001707/0.7667, allocations: 191.7 kB / 474.3 MB, free: 14.36 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006669/0.7674, allocations: 121.9 kB / 474.5 MB, free: 14.24 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001255/0.7676, allocations: 27.98 kB / 474.5 MB, free: 14.21 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004351/0.7719, allocations: 3.288 MB / 477.8 MB, free: 10.66 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.552e-06/0.772, allocations: 4 kB / 477.8 MB, free: 10.65 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003808/0.7758, allocations: 1.545 MB / 479.3 MB, free: 8.973 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007387/0.7766, allocations: 263.7 kB / 479.6 MB, free: 8.695 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002074/0.7768, allocations: 20 kB / 479.6 MB, free: 8.676 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008356/0.7777, allocations: 31.98 kB / 479.6 MB, free: 8.645 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002278/0.7779, allocations: 76.64 kB / 479.7 MB, free: 8.566 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.645e-05/0.778, allocations: 31.98 kB / 479.7 MB, free: 8.535 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.001404/0.7794, allocations: 0.6475 MB / 480.4 MB, free: 7.891 MB / 394.7 MB Notification: Performance of sort global known variables: time 8.22e-07/0.7794, allocations: 0 / 480.4 MB, free: 7.891 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.001656/0.7811, allocations: 268.2 kB / 480.7 MB, free: 7.629 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 13 * Number of states: 10 (vehicle.mass.s,vehicle.mass.v,vehicle.windSpeed.s,vehicle.windSpeed.v,vehicle1.mass.s,vehicle1.mass.v,vehicle1.windSpeed.s,vehicle1.windSpeed.v,trailer.windSpeed.s,trailer.windSpeed.v) * Number of discrete variables: 3 ($whenCondition1,timeTableTorqueInclination.nextTimeEvent,timeTableTorqueInclination.nextTimeEventScaled) * Number of discrete states: 2 (timeTableTorqueInclination.nextTimeEvent,timeTableTorqueInclination.nextTimeEventScaled) * Top-level inputs: 0 Notification: Strong component statistics for simulation (90): * Single equations (assignments): 86 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 3,(1,100.0%) 9} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.005625/0.7868, allocations: 3.266 MB / 483.9 MB, free: 4.371 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.00283/0.7896, allocations: 0.9782 MB / 484.9 MB, free: 3.375 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 7.324e-06/0.7897, allocations: 0 / 484.9 MB, free: 3.375 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001706/0.7914, allocations: 0.6598 MB / 485.6 MB, free: 2.695 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001497/0.7929, allocations: 139.2 kB / 485.7 MB, free: 2.559 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006996/0.8, allocations: 2.438 MB / 488.1 MB, free: 36 kB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001009/0.801, allocations: 1.132 MB / 489.3 MB, free: 14.88 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001109/0.8021, allocations: 451.3 kB / 489.7 MB, free: 14.43 MB / 410.7 MB Notification: Performance of SimCode: time 1.423e-06/0.8022, allocations: 0 / 489.7 MB, free: 14.43 MB / 410.7 MB Error: Error building simulator. Build log: clang++ -Winvalid-pch -O0 -g -DNDEBUG -fPIC -std=c++11 -DBOOST_ALL_DYN_LINK -DUSE_DGESV -DUSE_LOGGER -DOMC_BUILD -DSUNDIALS_MAJOR_VERSION=2 -DSUNDIALS_MINOR_VERSION=6 -DPMC_USE_SUNDIALS -DFMU_BUILD -DRUNTIME_STATIC_LINKING -I"/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/cpp" -I"." -I"/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/include/omc/c/sundials" -I"." "-I/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica trunk/Resources/C-Sources" -DUSE_LOGGER -c -o OMCppModelica_trunk_cpp_Modelica_Mechanics_Translational_Examples_VehicleCalcHelperMain.o OMCppModelica_trunk_cpp_Modelica_Mechanics_Translational_Examples_VehicleCalcHelperMain.cpp In file included from OMCppModelica_trunk_cpp_Modelica_Mechanics_Translational_Examples_VehicleCalcHelperMain.cpp:28: ./OMCppModelica_trunk_cpp_Modelica_Mechanics_Translational_Examples_VehicleFunctions.cpp:204:33: error: no matching function for call to 'ModelicaStandardTables_CombiTimeTable_init2' externalCombiTimeTable__ext = ModelicaStandardTables_CombiTimeTable_init2(fileName_.c_str(), tableName_.c_str(), tmp17.getData(), table_.getDim(1), table_.getDim(2), startTime__ext, ConstArray(columns_).getData(), columns_.getDim(1), smoothness__ext, extrapolation__ext, shiftTime__ext, timeEvents__ext, verboseRead__ext); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica trunk/Resources/C-Sources/ModelicaStandardTables.h:142:23: note: candidate function not viable: 7th argument ('const int *') would lose const qualifier MODELICA_EXPORT void* ModelicaStandardTables_CombiTimeTable_init2(_In_z_ const char* fileName, ^ In file included from OMCppModelica_trunk_cpp_Modelica_Mechanics_Translational_Examples_VehicleCalcHelperMain.cpp:35: In file included from ./OMCppModelica_trunk_cpp_Modelica_Mechanics_Translational_Examples_VehicleFMU.cpp:11: /var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/cpp/FMU2/FMU2Wrapper.cpp:93:11: warning: 6 enumeration values not handled in switch: 'LC_INIT', 'LC_LS', 'LC_SOLVER'... [-Wswitch] switch (cat) { ^ 1 warning and 1 error generated. : recipe for target 'OMCppModelica_trunk_cpp_Modelica_Mechanics_Translational_Examples_VehicleCalcHelperMain.o' failed make: *** [OMCppModelica_trunk_cpp_Modelica_Mechanics_Translational_Examples_VehicleCalcHelperMain.o] Error 1