Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.2_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.conf.json Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Running command: translateModel(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="Modelica_3.2.2_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA") Notification: Performance of loadModel(Modelica): time 1.858/1.858, allocations: 194.8 MB / 212.3 MB, free: 3.008 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003485/0.0003487, allocations: 12 kB / 264.5 MB, free: 13.59 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.106/0.1063, allocations: 44.5 MB / 309 MB, free: 1.023 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.503/0.6093, allocations: 130.1 MB / 439.1 MB, free: 9.781 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0004286/0.6098, allocations: 112.6 kB / 439.2 MB, free: 9.719 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.668/2.278, allocations: 332.9 MB / 0.754 GB, free: 35.71 MB / 410.7 MB Notification: Performance of FrontEnd: time 3.497e-06/2.278, allocations: 0 / 0.754 GB, free: 35.71 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.000826/2.279, allocations: 219.1 kB / 0.7542 GB, free: 35.7 MB / 410.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.0485/2.327, allocations: 9.176 MB / 0.7631 GB, free: 32.65 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.083e-05/2.327, allocations: 11.47 kB / 0.7632 GB, free: 32.65 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.06528/2.393, allocations: 5.883 MB / 0.7689 GB, free: 32.1 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02824/2.421, allocations: 7.479 MB / 0.7762 GB, free: 30.91 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001312/2.422, allocations: 0.7219 MB / 0.7769 GB, free: 30.89 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005619/2.428, allocations: 0.9354 MB / 0.7778 GB, free: 30.88 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.06248/2.49, allocations: 17.08 MB / 0.7945 GB, free: 25.6 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000795/2.491, allocations: 14.22 kB / 0.7945 GB, free: 25.59 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.005227/2.496, allocations: 410 kB / 0.7949 GB, free: 25.29 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001224/2.498, allocations: 0.7206 MB / 0.7956 GB, free: 25.12 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.05107/2.549, allocations: 15.89 MB / 0.8111 GB, free: 13.83 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.543/3.092, allocations: 52.79 MB / 0.8627 GB, free: 31.64 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.05338/3.145, allocations: 41.48 MB / 0.9032 GB, free: 31.04 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.06662/3.212, allocations: 21.78 MB / 0.9245 GB, free: 30.12 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001068/3.212, allocations: 94.09 kB / 0.9246 GB, free: 30.08 MB / 458.7 MB Notification: Performance of pre-optimization done (n=693): time 1.186e-05/3.212, allocations: 0 / 0.9246 GB, free: 30.08 MB / 458.7 MB Notification: Performance of matching and sorting (n=701): time 0.1705/3.383, allocations: 41.27 MB / 0.9649 GB, free: 18.69 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000119/3.383, allocations: 111.2 kB / 0.965 GB, free: 18.62 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007008/3.39, allocations: 2.774 MB / 0.9677 GB, free: 17.59 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001965/3.392, allocations: 120.9 kB / 0.9678 GB, free: 17.48 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003086/3.395, allocations: 3.52 MB / 0.9712 GB, free: 14.81 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.004859/3.4, allocations: 2.31 MB / 0.9735 GB, free: 13.01 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001277/3.401, allocations: 131.7 kB / 0.9736 GB, free: 12.91 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0009836/3.402, allocations: 0.6016 MB / 0.9742 GB, free: 12.47 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0131/3.415, allocations: 4.527 MB / 0.9786 GB, free: 10.63 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0154/3.431, allocations: 6.345 MB / 0.9848 GB, free: 6.613 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01615/3.447, allocations: 5.614 MB / 0.9903 GB, free: 4.086 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.822e-05/3.447, allocations: 19.44 kB / 0.9903 GB, free: 4.082 MB / 458.7 MB Notification: Performance of matching and sorting (n=944) (initialization): time 0.0465/3.494, allocations: 13.64 MB / 1.004 GB, free: 14.94 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.144e-05/3.494, allocations: 27.78 kB / 1.004 GB, free: 14.94 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000145/3.494, allocations: 54.66 kB / 1.004 GB, free: 14.94 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01457/3.509, allocations: 4.017 MB / 1.008 GB, free: 13.36 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01071/3.519, allocations: 1.224 MB / 1.009 GB, free: 12.42 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02262/3.542, allocations: 9.674 MB / 1.018 GB, free: 3.688 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008425/3.551, allocations: 356.2 kB / 1.019 GB, free: 3.41 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002484/3.553, allocations: 318.9 kB / 1.019 GB, free: 3.121 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.01331/3.567, allocations: 3.607 MB / 1.022 GB, free: 128 kB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.374/3.941, allocations: 451.1 kB / 1.023 GB, free: 94.98 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.04582/3.986, allocations: 13.02 MB / 1.036 GB, free: 94.67 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0003935/3.987, allocations: 184.2 kB / 1.036 GB, free: 94.67 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.599e-05/3.987, allocations: 1.031 kB / 1.036 GB, free: 94.67 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001535/3.987, allocations: 30.52 kB / 1.036 GB, free: 94.67 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.07695/4.064, allocations: 24.86 MB / 1.06 GB, free: 93.87 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001094/4.064, allocations: 3.344 kB / 1.06 GB, free: 93.87 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.008056/4.072, allocations: 0.8266 MB / 1.061 GB, free: 93.86 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01365/4.086, allocations: 3.906 MB / 1.065 GB, free: 93.78 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001961/4.088, allocations: 151.2 kB / 1.065 GB, free: 93.78 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02014/4.108, allocations: 9.56 MB / 1.074 GB, free: 91.18 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.737e-06/4.108, allocations: 3.562 kB / 1.074 GB, free: 91.18 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.05675/4.165, allocations: 19.4 MB / 1.093 GB, free: 82.62 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.005908/4.171, allocations: 1.484 MB / 1.095 GB, free: 81.96 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003135/4.174, allocations: 109 kB / 1.095 GB, free: 81.88 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006752/4.181, allocations: 270.5 kB / 1.095 GB, free: 81.81 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002932/4.184, allocations: 0.5107 MB / 1.095 GB, free: 81.7 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001902/4.186, allocations: 189.9 kB / 1.096 GB, free: 81.66 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.005315/4.191, allocations: 1.856 MB / 1.097 GB, free: 80.96 MB / 474.7 MB Notification: Performance of sort global known variables: time 1.733e-06/4.191, allocations: 0 / 1.097 GB, free: 80.96 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.01143/4.203, allocations: 1.722 MB / 1.099 GB, free: 80.77 MB / 474.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.002973/4.206, allocations: 0.5854 MB / 1.1 GB, free: 80.57 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.03331/4.239, allocations: 11.17 MB / 1.111 GB, free: 76.39 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 1.408e-05/4.239, allocations: 3.656 kB / 1.111 GB, free: 76.39 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.01827/4.257, allocations: 5.732 MB / 1.116 GB, free: 74.2 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008831/4.266, allocations: 0.8383 MB / 1.117 GB, free: 73.96 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06677/4.333, allocations: 24.19 MB / 1.141 GB, free: 56.26 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01524/4.349, allocations: 6.344 MB / 1.147 GB, free: 51.41 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003246/4.352, allocations: 388.1 kB / 1.147 GB, free: 51.05 MB / 474.7 MB Notification: Performance of SimCode: time 2.254e-06/4.352, allocations: 0 / 1.147 GB, free: 51.05 MB / 474.7 MB Notification: Performance of Templates: time 1.316/5.668, allocations: 373.7 MB / 1.512 GB, free: 13.09 MB / 490.7 MB make -j1 -f Modelica_3.2.2_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/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/cpp/" -I. -I"." -I"." -I"/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/include/omc/c/sundials" -DMEASURETIME_PROFILEBLOCKS -DUSE_LOGGER -c -o OMCppModelica_3.2.2_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPACalcHelperMain.o OMCppModelica_3.2.2_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPACalcHelperMain.cpp\nIn file included from OMCppModelica_3.2.2_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPACalcHelperMain.cpp:28:\n./OMCppModelica_3.2.2_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.2_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.2_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPACalcHelperMain.o\' failed\nmake: *** [OMCppModelica_3.2.2_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPACalcHelperMain.o] Error 1\n'