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.001444/0.001444, allocations: 186.2 kB / 16.41 MB, free: 5.723 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.915/1.915, allocations: 205.4 MB / 222.5 MB, free: 9.117 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.001141/0.001141, allocations: 92.42 kB / 270.9 MB, free: 8.375 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000389/0.0003889, allocations: 12 kB / 327.1 MB, free: 76 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3311/0.3315, allocations: 47.56 MB / 374.7 MB, free: 45.44 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4897/0.8213, allocations: 132.1 MB / 0.4949 GB, free: 61.96 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0004539/0.8218, allocations: 108.9 kB / 0.495 GB, free: 61.96 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.71/2.532, allocations: 352.3 MB / 0.839 GB, free: 47.31 MB / 442.7 MB Notification: Performance of FrontEnd: time 3.556e-06/2.532, allocations: 0 / 0.839 GB, free: 47.31 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0009198/2.533, allocations: 222.2 kB / 0.8392 GB, free: 47.29 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: 2742 * Number of variables: 2742 Notification: Performance of Generate backend data structure: time 0.05023/2.583, allocations: 10.1 MB / 0.849 GB, free: 44.13 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.124e-05/2.583, allocations: 7.75 kB / 0.8491 GB, free: 44.13 MB / 442.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.008445/2.592, allocations: 1.647 MB / 0.8507 GB, free: 43.99 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04188/2.634, allocations: 4.956 MB / 0.8555 GB, free: 43.43 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02947/2.663, allocations: 8.213 MB / 0.8635 GB, free: 42.43 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001258/2.664, allocations: 0.7159 MB / 0.8642 GB, free: 42.41 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005151/2.67, allocations: 0.9214 MB / 0.8651 GB, free: 42.4 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05577/2.725, allocations: 17.16 MB / 0.8819 GB, free: 41.28 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0006185/2.726, allocations: 14.89 kB / 0.8819 GB, free: 41.27 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004498/2.731, allocations: 408.8 kB / 0.8823 GB, free: 41.27 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001179/2.732, allocations: 0.7036 MB / 0.883 GB, free: 41.25 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04717/2.779, allocations: 15.83 MB / 0.8984 GB, free: 40.24 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1456/2.925, allocations: 55.37 MB / 0.9525 GB, free: 7.547 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.04324/2.968, allocations: 19.46 MB / 0.9715 GB, free: 5.5 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.4369/3.405, allocations: 25.75 MB / 0.9967 GB, free: 60.78 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.564e-05/3.405, allocations: 98.72 kB / 0.9967 GB, free: 60.73 MB / 458.7 MB Notification: Performance of pre-optimization done (n=749): time 1.274e-05/3.405, allocations: 0 / 0.9967 GB, free: 60.73 MB / 458.7 MB Notification: Performance of matching and sorting (n=754): time 0.1856/3.591, allocations: 46.2 MB / 1.042 GB, free: 52.2 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.315e-05/3.591, allocations: 116.8 kB / 1.042 GB, free: 52.13 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007732/3.599, allocations: 3.214 MB / 1.045 GB, free: 51.88 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001743/3.6, allocations: 123.4 kB / 1.045 GB, free: 51.85 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00261/3.603, allocations: 3.439 MB / 1.049 GB, free: 50.21 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.004058/3.607, allocations: 2.486 MB / 1.051 GB, free: 48.59 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00155/3.609, allocations: 127.3 kB / 1.051 GB, free: 48.59 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0008076/3.609, allocations: 0.6059 MB / 1.052 GB, free: 48.27 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01346/3.623, allocations: 5.098 MB / 1.057 GB, free: 47.75 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01528/3.638, allocations: 6.337 MB / 1.063 GB, free: 44.29 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01653/3.655, allocations: 6.118 MB / 1.069 GB, free: 41.48 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.143e-05/3.655, allocations: 9.25 kB / 1.069 GB, free: 41.48 MB / 458.7 MB Notification: Performance of matching and sorting (n=941) (initialization): time 0.04535/3.7, allocations: 14.43 MB / 1.083 GB, free: 35.42 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.641e-05/3.7, allocations: 25.28 kB / 1.083 GB, free: 35.42 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001046/3.701, allocations: 30.16 kB / 1.083 GB, free: 35.42 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01393/3.715, allocations: 4.04 MB / 1.087 GB, free: 34.18 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.009738/3.724, allocations: 1.183 MB / 1.088 GB, free: 34.14 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0213/3.746, allocations: 12.6 MB / 1.1 GB, free: 26.06 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008044/3.754, allocations: 367.1 kB / 1.101 GB, free: 25.95 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002243/3.756, allocations: 287.4 kB / 1.101 GB, free: 25.89 MB / 458.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 141 * 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 (636): * Single equations (assignments): 560 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 69 * When equations: 0 * 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: 1 {(1,100.0%) 6} * Non-linear torn systems: 6 {6 9,6 9,6 9,6 9,6 9,12 86} Notification: Performance of prepare postOptimizeDAE: time 0.01174/3.768, allocations: 3.867 MB / 1.105 GB, free: 23.25 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002757/3.771, allocations: 492.7 kB / 1.105 GB, free: 22.77 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.04104/3.812, allocations: 14.33 MB / 1.119 GB, free: 10.46 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.03527/3.847, allocations: 12.88 MB / 1.132 GB, free: 15.26 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.579e-05/3.847, allocations: 0 / 1.132 GB, free: 15.26 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001596/3.847, allocations: 31.45 kB / 1.132 GB, free: 15.26 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.4649/4.312, allocations: 28.69 MB / 1.16 GB, free: 73.09 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001075/4.312, allocations: 3.875 kB / 1.16 GB, free: 73.09 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.008096/4.32, allocations: 0.8877 MB / 1.161 GB, free: 73.09 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01342/4.334, allocations: 3.967 MB / 1.165 GB, free: 73.01 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001871/4.336, allocations: 162.1 kB / 1.165 GB, free: 73.01 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02097/4.357, allocations: 12.46 MB / 1.177 GB, free: 68.57 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.48e-06/4.357, allocations: 7.594 kB / 1.177 GB, free: 68.57 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.05905/4.416, allocations: 21.67 MB / 1.198 GB, free: 67.86 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.006549/4.423, allocations: 1.731 MB / 1.2 GB, free: 67.77 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003086/4.426, allocations: 106.2 kB / 1.2 GB, free: 67.77 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00703/4.433, allocations: 304.4 kB / 1.2 GB, free: 67.77 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002905/4.436, allocations: 0.547 MB / 1.201 GB, free: 67.76 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001903/4.438, allocations: 205 kB / 1.201 GB, free: 67.76 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.006218/4.444, allocations: 2.451 MB / 1.203 GB, free: 67.61 MB / 474.7 MB Notification: Performance of sort global known variables: time 1.422e-06/4.444, allocations: 0 / 1.203 GB, free: 67.61 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.01161/4.456, allocations: 1.824 MB / 1.205 GB, free: 67.61 MB / 474.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * 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 (480): * Single equations (assignments): 404 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 69 * When equations: 0 * 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: 1 {(1,100.0%) 6} * Non-linear torn systems: 6 {6 9,6 9,6 9,6 9,6 9,12 86} Notification: Performance of Backend phase and start with SimCode phase: time 0.06192/4.518, allocations: 23.26 MB / 1.228 GB, free: 61.41 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.03526/4.553, allocations: 12.45 MB / 1.24 GB, free: 56.46 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 8.596e-06/4.553, allocations: 2.938 kB / 1.24 GB, free: 56.46 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.01981/4.573, allocations: 6.476 MB / 1.246 GB, free: 53.84 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.009061/4.582, allocations: 0.9006 MB / 1.247 GB, free: 53.56 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.5508/5.133, allocations: 86.22 MB / 1.331 GB, free: 84.59 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01432/5.147, allocations: 6.656 MB / 1.338 GB, free: 83.71 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01079/5.158, allocations: 3.612 MB / 1.341 GB, free: 83.7 MB / 490.7 MB Notification: Performance of SimCode: time 1.603e-06/5.158, allocations: 0 / 1.341 GB, free: 83.7 MB / 490.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/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:611:43: error: use of undeclared identifier 'UNKNOWN_SUBSCRIPT' tmp363 = 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:611:86: error: use of undeclared identifier 'UNKNOWN_SUBSCRIPT' tmp363 = 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