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.01097/0.01097, allocations: 182.1 kB / 16.4 MB, free: 5.754 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 3.648/3.648, allocations: 205.4 MB / 222.5 MB, free: 9.109 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.001884/0.001884, allocations: 84.42 kB / 270.9 MB, free: 8.359 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006433/0.0006438, allocations: 12 kB / 327 MB, free: 172 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6336/0.6343, allocations: 47.57 MB / 374.6 MB, free: 45.44 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA): time 0.06478/0.6992, allocations: 23.42 MB / 398 MB, free: 25.38 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.03712/0.7364, allocations: 8.119 MB / 406.1 MB, free: 17.23 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01057/0.747, allocations: 175.4 kB / 406.3 MB, free: 17.06 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.01345/0.7606, allocations: 1.706 MB / 408 MB, free: 15.35 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.02583/0.7865, allocations: 2.941 MB / 410.9 MB, free: 12.41 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.01587/0.8024, allocations: 1.435 MB / 412.3 MB, free: 10.98 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.03495/0.8374, allocations: 8.339 MB / 420.7 MB, free: 2.633 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.08396/0.9215, allocations: 17.25 MB / 437.9 MB, free: 1.281 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01776/0.9393, allocations: 3.707 MB / 441.6 MB, free: 13.56 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01757/0.957, allocations: 4.245 MB / 445.9 MB, free: 9.297 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.00522/0.9623, allocations: 0.6094 MB / 446.5 MB, free: 8.688 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01028/0.9726, allocations: 0.9019 MB / 447.4 MB, free: 7.785 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.006982/0.9797, allocations: 1.904 MB / 449.3 MB, free: 5.875 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.007736/0.9875, allocations: 2.04 MB / 451.3 MB, free: 3.824 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.04309/1.031, allocations: 17.78 MB / 469.1 MB, free: 1.996 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.535e-05/1.031, allocations: 0 / 469.1 MB, free: 1.996 MB / 346.7 MB Notification: Performance of FrontEnd: time 3.898e-06/1.031, allocations: 3.938 kB / 469.1 MB, free: 1.992 MB / 346.7 MB Notification: Performance of Transformations before backend: time 0.0007012/1.032, allocations: 0 / 469.1 MB, free: 1.992 MB / 346.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.07191/1.104, allocations: 10.3 MB / 479.4 MB, free: 7.602 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 8.513e-05/1.104, allocations: 8.031 kB / 479.4 MB, free: 7.594 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.1339/1.238, allocations: 8.516 MB / 487.9 MB, free: 15.05 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0307/1.268, allocations: 5.843 MB / 493.8 MB, free: 9.152 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001898/1.27, allocations: 0.7386 MB / 494.5 MB, free: 8.41 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.007514/1.278, allocations: 0.9802 MB / 495.5 MB, free: 7.43 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.9486/2.227, allocations: 16.4 MB / 0.4999 GB, free: 85.95 MB / 378.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0009402/2.228, allocations: 10.12 kB / 0.4999 GB, free: 85.95 MB / 378.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.006395/2.234, allocations: 412.7 kB / 0.5003 GB, free: 85.64 MB / 378.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001867/2.236, allocations: 0.6108 MB / 0.5009 GB, free: 85.57 MB / 378.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.07674/2.313, allocations: 15.88 MB / 0.5164 GB, free: 77.98 MB / 378.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.187/2.5, allocations: 52.21 MB / 0.5674 GB, free: 26.64 MB / 378.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.08285/2.583, allocations: 52.19 MB / 0.6184 GB, free: 15.52 MB / 426.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.04625/2.629, allocations: 9.62 MB / 0.6278 GB, free: 5.895 MB / 426.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000121/2.629, allocations: 64.78 kB / 0.6278 GB, free: 5.82 MB / 426.8 MB Notification: Performance of pre-optimization done (n=281): time 9.658e-06/2.629, allocations: 0 / 0.6278 GB, free: 5.82 MB / 426.8 MB Notification: Performance of matching and sorting (n=289): time 0.0702/2.7, allocations: 12.85 MB / 0.6404 GB, free: 8.824 MB / 442.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001118/2.7, allocations: 81.69 kB / 0.6405 GB, free: 8.73 MB / 442.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01624/2.716, allocations: 3.998 MB / 0.6444 GB, free: 4.707 MB / 442.8 MB Notification: Performance of collectPreVariables (initialization): time 0.0009565/2.717, allocations: 69.7 kB / 0.6444 GB, free: 4.633 MB / 442.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.006623/2.724, allocations: 4.519 MB / 0.6488 GB, free: 96 kB / 442.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.002706/2.727, allocations: 1.025 MB / 0.6498 GB, free: 15.07 MB / 458.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00132/2.728, allocations: 124 kB / 0.65 GB, free: 14.95 MB / 458.8 MB Notification: Performance of setup shared object (initialization): time 0.001011/2.729, allocations: 0.5552 MB / 0.6505 GB, free: 14.39 MB / 458.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01108/2.74, allocations: 2.46 MB / 0.6529 GB, free: 11.92 MB / 458.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01537/2.756, allocations: 5.586 MB / 0.6584 GB, free: 4.805 MB / 458.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01499/2.771, allocations: 3.763 MB / 0.662 GB, free: 1.023 MB / 458.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001817/2.771, allocations: 36 kB / 0.6621 GB, free: 0.9883 MB / 458.8 MB Notification: Performance of matching and sorting (n=787) (initialization): time 0.5586/3.33, allocations: 8.627 MB / 0.6705 GB, free: 152 MB / 458.8 MB Notification: Performance of prepare postOptimizeDAE: time 0.000149/3.33, allocations: 50.88 kB / 0.6705 GB, free: 152 MB / 458.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002915/3.33, allocations: 106.6 kB / 0.6706 GB, free: 152 MB / 458.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006413/3.337, allocations: 0.8584 MB / 0.6715 GB, free: 151.9 MB / 458.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01521/3.352, allocations: 1.419 MB / 0.6729 GB, free: 151.7 MB / 458.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02813/3.38, allocations: 7.163 MB / 0.6799 GB, free: 147.8 MB / 458.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.02394/3.404, allocations: 353 kB / 0.6802 GB, free: 147.7 MB / 458.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.007154/3.411, allocations: 352 kB / 0.6805 GB, free: 147.7 MB / 458.8 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 496 * 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 (742): * Single equations (assignments): 741 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(8,65.6%) 38} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.01624/3.428, allocations: 3.678 MB / 0.6841 GB, free: 145.9 MB / 458.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002123/3.43, allocations: 416.3 kB / 0.6845 GB, free: 145.9 MB / 458.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02598/3.456, allocations: 5.17 MB / 0.6896 GB, free: 143.8 MB / 458.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.804e-05/3.456, allocations: 31.44 kB / 0.6896 GB, free: 143.8 MB / 458.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.704e-05/3.456, allocations: 15.73 kB / 0.6896 GB, free: 143.8 MB / 458.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001129/3.456, allocations: 21.98 kB / 0.6896 GB, free: 143.8 MB / 458.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05607/3.512, allocations: 12.4 MB / 0.7017 GB, free: 137.9 MB / 458.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.936e-05/3.512, allocations: 4 kB / 0.7017 GB, free: 137.9 MB / 458.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.007569/3.52, allocations: 0.5429 MB / 0.7023 GB, free: 137.4 MB / 458.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005374/3.526, allocations: 0.6793 MB / 0.7029 GB, free: 136.9 MB / 458.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001027/3.527, allocations: 70.66 kB / 0.703 GB, free: 136.9 MB / 458.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02156/3.548, allocations: 6.31 MB / 0.7092 GB, free: 130.9 MB / 458.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.094e-05/3.548, allocations: 7.938 kB / 0.7092 GB, free: 130.9 MB / 458.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02878/3.577, allocations: 7.84 MB / 0.7168 GB, free: 123 MB / 458.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.004453/3.582, allocations: 0.8354 MB / 0.7176 GB, free: 122.2 MB / 458.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00239/3.584, allocations: 59.98 kB / 0.7177 GB, free: 122.1 MB / 458.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006236/3.59, allocations: 175.5 kB / 0.7179 GB, free: 122 MB / 458.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001552/3.592, allocations: 202 kB / 0.7181 GB, free: 121.8 MB / 458.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0008907/3.593, allocations: 95.92 kB / 0.7182 GB, free: 121.7 MB / 458.8 MB Notification: Performance of sorting global known variables: time 0.01078/3.604, allocations: 2.618 MB / 0.7207 GB, free: 119 MB / 458.8 MB Notification: Performance of sort global known variables: time 1.784e-06/3.604, allocations: 4 kB / 0.7207 GB, free: 119 MB / 458.8 MB Notification: Performance of remove unused functions: time 0.01461/3.619, allocations: 1.554 MB / 0.7222 GB, free: 117.5 MB / 458.8 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 (274): * Single equations (assignments): 273 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(8,65.6%) 38} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001712/3.62, allocations: 223.4 kB / 0.7224 GB, free: 117.3 MB / 458.8 MB Notification: Performance of simCode: created initialization part: time 0.02499/3.645, allocations: 6.182 MB / 0.7285 GB, free: 111.1 MB / 458.8 MB Notification: Performance of simCode: created event and clocks part: time 1.683e-05/3.646, allocations: 0 / 0.7285 GB, free: 111.1 MB / 458.8 MB Notification: Performance of simCode: created simulation system equations: time 0.01027/3.656, allocations: 2.523 MB / 0.7309 GB, free: 108.5 MB / 458.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01039/3.666, allocations: 0.8594 MB / 0.7318 GB, free: 107.7 MB / 458.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06729/3.734, allocations: 19.01 MB / 0.7504 GB, free: 88.59 MB / 458.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0183/3.752, allocations: 6.173 MB / 0.7564 GB, free: 82.39 MB / 458.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003654/3.756, allocations: 383.3 kB / 0.7567 GB, free: 82.01 MB / 458.8 MB Notification: Performance of SimCode: time 2.494e-06/3.756, allocations: 4 kB / 0.7568 GB, free: 82.01 MB / 458.8 MB Notification: Performance of Templates: time 0.8756/4.631, allocations: 148.7 MB / 0.9019 GB, free: 88.26 MB / 458.8 MB 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=5 -DSUNDIALS_MINOR_VERSION=4 -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:112:42: error: use of undeclared identifier \'UNKNOWN_SUBSCRIPT\'\n tmp92 = 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:112:85: error: use of undeclared identifier \'UNKNOWN_SUBSCRIPT\'\n tmp92 = 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'