Running command: "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Conveyor,fileNamePrefix="Modelica_trunk_cpp_Modelica_Electrical_Machines_Examples_InductionMachines_IMC_Conveyor",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.965/1.965, allocations: 225.8 MB / 239.3 MB, free: 11.21 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.069e-05/3.081e-05, allocations: 5.312 kB / 292.2 MB, free: 8.75 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.104/0.1041, allocations: 50.41 MB / 342.6 MB, free: 6.316 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4728/0.5769, allocations: 108.5 MB / 451.2 MB, free: 1.621 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000303/0.5773, allocations: 84.7 kB / 451.3 MB, free: 1.582 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1925/0.7698, allocations: 44.75 MB / 496 MB, free: 9.328 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.003e-06/0.7698, allocations: 0 / 496 MB, free: 9.328 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0002446/0.7701, allocations: 47.94 kB / 496.1 MB, free: 9.281 MB / 410.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 490 * Number of variables: 490 Notification: Performance of Generate backend data structure: time 0.007783/0.7779, allocations: 2.081 MB / 498.1 MB, free: 7.148 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.372e-05/0.778, allocations: 12.03 kB / 498.2 MB, free: 7.137 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001018/0.779, allocations: 278.4 kB / 498.4 MB, free: 6.855 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00138/0.7804, allocations: 276.9 kB / 498.7 MB, free: 6.582 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005108/0.7855, allocations: 1.435 MB / 0.4884 GB, free: 5.09 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000173/0.7858, allocations: 139.8 kB / 0.4885 GB, free: 4.953 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005463/0.7863, allocations: 187.9 kB / 0.4887 GB, free: 4.77 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006966/0.7933, allocations: 2.332 MB / 0.491 GB, free: 2.363 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.571e-05/0.7934, allocations: 11.91 kB / 0.491 GB, free: 2.352 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003085/0.7938, allocations: 83.92 kB / 0.4911 GB, free: 2.27 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001504/0.7939, allocations: 91.67 kB / 0.4912 GB, free: 2.18 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006018/0.8, allocations: 1.8 MB / 0.4929 GB, free: 388 kB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02158/0.8216, allocations: 7.452 MB / 0.5002 GB, free: 8.727 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003203/0.8248, allocations: 1.337 MB / 0.5015 GB, free: 7.328 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001928/0.8268, allocations: 0.7184 MB / 0.5022 GB, free: 6.613 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004096/0.8272, allocations: 138 kB / 0.5024 GB, free: 6.457 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001744/0.829, allocations: 0.6653 MB / 0.503 GB, free: 5.766 MB / 426.7 MB Notification: Performance of pre-optimization done (n=102): time 5.61e-06/0.8291, allocations: 4 kB / 0.503 GB, free: 5.762 MB / 426.7 MB Notification: Performance of matching and sorting (n=131): time 0.02989/0.859, allocations: 7.394 MB / 0.5102 GB, free: 14.27 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001201/0.8591, allocations: 167.5 kB / 0.5104 GB, free: 14.07 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002975/0.8621, allocations: 1.214 MB / 0.5116 GB, free: 12.84 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000318/0.8625, allocations: 57.64 kB / 0.5116 GB, free: 12.78 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001089/0.8636, allocations: 0.8869 MB / 0.5125 GB, free: 11.88 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007763/0.8644, allocations: 461.5 kB / 0.5129 GB, free: 11.43 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001457/0.8645, allocations: 28 kB / 0.513 GB, free: 11.4 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0001977/0.8647, allocations: 362.8 kB / 0.5133 GB, free: 11.04 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001755/0.8665, allocations: 0.6716 MB / 0.514 GB, free: 10.36 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002131/0.8687, allocations: 1.012 MB / 0.5149 GB, free: 9.207 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002292/0.871, allocations: 0.8325 MB / 0.5158 GB, free: 8.375 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.381e-05/0.8711, allocations: 4 kB / 0.5158 GB, free: 8.371 MB / 442.7 MB Notification: Performance of matching and sorting (n=183) (initialization): time 0.007295/0.8784, allocations: 2.354 MB / 0.5181 GB, free: 5.996 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.691e-05/0.8785, allocations: 11.94 kB / 0.5181 GB, free: 5.984 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.723e-05/0.8785, allocations: 8 kB / 0.5181 GB, free: 5.977 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002975/0.8815, allocations: 0.6629 MB / 0.5187 GB, free: 5.305 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002477/0.884, allocations: 299.6 kB / 0.519 GB, free: 5.012 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.3046/1.189, allocations: 6.451 MB / 0.5253 GB, free: 115.3 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002363/1.191, allocations: 105.6 kB / 0.5254 GB, free: 115.3 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003343/1.191, allocations: 58.8 kB / 0.5255 GB, free: 115.3 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 41 * Number of states: 0 () * Number of discrete variables: 5 ($whenCondition1,$PRE.dutyCycle.nextTimeEvent,dutyCycle.nextTimeEvent,$PRE.dutyCycle.nextTimeEventScaled,dutyCycle.nextTimeEventScaled) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (150): * Single equations (assignments): 146 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(2,100.0%),(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(5,76.0%) 23,(1,100.0%) 4} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0004681/1.192, allocations: 186.5 kB / 0.5257 GB, free: 115.2 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005622/1.193, allocations: 160 kB / 0.5258 GB, free: 115.2 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007318/1.2, allocations: 2.352 MB / 0.5281 GB, free: 115 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.531e-05/1.2, allocations: 16.12 kB / 0.5281 GB, free: 115 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.483e-05/1.2, allocations: 7.484 kB / 0.5281 GB, free: 115 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.298e-05/1.2, allocations: 6.562 kB / 0.5281 GB, free: 115 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01439/1.214, allocations: 4.796 MB / 0.5328 GB, free: 114.5 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.156e-05/1.215, allocations: 2.531 kB / 0.5328 GB, free: 114.5 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00174/1.216, allocations: 184.6 kB / 0.533 GB, free: 114.5 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003586/1.22, allocations: 0.715 MB / 0.5337 GB, free: 114.5 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003181/1.22, allocations: 37.47 kB / 0.5337 GB, free: 114.5 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01407/1.234, allocations: 8.141 MB / 0.5417 GB, free: 110.7 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.432e-06/1.234, allocations: 2.812 kB / 0.5417 GB, free: 110.7 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008732/1.243, allocations: 3.436 MB / 0.545 GB, free: 110.2 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00136/1.245, allocations: 391.6 kB / 0.5454 GB, free: 110 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005003/1.245, allocations: 38.92 kB / 0.5454 GB, free: 110 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001699/1.247, allocations: 80.72 kB / 0.5455 GB, free: 110 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003848/1.247, allocations: 107 kB / 0.5456 GB, free: 110 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001333/1.247, allocations: 44.03 kB / 0.5457 GB, free: 110 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.002171/1.25, allocations: 0.9382 MB / 0.5466 GB, free: 109.9 MB / 442.7 MB Notification: Performance of sort global known variables: time 6.51e-07/1.25, allocations: 0 / 0.5466 GB, free: 109.9 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.002673/1.252, allocations: 0.5191 MB / 0.5471 GB, free: 109.9 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * Number of states: 7 (aimc.idq_sr[1],aimc.idq_sr[2],aimc.idq_rr[1],aimc.idq_rr[2],vfController.x,mass.s,mass.v) * Number of discrete variables: 3 ($whenCondition1,dutyCycle.nextTimeEvent,dutyCycle.nextTimeEventScaled) * Number of discrete states: 2 (dutyCycle.nextTimeEvent,dutyCycle.nextTimeEventScaled) * Top-level inputs: 0 Notification: Strong component statistics for simulation (102): * Single equations (assignments): 96 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 1 {(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(5,76.0%) 23,(1,100.0%) 3,(2,100.0%) 4} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.009757/1.262, allocations: 5.093 MB / 0.5521 GB, free: 107.9 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.005575/1.268, allocations: 2.288 MB / 0.5543 GB, free: 106.8 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 9.067e-06/1.268, allocations: 0 / 0.5543 GB, free: 106.8 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004272/1.272, allocations: 1.549 MB / 0.5558 GB, free: 106 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00326/1.275, allocations: 377.4 kB / 0.5562 GB, free: 105.9 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01594/1.291, allocations: 4.095 MB / 0.5602 GB, free: 104.3 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002351/1.294, allocations: 1.745 MB / 0.5619 GB, free: 103.4 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002254/1.296, allocations: 0.7798 MB / 0.5626 GB, free: 102.8 MB / 442.7 MB Notification: Performance of SimCode: time 1.623e-06/1.296, allocations: 0 / 0.5626 GB, free: 102.8 MB / 442.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_Electrical_Machines_Examples_InductionMachines_IMC_ConveyorCalcHelperMain.o OMCppModelica_trunk_cpp_Modelica_Electrical_Machines_Examples_InductionMachines_IMC_ConveyorCalcHelperMain.cpp In file included from OMCppModelica_trunk_cpp_Modelica_Electrical_Machines_Examples_InductionMachines_IMC_ConveyorCalcHelperMain.cpp:28: ./OMCppModelica_trunk_cpp_Modelica_Electrical_Machines_Examples_InductionMachines_IMC_ConveyorFunctions.cpp:215:33: error: no matching function for call to 'ModelicaStandardTables_CombiTimeTable_init2' externalCombiTimeTable__ext = ModelicaStandardTables_CombiTimeTable_init2(fileName_.c_str(), tableName_.c_str(), tmp11.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_Electrical_Machines_Examples_InductionMachines_IMC_ConveyorCalcHelperMain.cpp:35: In file included from ./OMCppModelica_trunk_cpp_Modelica_Electrical_Machines_Examples_InductionMachines_IMC_ConveyorFMU.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_Electrical_Machines_Examples_InductionMachines_IMC_ConveyorCalcHelperMain.o' failed make: *** [OMCppModelica_trunk_cpp_Modelica_Electrical_Machines_Examples_InductionMachines_IMC_ConveyorCalcHelperMain.o] Error 1