Running command: "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Conveyor,fileNamePrefix="Modelica_trunk_cpp_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_Conveyor",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.967/1.967, allocations: 225.8 MB / 239.3 MB, free: 11.18 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.382e-05/3.396e-05, allocations: 6.031 kB / 292.2 MB, free: 8.723 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1043/0.1043, allocations: 50.42 MB / 342.6 MB, free: 6.293 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.491/0.5954, allocations: 114.8 MB / 457.4 MB, free: 11.54 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003367/0.5958, allocations: 100.2 kB / 457.5 MB, free: 11.48 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6266/1.222, allocations: 83.97 MB / 0.5288 GB, free: 92.96 MB / 442.7 MB Notification: Performance of FrontEnd: time 3.136e-06/1.223, allocations: 0 / 0.5288 GB, free: 92.96 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0003699/1.223, allocations: 84.09 kB / 0.5289 GB, free: 92.96 MB / 442.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 843 * Number of variables: 843 Notification: Performance of Generate backend data structure: time 0.01493/1.238, allocations: 3.315 MB / 0.5321 GB, free: 91.84 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.405e-05/1.238, allocations: 10.53 kB / 0.5321 GB, free: 91.84 MB / 442.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002007/1.24, allocations: 455.8 kB / 0.5326 GB, free: 91.78 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006787/1.247, allocations: 0.741 MB / 0.5333 GB, free: 91.59 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01353/1.26, allocations: 3.374 MB / 0.5366 GB, free: 91.07 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003787/1.261, allocations: 241.8 kB / 0.5368 GB, free: 91.07 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001588/1.262, allocations: 323.4 kB / 0.5371 GB, free: 91.06 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01459/1.277, allocations: 4.09 MB / 0.5411 GB, free: 90.71 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001357/1.277, allocations: 1.156 kB / 0.5411 GB, free: 90.71 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007116/1.278, allocations: 132.7 kB / 0.5412 GB, free: 90.71 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002168/1.278, allocations: 147 kB / 0.5414 GB, free: 90.71 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01118/1.289, allocations: 3.291 MB / 0.5446 GB, free: 90.69 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03338/1.323, allocations: 13.48 MB / 0.5578 GB, free: 88.13 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009214/1.332, allocations: 6.851 MB / 0.5644 GB, free: 82.92 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003403/1.335, allocations: 1.35 MB / 0.5658 GB, free: 82.88 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009544/1.345, allocations: 3.851 MB / 0.5695 GB, free: 80.78 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001709/1.347, allocations: 0.8165 MB / 0.5703 GB, free: 80.39 MB / 442.7 MB Notification: Performance of pre-optimization done (n=130): time 4.177e-06/1.347, allocations: 0 / 0.5703 GB, free: 80.39 MB / 442.7 MB Notification: Performance of matching and sorting (n=138): time 0.01283/1.36, allocations: 5.065 MB / 0.5753 GB, free: 77.68 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.596e-05/1.36, allocations: 221.7 kB / 0.5755 GB, free: 77.43 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003523/1.363, allocations: 1.65 MB / 0.5771 GB, free: 76.78 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000314/1.364, allocations: 48.23 kB / 0.5771 GB, free: 76.73 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001303/1.365, allocations: 1.413 MB / 0.5785 GB, free: 75.6 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006137/1.366, allocations: 485.7 kB / 0.579 GB, free: 75.24 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001389/1.366, allocations: 32.5 kB / 0.579 GB, free: 75.21 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0001291/1.366, allocations: 385.2 kB / 0.5794 GB, free: 74.87 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001513/1.367, allocations: 0.629 MB / 0.58 GB, free: 74.61 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001798/1.369, allocations: 1.152 MB / 0.5811 GB, free: 73.71 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001942/1.371, allocations: 0.8521 MB / 0.582 GB, free: 73.36 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.456e-05/1.371, allocations: 3.625 kB / 0.582 GB, free: 73.36 MB / 442.7 MB Notification: Performance of matching and sorting (n=217) (initialization): time 0.005147/1.376, allocations: 2.189 MB / 0.5841 GB, free: 72.48 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.544e-05/1.376, allocations: 14.25 kB / 0.5841 GB, free: 72.48 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.627e-05/1.377, allocations: 11.34 kB / 0.5841 GB, free: 72.48 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001126/1.378, allocations: 290.8 kB / 0.5844 GB, free: 72.38 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002821/1.38, allocations: 374.9 kB / 0.5848 GB, free: 72.36 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006779/1.387, allocations: 5.826 MB / 0.5904 GB, free: 67.42 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002588/1.39, allocations: 102.7 kB / 0.5905 GB, free: 67.38 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002537/1.39, allocations: 71.83 kB / 0.5906 GB, free: 67.37 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 66 * 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 (194): * Single equations (assignments): 190 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * 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 {(1,100.0%) 4,(1,100.0%) 5,(1,100.0%) 13} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0004248/1.391, allocations: 213.8 kB / 0.5908 GB, free: 67.2 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004446/1.391, allocations: 197 kB / 0.591 GB, free: 67.1 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005494/1.397, allocations: 2.21 MB / 0.5932 GB, free: 66.05 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.77e-05/1.397, allocations: 14.59 kB / 0.5932 GB, free: 66.05 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.307e-05/1.397, allocations: 7.469 kB / 0.5932 GB, free: 66.05 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.453e-05/1.397, allocations: 7.453 kB / 0.5932 GB, free: 66.05 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.012/1.409, allocations: 5.123 MB / 0.5982 GB, free: 63.64 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.154e-05/1.409, allocations: 3.375 kB / 0.5982 GB, free: 63.64 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00156/1.41, allocations: 175.4 kB / 0.5984 GB, free: 63.64 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001974/1.412, allocations: 459 kB / 0.5988 GB, free: 63.48 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002002/1.413, allocations: 39.08 kB / 0.5988 GB, free: 63.46 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01219/1.425, allocations: 10.14 MB / 0.6087 GB, free: 54.93 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.338e-06/1.425, allocations: 3 kB / 0.6087 GB, free: 54.93 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006976/1.432, allocations: 3.1 MB / 0.6118 GB, free: 53.36 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001385/1.433, allocations: 440.6 kB / 0.6122 GB, free: 53.05 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004557/1.434, allocations: 39.16 kB / 0.6122 GB, free: 53.03 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001693/1.435, allocations: 71.22 kB / 0.6123 GB, free: 53.01 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003145/1.436, allocations: 104.8 kB / 0.6124 GB, free: 53 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001179/1.436, allocations: 41.14 kB / 0.6124 GB, free: 52.98 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.002642/1.439, allocations: 1.263 MB / 0.6137 GB, free: 52.48 MB / 442.7 MB Notification: Performance of sort global known variables: time 9.82e-07/1.439, allocations: 0 / 0.6137 GB, free: 52.48 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.003503/1.442, allocations: 0.6275 MB / 0.6143 GB, free: 52.4 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 7 (aimc.stator.core.Phi.re,aimc.stator.core.Phi.im,aimc.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[3].Phi.re,aimc.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[3].Phi.im,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 (101): * Single equations (assignments): 94 * 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: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 5 {(1,100.0%) 5,(1,100.0%) 8,(1,100.0%) 3,(1,100.0%) 13,(2,100.0%) 12} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.008926/1.451, allocations: 4.46 MB / 0.6186 GB, free: 49.97 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.004751/1.456, allocations: 2.052 MB / 0.6206 GB, free: 48.96 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 6.121e-06/1.456, allocations: 320 / 0.6206 GB, free: 48.96 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003308/1.459, allocations: 1.484 MB / 0.6221 GB, free: 48.04 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004155/1.463, allocations: 0.4922 MB / 0.6226 GB, free: 47.89 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01537/1.479, allocations: 5.429 MB / 0.6279 GB, free: 44.73 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002385/1.481, allocations: 2.364 MB / 0.6302 GB, free: 42.86 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002371/1.484, allocations: 1.178 MB / 0.6313 GB, free: 41.77 MB / 442.7 MB Notification: Performance of SimCode: time 1.553e-06/1.484, allocations: 0 / 0.6313 GB, free: 41.77 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_Magnetic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_ConveyorCalcHelperMain.o OMCppModelica_trunk_cpp_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_ConveyorCalcHelperMain.cpp In file included from OMCppModelica_trunk_cpp_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_ConveyorCalcHelperMain.cpp:28: ./OMCppModelica_trunk_cpp_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_ConveyorFunctions.cpp:221:33: error: no matching function for call to 'ModelicaStandardTables_CombiTimeTable_init2' externalCombiTimeTable__ext = ModelicaStandardTables_CombiTimeTable_init2(fileName_.c_str(), tableName_.c_str(), tmp24.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_Magnetic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_ConveyorCalcHelperMain.cpp:35: In file included from ./OMCppModelica_trunk_cpp_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_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_Magnetic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_ConveyorCalcHelperMain.o' failed make: *** [OMCppModelica_trunk_cpp_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_ConveyorCalcHelperMain.o] Error 1