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.975/1.975, allocations: 194.9 MB / 211.7 MB, free: 2.984 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003593/0.0003594, allocations: 8 kB / 263.9 MB, free: 13.58 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08104/0.08143, allocations: 44.52 MB / 308.4 MB, free: 0.9922 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA): time 0.03572/0.1172, allocations: 24.26 MB / 332.6 MB, free: 8.648 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.0203/0.1376, allocations: 8.04 MB / 340.7 MB, free: 0.5898 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006054/0.1437, allocations: 171.4 kB / 340.9 MB, free: 432 kB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.006834/0.1505, allocations: 1.726 MB / 342.6 MB, free: 14.69 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01277/0.1634, allocations: 2.933 MB / 345.5 MB, free: 11.75 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.006851/0.1702, allocations: 1.447 MB / 347 MB, free: 10.3 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0172/0.1875, allocations: 8.437 MB / 355.4 MB, free: 1.848 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.04273/0.2302, allocations: 17.26 MB / 372.7 MB, free: 0.4922 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.2264/0.4567, allocations: 3.741 MB / 376.4 MB, free: 20.17 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.008579/0.4653, allocations: 4.393 MB / 380.8 MB, free: 20.17 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 0.003027/0.4684, allocations: 0.6102 MB / 381.4 MB, free: 20.17 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005209/0.4737, allocations: 0.8974 MB / 382.3 MB, free: 20.17 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.003645/0.4774, allocations: 1.913 MB / 384.2 MB, free: 20.17 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.004155/0.4816, allocations: 2.039 MB / 386.2 MB, free: 20.14 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.02025/0.5018, allocations: 17.8 MB / 404 MB, free: 11.8 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.04e-06/0.5019, allocations: 3.875 kB / 404 MB, free: 11.8 MB / 314.7 MB Notification: Performance of FrontEnd: time 3.862e-06/0.5019, allocations: 0 / 404 MB, free: 11.8 MB / 314.7 MB Notification: Performance of Transformations before backend: time 0.0004797/0.5024, allocations: 0 / 404 MB, free: 11.8 MB / 314.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.03144/0.5339, allocations: 10.31 MB / 414.4 MB, free: 6.664 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.173e-05/0.5339, allocations: 9.438 kB / 414.4 MB, free: 6.664 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0574/0.5913, allocations: 8.519 MB / 422.9 MB, free: 15.61 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01516/0.6065, allocations: 5.811 MB / 428.7 MB, free: 12.17 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.00107/0.6077, allocations: 0.7386 MB / 429.4 MB, free: 11.75 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004271/0.612, allocations: 0.9684 MB / 430.4 MB, free: 11.11 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04936/0.6614, allocations: 16.49 MB / 446.9 MB, free: 15.71 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004619/0.6619, allocations: 27.17 kB / 446.9 MB, free: 15.7 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00333/0.6652, allocations: 410.9 kB / 447.3 MB, free: 15.3 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0009298/0.6662, allocations: 0.6106 MB / 447.9 MB, free: 14.69 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04615/0.7123, allocations: 15.88 MB / 463.8 MB, free: 14.8 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1192/0.8316, allocations: 52.25 MB / 0.504 GB, free: 10.04 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.2653/1.097, allocations: 52.19 MB / 0.5549 GB, free: 72.96 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02403/1.121, allocations: 9.64 MB / 0.5643 GB, free: 70.62 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.59e-05/1.121, allocations: 68.66 kB / 0.5644 GB, free: 70.56 MB / 410.7 MB Notification: Performance of pre-optimization done (n=281): time 7.717e-06/1.121, allocations: 0 / 0.5644 GB, free: 70.56 MB / 410.7 MB Notification: Performance of matching and sorting (n=289): time 0.0345/1.156, allocations: 12.87 MB / 0.577 GB, free: 64.92 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.647e-05/1.156, allocations: 80.91 kB / 0.5771 GB, free: 64.85 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007987/1.164, allocations: 4.02 MB / 0.581 GB, free: 63.31 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004703/1.164, allocations: 75.55 kB / 0.5811 GB, free: 63.25 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002828/1.167, allocations: 4.502 MB / 0.5855 GB, free: 59.78 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.00115/1.168, allocations: 1.031 MB / 0.5865 GB, free: 59 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000548/1.169, allocations: 126.4 kB / 0.5866 GB, free: 58.91 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0003901/1.169, allocations: 0.5565 MB / 0.5871 GB, free: 58.48 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005194/1.174, allocations: 2.465 MB / 0.5895 GB, free: 57.57 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006852/1.181, allocations: 5.616 MB / 0.595 GB, free: 52.41 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00729/1.189, allocations: 3.766 MB / 0.5987 GB, free: 50.72 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.579e-05/1.189, allocations: 29.41 kB / 0.5987 GB, free: 50.72 MB / 410.7 MB Notification: Performance of matching and sorting (n=787) (initialization): time 0.01989/1.209, allocations: 8.633 MB / 0.6072 GB, free: 46.82 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.694e-05/1.209, allocations: 55.94 kB / 0.6072 GB, free: 46.76 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001401/1.209, allocations: 108 kB / 0.6073 GB, free: 46.66 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002799/1.212, allocations: 0.8603 MB / 0.6081 GB, free: 45.98 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006111/1.218, allocations: 1.421 MB / 0.6095 GB, free: 44.75 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01233/1.23, allocations: 7.205 MB / 0.6166 GB, free: 38.36 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006212/1.237, allocations: 349.2 kB / 0.6169 GB, free: 38.06 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00126/1.238, allocations: 356.1 kB / 0.6172 GB, free: 37.73 MB / 410.7 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.007852/1.246, allocations: 3.684 MB / 0.6208 GB, free: 34.19 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001099/1.247, allocations: 407 kB / 0.6212 GB, free: 33.79 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01135/1.258, allocations: 5.188 MB / 0.6263 GB, free: 28.55 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.807e-05/1.258, allocations: 32 kB / 0.6263 GB, free: 28.52 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.886e-05/1.258, allocations: 8 kB / 0.6263 GB, free: 28.52 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.035e-05/1.258, allocations: 24.67 kB / 0.6264 GB, free: 28.5 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02824/1.287, allocations: 12.42 MB / 0.6385 GB, free: 16 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.976e-05/1.287, allocations: 4 kB / 0.6385 GB, free: 15.99 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003082/1.29, allocations: 0.5461 MB / 0.639 GB, free: 15.45 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002448/1.292, allocations: 0.6875 MB / 0.6397 GB, free: 14.75 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004957/1.293, allocations: 63.98 kB / 0.6398 GB, free: 14.69 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01043/1.303, allocations: 6.348 MB / 0.646 GB, free: 8.215 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.443e-06/1.303, allocations: 7.938 kB / 0.646 GB, free: 8.207 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01427/1.318, allocations: 7.488 MB / 0.6533 GB, free: 0.5781 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002544/1.32, allocations: 0.8393 MB / 0.6541 GB, free: 15.71 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009966/1.321, allocations: 60 kB / 0.6542 GB, free: 15.66 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002802/1.324, allocations: 175.8 kB / 0.6543 GB, free: 15.48 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006993/1.325, allocations: 202.1 kB / 0.6545 GB, free: 15.29 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000316/1.325, allocations: 95.97 kB / 0.6546 GB, free: 15.19 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.006601/1.332, allocations: 2.641 MB / 0.6572 GB, free: 12.54 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.202e-06/1.332, allocations: 0 / 0.6572 GB, free: 12.54 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.008626/1.34, allocations: 1.557 MB / 0.6587 GB, free: 10.98 MB / 426.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 (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.0008842/1.341, allocations: 219.2 kB / 0.6589 GB, free: 10.77 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.01515/1.356, allocations: 6.187 MB / 0.665 GB, free: 4.562 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 1.055e-05/1.357, allocations: 0 / 0.665 GB, free: 4.562 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.006347/1.363, allocations: 2.53 MB / 0.6674 GB, free: 2.02 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005213/1.368, allocations: 0.8572 MB / 0.6683 GB, free: 1.168 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2587/1.627, allocations: 19.05 MB / 0.6869 GB, free: 142.1 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01149/1.638, allocations: 6.178 MB / 0.6929 GB, free: 140.5 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001917/1.64, allocations: 381.7 kB / 0.6933 GB, free: 140.5 MB / 426.7 MB Notification: Performance of SimCode: time 2.557e-06/1.64, allocations: 0 / 0.6933 GB, free: 140.5 MB / 426.7 MB Notification: Performance of Templates: time 0.4191/2.059, allocations: 148.8 MB / 0.8386 GB, free: 139.6 MB / 426.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@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: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.2_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.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'