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_DOL.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_DOL,fileNamePrefix="Modelica_3_2_2_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_DOL",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.846/1.846, allocations: 194.8 MB / 211.7 MB, free: 2.996 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003651/0.0003651, allocations: 19.92 kB / 264.1 MB, free: 13.44 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09201/0.09241, allocations: 44.5 MB / 308.6 MB, free: 0.875 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4974/0.5898, allocations: 147.3 MB / 455.9 MB, free: 8.277 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000381/0.5903, allocations: 115.2 kB / 456 MB, free: 8.207 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.259/2.85, allocations: 458.9 MB / 0.8934 GB, free: 33.37 MB / 442.7 MB Notification: Performance of FrontEnd: time 3.075e-06/2.85, allocations: 0 / 0.8934 GB, free: 33.37 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.001075/2.851, allocations: 327.3 kB / 0.8937 GB, free: 33.34 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: 3978 * Number of variables: 3978 Notification: Performance of Generate backend data structure: time 0.06278/2.914, allocations: 14.08 MB / 0.9075 GB, free: 28.89 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.983e-05/2.914, allocations: 10.28 kB / 0.9075 GB, free: 28.89 MB / 442.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.01113/2.925, allocations: 2.327 MB / 0.9098 GB, free: 28.73 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.05259/2.977, allocations: 6.518 MB / 0.9161 GB, free: 27.92 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0373/3.015, allocations: 11.54 MB / 0.9274 GB, free: 26.56 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.00159/3.016, allocations: 1.055 MB / 0.9284 GB, free: 26.53 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.006819/3.023, allocations: 1.365 MB / 0.9298 GB, free: 26.52 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.07491/3.098, allocations: 23.67 MB / 0.9529 GB, free: 24.81 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0008831/3.099, allocations: 29.89 kB / 0.9529 GB, free: 24.8 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.006047/3.105, allocations: 0.5875 MB / 0.9535 GB, free: 24.8 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001396/3.107, allocations: 0.9282 MB / 0.9544 GB, free: 24.77 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.06253/3.169, allocations: 21.39 MB / 0.9753 GB, free: 17.25 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.5592/3.728, allocations: 75.14 MB / 1.049 GB, free: 26.32 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.04193/3.77, allocations: 28.43 MB / 1.076 GB, free: 27 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.07342/3.844, allocations: 29.2 MB / 1.105 GB, free: 25.62 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001121/3.844, allocations: 127.3 kB / 1.105 GB, free: 25.57 MB / 474.7 MB Notification: Performance of pre-optimization done (n=944): time 1.354e-05/3.844, allocations: 0 / 1.105 GB, free: 25.57 MB / 474.7 MB Notification: Performance of matching and sorting (n=952): time 0.3087/4.153, allocations: 67.58 MB / 1.171 GB, free: 5.742 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001167/4.153, allocations: 166.2 kB / 1.171 GB, free: 5.641 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008774/4.162, allocations: 4.13 MB / 1.175 GB, free: 4.113 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001993/4.164, allocations: 158 kB / 1.175 GB, free: 3.98 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.004521/4.168, allocations: 5.05 MB / 1.18 GB, free: 80 kB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.005652/4.174, allocations: 3.134 MB / 1.183 GB, free: 13.29 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00128/4.175, allocations: 172 kB / 1.184 GB, free: 13.12 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0009147/4.176, allocations: 0.6983 MB / 1.184 GB, free: 12.52 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01668/4.193, allocations: 6.103 MB / 1.19 GB, free: 7.293 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.3749/4.568, allocations: 7.98 MB / 1.198 GB, free: 71.77 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01993/4.588, allocations: 7.396 MB / 1.205 GB, free: 71.67 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.5e-05/4.588, allocations: 13.31 kB / 1.205 GB, free: 71.67 MB / 490.7 MB Notification: Performance of matching and sorting (n=1215) (initialization): time 0.05174/4.64, allocations: 18.38 MB / 1.223 GB, free: 71.27 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.771e-05/4.64, allocations: 31.53 kB / 1.223 GB, free: 71.27 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001277/4.64, allocations: 51.8 kB / 1.223 GB, free: 71.27 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01893/4.659, allocations: 5.909 MB / 1.229 GB, free: 71.09 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01192/4.671, allocations: 1.534 MB / 1.231 GB, free: 71.09 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03164/4.702, allocations: 20.11 MB / 1.25 GB, free: 63.79 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009693/4.712, allocations: 433.9 kB / 1.251 GB, free: 63.79 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002189/4.714, allocations: 372.2 kB / 1.251 GB, free: 63.79 MB / 490.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 230 * Number of states: 0 () * Number of discrete variables: 6 (booleanStepQS[1].y,booleanStepQS[2].y,booleanStepQS[3].y,booleanStep[1].y,booleanStep[2].y,booleanStep[3].y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (808): * Single equations (assignments): 755 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 44 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 8 * 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%) 1,(1,100.0%) 5,(1,100.0%) 1,(1,100.0%) 13} * Non-linear torn systems: 4 {6 9,6 9,6 9,30 175} Notification: Performance of prepare postOptimizeDAE: time 0.01422/4.729, allocations: 5.206 MB / 1.256 GB, free: 63.68 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002468/4.731, allocations: 0.6596 MB / 1.257 GB, free: 63.68 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.04808/4.779, allocations: 18.32 MB / 1.275 GB, free: 60.46 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.03453/4.814, allocations: 14.38 MB / 1.289 GB, free: 54.25 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.653e-05/4.814, allocations: 9.688 kB / 1.289 GB, free: 54.25 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.00019/4.814, allocations: 41.62 kB / 1.289 GB, free: 54.25 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.08926/4.903, allocations: 35.82 MB / 1.324 GB, free: 38.52 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.818e-05/4.903, allocations: 3.625 kB / 1.324 GB, free: 38.52 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.009129/4.913, allocations: 1.058 MB / 1.325 GB, free: 38.49 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01905/4.932, allocations: 6.008 MB / 1.331 GB, free: 36.62 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.002068/4.934, allocations: 209.6 kB / 1.331 GB, free: 36.51 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03557/4.969, allocations: 24.47 MB / 1.355 GB, free: 13.47 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.06e-06/4.969, allocations: 4 kB / 1.355 GB, free: 13.47 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.4601/5.43, allocations: 28.16 MB / 1.382 GB, free: 65.07 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.007704/5.437, allocations: 2.12 MB / 1.384 GB, free: 64.97 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002897/5.44, allocations: 152.8 kB / 1.384 GB, free: 64.97 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.008213/5.448, allocations: 379.2 kB / 1.385 GB, free: 64.97 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.003272/5.452, allocations: 0.7084 MB / 1.385 GB, free: 64.96 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001423/5.453, allocations: 256.8 kB / 1.386 GB, free: 64.96 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.008551/5.462, allocations: 3.149 MB / 1.389 GB, free: 64.79 MB / 490.7 MB Notification: Performance of sort global known variables: time 7.91e-07/5.462, allocations: 0.8438 kB / 1.389 GB, free: 64.79 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.02164/5.484, allocations: 2.51 MB / 1.391 GB, free: 64.79 MB / 490.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 15 * Number of states: 10 (imc.inertiaRotor.w,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,quadraticLoadTorque.phi,loadInertiaQS.w,quadraticLoadTorqueQS.phi,imcQS.rotorCage.port_p.reference.gamma) * Number of discrete variables: 6 (booleanStep[1].y,booleanStep[2].y,booleanStep[3].y,booleanStepQS[1].y,booleanStepQS[2].y,booleanStepQS[3].y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (562): * Single equations (assignments): 508 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 44 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 10 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 6 {(1,100.0%) 5,(1,100.0%) 13,(1,100.0%) 1,(1,100.0%) 8,(2,100.0%) 12,(1,100.0%) 1} * Non-linear torn systems: 4 {6 9,6 9,6 9,30 175} Notification: Performance of Backend phase and start with SimCode phase: time 0.06899/5.553, allocations: 29.38 MB / 1.42 GB, free: 62.13 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.0397/5.592, allocations: 15.72 MB / 1.435 GB, free: 61.19 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 1.208e-05/5.592, allocations: 5.953 kB / 1.435 GB, free: 61.19 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.02377/5.616, allocations: 8.893 MB / 1.444 GB, free: 59.7 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01704/5.633, allocations: 1.484 MB / 1.445 GB, free: 59.32 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2593/5.893, allocations: 124.7 MB / 1.567 GB, free: 84 kB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.383/6.276, allocations: 9.035 MB / 1.576 GB, free: 103.2 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01416/6.29, allocations: 5.33 MB / 1.581 GB, free: 103.2 MB / 0.5105 GB Notification: Performance of SimCode: time 1.363e-06/6.29, allocations: 0 / 1.581 GB, free: 103.2 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"." -DUSE_LOGGER -c -o OMCppModelica_3_2_2_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_DOLCalcHelperMain.o OMCppModelica_3_2_2_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_DOLCalcHelperMain.cpp In file included from OMCppModelica_3_2_2_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_DOLCalcHelperMain.cpp:28: ./OMCppModelica_3_2_2_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_DOLFunctions.cpp:508:43: error: use of undeclared identifier 'UNKNOWN_SUBSCRIPT' tmp330 = 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_DOLFunctions.cpp:508:86: error: use of undeclared identifier 'UNKNOWN_SUBSCRIPT' tmp330 = 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_DOLCalcHelperMain.cpp:35: In file included from ./OMCppModelica_3_2_2_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_DOLFMU.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 2 errors generated. : recipe for target 'OMCppModelica_3_2_2_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_DOLCalcHelperMain.o' failed make: *** [OMCppModelica_3_2_2_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_DOLCalcHelperMain.o] Error 1