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.002488/0.002488, allocations: 181.4 kB / 13.66 MB, free: 1.664 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.154/2.154, allocations: 205.2 MB / 219.4 MB, free: 14.21 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.001071/0.001071, allocations: 78.7 kB / 267.5 MB, free: 14.04 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.742e-05/2.772e-05, allocations: 4 kB / 321.5 MB, free: 17.81 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09435/0.0944, allocations: 47.58 MB / 369.1 MB, free: 2.168 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5018/0.5963, allocations: 132 MB / 0.4894 GB, free: 9.812 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0004952/0.5969, allocations: 106.4 kB / 0.4895 GB, free: 9.754 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.722/2.319, allocations: 351.9 MB / 0.8331 GB, free: 8.402 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.514e-06/2.319, allocations: 0 / 0.8331 GB, free: 8.402 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0008975/2.32, allocations: 223.8 kB / 0.8333 GB, free: 8.184 MB / 426.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.7166/3.037, allocations: 9.531 MB / 0.8426 GB, free: 26.65 MB / 426.8 MB Notification: Performance of prepare preOptimizeDAE: time 5.591e-05/3.037, allocations: 9.531 kB / 0.8426 GB, free: 26.65 MB / 426.8 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04369/3.081, allocations: 4.922 MB / 0.8474 GB, free: 26.18 MB / 426.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0311/3.112, allocations: 8.177 MB / 0.8554 GB, free: 25.72 MB / 426.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.00178/3.114, allocations: 0.7067 MB / 0.8561 GB, free: 25.7 MB / 426.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005875/3.119, allocations: 0.9212 MB / 0.857 GB, free: 25.7 MB / 426.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.06053/3.18, allocations: 16.92 MB / 0.8735 GB, free: 24.61 MB / 426.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0006303/3.181, allocations: 18.75 kB / 0.8736 GB, free: 24.6 MB / 426.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004633/3.185, allocations: 402.9 kB / 0.8739 GB, free: 24.6 MB / 426.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001244/3.187, allocations: 0.7101 MB / 0.8746 GB, free: 24.58 MB / 426.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.048/3.235, allocations: 15.53 MB / 0.8898 GB, free: 24.48 MB / 426.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1479/3.383, allocations: 55.3 MB / 0.9438 GB, free: 2.953 MB / 426.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.03579/3.419, allocations: 19.27 MB / 0.9626 GB, free: 6.77 MB / 442.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.01953/3.438, allocations: 7.535 MB / 0.97 GB, free: 2.23 MB / 442.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0799/3.518, allocations: 25.15 MB / 0.9945 GB, free: 13.96 MB / 474.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001145/3.518, allocations: 103.4 kB / 0.9946 GB, free: 13.85 MB / 474.8 MB Notification: Performance of pre-optimization done (n=749): time 1.304e-05/3.518, allocations: 3.562 kB / 0.9947 GB, free: 13.85 MB / 474.8 MB Notification: Performance of matching and sorting (n=754): time 0.4478/3.966, allocations: 25.4 MB / 1.019 GB, free: 69.09 MB / 474.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.205e-05/3.966, allocations: 119.3 kB / 1.02 GB, free: 69.02 MB / 474.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009502/3.976, allocations: 3.175 MB / 1.023 GB, free: 68.75 MB / 474.8 MB Notification: Performance of collectPreVariables (initialization): time 0.001952/3.978, allocations: 126.1 kB / 1.023 GB, free: 68.72 MB / 474.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.003405/3.981, allocations: 3.432 MB / 1.026 GB, free: 67.04 MB / 474.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.004743/3.986, allocations: 2.477 MB / 1.029 GB, free: 65.43 MB / 474.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002134/3.988, allocations: 128.2 kB / 1.029 GB, free: 65.43 MB / 474.8 MB Notification: Performance of setup shared object (initialization): time 0.001119/3.989, allocations: 0.606 MB / 1.029 GB, free: 65.1 MB / 474.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01492/4.004, allocations: 5.013 MB / 1.034 GB, free: 65.09 MB / 474.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01721/4.022, allocations: 6.258 MB / 1.04 GB, free: 63.89 MB / 474.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01738/4.039, allocations: 6.058 MB / 1.046 GB, free: 63.79 MB / 474.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.091e-05/4.039, allocations: 8.438 kB / 1.046 GB, free: 63.79 MB / 474.8 MB Notification: Performance of matching and sorting (n=941) (initialization): time 0.04361/4.083, allocations: 14.25 MB / 1.06 GB, free: 63.37 MB / 474.8 MB Notification: Performance of prepare postOptimizeDAE: time 6.08e-05/4.083, allocations: 17.94 kB / 1.06 GB, free: 63.37 MB / 474.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001008/4.083, allocations: 30.12 kB / 1.06 GB, free: 63.37 MB / 474.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01358/4.097, allocations: 4.008 MB / 1.064 GB, free: 63.28 MB / 474.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01001/4.107, allocations: 1.184 MB / 1.065 GB, free: 63.28 MB / 474.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02073/4.127, allocations: 12.53 MB / 1.077 GB, free: 58.73 MB / 474.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008218/4.136, allocations: 356.9 kB / 1.078 GB, free: 58.72 MB / 474.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00226/4.138, allocations: 291.2 kB / 1.078 GB, free: 58.72 MB / 474.8 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 () * 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.002531/4.141, allocations: 444.4 kB / 1.079 GB, free: 58.59 MB / 474.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002276/4.143, allocations: 0.4905 MB / 1.079 GB, free: 58.33 MB / 474.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.04013/4.183, allocations: 14.17 MB / 1.093 GB, free: 54.7 MB / 474.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.03236/4.215, allocations: 12.66 MB / 1.105 GB, free: 49.34 MB / 474.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.994e-05/4.216, allocations: 0 / 1.105 GB, free: 49.34 MB / 474.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001532/4.216, allocations: 34.61 kB / 1.105 GB, free: 49.34 MB / 474.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.07572/4.291, allocations: 28.03 MB / 1.133 GB, free: 37.02 MB / 474.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.124e-05/4.292, allocations: 2.719 kB / 1.133 GB, free: 37.02 MB / 474.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.008318/4.3, allocations: 0.8858 MB / 1.133 GB, free: 36.81 MB / 474.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01299/4.313, allocations: 3.927 MB / 1.137 GB, free: 33.62 MB / 474.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001957/4.315, allocations: 165.5 kB / 1.137 GB, free: 33.48 MB / 474.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01911/4.334, allocations: 12.42 MB / 1.15 GB, free: 21.86 MB / 474.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.249e-06/4.334, allocations: 0 / 1.15 GB, free: 21.86 MB / 474.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.05655/4.391, allocations: 21.44 MB / 1.171 GB, free: 2.684 MB / 474.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.006583/4.397, allocations: 1.739 MB / 1.172 GB, free: 1.113 MB / 474.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002971/4.4, allocations: 107.6 kB / 1.172 GB, free: 1.012 MB / 474.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.007079/4.407, allocations: 298.4 kB / 1.173 GB, free: 0.8008 MB / 474.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002982/4.411, allocations: 0.5525 MB / 1.173 GB, free: 456 kB / 474.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001911/4.412, allocations: 198.9 kB / 1.173 GB, free: 276 kB / 474.8 MB Notification: Performance of sorting global known variables: time 0.01655/4.429, allocations: 2.997 MB / 1.176 GB, free: 15.52 MB / 490.8 MB Notification: Performance of sort global known variables: time 8.02e-07/4.429, allocations: 0 / 1.176 GB, free: 15.52 MB / 490.8 MB Notification: Performance of remove unused functions: time 0.01244/4.442, allocations: 1.821 MB / 1.178 GB, free: 13.71 MB / 490.8 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 () * 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.003855/4.445, allocations: 0.8327 MB / 1.179 GB, free: 13.13 MB / 490.8 MB Notification: Performance of simCode: created initialization part: time 0.03926/4.485, allocations: 12.28 MB / 1.191 GB, free: 2.117 MB / 490.8 MB Notification: Performance of simCode: created event and clocks part: time 1.127e-05/4.485, allocations: 4 kB / 1.191 GB, free: 2.113 MB / 490.8 MB Notification: Performance of simCode: created simulation system equations: time 0.3894/4.874, allocations: 8.044 MB / 1.199 GB, free: 88.39 MB / 490.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.009287/4.884, allocations: 0.9011 MB / 1.2 GB, free: 88.37 MB / 490.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06297/4.947, allocations: 19.34 MB / 1.218 GB, free: 85.67 MB / 490.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0141/4.961, allocations: 6.645 MB / 1.225 GB, free: 84.79 MB / 490.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003643/4.965, allocations: 403.9 kB / 1.225 GB, free: 84.78 MB / 490.8 MB Notification: Performance of SimCode: time 2.274e-06/4.965, allocations: 0 / 1.225 GB, free: 84.78 MB / 490.8 MB Notification: Performance of Templates: time 2.109/7.074, allocations: 0.6024 GB / 1.828 GB, free: 64.12 MB / 0.4949 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'