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_Mains.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_Mains,fileNamePrefix="Modelica_3_2_2_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_Mains",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.025/2.025, allocations: 194.9 MB / 211.1 MB, free: 8.562 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003505/0.0003505, allocations: 8 kB / 264.1 MB, free: 3.449 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3098/0.3102, allocations: 44.5 MB / 308.6 MB, free: 12.66 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5332/0.8434, allocations: 151.9 MB / 460.5 MB, free: 46.3 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0004098/0.8439, allocations: 109.4 kB / 460.6 MB, free: 46.28 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.998/2.842, allocations: 389.8 MB / 0.8305 GB, free: 42.61 MB / 426.7 MB Notification: Performance of FrontEnd: time 3.727e-06/2.842, allocations: 0 / 0.8305 GB, free: 42.61 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.002187/2.844, allocations: 282.2 kB / 0.8308 GB, free: 42.56 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: 3386 * Number of variables: 3386 Notification: Performance of Generate backend data structure: time 0.07815/2.922, allocations: 11.95 MB / 0.8424 GB, free: 37.47 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.484e-05/2.922, allocations: 6.5 kB / 0.8424 GB, free: 37.47 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.01063/2.933, allocations: 1.967 MB / 0.8444 GB, free: 36.53 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04381/2.977, allocations: 5.236 MB / 0.8495 GB, free: 33.86 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03587/3.013, allocations: 9.671 MB / 0.8589 GB, free: 25.72 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001444/3.014, allocations: 0.8973 MB / 0.8598 GB, free: 24.82 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00642/3.021, allocations: 1.175 MB / 0.8609 GB, free: 23.65 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.07445/3.095, allocations: 19.58 MB / 0.8801 GB, free: 5.195 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0009194/3.096, allocations: 19.75 kB / 0.8801 GB, free: 5.176 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.006543/3.103, allocations: 0.5078 MB / 0.8806 GB, free: 4.668 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001677/3.105, allocations: 0.7705 MB / 0.8813 GB, free: 3.895 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.5188/3.623, allocations: 17.39 MB / 0.8983 GB, free: 41.75 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2108/3.834, allocations: 63.22 MB / 0.9601 GB, free: 23.07 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.03801/3.872, allocations: 22.41 MB / 0.9819 GB, free: 7.125 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.09088/3.963, allocations: 23.02 MB / 1.004 GB, free: 12.11 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002008/3.964, allocations: 100.6 kB / 1.005 GB, free: 12.02 MB / 442.7 MB Notification: Performance of pre-optimization done (n=754): time 2.017e-05/3.964, allocations: 0.75 kB / 1.005 GB, free: 12.02 MB / 442.7 MB Notification: Performance of matching and sorting (n=764): time 0.1714/4.135, allocations: 41.67 MB / 1.045 GB, free: 13.3 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000142/4.135, allocations: 151.6 kB / 1.045 GB, free: 13.14 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01333/4.149, allocations: 3.907 MB / 1.049 GB, free: 9.816 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001982/4.151, allocations: 133.7 kB / 1.049 GB, free: 9.68 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.007272/4.158, allocations: 4.733 MB / 1.054 GB, free: 5.488 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.006109/4.164, allocations: 2.54 MB / 1.056 GB, free: 3.195 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002127/4.166, allocations: 152 kB / 1.057 GB, free: 3.047 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.001333/4.168, allocations: 0.631 MB / 1.057 GB, free: 2.504 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.03871/4.206, allocations: 5.478 MB / 1.063 GB, free: 0 / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.393/4.6, allocations: 6.689 MB / 1.069 GB, free: 85.24 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01633/4.616, allocations: 5.98 MB / 1.075 GB, free: 85.14 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.54e-05/4.616, allocations: 15.31 kB / 1.075 GB, free: 85.14 MB / 474.7 MB Notification: Performance of matching and sorting (n=1048) (initialization): time 0.0445/4.661, allocations: 14.49 MB / 1.089 GB, free: 84.73 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.91e-05/4.661, allocations: 35.73 kB / 1.089 GB, free: 84.73 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001529/4.661, allocations: 54.22 kB / 1.089 GB, free: 84.73 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01203/4.673, allocations: 3.368 MB / 1.092 GB, free: 84.64 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01213/4.685, allocations: 1.492 MB / 1.094 GB, free: 84.64 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02039/4.706, allocations: 13.88 MB / 1.107 GB, free: 77.69 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009306/4.715, allocations: 392 kB / 1.108 GB, free: 77.69 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002348/4.717, allocations: 342.3 kB / 1.108 GB, free: 77.69 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 (791): * Single equations (assignments): 726 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 55 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 9 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 1 {(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(1,100.0%) 1,(1,100.0%) 5,(1,100.0%) 1} * Non-linear torn systems: 6 {6 9,6 9,6 9,6 9,4 4,10 69} Notification: Performance of prepare postOptimizeDAE: time 0.01302/4.73, allocations: 4.27 MB / 1.112 GB, free: 77.57 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002444/4.733, allocations: 0.5905 MB / 1.113 GB, free: 77.57 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.04838/4.781, allocations: 13.73 MB / 1.126 GB, free: 74.68 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.02951/4.811, allocations: 10.42 MB / 1.136 GB, free: 70.14 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.779e-05/4.811, allocations: 10.72 kB / 1.136 GB, free: 70.14 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001903/4.811, allocations: 37.42 kB / 1.137 GB, free: 70.14 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.08184/4.893, allocations: 28.2 MB / 1.164 GB, free: 57.59 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001372/4.893, allocations: 4.406 kB / 1.164 GB, free: 57.59 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.008717/4.902, allocations: 0.9631 MB / 1.165 GB, free: 57.56 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01219/4.914, allocations: 3.469 MB / 1.168 GB, free: 56.46 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.002021/4.916, allocations: 168.4 kB / 1.169 GB, free: 56.36 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02466/4.941, allocations: 18.37 MB / 1.186 GB, free: 39.45 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.845e-06/4.941, allocations: 13.17 kB / 1.186 GB, free: 39.44 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.05199/4.993, allocations: 21.07 MB / 1.207 GB, free: 20.67 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.006893/5, allocations: 1.742 MB / 1.209 GB, free: 19.09 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003259/5.003, allocations: 124 kB / 1.209 GB, free: 18.97 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.007705/5.011, allocations: 314.3 kB / 1.209 GB, free: 18.75 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00278/5.014, allocations: 0.5484 MB / 1.21 GB, free: 18.39 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001867/5.016, allocations: 210.2 kB / 1.21 GB, free: 18.21 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.007759/5.024, allocations: 2.942 MB / 1.213 GB, free: 15.75 MB / 474.7 MB Notification: Performance of sort global known variables: time 1.573e-06/5.024, allocations: 0 / 1.213 GB, free: 15.75 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.01296/5.037, allocations: 2.162 MB / 1.215 GB, free: 13.61 MB / 474.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 19 * Number of states: 10 (smpm.inertiaRotor.w,smpm.stator.core.Phi.re,smpm.stator.core.Phi.im,smpm.stator.zeroInductor.i0,smpm.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.re,smpm.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.im,loadInertiaM.phi,smpmQS.inertiaRotor.w,smpmQS.permanentMagnet.port_p.reference.gamma,loadInertiaMQS.phi) * 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 (512): * Single equations (assignments): 446 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 55 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 11 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 5 {(1,100.0%) 5,(1,100.0%) 1,(1,100.0%) 8,(2,100.0%) 14,(1,100.0%) 1} * Non-linear torn systems: 6 {4 4,6 9,6 9,6 9,6 9,10 69} Notification: Performance of Backend phase and start with SimCode phase: time 0.0633/5.1, allocations: 23.22 MB / 1.238 GB, free: 8.727 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.4205/5.52, allocations: 12.34 MB / 1.25 GB, free: 100.2 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 1.373e-05/5.521, allocations: 3.781 kB / 1.25 GB, free: 100.2 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.01983/5.54, allocations: 6.695 MB / 1.256 GB, free: 99.53 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0123/5.553, allocations: 1.314 MB / 1.257 GB, free: 99.51 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2571/5.81, allocations: 110.3 MB / 1.365 GB, free: 35.36 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0242/5.834, allocations: 7.776 MB / 1.373 GB, free: 32.74 MB / 490.7 MB Notification: Performance of simCode: alias equations: time 0.01295/5.847, allocations: 1.82 MB / 1.375 GB, free: 32.54 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01289/5.86, allocations: 4.433 MB / 1.379 GB, free: 28.77 MB / 490.7 MB Notification: Performance of SimCode: time 1.924e-06/5.86, allocations: 0 / 1.379 GB, free: 28.77 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.8613/6.721, allocations: 207.8 MB / 1.582 GB, free: 23.18 MB / 490.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002503/6.722, allocations: 273.3 kB / 1.582 GB, free: 22.81 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.55/17.27, allocations: 0 / 1.582 GB, free: 22.81 MB / 490.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains_res.mat does not exist to compare? outputFormat=mat