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 1.946/1.946, allocations: 194.9 MB / 211.1 MB, free: 7.594 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003474/0.0003474, allocations: 8 kB / 264.1 MB, free: 2.484 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.29/0.2903, allocations: 44.5 MB / 308.6 MB, free: 12.66 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA): time 0.04103/0.3314, allocations: 24.27 MB / 332.8 MB, free: 4.305 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.02213/0.3536, allocations: 8.036 MB / 340.9 MB, free: 12.25 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005786/0.3594, allocations: 171.4 kB / 341.1 MB, free: 12.08 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.008108/0.3676, allocations: 1.722 MB / 342.8 MB, free: 10.35 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01353/0.3812, allocations: 2.937 MB / 345.7 MB, free: 7.406 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.007268/0.3885, allocations: 1.434 MB / 347.1 MB, free: 5.973 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.01998/0.4085, allocations: 8.433 MB / 355.6 MB, free: 13.52 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.04546/0.454, allocations: 17.26 MB / 372.8 MB, free: 12.17 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.008564/0.4626, allocations: 3.722 MB / 376.6 MB, free: 8.438 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01062/0.4733, allocations: 4.362 MB / 380.9 MB, free: 4.059 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 0.002886/0.4762, allocations: 0.6094 MB / 381.5 MB, free: 3.449 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00514/0.4814, allocations: 0.8941 MB / 382.4 MB, free: 2.555 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.003708/0.4851, allocations: 1.9 MB / 384.3 MB, free: 0.6484 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.004247/0.4894, allocations: 2.04 MB / 386.4 MB, free: 14.59 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.02754/0.517, allocations: 17.78 MB / 404.1 MB, free: 12.77 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.149e-06/0.5171, allocations: 0 / 404.1 MB, free: 12.77 MB / 346.7 MB Notification: Performance of FrontEnd: time 3.506e-06/0.5171, allocations: 0 / 404.1 MB, free: 12.77 MB / 346.7 MB Notification: Performance of Transformations before backend: time 0.0005607/0.5176, allocations: 0 / 404.1 MB, free: 12.77 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.04339/0.561, allocations: 10.31 MB / 414.4 MB, free: 2.367 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.193e-05/0.5611, allocations: 8.031 kB / 414.5 MB, free: 2.359 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.005752/0.5669, allocations: 1.435 MB / 415.9 MB, free: 0.9141 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.5959/1.163, allocations: 8.511 MB / 424.4 MB, free: 76.12 MB / 346.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01688/1.18, allocations: 5.836 MB / 430.2 MB, free: 72.36 MB / 346.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001085/1.181, allocations: 0.7429 MB / 431 MB, free: 72.03 MB / 346.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005124/1.186, allocations: 0.9709 MB / 432 MB, free: 71.71 MB / 346.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05149/1.238, allocations: 16.41 MB / 448.4 MB, free: 55.94 MB / 346.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005093/1.238, allocations: 17.81 kB / 448.4 MB, free: 55.93 MB / 346.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003983/1.242, allocations: 412.9 kB / 448.8 MB, free: 55.54 MB / 346.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0009745/1.243, allocations: 0.6067 MB / 449.4 MB, free: 54.93 MB / 346.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.06025/1.303, allocations: 15.88 MB / 465.3 MB, free: 39.03 MB / 346.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1264/1.43, allocations: 52.21 MB / 0.5053 GB, free: 1.77 MB / 362.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.07335/1.503, allocations: 52.19 MB / 0.5563 GB, free: 6.625 MB / 426.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.3037/1.807, allocations: 9.61 MB / 0.5657 GB, free: 142.8 MB / 426.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.505e-05/1.807, allocations: 63.25 kB / 0.5658 GB, free: 142.8 MB / 426.8 MB Notification: Performance of pre-optimization done (n=281): time 6.332e-06/1.807, allocations: 1.125 kB / 0.5658 GB, free: 142.8 MB / 426.8 MB Notification: Performance of matching and sorting (n=289): time 0.04014/1.847, allocations: 12.85 MB / 0.5783 GB, free: 137.7 MB / 426.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.327e-05/1.848, allocations: 80.88 kB / 0.5784 GB, free: 137.6 MB / 426.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007654/1.855, allocations: 4.004 MB / 0.5823 GB, free: 136.1 MB / 426.8 MB Notification: Performance of collectPreVariables (initialization): time 0.000608/1.856, allocations: 73.36 kB / 0.5824 GB, free: 136 MB / 426.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.003291/1.859, allocations: 4.617 MB / 0.5869 GB, free: 132.6 MB / 426.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.001447/1.861, allocations: 1.031 MB / 0.5879 GB, free: 131.8 MB / 426.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005485/1.861, allocations: 123.9 kB / 0.588 GB, free: 131.7 MB / 426.8 MB Notification: Performance of setup shared object (initialization): time 0.0004056/1.862, allocations: 0.553 MB / 0.5885 GB, free: 131.3 MB / 426.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005777/1.867, allocations: 2.461 MB / 0.5909 GB, free: 130.4 MB / 426.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007724/1.875, allocations: 5.591 MB / 0.5964 GB, free: 125.2 MB / 426.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008195/1.883, allocations: 3.754 MB / 0.6001 GB, free: 123.5 MB / 426.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.18e-05/1.884, allocations: 31.59 kB / 0.6001 GB, free: 123.5 MB / 426.8 MB Notification: Performance of matching and sorting (n=787) (initialization): time 0.02212/1.906, allocations: 8.783 MB / 0.6087 GB, free: 116.7 MB / 426.8 MB Notification: Performance of prepare postOptimizeDAE: time 9.392e-05/1.906, allocations: 52.75 kB / 0.6087 GB, free: 116.7 MB / 426.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001528/1.906, allocations: 112 kB / 0.6088 GB, free: 116.6 MB / 426.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003496/1.91, allocations: 0.8563 MB / 0.6097 GB, free: 115.8 MB / 426.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008891/1.918, allocations: 1.427 MB / 0.6111 GB, free: 114.4 MB / 426.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01476/1.933, allocations: 7.164 MB / 0.6181 GB, free: 107.1 MB / 426.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006603/1.94, allocations: 355.3 kB / 0.6184 GB, free: 106.8 MB / 426.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001094/1.941, allocations: 352 kB / 0.6187 GB, free: 106.4 MB / 426.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.008259/1.949, allocations: 3.685 MB / 0.6223 GB, free: 102.7 MB / 426.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001165/1.95, allocations: 407 kB / 0.6227 GB, free: 102.3 MB / 426.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01331/1.964, allocations: 5.184 MB / 0.6278 GB, free: 97.1 MB / 426.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.831e-05/1.964, allocations: 28 kB / 0.6278 GB, free: 97.07 MB / 426.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.431e-05/1.964, allocations: 8 kB / 0.6278 GB, free: 97.06 MB / 426.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.852e-05/1.964, allocations: 18.69 kB / 0.6278 GB, free: 97.05 MB / 426.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02969/1.994, allocations: 12.4 MB / 0.6399 GB, free: 84.57 MB / 426.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.577e-05/1.994, allocations: 4 kB / 0.6399 GB, free: 84.57 MB / 426.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004456/1.998, allocations: 0.5426 MB / 0.6405 GB, free: 84.02 MB / 426.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003134/2.001, allocations: 0.6836 MB / 0.6411 GB, free: 83.34 MB / 426.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003283/2.002, allocations: 63.98 kB / 0.6412 GB, free: 83.27 MB / 426.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01262/2.014, allocations: 6.315 MB / 0.6474 GB, free: 76.82 MB / 426.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.251e-06/2.014, allocations: 7.938 kB / 0.6474 GB, free: 76.82 MB / 426.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01661/2.031, allocations: 7.464 MB / 0.6547 GB, free: 69.21 MB / 426.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002604/2.034, allocations: 0.8432 MB / 0.6555 GB, free: 68.34 MB / 426.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008464/2.034, allocations: 52 kB / 0.6555 GB, free: 68.29 MB / 426.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003251/2.038, allocations: 171.9 kB / 0.6557 GB, free: 68.12 MB / 426.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006077/2.038, allocations: 210 kB / 0.6559 GB, free: 67.92 MB / 426.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002828/2.039, allocations: 91.94 kB / 0.656 GB, free: 67.83 MB / 426.8 MB Notification: Performance of sorting global known variables: time 0.005393/2.044, allocations: 2.622 MB / 0.6586 GB, free: 65.2 MB / 426.8 MB Notification: Performance of sort global known variables: time 1.232e-06/2.044, allocations: 0 / 0.6586 GB, free: 65.2 MB / 426.8 MB Notification: Performance of remove unused functions: time 0.008312/2.052, allocations: 1.56 MB / 0.6601 GB, free: 63.64 MB / 426.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.01726/2.07, allocations: 8.159 MB / 0.668 GB, free: 55.34 MB / 426.8 MB Notification: Performance of simCode: created initialization part: time 0.01401/2.084, allocations: 6.175 MB / 0.6741 GB, free: 49.15 MB / 426.8 MB Notification: Performance of simCode: created event and clocks part: time 9.779e-06/2.084, allocations: 0 / 0.6741 GB, free: 49.15 MB / 426.8 MB Notification: Performance of simCode: created simulation system equations: time 0.006183/2.09, allocations: 2.522 MB / 0.6765 GB, free: 46.61 MB / 426.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006251/2.096, allocations: 0.8546 MB / 0.6774 GB, free: 45.77 MB / 426.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3968/2.493, allocations: 46.81 MB / 0.7231 GB, free: 136.1 MB / 426.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.011/2.504, allocations: 6.357 MB / 0.7293 GB, free: 134.3 MB / 426.8 MB Notification: Performance of simCode: alias equations: time 0.009421/2.514, allocations: 1.978 MB / 0.7312 GB, free: 134.2 MB / 426.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.007126/2.521, allocations: 3.385 MB / 0.7345 GB, free: 131.4 MB / 426.8 MB Notification: Performance of SimCode: time 2.044e-06/2.521, allocations: 0 / 0.7345 GB, free: 131.4 MB / 426.8 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2321/2.753, allocations: 113.8 MB / 0.8457 GB, free: 23.77 MB / 426.8 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002454/2.753, allocations: 262.7 kB / 0.846 GB, free: 23.43 MB / 426.8 MB Notification: Performance of buildModelFMU: Generate platform static: time 5.979/8.732, allocations: 0 / 0.846 GB, free: 23.43 MB / 426.8 MB