Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.1_cpp_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_cpp_Modelica_Electrical_Spice3_Examples_FourInverters",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.71/1.71, allocations: 171.1 MB / 186.7 MB, free: 1.121 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003438/0.0003437, allocations: 12 kB / 233.3 MB, free: 0.8398 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07962/0.07999, allocations: 38.77 MB / 272.1 MB, free: 9.988 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3826/0.4627, allocations: 94.2 MB / 366.3 MB, free: 4.633 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002921/0.463, allocations: 79.95 kB / 366.4 MB, free: 4.555 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.103/1.566, allocations: 196.6 MB / 0.5498 GB, free: 34.82 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.835e-06/1.566, allocations: 0 / 0.5498 GB, free: 34.82 MB / 346.7 MB Notification: Performance of Transformations before backend: time 0.0001651/1.567, allocations: 88.38 kB / 0.5498 GB, free: 34.82 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: 288 * Number of variables: 288 Notification: Performance of Generate backend data structure: time 0.01715/1.584, allocations: 6.068 MB / 0.5558 GB, free: 31.64 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.189e-05/1.584, allocations: 11.94 kB / 0.5558 GB, free: 31.64 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0007003/1.585, allocations: 161.4 kB / 0.5559 GB, free: 31.6 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00199/1.587, allocations: 0.7489 MB / 0.5567 GB, free: 31.21 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01384/1.6, allocations: 4.559 MB / 0.5611 GB, free: 30.16 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.556e-05/1.601, allocations: 68.22 kB / 0.5612 GB, free: 30.16 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005925/1.601, allocations: 105.5 kB / 0.5613 GB, free: 30.15 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003589/1.605, allocations: 1.531 MB / 0.5628 GB, free: 29.95 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.118e-05/1.605, allocations: 0 / 0.5628 GB, free: 29.95 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000195/1.605, allocations: 41.03 kB / 0.5628 GB, free: 29.95 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.68e-05/1.605, allocations: 37.67 kB / 0.5628 GB, free: 29.95 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003854/1.609, allocations: 1.522 MB / 0.5643 GB, free: 29.94 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01523/1.624, allocations: 5.867 MB / 0.5701 GB, free: 29.14 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002726/1.627, allocations: 1.024 MB / 0.5711 GB, free: 29.11 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.09649/1.723, allocations: 71.58 MB / 0.641 GB, free: 24.53 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001524/1.725, allocations: 0.5784 MB / 0.6415 GB, free: 24.47 MB / 394.7 MB Notification: Performance of pre-optimization done (n=85): time 3.877e-06/1.725, allocations: 0 / 0.6415 GB, free: 24.47 MB / 394.7 MB Notification: Performance of matching and sorting (n=85): time 0.006228/1.731, allocations: 2.578 MB / 0.6441 GB, free: 23.29 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002499/1.732, allocations: 486.3 kB / 0.6445 GB, free: 22.73 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01073/1.742, allocations: 4.868 MB / 0.6493 GB, free: 22.29 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002873/1.743, allocations: 46.23 kB / 0.6493 GB, free: 22.26 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002985/1.746, allocations: 2.352 MB / 0.6516 GB, free: 21.04 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.00056/1.746, allocations: 301.6 kB / 0.6519 GB, free: 20.81 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001435/1.746, allocations: 31.22 kB / 0.6519 GB, free: 20.79 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001855/1.747, allocations: 373.3 kB / 0.6523 GB, free: 20.45 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001477/1.748, allocations: 420.6 kB / 0.6527 GB, free: 20.33 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001823/1.75, allocations: 1.199 MB / 0.6539 GB, free: 19.18 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001688/1.752, allocations: 0.583 MB / 0.6544 GB, free: 18.98 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.691e-05/1.752, allocations: 6.656 kB / 0.6544 GB, free: 18.98 MB / 394.7 MB Notification: Performance of matching and sorting (n=200) (initialization): time 0.004435/1.756, allocations: 1.646 MB / 0.656 GB, free: 18.55 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.619e-05/1.756, allocations: 18.5 kB / 0.6561 GB, free: 18.55 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002987/1.757, allocations: 162.4 kB / 0.6562 GB, free: 18.55 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 5.519e-05/1.757, allocations: 35 kB / 0.6562 GB, free: 18.55 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002088/1.759, allocations: 366.3 kB / 0.6566 GB, free: 18.54 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.76e-05/1.759, allocations: 58.11 kB / 0.6567 GB, free: 18.54 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004061/1.763, allocations: 202.1 kB / 0.6568 GB, free: 18.42 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004142/1.763, allocations: 125.4 kB / 0.657 GB, free: 18.41 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.002703/1.766, allocations: 0.7257 MB / 0.6577 GB, free: 17.96 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001711/1.768, allocations: 0.7202 MB / 0.6584 GB, free: 17.55 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009214/1.777, allocations: 2.286 MB / 0.6606 GB, free: 15.84 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.602e-05/1.777, allocations: 10.69 kB / 0.6606 GB, free: 15.83 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.364e-06/1.777, allocations: 0 / 0.6606 GB, free: 15.83 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.26e-05/1.777, allocations: 2.109 kB / 0.6606 GB, free: 15.83 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01074/1.788, allocations: 3.886 MB / 0.6644 GB, free: 12.67 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0003007/1.788, allocations: 138.6 kB / 0.6645 GB, free: 12.54 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001418/1.79, allocations: 165 kB / 0.6647 GB, free: 12.42 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.459e-05/1.79, allocations: 4 kB / 0.6647 GB, free: 12.42 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001836/1.79, allocations: 59.52 kB / 0.6648 GB, free: 12.36 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.925e-06/1.79, allocations: 0 / 0.6648 GB, free: 12.36 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.774e-06/1.79, allocations: 15.19 kB / 0.6648 GB, free: 12.36 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006675/1.797, allocations: 2.313 MB / 0.667 GB, free: 10.14 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003232/1.8, allocations: 0.9401 MB / 0.668 GB, free: 9.258 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001943/1.802, allocations: 20 kB / 0.668 GB, free: 9.238 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003239/1.805, allocations: 49.44 kB / 0.668 GB, free: 9.203 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004591/1.806, allocations: 104.2 kB / 0.6681 GB, free: 9.129 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002067/1.806, allocations: 67.38 kB / 0.6682 GB, free: 9.066 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.009053/1.815, allocations: 3.713 MB / 0.6718 GB, free: 6.031 MB / 394.7 MB Notification: Performance of sort global known variables: time 4.51e-07/1.815, allocations: 0 / 0.6718 GB, free: 6.031 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.004826/1.82, allocations: 1.176 MB / 0.673 GB, free: 4.867 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.009844/1.83, allocations: 4.1 MB / 0.677 GB, free: 1.25 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.2596/2.089, allocations: 1.466 MB / 0.6784 GB, free: 80.19 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 1.129e-05/2.089, allocations: 1.094 kB / 0.6784 GB, free: 80.19 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002381/2.092, allocations: 0.7926 MB / 0.6792 GB, free: 79.94 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006726/2.098, allocations: 0.9603 MB / 0.6801 GB, free: 79.88 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1375/2.236, allocations: 59.93 MB / 0.7386 GB, free: 35.55 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00368/2.24, allocations: 2.72 MB / 0.7413 GB, free: 34.77 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005133/2.245, allocations: 2.443 MB / 0.7437 GB, free: 34.76 MB / 394.7 MB Notification: Performance of SimCode: time 1.553e-06/2.245, allocations: 0 / 0.7437 GB, free: 34.76 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.542/6.787, allocations: 93.24 MB / 0.8347 GB, free: 92.07 MB / 410.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.1_cpp_Modelica.Electrical.Spice3.Examples.FourInverters_res.mat does not exist to compare? outputFormat=mat