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: translateModel(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses,tolerance=1e-06,outputFormat="mat",numberOfIntervals=200000,variableFilter="time|PIQS.x|imcQS.rotorCage.port_p.reference.gamma|loadInertiaQS.w|powerSensorQS.flange_a.phi",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses") translateModel(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses,tolerance=1e-06,outputFormat="mat",numberOfIntervals=200000,variableFilter="time|PIQS.x|imcQS.rotorCage.port_p.reference.gamma|loadInertiaQS.w|powerSensorQS.flange_a.phi",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001486/0.001486, allocations: 185.7 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.994/1.994, allocations: 205.4 MB / 222.5 MB, free: 9.121 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.001202/0.001203, allocations: 96.08 kB / 270.9 MB, free: 8.375 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004049/0.0004047, allocations: 11.98 kB / 327 MB, free: 184 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3473/0.3478, allocations: 47.57 MB / 374.6 MB, free: 45.42 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5062/0.854, allocations: 132.1 MB / 0.4948 GB, free: 62.07 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003654/0.8545, allocations: 111.6 kB / 0.4949 GB, free: 62.07 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.712/2.567, allocations: 352.2 MB / 0.8389 GB, free: 47.25 MB / 442.7 MB Notification: Performance of FrontEnd: time 3.256e-06/2.567, allocations: 0 / 0.8389 GB, free: 47.25 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0009854/2.568, allocations: 223.9 kB / 0.8391 GB, free: 47.23 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.05154/2.619, allocations: 10.09 MB / 0.8489 GB, free: 44.07 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.027e-05/2.619, allocations: 10.12 kB / 0.8489 GB, free: 44.07 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04303/2.662, allocations: 4.956 MB / 0.8538 GB, free: 43.51 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02984/2.692, allocations: 8.206 MB / 0.8618 GB, free: 42.5 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001314/2.694, allocations: 0.7118 MB / 0.8625 GB, free: 42.48 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005236/2.699, allocations: 0.9177 MB / 0.8634 GB, free: 42.48 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05822/2.757, allocations: 17.12 MB / 0.8801 GB, free: 41.36 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0006319/2.758, allocations: 20.67 kB / 0.8801 GB, free: 41.35 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004513/2.762, allocations: 399.7 kB / 0.8805 GB, free: 41.35 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001163/2.764, allocations: 0.709 MB / 0.8812 GB, free: 41.32 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04678/2.81, allocations: 15.81 MB / 0.8966 GB, free: 41.09 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1489/2.959, allocations: 55.3 MB / 0.9507 GB, free: 9.258 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.03981/2.999, allocations: 19.3 MB / 0.9695 GB, free: 6.824 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.4368/3.436, allocations: 25.25 MB / 0.9942 GB, free: 60.16 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.358e-05/3.436, allocations: 102.6 kB / 0.9943 GB, free: 60.12 MB / 458.7 MB Notification: Performance of pre-optimization done (n=749): time 1.867e-05/3.436, allocations: 5.531 kB / 0.9943 GB, free: 60.12 MB / 458.7 MB Notification: Performance of matching and sorting (n=754): time 0.1881/3.624, allocations: 46.19 MB / 1.039 GB, free: 51.57 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.938e-05/3.625, allocations: 117.6 kB / 1.039 GB, free: 51.5 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008819/3.633, allocations: 3.215 MB / 1.043 GB, free: 51.25 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001846/3.635, allocations: 123.5 kB / 1.043 GB, free: 51.22 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002927/3.638, allocations: 3.428 MB / 1.046 GB, free: 49.59 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.00443/3.643, allocations: 2.476 MB / 1.049 GB, free: 47.97 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002116/3.645, allocations: 126.8 kB / 1.049 GB, free: 47.97 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0009765/3.646, allocations: 0.6142 MB / 1.049 GB, free: 47.65 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01404/3.66, allocations: 5.093 MB / 1.054 GB, free: 47.21 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01593/3.676, allocations: 6.339 MB / 1.06 GB, free: 43.75 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01699/3.693, allocations: 6.12 MB / 1.066 GB, free: 40.93 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.09e-05/3.693, allocations: 7.469 kB / 1.066 GB, free: 40.93 MB / 458.7 MB Notification: Performance of matching and sorting (n=941) (initialization): time 0.04485/3.738, allocations: 14.43 MB / 1.08 GB, free: 34.87 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.386e-05/3.738, allocations: 21.25 kB / 1.08 GB, free: 34.87 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001035/3.738, allocations: 28.44 kB / 1.081 GB, free: 34.87 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01423/3.753, allocations: 4.047 MB / 1.084 GB, free: 33.63 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.009899/3.762, allocations: 1.187 MB / 1.086 GB, free: 33.59 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02256/3.785, allocations: 12.59 MB / 1.098 GB, free: 25.51 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009057/3.794, allocations: 361.1 kB / 1.098 GB, free: 25.41 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002438/3.797, allocations: 285 kB / 1.099 GB, free: 25.35 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.01303/3.81, allocations: 3.866 MB / 1.102 GB, free: 23.36 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.003269/3.813, allocations: 497.6 kB / 1.103 GB, free: 22.87 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0469/3.86, allocations: 14.34 MB / 1.117 GB, free: 10.56 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.03641/3.897, allocations: 12.84 MB / 1.129 GB, free: 15.27 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.177e-05/3.897, allocations: 0 / 1.129 GB, free: 15.27 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001469/3.897, allocations: 32.02 kB / 1.129 GB, free: 15.27 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.4752/4.372, allocations: 28.68 MB / 1.157 GB, free: 73.06 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.000128/4.372, allocations: 0 / 1.157 GB, free: 73.06 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.008257/4.38, allocations: 0.8837 MB / 1.158 GB, free: 73.06 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01443/4.395, allocations: 3.955 MB / 1.162 GB, free: 72.98 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.002256/4.397, allocations: 168.7 kB / 1.162 GB, free: 72.98 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02277/4.42, allocations: 12.46 MB / 1.174 GB, free: 68.54 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.841e-06/4.42, allocations: 3.656 kB / 1.174 GB, free: 68.54 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.05985/4.48, allocations: 21.67 MB / 1.196 GB, free: 67.83 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.006274/4.486, allocations: 1.733 MB / 1.197 GB, free: 67.73 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002477/4.489, allocations: 104.7 kB / 1.197 GB, free: 67.73 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006868/4.496, allocations: 303.1 kB / 1.198 GB, free: 67.73 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002787/4.499, allocations: 0.5474 MB / 1.198 GB, free: 67.73 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.00155/4.5, allocations: 203.3 kB / 1.198 GB, free: 67.73 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.005682/4.506, allocations: 2.451 MB / 1.201 GB, free: 67.58 MB / 474.7 MB Notification: Performance of sort global known variables: time 1.072e-06/4.506, allocations: 0 / 1.201 GB, free: 67.58 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.01121/4.517, allocations: 1.827 MB / 1.203 GB, free: 67.58 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.003697/4.521, allocations: 0.8127 MB / 1.203 GB, free: 67.37 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.03447/4.555, allocations: 12.45 MB / 1.216 GB, free: 66.95 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 7.474e-06/4.555, allocations: 0 / 1.216 GB, free: 66.95 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.01963/4.575, allocations: 6.479 MB / 1.222 GB, free: 64.34 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008769/4.584, allocations: 0.9055 MB / 1.223 GB, free: 64.06 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06711/4.651, allocations: 25.79 MB / 1.248 GB, free: 50.96 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01637/4.667, allocations: 6.645 MB / 1.254 GB, free: 48.5 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003884/4.671, allocations: 404 kB / 1.255 GB, free: 48.47 MB / 474.7 MB Notification: Performance of SimCode: time 1.522e-06/4.671, allocations: 0 / 1.255 GB, free: 48.47 MB / 474.7 MB Notification: Performance of Templates: time 2.619/7.29, allocations: 0.6024 GB / 1.857 GB, free: 109.2 MB / 0.5105 GB make -j1 -f Modelica_3.2.3_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses.makefile make -j1 -f Modelica_3.2.3_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses.makefile b'clang++ -fopenmp=libomp -Winvalid-pch -O0 -g -DNDEBUG -fPIC -std=c++11 -DBOOST_ALL_DYN_LINK -DUSE_DGESV -DUSE_LOGGER -DOMC_BUILD -DUSE_THREAD -DSUNDIALS_MAJOR_VERSION=2 -DSUNDIALS_MINOR_VERSION=6 -DPMC_USE_SUNDIALS -I"." -I"/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/cpp/" -I. -I"." -I"." -I"/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/include/omc/c/sundials" -DMEASURETIME_PROFILEBLOCKS -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\nIn file included from OMCppModelica_3.2.3_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLossesCalcHelperMain.cpp:28:\n./OMCppModelica_3.2.3_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLossesFunctions.cpp:611:43: error: use of undeclared identifier \'UNKNOWN_SUBSCRIPT\'\n tmp363 = std::sqrt((std::pow(u_(UNKNOWN_SUBSCRIPT).re_, 2.0) + std::pow(u_(UNKNOWN_SUBSCRIPT).im_, 2.0)));\n ^\n./OMCppModelica_3.2.3_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLossesFunctions.cpp:611:86: error: use of undeclared identifier \'UNKNOWN_SUBSCRIPT\'\n tmp363 = std::sqrt((std::pow(u_(UNKNOWN_SUBSCRIPT).re_, 2.0) + std::pow(u_(UNKNOWN_SUBSCRIPT).im_, 2.0)));\n ^\n2 errors generated.\n: recipe for target \'OMCppModelica_3.2.3_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLossesCalcHelperMain.o\' failed\nmake: *** [OMCppModelica_3.2.3_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLossesCalcHelperMain.o] Error 1\n'