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_Initialize.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_Initialize,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_Initialize",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Initialize,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_Initialize",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.001448/0.001448, allocations: 186.5 kB / 16.41 MB, free: 5.727 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.879/1.879, allocations: 205.4 MB / 222.5 MB, free: 9.137 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.001126/0.001125, allocations: 89.45 kB / 270.9 MB, free: 8.395 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003832/0.000383, allocations: 8 kB / 327.1 MB, free: 104 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3474/0.3478, allocations: 47.57 MB / 374.7 MB, free: 45.3 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5097/0.8576, allocations: 146.6 MB / 0.5091 GB, free: 65.41 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003369/0.858, allocations: 106.4 kB / 0.5092 GB, free: 65.41 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.659/2.517, allocations: 350.8 MB / 0.8517 GB, free: 33.15 MB / 442.7 MB Notification: Performance of FrontEnd: time 3.216e-06/2.517, allocations: 0 / 0.8517 GB, free: 33.15 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0008195/2.518, allocations: 247.3 kB / 0.852 GB, free: 33.13 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: 3009 * Number of variables: 3009 Notification: Performance of Generate backend data structure: time 0.04882/2.566, allocations: 10.95 MB / 0.8627 GB, free: 29.59 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.916e-05/2.567, allocations: 13.67 kB / 0.8627 GB, free: 29.58 MB / 442.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.006798/2.573, allocations: 1.545 MB / 0.8642 GB, free: 29.47 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04576/2.619, allocations: 5.407 MB / 0.8695 GB, free: 28.85 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03082/2.65, allocations: 9.415 MB / 0.8787 GB, free: 27.73 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001186/2.651, allocations: 0.7887 MB / 0.8794 GB, free: 27.71 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005193/2.656, allocations: 1.041 MB / 0.8805 GB, free: 27.7 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05627/2.713, allocations: 17.95 MB / 0.898 GB, free: 26.47 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0006101/2.713, allocations: 13.77 kB / 0.898 GB, free: 26.47 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003978/2.717, allocations: 455.7 kB / 0.8984 GB, free: 26.47 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001104/2.719, allocations: 0.7314 MB / 0.8991 GB, free: 26.44 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04789/2.767, allocations: 16.73 MB / 0.9155 GB, free: 22.63 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1538/2.92, allocations: 58.34 MB / 0.9725 GB, free: 0 / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.3994/3.32, allocations: 23.48 MB / 0.9954 GB, free: 49.37 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.05849/3.378, allocations: 21.6 MB / 1.016 GB, free: 48.32 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.891e-05/3.379, allocations: 103.3 kB / 1.017 GB, free: 48.28 MB / 474.7 MB Notification: Performance of pre-optimization done (n=672): time 1.123e-05/3.379, allocations: 0 / 1.017 GB, free: 48.28 MB / 474.7 MB Notification: Performance of matching and sorting (n=697): time 0.1323/3.511, allocations: 39.12 MB / 1.055 GB, free: 40.63 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.483e-05/3.511, allocations: 142.8 kB / 1.055 GB, free: 40.54 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008714/3.52, allocations: 3.605 MB / 1.058 GB, free: 40.24 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001582/3.521, allocations: 126.1 kB / 1.059 GB, free: 40.21 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00307/3.524, allocations: 3.996 MB / 1.062 GB, free: 37.48 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.00367/3.528, allocations: 2.317 MB / 1.065 GB, free: 35.68 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001352/3.53, allocations: 130.2 kB / 1.065 GB, free: 35.58 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0006854/3.53, allocations: 0.6055 MB / 1.065 GB, free: 35.14 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01205/3.542, allocations: 4.565 MB / 1.07 GB, free: 33.22 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0138/3.556, allocations: 6.129 MB / 1.076 GB, free: 29.53 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01433/3.571, allocations: 5.582 MB / 1.081 GB, free: 26.98 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.003e-05/3.571, allocations: 11.78 kB / 1.081 GB, free: 26.98 MB / 474.7 MB Notification: Performance of matching and sorting (n=939) (initialization): time 0.03874/3.609, allocations: 13.77 MB / 1.095 GB, free: 21.34 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.246e-05/3.61, allocations: 26.62 kB / 1.095 GB, free: 21.34 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001165/3.61, allocations: 45.09 kB / 1.095 GB, free: 21.34 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01397/3.624, allocations: 4.029 MB / 1.099 GB, free: 20.17 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01038/3.634, allocations: 1.32 MB / 1.1 GB, free: 20.13 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02794/3.662, allocations: 16.96 MB / 1.117 GB, free: 8.758 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008357/3.671, allocations: 362.9 kB / 1.117 GB, free: 8.648 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002032/3.673, allocations: 296 kB / 1.117 GB, free: 8.59 MB / 474.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 197 * 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 (675): * Single equations (assignments): 636 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 31 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 8 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(1,100.0%) 1,(7,59.2%) 28,(1,100.0%) 1} * Non-linear torn systems: 5 {6 9,6 9,6 9,6 9,12 76} Notification: Performance of prepare postOptimizeDAE: time 0.01131/3.684, allocations: 3.925 MB / 1.121 GB, free: 6.664 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002335/3.686, allocations: 0.5296 MB / 1.122 GB, free: 6.387 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03926/3.726, allocations: 13.57 MB / 1.135 GB, free: 15.04 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0002411/3.726, allocations: 151.1 kB / 1.135 GB, free: 14.9 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.202e-05/3.726, allocations: 10.62 kB / 1.135 GB, free: 14.89 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001363/3.726, allocations: 31.64 kB / 1.135 GB, free: 14.89 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.07608/3.802, allocations: 27.02 MB / 1.161 GB, free: 8.695 MB / 0.4949 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.772e-05/3.802, allocations: 4 kB / 1.161 GB, free: 8.691 MB / 0.4949 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.008012/3.81, allocations: 0.8784 MB / 1.162 GB, free: 8.012 MB / 0.4949 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01454/3.825, allocations: 3.916 MB / 1.166 GB, free: 4.832 MB / 0.4949 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001649/3.827, allocations: 156.9 kB / 1.166 GB, free: 4.699 MB / 0.4949 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.3941/4.221, allocations: 20.9 MB / 1.187 GB, free: 84.11 MB / 0.4949 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.671e-06/4.221, allocations: 5.875 kB / 1.187 GB, free: 84.11 MB / 0.4949 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.05237/4.273, allocations: 20.23 MB / 1.206 GB, free: 82.68 MB / 0.4949 GB Notification: Performance of postOpt removeConstants (simulation): time 0.006095/4.279, allocations: 1.659 MB / 1.208 GB, free: 82.58 MB / 0.4949 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002682/4.282, allocations: 114.2 kB / 1.208 GB, free: 82.58 MB / 0.4949 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.007289/4.289, allocations: 309.6 kB / 1.208 GB, free: 82.58 MB / 0.4949 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002467/4.292, allocations: 0.5091 MB / 1.209 GB, free: 82.57 MB / 0.4949 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0007433/4.293, allocations: 189 kB / 1.209 GB, free: 82.57 MB / 0.4949 GB Notification: Performance of sorting global known variables: time 0.006287/4.299, allocations: 2.734 MB / 1.212 GB, free: 82.39 MB / 0.4949 GB Notification: Performance of sort global known variables: time 6.21e-07/4.299, allocations: 0 / 1.212 GB, free: 82.39 MB / 0.4949 GB Notification: Performance of remove unused functions: time 0.01067/4.31, allocations: 1.988 MB / 1.214 GB, free: 82.39 MB / 0.4949 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 15 * Number of states: 10 (imcQS.inertiaRotor.phi,imcQS.rotorCage.port_p.reference.gamma,loadInertiaQS.w,imc.inertiaRotor.phi,imc.stator.core.Phi.re,imc.stator.core.Phi.im,imc.stator.strayReluctance.Phi.re,imc.stator.strayReluctance.Phi.im,imc.stator.zeroInductor.i0,loadInertia.w) * 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 (455): * Single equations (assignments): 413 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 31 * When equations: 0 * 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%) 1,(2,100.0%) 12,(1,100.0%) 1,(1,100.0%) 12,(1,100.0%) 5,(1,100.0%) 8} * Non-linear torn systems: 5 {6 9,6 9,6 9,6 9,12 76} Notification: Performance of Backend phase and start with SimCode phase: time 0.04947/4.359, allocations: 22.03 MB / 1.235 GB, free: 79.7 MB / 0.4949 GB Notification: Performance of simCode: created initialization part: time 0.03026/4.389, allocations: 11.83 MB / 1.247 GB, free: 75.58 MB / 0.4949 GB Notification: Performance of simCode: created event and clocks part: time 1.161e-05/4.39, allocations: 3.375 kB / 1.247 GB, free: 75.58 MB / 0.4949 GB Notification: Performance of simCode: created simulation system equations: time 0.01759/4.407, allocations: 6.71 MB / 1.253 GB, free: 72.49 MB / 0.4949 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.009904/4.417, allocations: 1.167 MB / 1.255 GB, free: 72.18 MB / 0.4949 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.5362/4.953, allocations: 97.05 MB / 1.349 GB, free: 86.72 MB / 0.4949 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01465/4.968, allocations: 6.91 MB / 1.356 GB, free: 85.85 MB / 0.4949 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01073/4.979, allocations: 4.076 MB / 1.36 GB, free: 85.85 MB / 0.4949 GB Notification: Performance of SimCode: time 1.453e-06/4.979, allocations: 0 / 1.36 GB, free: 85.85 MB / 0.4949 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/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_InitializeCalcHelperMain.o OMCppModelica_3_2_3_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_InitializeCalcHelperMain.cpp In file included from OMCppModelica_3_2_3_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_InitializeCalcHelperMain.cpp:28: ./OMCppModelica_3_2_3_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_InitializeFunctions.cpp:418:43: error: use of undeclared identifier 'UNKNOWN_SUBSCRIPT' tmp234 = 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_InitializeFunctions.cpp:418:86: error: use of undeclared identifier 'UNKNOWN_SUBSCRIPT' tmp234 = 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_InitializeCalcHelperMain.cpp:35: In file included from ./OMCppModelica_3_2_3_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_InitializeFMU.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_InitializeCalcHelperMain.o' failed make: *** [OMCppModelica_3_2_3_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_InitializeCalcHelperMain.o] Error 1