Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_withLosses",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_withLosses",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001493/0.001498, allocations: 186.7 kB / 16.4 MB, free: 5.625 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.128/2.128, allocations: 205.4 MB / 222.5 MB, free: 13.76 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001131/0.001131, allocations: 94.86 kB / 270.9 MB, free: 13.29 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004183/0.0004184, allocations: 8 kB / 327.1 MB, free: 14.96 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09721/0.09767, allocations: 47.58 MB / 374.7 MB, free: 15.29 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses): time 0.2893/0.387, allocations: 20.03 MB / 394.7 MB, free: 9.23 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.01846/0.4055, allocations: 7.275 MB / 402 MB, free: 8.18 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005491/0.411, allocations: 145.3 kB / 402.1 MB, free: 8.148 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.007334/0.4184, allocations: 1.498 MB / 403.6 MB, free: 7.508 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01236/0.4308, allocations: 2.572 MB / 406.2 MB, free: 6.148 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.006469/0.4373, allocations: 1.228 MB / 407.4 MB, free: 5.406 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.02398/0.4613, allocations: 10.19 MB / 417.6 MB, free: 208 kB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.05218/0.5136, allocations: 19.16 MB / 436.8 MB, free: 15.14 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01013/0.5237, allocations: 4.023 MB / 440.8 MB, free: 11.1 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01095/0.5347, allocations: 4.374 MB / 445.2 MB, free: 6.711 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 0.00325/0.538, allocations: 0.6602 MB / 445.8 MB, free: 6.051 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006719/0.5448, allocations: 0.9839 MB / 446.8 MB, free: 5.066 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.004519/0.5494, allocations: 2.083 MB / 448.9 MB, free: 2.977 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.005274/0.5547, allocations: 2.153 MB / 451 MB, free: 0.8125 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.03124/0.586, allocations: 19.54 MB / 470.6 MB, free: 13.22 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.729e-06/0.586, allocations: 4 kB / 470.6 MB, free: 13.22 MB / 346.7 MB Notification: Performance of FrontEnd: time 3.517e-06/0.586, allocations: 7.938 kB / 470.6 MB, free: 13.21 MB / 346.7 MB Notification: Performance of Transformations before backend: time 0.0006185/0.5867, allocations: 0 / 470.6 MB, free: 13.21 MB / 346.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2742 * Number of variables: 2742 Notification: Performance of Generate backend data structure: time 0.04911/0.6358, allocations: 11.4 MB / 482 MB, free: 1.711 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.357e-05/0.6359, allocations: 8.031 kB / 482 MB, free: 1.703 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.007025/0.6429, allocations: 1.641 MB / 483.6 MB, free: 48 kB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.06233/0.7053, allocations: 7.151 MB / 490.8 MB, free: 8.871 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02016/0.7255, allocations: 6.428 MB / 497.2 MB, free: 2.367 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001009/0.7265, allocations: 0.7306 MB / 497.9 MB, free: 1.633 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004471/0.731, allocations: 0.9686 MB / 498.9 MB, free: 0.6641 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05543/0.7865, allocations: 16.48 MB / 0.5033 GB, free: 100 kB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004734/0.787, allocations: 11.84 kB / 0.5033 GB, free: 88 kB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00369/0.7907, allocations: 408 kB / 0.5037 GB, free: 15.69 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001049/0.7918, allocations: 0.5948 MB / 0.5043 GB, free: 15.09 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.05137/0.8432, allocations: 15.73 MB / 0.5197 GB, free: 15.34 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.6541/1.497, allocations: 54.01 MB / 0.5724 GB, free: 85.59 MB / 410.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02923/1.527, allocations: 22.67 MB / 0.5945 GB, free: 64.97 MB / 410.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03074/1.557, allocations: 11.8 MB / 0.6061 GB, free: 56.98 MB / 410.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.577e-05/1.557, allocations: 76.64 kB / 0.6061 GB, free: 56.91 MB / 410.8 MB Notification: Performance of pre-optimization done (n=365): time 7.294e-06/1.557, allocations: 0 / 0.6061 GB, free: 56.91 MB / 410.8 MB Notification: Performance of matching and sorting (n=370): time 0.06757/1.625, allocations: 18.58 MB / 0.6243 GB, free: 40.19 MB / 410.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.779e-05/1.625, allocations: 94.23 kB / 0.6244 GB, free: 40.08 MB / 410.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008459/1.634, allocations: 4.69 MB / 0.629 GB, free: 35.36 MB / 410.8 MB Notification: Performance of collectPreVariables (initialization): time 0.0007435/1.634, allocations: 85.7 kB / 0.629 GB, free: 35.27 MB / 410.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.00274/1.637, allocations: 4.307 MB / 0.6332 GB, free: 30.94 MB / 410.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.001606/1.639, allocations: 1.272 MB / 0.6345 GB, free: 29.68 MB / 410.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005722/1.639, allocations: 124 kB / 0.6346 GB, free: 29.56 MB / 410.8 MB Notification: Performance of setup shared object (initialization): time 0.000351/1.64, allocations: 0.5509 MB / 0.6351 GB, free: 29 MB / 410.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006801/1.647, allocations: 2.912 MB / 0.638 GB, free: 26.08 MB / 410.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008248/1.655, allocations: 5.246 MB / 0.6431 GB, free: 19.73 MB / 410.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009037/1.664, allocations: 4.114 MB / 0.6471 GB, free: 15.61 MB / 410.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.57e-05/1.664, allocations: 20 kB / 0.6471 GB, free: 15.59 MB / 410.8 MB Notification: Performance of matching and sorting (n=769) (initialization): time 0.02409/1.688, allocations: 9.419 MB / 0.6563 GB, free: 6.141 MB / 410.8 MB Notification: Performance of prepare postOptimizeDAE: time 6.968e-05/1.688, allocations: 36 kB / 0.6564 GB, free: 6.105 MB / 410.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001177/1.688, allocations: 80.91 kB / 0.6565 GB, free: 6.027 MB / 410.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00585/1.694, allocations: 1.386 MB / 0.6578 GB, free: 4.637 MB / 410.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008941/1.703, allocations: 1.341 MB / 0.6591 GB, free: 3.293 MB / 410.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02784/1.731, allocations: 11.95 MB / 0.6708 GB, free: 7.086 MB / 426.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006921/1.738, allocations: 371.4 kB / 0.6711 GB, free: 6.723 MB / 426.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001108/1.739, allocations: 300 kB / 0.6714 GB, free: 6.43 MB / 426.8 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 353 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (692): * Single equations (assignments): 686 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 6,(14,45.4%) 54} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.01017/1.749, allocations: 3.923 MB / 0.6753 GB, free: 2.492 MB / 426.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001393/1.751, allocations: 446.5 kB / 0.6757 GB, free: 2.051 MB / 426.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02116/1.772, allocations: 6.835 MB / 0.6824 GB, free: 11.17 MB / 442.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.01731/1.789, allocations: 5.622 MB / 0.6878 GB, free: 5.512 MB / 442.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.703e-05/1.789, allocations: 12 kB / 0.6879 GB, free: 5.5 MB / 442.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.207e-05/1.789, allocations: 19.92 kB / 0.6879 GB, free: 5.48 MB / 442.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04375/1.833, allocations: 15.49 MB / 0.703 GB, free: 5.918 MB / 458.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.356e-05/1.833, allocations: 4 kB / 0.703 GB, free: 5.914 MB / 458.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00592/1.839, allocations: 0.6631 MB / 0.7037 GB, free: 5.25 MB / 458.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.006055/1.845, allocations: 1.263 MB / 0.7049 GB, free: 3.977 MB / 458.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005863/1.846, allocations: 87.97 kB / 0.705 GB, free: 3.891 MB / 458.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.3162/2.162, allocations: 10.85 MB / 0.7156 GB, free: 146.8 MB / 458.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.003e-05/2.162, allocations: 6.312 kB / 0.7156 GB, free: 146.8 MB / 458.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02941/2.191, allocations: 10.52 MB / 0.7258 GB, free: 142 MB / 458.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003544/2.195, allocations: 1.034 MB / 0.7269 GB, free: 141.6 MB / 458.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001341/2.196, allocations: 70.34 kB / 0.7269 GB, free: 141.6 MB / 458.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004563/2.201, allocations: 224.1 kB / 0.7271 GB, free: 141.5 MB / 458.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001235/2.202, allocations: 271.3 kB / 0.7274 GB, free: 141.5 MB / 458.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004201/2.203, allocations: 114.1 kB / 0.7275 GB, free: 141.4 MB / 458.8 MB Notification: Performance of sorting global known variables: time 0.007593/2.21, allocations: 3.173 MB / 0.7306 GB, free: 140.3 MB / 458.8 MB Notification: Performance of sort global known variables: time 1.052e-06/2.21, allocations: 0 / 0.7306 GB, free: 140.3 MB / 458.8 MB Notification: Performance of remove unused functions: time 0.009208/2.22, allocations: 1.694 MB / 0.7323 GB, free: 140.1 MB / 458.8 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 18 * Number of states: 4 (imcQS.inertiaRotor.w,imcQS.rotorCage.port_p.reference.gamma,loadInertiaQS.phi,PIQS.x) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (336): * Single equations (assignments): 330 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 6,(14,45.4%) 54} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.02835/2.248, allocations: 12.41 MB / 0.7444 GB, free: 133.7 MB / 458.8 MB Notification: Performance of simCode: created initialization part: time 0.01934/2.267, allocations: 7.574 MB / 0.7518 GB, free: 130.6 MB / 458.8 MB Notification: Performance of simCode: created event and clocks part: time 9.007e-06/2.267, allocations: 0 / 0.7518 GB, free: 130.6 MB / 458.8 MB Notification: Performance of simCode: created simulation system equations: time 0.0106/2.278, allocations: 3.62 MB / 0.7553 GB, free: 127.6 MB / 458.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007359/2.285, allocations: 0.9151 MB / 0.7562 GB, free: 126.9 MB / 458.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1596/2.445, allocations: 104.8 MB / 0.8585 GB, free: 19.81 MB / 458.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01108/2.456, allocations: 6.543 MB / 0.8649 GB, free: 13.23 MB / 458.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.008217/2.464, allocations: 3.596 MB / 0.8684 GB, free: 9.629 MB / 458.8 MB Notification: Performance of SimCode: time 1.894e-06/2.464, allocations: 0 / 0.8684 GB, free: 9.629 MB / 458.8 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=5 -DSUNDIALS_MINOR_VERSION=4 -DPMC_USE_SUNDIALS -DFMU_BUILD -DRUNTIME_STATIC_LINKING -I"/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/cpp" -I"." -I"/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/include/omc/c/sundials" -I"." -DUSE_LOGGER -c -o OMCppModelica_3_2_3_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_withLossesCalcHelperMain.o OMCppModelica_3_2_3_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_withLossesCalcHelperMain.cpp In file included from OMCppModelica_3_2_3_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_withLossesCalcHelperMain.cpp:28: ./OMCppModelica_3_2_3_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_withLossesFunctions.cpp:347:43: error: use of undeclared identifier 'UNKNOWN_SUBSCRIPT' tmp132 = std::sqrt((std::pow(u_(UNKNOWN_SUBSCRIPT).re_, 2.0) + std::pow(u_(UNKNOWN_SUBSCRIPT).im_, 2.0))); ^ ./OMCppModelica_3_2_3_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_withLossesFunctions.cpp:347:86: error: use of undeclared identifier 'UNKNOWN_SUBSCRIPT' tmp132 = 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_3_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_withLossesCalcHelperMain.cpp:35: In file included from ./OMCppModelica_3_2_3_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_withLossesFMU.cpp:11: /var/lib/jenkins1/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_3_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_withLossesCalcHelperMain.o' failed make: *** [OMCppModelica_3_2_3_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_withLossesCalcHelperMain.o] Error 1