Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.2_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Conveyor.conf.json Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Running command: "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Conveyor,fileNamePrefix="Modelica_3_2_2_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_Conveyor",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.827/1.827, allocations: 194.8 MB / 211.7 MB, free: 3 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0009594/0.0009604, allocations: 8 kB / 264.1 MB, free: 13.45 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1023/0.1033, allocations: 44.51 MB / 308.6 MB, free: 0.8711 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5432/0.6466, allocations: 145.1 MB / 453.7 MB, free: 10.44 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003286/0.647, allocations: 111.2 kB / 453.8 MB, free: 10.38 MB / 346.7 MB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/Blocks/Sources.mo:2346:7-2347:66:writable] Warning: Unused input variable tableAvailable in function .Modelica.Blocks.Sources.CombiTimeTable$dutyCycle.getDerTableValue. [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/Blocks/Sources.mo:2312:7-2313:66:writable] Warning: Unused input variable tableAvailable in function .Modelica.Blocks.Sources.CombiTimeTable$dutyCycle.getTableValue. [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/Blocks/Sources.mo:2358:7-2359:66:writable] Warning: Unused input variable tableAvailable in function .Modelica.Blocks.Sources.CombiTimeTable$dutyCycle.getTableTimeTmin. [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/Blocks/Sources.mo:2369:7-2370:66:writable] Warning: Unused input variable tableAvailable in function .Modelica.Blocks.Sources.CombiTimeTable$dutyCycle.getTableTimeTmax. Notification: Performance of FrontEnd - DAE generated: time 1.657/2.304, allocations: 358.1 MB / 0.7928 GB, free: 49.94 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.194e-06/2.304, allocations: 0 / 0.7928 GB, free: 49.94 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0009295/2.305, allocations: 256.8 kB / 0.7931 GB, free: 49.9 MB / 426.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 3076 * Number of variables: 3076 Notification: Performance of Generate backend data structure: time 0.0505/2.356, allocations: 11.19 MB / 0.804 GB, free: 43.98 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.632e-05/2.356, allocations: 12.03 kB / 0.804 GB, free: 43.97 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.007119/2.363, allocations: 1.572 MB / 0.8055 GB, free: 42.67 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04472/2.408, allocations: 5.431 MB / 0.8109 GB, free: 38.27 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03023/2.438, allocations: 9.496 MB / 0.8201 GB, free: 28.72 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001155/2.439, allocations: 0.8067 MB / 0.8209 GB, free: 27.91 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005225/2.444, allocations: 1.066 MB / 0.822 GB, free: 26.85 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05898/2.503, allocations: 18.13 MB / 0.8397 GB, free: 8.363 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005945/2.504, allocations: 23.75 kB / 0.8397 GB, free: 8.34 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004603/2.509, allocations: 460 kB / 0.8401 GB, free: 7.891 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001302/2.51, allocations: 0.741 MB / 0.8408 GB, free: 7.148 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.3858/2.896, allocations: 16.83 MB / 0.8573 GB, free: 45.48 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1431/3.039, allocations: 58.11 MB / 0.914 GB, free: 31.82 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.03555/3.074, allocations: 26.18 MB / 0.9396 GB, free: 12 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.05917/3.134, allocations: 22.55 MB / 0.9616 GB, free: 0.7734 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.01978/3.153, allocations: 5.821 MB / 0.9673 GB, free: 15.61 MB / 442.7 MB Notification: Performance of pre-optimization done (n=706): time 1.267e-05/3.154, allocations: 0 / 0.9673 GB, free: 15.61 MB / 442.7 MB Notification: Performance of matching and sorting (n=724): time 0.1632/3.317, allocations: 44 MB / 1.01 GB, free: 3.461 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002693/3.317, allocations: 434.5 kB / 1.011 GB, free: 2.949 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.3522/3.669, allocations: 3.495 MB / 1.014 GB, free: 77.01 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001603/3.671, allocations: 129.5 kB / 1.014 GB, free: 76.98 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.004785/3.676, allocations: 4.071 MB / 1.018 GB, free: 76.3 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.003724/3.679, allocations: 2.417 MB / 1.021 GB, free: 74.75 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009103/3.68, allocations: 135.7 kB / 1.021 GB, free: 74.75 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0006403/3.681, allocations: 0.6086 MB / 1.021 GB, free: 74.43 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01282/3.694, allocations: 4.5 MB / 1.026 GB, free: 74.41 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01451/3.708, allocations: 6.207 MB / 1.032 GB, free: 72.66 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01474/3.723, allocations: 5.554 MB / 1.037 GB, free: 72.54 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.337e-05/3.723, allocations: 14.19 kB / 1.037 GB, free: 72.54 MB / 458.7 MB Notification: Performance of matching and sorting (n=952) (initialization): time 0.03535/3.759, allocations: 13.45 MB / 1.05 GB, free: 71.97 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001075/3.759, allocations: 58.45 kB / 1.05 GB, free: 71.94 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001056/3.759, allocations: 45.55 kB / 1.05 GB, free: 71.94 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01261/3.772, allocations: 3.861 MB / 1.054 GB, free: 71.84 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01022/3.782, allocations: 1.318 MB / 1.055 GB, free: 71.84 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02545/3.807, allocations: 16.76 MB / 1.072 GB, free: 63.97 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01178/3.819, allocations: 375.7 kB / 1.072 GB, free: 63.96 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002453/3.822, allocations: 302 kB / 1.072 GB, free: 63.96 MB / 458.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 200 * 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (693): * Single equations (assignments): 651 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 31 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 9 * 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: 4 {(1,100.0%) 4,(1,100.0%) 5,(1,100.0%) 4,(1,100.0%) 13} * Non-linear torn systems: 5 {6 9,6 9,6 9,6 9,14 74} Notification: Performance of prepare postOptimizeDAE: time 0.01578/3.837, allocations: 3.949 MB / 1.076 GB, free: 63.16 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002831/3.84, allocations: 0.5471 MB / 1.077 GB, free: 62.87 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.05064/3.891, allocations: 13.63 MB / 1.09 GB, free: 56.79 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.000198/3.891, allocations: 157 kB / 1.09 GB, free: 56.72 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.244e-05/3.891, allocations: 6.719 kB / 1.09 GB, free: 56.72 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001576/3.891, allocations: 32.3 kB / 1.09 GB, free: 56.72 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.06639/3.958, allocations: 27.09 MB / 1.117 GB, free: 44.41 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.615e-05/3.958, allocations: 5.672 kB / 1.117 GB, free: 44.4 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.007788/3.966, allocations: 0.8947 MB / 1.118 GB, free: 44.38 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01324/3.979, allocations: 4.003 MB / 1.122 GB, free: 43.19 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001578/3.981, allocations: 164.7 kB / 1.122 GB, free: 43.09 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02892/4.01, allocations: 20.99 MB / 1.142 GB, free: 26.38 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.432e-06/4.01, allocations: 5.625 kB / 1.142 GB, free: 26.38 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.04898/4.059, allocations: 20.03 MB / 1.162 GB, free: 8.488 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.005541/4.064, allocations: 1.668 MB / 1.163 GB, free: 6.977 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002465/4.067, allocations: 119.1 kB / 1.164 GB, free: 6.863 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006871/4.074, allocations: 298.8 kB / 1.164 GB, free: 6.645 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00241/4.076, allocations: 0.5251 MB / 1.164 GB, free: 6.309 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.00104/4.077, allocations: 197.9 kB / 1.165 GB, free: 6.133 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.006196/4.083, allocations: 2.668 MB / 1.167 GB, free: 3.887 MB / 458.7 MB Notification: Performance of sort global known variables: time 8.11e-07/4.083, allocations: 0 / 1.167 GB, free: 3.887 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.01118/4.095, allocations: 2.032 MB / 1.169 GB, free: 1.867 MB / 458.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * 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) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (486): * Single equations (assignments): 442 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 31 * When equations: 2 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 11 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 6 {(1,100.0%) 3,(1,100.0%) 5,(1,100.0%) 8,(1,100.0%) 3,(1,100.0%) 13,(2,100.0%) 12} * Non-linear torn systems: 5 {6 9,6 9,6 9,6 9,14 74} Notification: Performance of Backend phase and start with SimCode phase: time 0.4363/4.531, allocations: 23.54 MB / 1.192 GB, free: 86.57 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.03447/4.565, allocations: 11.93 MB / 1.204 GB, free: 85.63 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 9.528e-06/4.566, allocations: 3.156 kB / 1.204 GB, free: 85.63 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.01914/4.585, allocations: 6.76 MB / 1.21 GB, free: 84.73 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01035/4.595, allocations: 1.194 MB / 1.212 GB, free: 84.71 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.08674/4.682, allocations: 67.09 MB / 1.277 GB, free: 37.12 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01454/4.696, allocations: 6.981 MB / 1.284 GB, free: 36.14 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0109/4.707, allocations: 4.187 MB / 1.288 GB, free: 36.13 MB / 474.7 MB Notification: Performance of SimCode: time 1.183e-06/4.707, allocations: 3.188 kB / 1.288 GB, free: 36.13 MB / 474.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"." -DUSE_LOGGER -c -o OMCppModelica_3_2_2_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_ConveyorCalcHelperMain.o OMCppModelica_3_2_2_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_ConveyorCalcHelperMain.cpp In file included from OMCppModelica_3_2_2_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_ConveyorCalcHelperMain.cpp:28: ./OMCppModelica_3_2_2_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_ConveyorFunctions.cpp:578:43: error: use of undeclared identifier 'UNKNOWN_SUBSCRIPT' tmp236 = std::sqrt((std::pow(u_(UNKNOWN_SUBSCRIPT).re_, 2.0) + std::pow(u_(UNKNOWN_SUBSCRIPT).im_, 2.0))); ^ ./OMCppModelica_3_2_2_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_ConveyorFunctions.cpp:578:86: error: use of undeclared identifier 'UNKNOWN_SUBSCRIPT' tmp236 = std::sqrt((std::pow(u_(UNKNOWN_SUBSCRIPT).re_, 2.0) + std::pow(u_(UNKNOWN_SUBSCRIPT).im_, 2.0))); ^ In file included from OMCppModelica_3_2_2_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_ConveyorCalcHelperMain.cpp:31: ./OMCppModelica_3_2_2_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_ConveyorInitialize.cpp:3044:43: warning: magnitude of floating-point constant too large for type 'double'; maximum is 1.7976931348623157E+308 [-Wliteral-range] if (_dutyCycle_P_nextTimeEventScaled_ < 1.797693134862316e+308) { ^ ./OMCppModelica_3_2_2_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_ConveyorInitialize.cpp:3047:14: warning: magnitude of floating-point constant too large for type 'double'; maximum is 1.7976931348623157E+308 [-Wliteral-range] tmp305 = 1.797693134862316e+308; ^ In file included from OMCppModelica_3_2_2_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_ConveyorCalcHelperMain.cpp:34: ./OMCppModelica_3_2_2_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_Conveyor.cpp:534:45: warning: magnitude of floating-point constant too large for type 'double'; maximum is 1.7976931348623157E+308 [-Wliteral-range] if (_dutyCycle_P_nextTimeEventScaled_ < 1.797693134862316e+308) { ^ ./OMCppModelica_3_2_2_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_Conveyor.cpp:537:14: warning: magnitude of floating-point constant too large for type 'double'; maximum is 1.7976931348623157E+308 [-Wliteral-range] tmp7 = 1.797693134862316e+308; ^ In file included from OMCppModelica_3_2_2_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_ConveyorCalcHelperMain.cpp:35: In file included from ./OMCppModelica_3_2_2_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) { ^ 5 warnings and 2 errors generated. : recipe for target 'OMCppModelica_3_2_2_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_ConveyorCalcHelperMain.o' failed make: *** [OMCppModelica_3_2_2_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_ConveyorCalcHelperMain.o] Error 1