Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.2_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: "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA,fileNamePrefix="Modelica_3_2_2_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_MTPA",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.053/2.053, allocations: 194.9 MB / 211.1 MB, free: 8.555 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004797/0.0004796, allocations: 8 kB / 264.1 MB, free: 3.445 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3899/0.3904, allocations: 44.5 MB / 308.6 MB, free: 12.76 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.515/0.9055, allocations: 130.1 MB / 438.7 MB, free: 51.83 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003529/0.9059, allocations: 108 kB / 438.8 MB, free: 51.83 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.701/2.607, allocations: 332.9 MB / 0.7536 GB, free: 47.99 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.996e-06/2.607, allocations: 0 / 0.7536 GB, free: 47.99 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0007197/2.608, allocations: 222.1 kB / 0.7538 GB, free: 47.97 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.04707/2.655, allocations: 9.174 MB / 0.7628 GB, free: 44.99 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.782e-05/2.655, allocations: 7.688 kB / 0.7628 GB, free: 44.99 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.007738/2.663, allocations: 1.436 MB / 0.7642 GB, free: 44.89 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04774/2.711, allocations: 5.89 MB / 0.7699 GB, free: 44.34 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.041/2.752, allocations: 7.456 MB / 0.7772 GB, free: 43.42 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001506/2.753, allocations: 0.719 MB / 0.7779 GB, free: 43.4 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.006345/2.76, allocations: 0.9443 MB / 0.7788 GB, free: 43.39 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.06102/2.821, allocations: 17.01 MB / 0.7954 GB, free: 42.25 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0006663/2.821, allocations: 18.94 kB / 0.7955 GB, free: 42.24 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004991/2.826, allocations: 409.3 kB / 0.7958 GB, free: 42.24 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001255/2.828, allocations: 0.7179 MB / 0.7965 GB, free: 42.21 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04921/2.877, allocations: 15.89 MB / 0.8121 GB, free: 39.64 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1493/3.026, allocations: 52.78 MB / 0.8636 GB, free: 6.57 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.4665/3.493, allocations: 41.91 MB / 0.9045 GB, free: 27.83 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.06814/3.561, allocations: 21.78 MB / 0.9258 GB, free: 27.02 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.839e-05/3.561, allocations: 92.5 kB / 0.9259 GB, free: 26.97 MB / 442.7 MB Notification: Performance of pre-optimization done (n=693): time 1.326e-05/3.561, allocations: 7.188 kB / 0.9259 GB, free: 26.97 MB / 442.7 MB Notification: Performance of matching and sorting (n=701): time 0.1747/3.736, allocations: 41.27 MB / 0.9662 GB, free: 35.73 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001041/3.736, allocations: 111.2 kB / 0.9663 GB, free: 35.66 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006867/3.743, allocations: 2.459 MB / 0.9687 GB, free: 34.75 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001735/3.745, allocations: 116.2 kB / 0.9688 GB, free: 34.64 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003191/3.748, allocations: 3.634 MB / 0.9724 GB, free: 32.02 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.004158/3.752, allocations: 2.307 MB / 0.9746 GB, free: 30.23 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001958/3.754, allocations: 129.4 kB / 0.9748 GB, free: 30.13 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.001119/3.755, allocations: 0.6127 MB / 0.9754 GB, free: 29.69 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0128/3.768, allocations: 4.524 MB / 0.9798 GB, free: 27.85 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01489/3.783, allocations: 6.325 MB / 0.9859 GB, free: 23.84 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01567/3.799, allocations: 5.607 MB / 0.9914 GB, free: 21.32 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.51e-05/3.799, allocations: 14.81 kB / 0.9914 GB, free: 21.32 MB / 458.7 MB Notification: Performance of matching and sorting (n=944) (initialization): time 0.04295/3.842, allocations: 13.72 MB / 1.005 GB, free: 15.74 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.224e-05/3.842, allocations: 27.19 kB / 1.005 GB, free: 15.74 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001375/3.842, allocations: 51.59 kB / 1.005 GB, free: 15.74 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01413/3.857, allocations: 4.002 MB / 1.009 GB, free: 14.51 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01011/3.867, allocations: 1.233 MB / 1.01 GB, free: 14.47 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02191/3.889, allocations: 9.669 MB / 1.019 GB, free: 9.105 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008533/3.897, allocations: 348.7 kB / 1.02 GB, free: 8.988 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002462/3.9, allocations: 317.6 kB / 1.02 GB, free: 8.93 MB / 458.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.01315/3.913, allocations: 3.611 MB / 1.024 GB, free: 7.238 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.003073/3.916, allocations: 449.9 kB / 1.024 GB, free: 7.004 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.08895/4.005, allocations: 13.68 MB / 1.037 GB, free: 13.85 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0005349/4.006, allocations: 184.4 kB / 1.038 GB, free: 13.69 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.548e-05/4.006, allocations: 7.047 kB / 1.038 GB, free: 13.69 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0002112/4.006, allocations: 27.33 kB / 1.038 GB, free: 13.69 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1243/4.13, allocations: 25.14 MB / 1.062 GB, free: 9.547 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001125/4.131, allocations: 0 / 1.062 GB, free: 9.547 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.008086/4.139, allocations: 0.8254 MB / 1.063 GB, free: 8.914 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01483/4.154, allocations: 3.912 MB / 1.067 GB, free: 5.684 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.002023/4.156, allocations: 152.8 kB / 1.067 GB, free: 5.555 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.4116/4.567, allocations: 9.746 MB / 1.076 GB, free: 105.1 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.09e-05/4.567, allocations: 11.16 kB / 1.076 GB, free: 105.1 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.06803/4.635, allocations: 19.71 MB / 1.096 GB, free: 104.1 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.01004/4.646, allocations: 1.484 MB / 1.097 GB, free: 104 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.004433/4.65, allocations: 99.31 kB / 1.097 GB, free: 104 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.007159/4.657, allocations: 274.1 kB / 1.098 GB, free: 104 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002759/4.66, allocations: 0.5151 MB / 1.098 GB, free: 103.9 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001997/4.662, allocations: 196.7 kB / 1.098 GB, free: 103.9 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.005718/4.668, allocations: 1.849 MB / 1.1 GB, free: 103.8 MB / 490.7 MB Notification: Performance of sort global known variables: time 9.82e-07/4.668, allocations: 1.719 kB / 1.1 GB, free: 103.8 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.01167/4.68, allocations: 1.727 MB / 1.102 GB, free: 103.8 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.05892/4.739, allocations: 21.58 MB / 1.123 GB, free: 101.4 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.03251/4.771, allocations: 11.18 MB / 1.134 GB, free: 99.19 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 1.33e-05/4.771, allocations: 0 / 1.134 GB, free: 99.19 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.01813/4.789, allocations: 5.723 MB / 1.139 GB, free: 97 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.009187/4.799, allocations: 0.8531 MB / 1.14 GB, free: 96.76 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.191/4.99, allocations: 94.66 MB / 1.233 GB, free: 22.91 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01637/5.006, allocations: 6.529 MB / 1.239 GB, free: 17.93 MB / 490.7 MB Notification: Performance of simCode: alias equations: time 0.01036/5.017, allocations: 1.568 MB / 1.24 GB, free: 16.86 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.009734/5.026, allocations: 3.376 MB / 1.244 GB, free: 13.73 MB / 490.7 MB Notification: Performance of SimCode: time 1.913e-06/5.026, allocations: 0 / 1.244 GB, free: 13.73 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.775/5.801, allocations: 175.6 MB / 1.415 GB, free: 32.17 MB / 490.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002367/5.802, allocations: 268.5 kB / 1.416 GB, free: 31.81 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.899/13.7, allocations: 0 / 1.416 GB, free: 31.81 MB / 490.7 MB