Running command: "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Conveyor,fileNamePrefix="Modelica_trunk_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_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.19 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 2.802e-05/2.813e-05, allocations: 0 / 292.3 MB, free: 8.723 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1096/0.1097, allocations: 50.41 MB / 342.7 MB, free: 6.297 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5635/0.6732, allocations: 153.1 MB / 495.8 MB, free: 5.691 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000382/0.6737, allocations: 104 kB / 495.9 MB, free: 5.633 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.855/2.529, allocations: 356 MB / 0.832 GB, free: 33.47 MB / 458.7 MB Notification: Performance of FrontEnd: time 2.515e-06/2.529, allocations: 0 / 0.832 GB, free: 33.47 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.001003/2.53, allocations: 255.6 kB / 0.8322 GB, free: 33.22 MB / 458.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 3019 * Number of variables: 3019 Notification: Performance of Generate backend data structure: time 0.04995/2.58, allocations: 10.38 MB / 0.8423 GB, free: 22.74 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.173e-05/2.58, allocations: 12.03 kB / 0.8424 GB, free: 22.73 MB / 458.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.007632/2.588, allocations: 1.535 MB / 0.8439 GB, free: 21.18 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04093/2.629, allocations: 4.762 MB / 0.8485 GB, free: 16.4 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03746/2.666, allocations: 9.557 MB / 0.8578 GB, free: 6.77 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001443/2.668, allocations: 0.7906 MB / 0.8586 GB, free: 5.977 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005734/2.673, allocations: 1.051 MB / 0.8596 GB, free: 4.926 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.4537/3.127, allocations: 16.85 MB / 0.8761 GB, free: 34.77 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0009374/3.128, allocations: 17.17 kB / 0.8761 GB, free: 34.77 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.005309/3.133, allocations: 460.3 kB / 0.8765 GB, free: 34.77 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001764/3.135, allocations: 0.7617 MB / 0.8773 GB, free: 34.74 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.05197/3.187, allocations: 15.01 MB / 0.8919 GB, free: 34.7 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1493/3.337, allocations: 55.59 MB / 0.9462 GB, free: 18.24 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.04082/3.377, allocations: 33.14 MB / 0.9786 GB, free: 4.773 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.01223/3.39, allocations: 4.338 MB / 0.9828 GB, free: 3.078 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.04538/3.435, allocations: 12.44 MB / 0.995 GB, free: 14.3 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00891/3.444, allocations: 3.006 MB / 0.9979 GB, free: 13.03 MB / 490.7 MB Notification: Performance of pre-optimization done (n=432): time 1.114e-05/3.444, allocations: 0 / 0.9979 GB, free: 13.03 MB / 490.7 MB Notification: Performance of matching and sorting (n=450): time 0.06325/3.508, allocations: 17.54 MB / 1.015 GB, free: 4.883 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002821/3.508, allocations: 412.8 kB / 1.015 GB, free: 4.438 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01255/3.52, allocations: 3.977 MB / 1.019 GB, free: 2.285 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001137/3.522, allocations: 97.7 kB / 1.019 GB, free: 2.184 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.007257/3.529, allocations: 4.53 MB / 1.024 GB, free: 14.1 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.003188/3.532, allocations: 1.529 MB / 1.025 GB, free: 12.73 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001397/3.534, allocations: 124 kB / 1.025 GB, free: 12.61 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.0008708/3.535, allocations: 0.5478 MB / 1.026 GB, free: 12.12 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.008831/3.543, allocations: 2.751 MB / 1.029 GB, free: 9.625 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01163/3.555, allocations: 4.863 MB / 1.033 GB, free: 4.238 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01176/3.567, allocations: 3.816 MB / 1.037 GB, free: 1.027 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.615e-05/3.567, allocations: 18.73 kB / 1.037 GB, free: 1.012 MB / 0.4948 GB Notification: Performance of matching and sorting (n=770) (initialization): time 0.04341/3.61, allocations: 9.646 MB / 1.047 GB, free: 11.32 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 9.128e-05/3.611, allocations: 32 kB / 1.047 GB, free: 11.29 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001469/3.611, allocations: 64 kB / 1.047 GB, free: 11.22 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.007973/3.619, allocations: 1.509 MB / 1.048 GB, free: 10.03 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01093/3.63, allocations: 1.313 MB / 1.049 GB, free: 9 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.4717/4.102, allocations: 16.27 MB / 1.065 GB, free: 88.4 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008903/4.111, allocations: 359.1 kB / 1.066 GB, free: 88.4 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002061/4.113, allocations: 283 kB / 1.066 GB, free: 88.4 MB / 0.5105 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 297 * 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 (686): * Single equations (assignments): 680 * 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: 5 * 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: 5 {(1,100.0%) 4,(1,100.0%) 5,(1,100.0%) 13,(1,100.0%) 4,(14,41.8%) 44} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.004099/4.117, allocations: 485 kB / 1.066 GB, free: 88.3 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.003599/4.12, allocations: 0.4962 MB / 1.067 GB, free: 88.3 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0443/4.165, allocations: 7.837 MB / 1.075 GB, free: 87.81 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001225/4.165, allocations: 48.8 kB / 1.075 GB, free: 87.81 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0001398/4.165, allocations: 17.12 kB / 1.075 GB, free: 87.81 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001931/4.165, allocations: 23.02 kB / 1.075 GB, free: 87.81 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.07273/4.238, allocations: 17.51 MB / 1.092 GB, free: 86.59 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.784e-05/4.238, allocations: 6.625 kB / 1.092 GB, free: 86.59 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.006955/4.245, allocations: 0.7439 MB / 1.092 GB, free: 86.59 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.007542/4.253, allocations: 1.56 MB / 1.094 GB, free: 86.53 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001168/4.254, allocations: 111.2 kB / 1.094 GB, free: 86.53 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03204/4.286, allocations: 19.52 MB / 1.113 GB, free: 77.37 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.853e-06/4.286, allocations: 6.906 kB / 1.113 GB, free: 77.37 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02911/4.315, allocations: 11.76 MB / 1.125 GB, free: 75.93 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.004373/4.32, allocations: 1.161 MB / 1.126 GB, free: 75.75 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001893/4.322, allocations: 104.1 kB / 1.126 GB, free: 75.74 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005948/4.328, allocations: 248.1 kB / 1.126 GB, free: 75.74 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001518/4.329, allocations: 336.9 kB / 1.126 GB, free: 75.73 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004983/4.33, allocations: 136.8 kB / 1.127 GB, free: 75.73 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.007644/4.337, allocations: 3.011 MB / 1.13 GB, free: 75.53 MB / 0.5105 GB Notification: Performance of sort global known variables: time 8.62e-07/4.337, allocations: 0 / 1.13 GB, free: 75.53 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.01147/4.349, allocations: 1.944 MB / 1.131 GB, free: 75.53 MB / 0.5105 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 19 * Number of states: 11 (imcQS.rotorCage.port_p.reference.gamma,massQS.s,massQS.v,imc.stator.core.Phi.re,imc.stator.core.Phi.im,imc.stator.zeroInductor.i0,imc.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[3].Phi.re,imc.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 (395): * Single equations (assignments): 386 * 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: 7 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 7 {(1,100.0%) 3,(14,41.8%) 44,(1,100.0%) 5,(1,100.0%) 13,(1,100.0%) 8,(1,100.0%) 3,(2,100.0%) 12} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.03273/4.382, allocations: 14.13 MB / 1.145 GB, free: 72.23 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.02128/4.403, allocations: 7.709 MB / 1.153 GB, free: 69.06 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 1.323e-05/4.403, allocations: 2.656 kB / 1.153 GB, free: 69.06 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.01323/4.416, allocations: 4.446 MB / 1.157 GB, free: 66.89 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01045/4.427, allocations: 1.2 MB / 1.158 GB, free: 66.56 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06246/4.489, allocations: 19.28 MB / 1.177 GB, free: 59.04 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01459/4.504, allocations: 6.826 MB / 1.184 GB, free: 56.55 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01011/4.514, allocations: 4.049 MB / 1.188 GB, free: 52.79 MB / 0.5105 GB Notification: Performance of SimCode: time 1.673e-06/4.514, allocations: 0 / 1.188 GB, free: 52.79 MB / 0.5105 GB 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_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_ConveyorCalcHelperMain.o OMCppModelica_trunk_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_ConveyorCalcHelperMain.cpp In file included from OMCppModelica_trunk_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_ConveyorCalcHelperMain.cpp:28: ./OMCppModelica_trunk_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_ConveyorFunctions.cpp:257:33: error: no matching function for call to 'ModelicaStandardTables_CombiTimeTable_init2' externalCombiTimeTable__ext = ModelicaStandardTables_CombiTimeTable_init2(fileName_.c_str(), tableName_.c_str(), tmp100.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_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_ConveyorCalcHelperMain.cpp:28: ./OMCppModelica_trunk_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_ConveyorFunctions.cpp:632:43: error: use of undeclared identifier 'UNKNOWN_SUBSCRIPT' tmp137 = std::sqrt((std::pow(u_(UNKNOWN_SUBSCRIPT).re_, 2.0) + std::pow(u_(UNKNOWN_SUBSCRIPT).im_, 2.0))); ^ ./OMCppModelica_trunk_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_ConveyorFunctions.cpp:632:86: error: use of undeclared identifier 'UNKNOWN_SUBSCRIPT' tmp137 = std::sqrt((std::pow(u_(UNKNOWN_SUBSCRIPT).re_, 2.0) + std::pow(u_(UNKNOWN_SUBSCRIPT).im_, 2.0))); ^ In file included from OMCppModelica_trunk_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_ConveyorCalcHelperMain.cpp:35: In file included from ./OMCppModelica_trunk_cpp_Modelica_Magnetic_QuasiStatic_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 3 errors generated. : recipe for target 'OMCppModelica_trunk_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_ConveyorCalcHelperMain.o' failed make: *** [OMCppModelica_trunk_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_ConveyorCalcHelperMain.o] Error 1