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.SynchronousMachines.SMPM_MTPA.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.SynchronousMachines.SMPM_MTPA,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|quadraticSpeedDependentTorqueQS.phi",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA") translateModel(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|quadraticSpeedDependentTorqueQS.phi",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.00222/0.00222, allocations: 186.3 kB / 16.4 MB, free: 5.75 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.054/2.054, allocations: 205.4 MB / 222.5 MB, free: 9.125 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.001134/0.001134, allocations: 88.42 kB / 270.9 MB, free: 8.379 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003712/0.0003714, allocations: 8 kB / 327 MB, free: 184 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3299/0.3303, allocations: 47.56 MB / 374.6 MB, free: 45.45 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5039/0.8343, allocations: 135.9 MB / 0.4985 GB, free: 63.34 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003131/0.8346, allocations: 115.5 kB / 0.4986 GB, free: 63.34 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.632/2.467, allocations: 331.6 MB / 0.8225 GB, free: 45.61 MB / 442.7 MB Notification: Performance of FrontEnd: time 2.595e-06/2.467, allocations: 4 kB / 0.8225 GB, free: 45.6 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0007992/2.468, allocations: 220.7 kB / 0.8227 GB, free: 45.58 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: 2782 * Number of variables: 2782 Notification: Performance of Generate backend data structure: time 0.04495/2.513, allocations: 9.172 MB / 0.8316 GB, free: 42.62 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.858e-05/2.513, allocations: 11.17 kB / 0.8316 GB, free: 42.62 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04936/2.562, allocations: 5.89 MB / 0.8374 GB, free: 42.08 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0279/2.59, allocations: 7.466 MB / 0.8447 GB, free: 41.18 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001478/2.592, allocations: 0.7182 MB / 0.8454 GB, free: 41.16 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005457/2.597, allocations: 0.9339 MB / 0.8463 GB, free: 41.15 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05683/2.654, allocations: 17.01 MB / 0.8629 GB, free: 40.02 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0006534/2.655, allocations: 28.52 kB / 0.8629 GB, free: 40.01 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004548/2.659, allocations: 409.4 kB / 0.8633 GB, free: 40.01 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001159/2.66, allocations: 0.7101 MB / 0.864 GB, free: 39.98 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04726/2.708, allocations: 15.9 MB / 0.8795 GB, free: 39.89 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1366/2.844, allocations: 52.78 MB / 0.9311 GB, free: 16.73 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0513/2.896, allocations: 41.48 MB / 0.9716 GB, free: 8.902 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.4102/3.306, allocations: 21.83 MB / 0.9929 GB, free: 72.55 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.263e-05/3.306, allocations: 95.36 kB / 0.993 GB, free: 72.5 MB / 474.7 MB Notification: Performance of pre-optimization done (n=693): time 1.141e-05/3.306, allocations: 0 / 0.993 GB, free: 72.5 MB / 474.7 MB Notification: Performance of matching and sorting (n=701): time 0.1667/3.473, allocations: 41.28 MB / 1.033 GB, free: 65.59 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.835e-05/3.473, allocations: 110 kB / 1.033 GB, free: 65.52 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005414/3.478, allocations: 2.455 MB / 1.036 GB, free: 65.28 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001534/3.48, allocations: 117 kB / 1.036 GB, free: 65.25 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002377/3.482, allocations: 3.515 MB / 1.039 GB, free: 63.5 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.003595/3.486, allocations: 2.321 MB / 1.042 GB, free: 62 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001013/3.487, allocations: 127 kB / 1.042 GB, free: 62 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0006739/3.488, allocations: 0.6151 MB / 1.042 GB, free: 61.67 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01148/3.499, allocations: 4.522 MB / 1.047 GB, free: 61.66 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01357/3.513, allocations: 6.323 MB / 1.053 GB, free: 59.67 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01437/3.527, allocations: 5.609 MB / 1.058 GB, free: 58.98 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.355e-05/3.527, allocations: 15.47 kB / 1.058 GB, free: 58.98 MB / 474.7 MB Notification: Performance of matching and sorting (n=944) (initialization): time 0.03632/3.564, allocations: 13.55 MB / 1.072 GB, free: 53.5 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.932e-05/3.564, allocations: 29.91 kB / 1.072 GB, free: 53.5 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001204/3.564, allocations: 53.5 kB / 1.072 GB, free: 53.5 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01227/3.576, allocations: 4.016 MB / 1.076 GB, free: 52.27 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.009361/3.586, allocations: 1.225 MB / 1.077 GB, free: 52.23 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01748/3.603, allocations: 9.68 MB / 1.086 GB, free: 46.87 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00766/3.611, allocations: 340.5 kB / 1.087 GB, free: 46.76 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002108/3.613, allocations: 323.2 kB / 1.087 GB, free: 46.7 MB / 474.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 241 * 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 (650): * Single equations (assignments): 598 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 48 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 4 {6 9,6 9,20 119,6 9} Notification: Performance of prepare postOptimizeDAE: time 0.01102/3.624, allocations: 3.608 MB / 1.09 GB, free: 45 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001792/3.626, allocations: 455.2 kB / 1.091 GB, free: 44.77 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03913/3.665, allocations: 13.01 MB / 1.104 GB, free: 39.12 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0002536/3.665, allocations: 185.4 kB / 1.104 GB, free: 38.99 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.797e-05/3.666, allocations: 0 / 1.104 GB, free: 38.99 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001315/3.666, allocations: 28.73 kB / 1.104 GB, free: 38.99 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.06395/3.73, allocations: 24.86 MB / 1.128 GB, free: 18.12 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.665e-05/3.73, allocations: 4 kB / 1.128 GB, free: 18.12 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.007399/3.737, allocations: 0.826 MB / 1.129 GB, free: 17.49 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01301/3.75, allocations: 3.915 MB / 1.133 GB, free: 14.26 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001641/3.752, allocations: 153.2 kB / 1.133 GB, free: 14.12 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01667/3.769, allocations: 9.557 MB / 1.142 GB, free: 5.477 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.748e-06/3.769, allocations: 5.969 kB / 1.142 GB, free: 5.473 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.4115/4.18, allocations: 20.51 MB / 1.162 GB, free: 85.73 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.005344/4.186, allocations: 1.481 MB / 1.164 GB, free: 85.64 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002363/4.188, allocations: 109.7 kB / 1.164 GB, free: 85.64 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006224/4.194, allocations: 267.3 kB / 1.164 GB, free: 85.64 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002609/4.197, allocations: 0.5138 MB / 1.165 GB, free: 85.63 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001567/4.199, allocations: 192.2 kB / 1.165 GB, free: 85.63 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.004836/4.203, allocations: 1.85 MB / 1.167 GB, free: 85.49 MB / 490.7 MB Notification: Performance of sort global known variables: time 8.52e-07/4.203, allocations: 3.281 kB / 1.167 GB, free: 85.49 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.01058/4.214, allocations: 1.72 MB / 1.168 GB, free: 85.49 MB / 490.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 15 * Number of states: 1 (smpmQS.phiMechanical) * 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 (443): * Single equations (assignments): 391 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 48 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 4 {6 9,6 9,20 119,6 9} Notification: Performance of Backend phase and start with SimCode phase: time 0.002673/4.217, allocations: 0.5862 MB / 1.169 GB, free: 85.39 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.03276/4.25, allocations: 11.19 MB / 1.18 GB, free: 85.12 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 9.328e-06/4.25, allocations: 0 / 1.18 GB, free: 85.12 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.01735/4.267, allocations: 5.726 MB / 1.185 GB, free: 84.96 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00821/4.275, allocations: 0.8481 MB / 1.186 GB, free: 84.95 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0606/4.336, allocations: 24.22 MB / 1.21 GB, free: 76.84 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01241/4.348, allocations: 6.347 MB / 1.216 GB, free: 75.9 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003063/4.351, allocations: 384.8 kB / 1.216 GB, free: 75.89 MB / 490.7 MB Notification: Performance of SimCode: time 1.673e-06/4.351, allocations: 0 / 1.216 GB, free: 75.89 MB / 490.7 MB Notification: Performance of Templates: time 1.306/5.657, allocations: 373.7 MB / 1.581 GB, free: 91.5 MB / 0.4948 GB make -j1 -f Modelica_3.2.3_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.makefile make -j1 -f Modelica_3.2.3_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.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.SynchronousMachines.SMPM_MTPACalcHelperMain.o OMCppModelica_3.2.3_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPACalcHelperMain.cpp\nIn file included from OMCppModelica_3.2.3_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPACalcHelperMain.cpp:28:\n./OMCppModelica_3.2.3_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPAFunctions.cpp:476:43: error: use of undeclared identifier \'UNKNOWN_SUBSCRIPT\'\n tmp295 = 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.SynchronousMachines.SMPM_MTPAFunctions.cpp:476:86: error: use of undeclared identifier \'UNKNOWN_SUBSCRIPT\'\n tmp295 = 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.SynchronousMachines.SMPM_MTPACalcHelperMain.o\' failed\nmake: *** [OMCppModelica_3.2.3_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPACalcHelperMain.o] Error 1\n'