Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.1_Modelica.Electrical.Spice3.Examples.FourInverters.conf.json Using package ModelicaServices with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.FourInverters,fileNamePrefix="Modelica_3_2_1_Modelica_Electrical_Spice3_Examples_FourInverters",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.663/1.663, allocations: 171.2 MB / 186.1 MB, free: 1.125 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003607/0.0003607, allocations: 12 kB / 233.4 MB, free: 2.266 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08279/0.08318, allocations: 38.76 MB / 272.1 MB, free: 11.43 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.401/0.4843, allocations: 94.2 MB / 366.3 MB, free: 11.29 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002379/0.4846, allocations: 75.22 kB / 366.4 MB, free: 11.25 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.8649/1.349, allocations: 196.6 MB / 0.5498 GB, free: 13.01 MB / 362.7 MB Notification: Performance of FrontEnd: time 3.336e-06/1.35, allocations: 0 / 0.5498 GB, free: 13.01 MB / 362.7 MB Notification: Performance of Transformations before backend: time 0.0001782/1.35, allocations: 88 kB / 0.5499 GB, free: 12.93 MB / 362.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 288 * Number of variables: 288 Notification: Performance of Generate backend data structure: time 0.01753/1.367, allocations: 6.069 MB / 0.5558 GB, free: 6.773 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.267e-05/1.367, allocations: 8.031 kB / 0.5558 GB, free: 6.766 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0006749/1.368, allocations: 161.2 kB / 0.556 GB, free: 6.598 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001717/1.37, allocations: 0.7526 MB / 0.5567 GB, free: 5.836 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01424/1.384, allocations: 4.559 MB / 0.5611 GB, free: 1.195 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001023/1.384, allocations: 69.94 kB / 0.5612 GB, free: 1.125 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004755/1.385, allocations: 103.8 kB / 0.5613 GB, free: 1.023 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.272/1.657, allocations: 1.532 MB / 0.5628 GB, free: 44.86 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.102e-05/1.657, allocations: 0 / 0.5628 GB, free: 44.86 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002139/1.657, allocations: 38.34 kB / 0.5628 GB, free: 44.86 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.932e-05/1.657, allocations: 40.12 kB / 0.5629 GB, free: 44.86 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004648/1.662, allocations: 1.517 MB / 0.5644 GB, free: 44.86 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01653/1.678, allocations: 5.864 MB / 0.5701 GB, free: 44.18 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003044/1.681, allocations: 1.019 MB / 0.5711 GB, free: 44.15 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1152/1.797, allocations: 71.59 MB / 0.641 GB, free: 23.69 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00214/1.799, allocations: 0.5756 MB / 0.6416 GB, free: 23.63 MB / 394.7 MB Notification: Performance of pre-optimization done (n=85): time 5.36e-06/1.799, allocations: 3.844 kB / 0.6416 GB, free: 23.63 MB / 394.7 MB Notification: Performance of matching and sorting (n=85): time 0.008131/1.807, allocations: 2.585 MB / 0.6441 GB, free: 22.45 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0003639/1.807, allocations: 484.1 kB / 0.6445 GB, free: 21.88 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01473/1.822, allocations: 4.864 MB / 0.6493 GB, free: 21.46 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000274/1.822, allocations: 46.8 kB / 0.6493 GB, free: 21.43 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003484/1.826, allocations: 2.928 MB / 0.6522 GB, free: 21.09 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005186/1.826, allocations: 298.8 kB / 0.6525 GB, free: 20.94 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000127/1.827, allocations: 32.62 kB / 0.6525 GB, free: 20.94 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001913/1.827, allocations: 366 kB / 0.6529 GB, free: 20.64 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00139/1.828, allocations: 421.5 kB / 0.6533 GB, free: 20.63 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00177/1.83, allocations: 1.198 MB / 0.6544 GB, free: 19.64 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001754/1.832, allocations: 0.5855 MB / 0.655 GB, free: 19.63 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.712e-05/1.832, allocations: 7.031 kB / 0.655 GB, free: 19.63 MB / 394.7 MB Notification: Performance of matching and sorting (n=200) (initialization): time 0.0057/1.838, allocations: 2.246 MB / 0.6572 GB, free: 19.23 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.94e-05/1.838, allocations: 14 kB / 0.6572 GB, free: 19.23 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003016/1.838, allocations: 165.6 kB / 0.6574 GB, free: 19.23 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 5.731e-05/1.838, allocations: 36.62 kB / 0.6574 GB, free: 19.23 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002193/1.84, allocations: 369.9 kB / 0.6578 GB, free: 19.23 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.945e-05/1.84, allocations: 54.61 kB / 0.6578 GB, free: 19.22 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003708/1.844, allocations: 204.6 kB / 0.658 GB, free: 19.18 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003614/1.844, allocations: 124.7 kB / 0.6581 GB, free: 19.18 MB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 108 * Number of states: 0 () * Number of discrete variables: 14 ($PRE.vin.counter,vin.counter,$PRE.v.counter,v.counter,$whenCondition2,$whenCondition1,$PRE.vin.T0,vin.T0,$PRE.vin.counter2,vin.counter2,$PRE.v.T0,v.T0,$PRE.v.counter2,v.counter2) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (184): * Single equations (assignments): 176 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 8 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002715/1.847, allocations: 0.7229 MB / 0.6588 GB, free: 19.06 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001361/1.848, allocations: 0.7229 MB / 0.6595 GB, free: 18.69 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009372/1.858, allocations: 2.283 MB / 0.6618 GB, free: 18.56 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.798e-05/1.858, allocations: 8.25 kB / 0.6618 GB, free: 18.56 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.266e-06/1.858, allocations: 0 / 0.6618 GB, free: 18.56 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.369e-05/1.858, allocations: 14.47 kB / 0.6618 GB, free: 18.55 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01038/1.868, allocations: 3.877 MB / 0.6656 GB, free: 18.09 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0002668/1.869, allocations: 136 kB / 0.6657 GB, free: 18.09 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001402/1.87, allocations: 170.8 kB / 0.6659 GB, free: 18.08 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.296e-05/1.87, allocations: 7.109 kB / 0.6659 GB, free: 18.08 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001496/1.87, allocations: 64.41 kB / 0.6659 GB, free: 18.08 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.576e-06/1.87, allocations: 3.281 kB / 0.6659 GB, free: 18.08 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.715e-06/1.87, allocations: 0 / 0.6659 GB, free: 18.08 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005627/1.876, allocations: 2.319 MB / 0.6682 GB, free: 17.38 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002743/1.879, allocations: 0.9356 MB / 0.6691 GB, free: 16.84 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001529/1.88, allocations: 17.94 kB / 0.6691 GB, free: 16.84 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003165/1.884, allocations: 53.89 kB / 0.6692 GB, free: 16.84 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004422/1.884, allocations: 99.09 kB / 0.6693 GB, free: 16.84 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001898/1.884, allocations: 70.44 kB / 0.6694 GB, free: 16.84 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.009143/1.893, allocations: 3.716 MB / 0.673 GB, free: 15.95 MB / 394.7 MB Notification: Performance of sort global known variables: time 7.01e-07/1.893, allocations: 3.344 kB / 0.673 GB, free: 15.95 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.004416/1.898, allocations: 1.168 MB / 0.6741 GB, free: 15.89 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 4 (c1.vinternal,c2.vinternal,c3.vinternal,c4.vinternal) * Number of discrete variables: 8 ($whenCondition2,$whenCondition1,vin.T0,vin.counter,vin.counter2,v.T0,v.counter,v.counter2) * Number of discrete states: 4 (vin.counter2,v.counter2,vin.counter,v.counter) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (70): * Single equations (assignments): 56 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 8 * When equations: 6 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.009148/1.907, allocations: 4.097 MB / 0.6781 GB, free: 14.22 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.004219/1.911, allocations: 1.471 MB / 0.6796 GB, free: 13.38 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 8.707e-06/1.911, allocations: 4 kB / 0.6796 GB, free: 13.38 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002311/1.914, allocations: 0.7901 MB / 0.6803 GB, free: 28.61 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005517/1.919, allocations: 0.9636 MB / 0.6813 GB, free: 27.79 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3918/2.311, allocations: 59.82 MB / 0.7397 GB, free: 65.27 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003316/2.314, allocations: 2.724 MB / 0.7424 GB, free: 64.49 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.004461/2.319, allocations: 0.7335 MB / 0.7431 GB, free: 64.44 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003902/2.323, allocations: 2.427 MB / 0.7455 GB, free: 64.44 MB / 410.7 MB Notification: Performance of SimCode: time 1.934e-06/2.323, allocations: 0 / 0.7455 GB, free: 64.44 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5486/2.872, allocations: 107.5 MB / 0.8504 GB, free: 67.84 MB / 410.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002764/2.872, allocations: 200.6 kB / 0.8506 GB, free: 67.59 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.403/12.28, allocations: 0 / 0.8506 GB, free: 67.59 MB / 410.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.1_Modelica.Electrical.Spice3.Examples.FourInverters_res.mat does not exist to compare? outputFormat=mat