Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/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@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/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.816/1.816, allocations: 194.9 MB / 211.7 MB, free: 2.98 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003659/0.0003661, allocations: 8 kB / 264 MB, free: 13.54 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09261/0.093, allocations: 44.5 MB / 308.5 MB, free: 0.9727 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3985/0.4915, allocations: 130.1 MB / 438.5 MB, free: 11.29 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003373/0.4919, allocations: 102.6 kB / 438.6 MB, free: 11.23 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.456/1.948, allocations: 332.9 MB / 0.7535 GB, free: 51.26 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.629e-06/1.948, allocations: 0 / 0.7535 GB, free: 51.26 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0006229/1.949, allocations: 219.7 kB / 0.7537 GB, free: 51.24 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: 2782 * Number of variables: 2782 Notification: Performance of Generate backend data structure: time 0.03727/1.986, allocations: 9.176 MB / 0.7626 GB, free: 48.21 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.233e-05/1.986, allocations: 9.469 kB / 0.7626 GB, free: 48.21 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04365/2.03, allocations: 5.883 MB / 0.7684 GB, free: 47.66 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02264/2.053, allocations: 7.463 MB / 0.7757 GB, free: 46.47 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001058/2.054, allocations: 0.7226 MB / 0.7764 GB, free: 46.45 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004446/2.058, allocations: 0.9368 MB / 0.7773 GB, free: 46.44 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0507/2.109, allocations: 17 MB / 0.7939 GB, free: 41.5 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005099/2.109, allocations: 17.69 kB / 0.7939 GB, free: 41.5 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003966/2.113, allocations: 415 kB / 0.7943 GB, free: 41.2 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0009598/2.114, allocations: 0.7135 MB / 0.795 GB, free: 41.04 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04066/2.155, allocations: 15.9 MB / 0.8105 GB, free: 30.59 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4132/2.568, allocations: 52.78 MB / 0.8621 GB, free: 32.86 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.04566/2.614, allocations: 41.47 MB / 0.9026 GB, free: 32.27 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.05352/2.668, allocations: 21.78 MB / 0.9239 GB, free: 31.37 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.028e-05/2.668, allocations: 92.34 kB / 0.9239 GB, free: 31.32 MB / 458.7 MB Notification: Performance of pre-optimization done (n=693): time 1.303e-05/2.668, allocations: 3.531 kB / 0.9239 GB, free: 31.32 MB / 458.7 MB Notification: Performance of matching and sorting (n=701): time 0.1276/2.795, allocations: 41.27 MB / 0.9643 GB, free: 20.51 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.861e-05/2.796, allocations: 116.6 kB / 0.9644 GB, free: 20.43 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005479/2.801, allocations: 2.454 MB / 0.9668 GB, free: 19.52 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001378/2.802, allocations: 120.4 kB / 0.9669 GB, free: 19.42 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002193/2.805, allocations: 3.51 MB / 0.9703 GB, free: 16.75 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.003184/2.808, allocations: 2.323 MB / 0.9726 GB, free: 14.95 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001325/2.809, allocations: 122.8 kB / 0.9727 GB, free: 14.85 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0008934/2.81, allocations: 0.6104 MB / 0.9733 GB, free: 14.41 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01016/2.82, allocations: 4.529 MB / 0.9777 GB, free: 12.56 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01197/2.832, allocations: 6.322 MB / 0.9839 GB, free: 8.555 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01247/2.845, allocations: 5.609 MB / 0.9894 GB, free: 6.035 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.575e-05/2.845, allocations: 14.12 kB / 0.9894 GB, free: 6.035 MB / 458.7 MB Notification: Performance of matching and sorting (n=944) (initialization): time 0.03461/2.88, allocations: 13.56 MB / 1.003 GB, free: 0.5391 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.514e-05/2.88, allocations: 28.25 kB / 1.003 GB, free: 0.5391 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001049/2.88, allocations: 54.5 kB / 1.003 GB, free: 0.5391 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.012/2.892, allocations: 4.042 MB / 1.007 GB, free: 14.83 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007058/2.899, allocations: 1.231 MB / 1.008 GB, free: 13.88 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01819/2.917, allocations: 9.684 MB / 1.017 GB, free: 5.148 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006286/2.923, allocations: 349.8 kB / 1.018 GB, free: 4.875 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002013/2.926, allocations: 319.7 kB / 1.018 GB, free: 4.59 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.01145/2.937, allocations: 3.614 MB / 1.021 GB, free: 1.582 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002388/2.939, allocations: 453.2 kB / 1.022 GB, free: 1.141 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.3373/3.277, allocations: 13 MB / 1.035 GB, free: 94.16 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0003099/3.277, allocations: 183.9 kB / 1.035 GB, free: 94.16 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.384e-05/3.277, allocations: 1.281 kB / 1.035 GB, free: 94.16 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.000137/3.277, allocations: 32.86 kB / 1.035 GB, free: 94.16 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.06389/3.341, allocations: 24.86 MB / 1.059 GB, free: 93.36 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.032e-05/3.341, allocations: 4.656 kB / 1.059 GB, free: 93.36 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005614/3.347, allocations: 0.8218 MB / 1.06 GB, free: 93.36 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01115/3.358, allocations: 3.915 MB / 1.064 GB, free: 93.27 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001602/3.36, allocations: 152.4 kB / 1.064 GB, free: 93.27 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01573/3.376, allocations: 9.552 MB / 1.073 GB, free: 91.16 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.56e-06/3.376, allocations: 3.125 kB / 1.073 GB, free: 91.16 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.04476/3.42, allocations: 19.71 MB / 1.092 GB, free: 82.58 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.004768/3.425, allocations: 1.489 MB / 1.094 GB, free: 81.99 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002273/3.427, allocations: 97.62 kB / 1.094 GB, free: 81.92 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004951/3.432, allocations: 269.7 kB / 1.094 GB, free: 81.84 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002169/3.435, allocations: 0.5143 MB / 1.095 GB, free: 81.73 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001761/3.436, allocations: 196.6 kB / 1.095 GB, free: 81.69 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.004468/3.441, allocations: 1.848 MB / 1.097 GB, free: 80.99 MB / 474.7 MB Notification: Performance of sort global known variables: time 1.446e-06/3.441, allocations: 0 / 1.097 GB, free: 80.99 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.009941/3.451, allocations: 1.725 MB / 1.098 GB, free: 80.8 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.002328/3.453, allocations: 0.5979 MB / 1.099 GB, free: 80.6 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.02619/3.48, allocations: 11.17 MB / 1.11 GB, free: 76.43 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 8.761e-06/3.48, allocations: 3.625 kB / 1.11 GB, free: 76.43 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0147/3.494, allocations: 5.734 MB / 1.116 GB, free: 74.23 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006515/3.501, allocations: 0.8496 MB / 1.116 GB, free: 73.98 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05234/3.553, allocations: 24.18 MB / 1.14 GB, free: 57.18 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01297/3.566, allocations: 6.345 MB / 1.146 GB, free: 52.33 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002555/3.569, allocations: 384.7 kB / 1.147 GB, free: 51.98 MB / 474.7 MB Notification: Performance of SimCode: time 2.026e-06/3.569, allocations: 0 / 1.147 GB, free: 51.98 MB / 474.7 MB Notification: Performance of Templates: time 1.041/4.61, allocations: 373.8 MB / 1.512 GB, free: 14.95 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=2 -DSUNDIALS_MINOR_VERSION=6 -DPMC_USE_SUNDIALS -I"." -I"/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/bin/../include/omc/cpp/" -I. -I"." -I"." -I"/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/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'