Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter.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.FundamentalWave.Examples.BasicMachines.SMPM_Inverter,fileNamePrefix="Modelica_3_2_2_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMPM_Inverter",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.959/1.959, allocations: 194.9 MB / 211.1 MB, free: 7.586 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004987/0.0004988, allocations: 11.98 kB / 264.1 MB, free: 2.496 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3182/0.3188, allocations: 44.5 MB / 308.6 MB, free: 12.55 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4706/0.7894, allocations: 124.6 MB / 433.1 MB, free: 52.18 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003249/0.7898, allocations: 90.94 kB / 433.2 MB, free: 52.18 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5049/1.295, allocations: 123.6 MB / 0.5437 GB, free: 7.414 MB / 394.7 MB Notification: Performance of FrontEnd: time 1.923e-06/1.295, allocations: 0 / 0.5437 GB, free: 7.414 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0007216/1.296, allocations: 135.8 kB / 0.5439 GB, free: 7.281 MB / 394.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1406 * Number of variables: 1406 Notification: Performance of Generate backend data structure: time 0.02648/1.322, allocations: 5.613 MB / 0.5493 GB, free: 1.59 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.701e-05/1.322, allocations: 12.03 kB / 0.5494 GB, free: 1.578 MB / 394.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00354/1.326, allocations: 0.7403 MB / 0.5501 GB, free: 0.8281 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00831/1.334, allocations: 1.008 MB / 0.5511 GB, free: 15.81 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0195/1.354, allocations: 4.603 MB / 0.5556 GB, free: 11.13 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006313/1.354, allocations: 398.7 kB / 0.5559 GB, free: 10.74 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002499/1.357, allocations: 0.5232 MB / 0.5564 GB, free: 10.22 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02672/1.384, allocations: 6.919 MB / 0.5632 GB, free: 3.094 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003535/1.384, allocations: 11.84 kB / 0.5632 GB, free: 3.082 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002005/1.386, allocations: 231.9 kB / 0.5634 GB, free: 2.855 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003891/1.386, allocations: 250.6 kB / 0.5637 GB, free: 2.609 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.32/1.706, allocations: 5.567 MB / 0.5691 GB, free: 55.32 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05877/1.765, allocations: 22.42 MB / 0.591 GB, free: 50.76 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01286/1.778, allocations: 8.328 MB / 0.5991 GB, free: 45.26 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01725/1.795, allocations: 5.316 MB / 0.6043 GB, free: 44.38 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.865e-05/1.796, allocations: 63.86 kB / 0.6044 GB, free: 44.34 MB / 410.7 MB Notification: Performance of pre-optimization done (n=238): time 5.861e-06/1.796, allocations: 3.062 kB / 0.6044 GB, free: 44.34 MB / 410.7 MB Notification: Performance of matching and sorting (n=266): time 0.04917/1.845, allocations: 13 MB / 0.6171 GB, free: 42.04 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.281e-05/1.845, allocations: 82.44 kB / 0.6172 GB, free: 41.97 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006715/1.852, allocations: 2.73 MB / 0.6198 GB, free: 41.74 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005865/1.852, allocations: 71.11 kB / 0.6199 GB, free: 41.71 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0021/1.854, allocations: 2.452 MB / 0.6223 GB, free: 40.76 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001231/1.856, allocations: 0.9066 MB / 0.6232 GB, free: 40.18 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003728/1.856, allocations: 65.88 kB / 0.6233 GB, free: 40.18 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0002828/1.856, allocations: 445.3 kB / 0.6237 GB, free: 39.87 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004319/1.861, allocations: 1.422 MB / 0.6251 GB, free: 39.86 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005018/1.866, allocations: 2.384 MB / 0.6274 GB, free: 38.16 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005061/1.871, allocations: 1.84 MB / 0.6292 GB, free: 37.39 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.749e-05/1.871, allocations: 10.59 kB / 0.6292 GB, free: 37.39 MB / 410.7 MB Notification: Performance of matching and sorting (n=423) (initialization): time 0.01535/1.886, allocations: 4.983 MB / 0.6341 GB, free: 35.5 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.877e-05/1.886, allocations: 19.41 kB / 0.6341 GB, free: 35.5 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.451e-05/1.886, allocations: 33.02 kB / 0.6341 GB, free: 35.5 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00295/1.889, allocations: 0.7201 MB / 0.6348 GB, free: 35.29 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00573/1.895, allocations: 0.7707 MB / 0.6356 GB, free: 35.27 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01489/1.91, allocations: 10.01 MB / 0.6453 GB, free: 28.01 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00484/1.915, allocations: 194.2 kB / 0.6455 GB, free: 27.96 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008071/1.916, allocations: 144.9 kB / 0.6457 GB, free: 27.93 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 135 * 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 (386): * Single equations (assignments): 380 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(2,100.0%),(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(6,72.2%) 23,(1,100.0%) 1,(1,100.0%) 5,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.004695/1.921, allocations: 1.573 MB / 0.6472 GB, free: 27.13 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001185/1.922, allocations: 355.5 kB / 0.6475 GB, free: 26.95 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01504/1.937, allocations: 4.456 MB / 0.6519 GB, free: 25 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.92e-05/1.937, allocations: 25 kB / 0.6519 GB, free: 25 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.37e-05/1.937, allocations: 17.14 kB / 0.6519 GB, free: 25 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.497e-05/1.937, allocations: 13.58 kB / 0.652 GB, free: 25 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02709/1.964, allocations: 9.661 MB / 0.6614 GB, free: 20.95 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.248e-05/1.964, allocations: 6.312 kB / 0.6614 GB, free: 20.95 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003685/1.968, allocations: 434.4 kB / 0.6618 GB, free: 20.93 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004177/1.972, allocations: 0.9659 MB / 0.6627 GB, free: 20.66 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004752/1.973, allocations: 74.06 kB / 0.6628 GB, free: 20.62 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02264/1.995, allocations: 16.32 MB / 0.6788 GB, free: 8.176 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.335e-06/1.995, allocations: 7.844 kB / 0.6788 GB, free: 8.176 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01668/2.012, allocations: 6.81 MB / 0.6854 GB, free: 4.637 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002736/2.015, allocations: 0.7431 MB / 0.6861 GB, free: 4.156 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001017/2.016, allocations: 62.03 kB / 0.6862 GB, free: 4.117 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003445/2.019, allocations: 160.4 kB / 0.6864 GB, free: 4.078 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006533/2.02, allocations: 195.8 kB / 0.6865 GB, free: 4.043 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002605/2.02, allocations: 79.02 kB / 0.6866 GB, free: 4.027 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.004945/2.025, allocations: 2.071 MB / 0.6886 GB, free: 2.75 MB / 410.7 MB Notification: Performance of sort global known variables: time 5.91e-07/2.025, allocations: 3.281 kB / 0.6886 GB, free: 2.75 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.005618/2.031, allocations: 1.091 MB / 0.6897 GB, free: 1.668 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 20 * Number of states: 13 (vfController.x,smpmM.inertiaRotor.w,smpmM.stator.core.Phi.re,smpmM.stator.core.Phi.im,smpmM.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.re,smpmM.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.im,smpmE.inertiaRotor.w,smpmE.idq_sr[1],smpmE.idq_sr[2],smpmE.idq_rr[2],smpmE.idq_dr[1],loadInertiaM.phi,loadInertiaE.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 (209): * Single equations (assignments): 202 * 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: 7 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 7 {(1,100.0%) 5,(6,72.2%) 23,(1,100.0%) 1,(2,100.0%) 4,(1,100.0%) 1,(1,100.0%) 8,(2,100.0%) 14} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.01977/2.051, allocations: 8.893 MB / 0.6984 GB, free: 9.398 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.01286/2.064, allocations: 4.369 MB / 0.7027 GB, free: 5.492 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 1.765e-05/2.064, allocations: 4 kB / 0.7027 GB, free: 5.488 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.008553/2.072, allocations: 2.919 MB / 0.7055 GB, free: 2.793 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007665/2.08, allocations: 0.8682 MB / 0.7064 GB, free: 2.117 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.4499/2.53, allocations: 51.99 MB / 0.7571 GB, free: 58.21 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.009113/2.539, allocations: 3.519 MB / 0.7606 GB, free: 57.41 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.005348/2.545, allocations: 0.8045 MB / 0.7614 GB, free: 57.37 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.007419/2.552, allocations: 2.096 MB / 0.7634 GB, free: 57.36 MB / 442.7 MB Notification: Performance of SimCode: time 1.894e-06/2.552, allocations: 0 / 0.7634 GB, free: 57.36 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3007/2.853, allocations: 92.79 MB / 0.854 GB, free: 25.87 MB / 442.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002605/2.853, allocations: 220.2 kB / 0.8542 GB, free: 25.63 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.679/9.532, allocations: 0 / 0.8542 GB, free: 25.63 MB / 442.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter_res.mat does not exist to compare? outputFormat=mat