Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.2_cpp_Modelica.Electrical.Spice3.Examples.FourInverters.conf.json Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Running command: translateModel(Modelica.Electrical.Spice3.Examples.FourInverters,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|mp1.S.v|mp2.S.v|mp3.S.v|mp4.S.v|v.p.v",fileNamePrefix="Modelica_3.2.2_cpp_Modelica.Electrical.Spice3.Examples.FourInverters") Notification: Performance of loadModel(Modelica): time 1.891/1.891, allocations: 194.9 MB / 211.7 MB, free: 2.984 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003492/0.0003492, allocations: 8 kB / 263.8 MB, free: 13.61 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07959/0.07996, allocations: 44.51 MB / 308.3 MB, free: 1.031 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.FourInverters): time 0.02774/0.1077, allocations: 20.44 MB / 328.8 MB, free: 12.54 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.03362/0.1414, allocations: 18.73 MB / 347.5 MB, free: 9.75 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004911/0.1464, allocations: 51.69 kB / 347.6 MB, free: 9.699 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.004984/0.1514, allocations: 1.282 MB / 348.9 MB, free: 8.41 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01142/0.1629, allocations: 2.976 MB / 351.8 MB, free: 5.426 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.005627/0.1685, allocations: 1.274 MB / 353.1 MB, free: 4.148 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.02503/0.1936, allocations: 10.75 MB / 363.9 MB, free: 9.375 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001909/0.1956, allocations: 0.795 MB / 364.7 MB, free: 8.547 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002964/0.1985, allocations: 1.559 MB / 366.2 MB, free: 6.98 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003585/0.2022, allocations: 1.875 MB / 368.1 MB, free: 5.094 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0007468/0.203, allocations: 76 kB / 368.2 MB, free: 5.02 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00567/0.2086, allocations: 1.257 MB / 369.4 MB, free: 3.762 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0009398/0.2096, allocations: 0.5039 MB / 369.9 MB, free: 3.254 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.002106/0.2117, allocations: 1.182 MB / 371.1 MB, free: 2.062 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.2229/0.4346, allocations: 4.634 MB / 375.7 MB, free: 22.7 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.569e-06/0.4347, allocations: 1.031 kB / 375.7 MB, free: 22.7 MB / 314.7 MB Notification: Performance of FrontEnd: time 3.029e-06/0.4347, allocations: 1.688 kB / 375.7 MB, free: 22.7 MB / 314.7 MB Notification: Performance of Transformations before backend: time 0.0002239/0.4349, allocations: 0 / 375.7 MB, free: 22.7 MB / 314.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.01196/0.4469, allocations: 5.868 MB / 381.6 MB, free: 19.37 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.244e-05/0.447, allocations: 12.59 kB / 381.6 MB, free: 19.37 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001644/0.4486, allocations: 0.7482 MB / 382.4 MB, free: 18.98 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01046/0.4591, allocations: 4.312 MB / 386.7 MB, free: 17.93 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.667e-05/0.4592, allocations: 68.59 kB / 386.8 MB, free: 17.93 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004033/0.4597, allocations: 101.8 kB / 386.9 MB, free: 17.93 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003171/0.4628, allocations: 1.316 MB / 388.2 MB, free: 17.86 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.255e-05/0.4629, allocations: 0 / 388.2 MB, free: 17.86 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001774/0.4631, allocations: 33.19 kB / 388.2 MB, free: 17.86 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.079e-05/0.4632, allocations: 41.31 kB / 388.2 MB, free: 17.86 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003583/0.4668, allocations: 1.524 MB / 389.8 MB, free: 17.84 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01367/0.4805, allocations: 5.644 MB / 395.4 MB, free: 16.75 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002412/0.4829, allocations: 1.017 MB / 396.4 MB, free: 16.62 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.07531/0.5583, allocations: 60.25 MB / 456.7 MB, free: 6.762 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001411/0.5597, allocations: 0.5711 MB / 457.2 MB, free: 6.289 MB / 362.7 MB Notification: Performance of pre-optimization done (n=85): time 4.682e-06/0.5598, allocations: 0 / 457.2 MB, free: 6.289 MB / 362.7 MB Notification: Performance of matching and sorting (n=85): time 0.005657/0.5654, allocations: 2.578 MB / 459.8 MB, free: 3.863 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.717e-05/0.5656, allocations: 69.95 kB / 459.9 MB, free: 3.789 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0117/0.5773, allocations: 5.548 MB / 465.4 MB, free: 15.69 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002681/0.5776, allocations: 39.2 kB / 465.5 MB, free: 15.66 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002487/0.5801, allocations: 2.37 MB / 467.9 MB, free: 15 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000528/0.5806, allocations: 298.1 kB / 468.1 MB, free: 14.75 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001153/0.5808, allocations: 26.56 kB / 468.2 MB, free: 14.75 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0002181/0.581, allocations: 369 kB / 468.5 MB, free: 14.4 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001203/0.5822, allocations: 421 kB / 468.9 MB, free: 14.11 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00175/0.584, allocations: 1.109 MB / 470 MB, free: 12.84 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001407/0.5854, allocations: 0.5673 MB / 470.6 MB, free: 12.47 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.735e-05/0.5855, allocations: 8 kB / 470.6 MB, free: 12.46 MB / 378.7 MB Notification: Performance of matching and sorting (n=200) (initialization): time 0.003991/0.5895, allocations: 1.636 MB / 472.3 MB, free: 11.31 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.957e-05/0.5895, allocations: 12 kB / 472.3 MB, free: 11.3 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002927/0.5898, allocations: 166.1 kB / 472.4 MB, free: 11.14 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 6.091e-05/0.5899, allocations: 36 kB / 472.5 MB, free: 11.11 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001526/0.5915, allocations: 371.5 kB / 472.8 MB, free: 10.78 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.911e-05/0.5915, allocations: 55.92 kB / 472.9 MB, free: 10.74 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003211/0.5948, allocations: 195.8 kB / 473.1 MB, free: 10.57 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000474/0.5953, allocations: 125.2 kB / 473.2 MB, free: 10.46 MB / 378.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.002474/0.5978, allocations: 0.7128 MB / 473.9 MB, free: 9.938 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001661/0.5994, allocations: 0.7179 MB / 474.6 MB, free: 9.211 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008457/0.6079, allocations: 2.254 MB / 476.9 MB, free: 6.965 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.87e-05/0.608, allocations: 8 kB / 476.9 MB, free: 6.957 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.209e-06/0.608, allocations: 3.938 kB / 476.9 MB, free: 6.953 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.368e-05/0.608, allocations: 10.34 kB / 476.9 MB, free: 6.945 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01021/0.6182, allocations: 3.651 MB / 480.6 MB, free: 3.25 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0002593/0.6185, allocations: 136 kB / 480.7 MB, free: 3.117 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009898/0.6195, allocations: 172 kB / 480.9 MB, free: 2.957 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.309e-05/0.6196, allocations: 3.953 kB / 480.9 MB, free: 2.953 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001629/0.6197, allocations: 62.17 kB / 480.9 MB, free: 2.895 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.558e-06/0.6198, allocations: 4 kB / 480.9 MB, free: 2.891 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.766e-06/0.6198, allocations: 0 / 480.9 MB, free: 2.891 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005551/0.6253, allocations: 2.229 MB / 483.2 MB, free: 0.6406 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002696/0.6281, allocations: 0.7928 MB / 483.9 MB, free: 15.82 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001166/0.6293, allocations: 27.94 kB / 484 MB, free: 15.79 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002043/0.6313, allocations: 39.97 kB / 484 MB, free: 15.75 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003369/0.6317, allocations: 96.47 kB / 484.1 MB, free: 15.66 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001955/0.6319, allocations: 71.98 kB / 484.2 MB, free: 15.59 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.008643/0.6406, allocations: 3.563 MB / 487.7 MB, free: 12.06 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.088e-06/0.6406, allocations: 0 / 487.7 MB, free: 12.06 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.00406/0.6447, allocations: 1.085 MB / 488.8 MB, free: 10.97 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.002194/0.6469, allocations: 1.113 MB / 489.9 MB, free: 10.09 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.003811/0.6508, allocations: 1.466 MB / 491.4 MB, free: 8.641 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 6.913e-06/0.6508, allocations: 4.125 kB / 491.4 MB, free: 8.637 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001722/0.6525, allocations: 0.7866 MB / 492.2 MB, free: 7.812 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005074/0.6577, allocations: 0.9286 MB / 493.1 MB, free: 6.883 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01901/0.6767, allocations: 9.316 MB / 0.4907 GB, free: 13.54 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003477/0.6802, allocations: 2.726 MB / 0.4933 GB, free: 10.79 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008547/0.6811, allocations: 291.4 kB / 0.4936 GB, free: 10.5 MB / 410.7 MB Notification: Performance of SimCode: time 1.731e-06/0.6811, allocations: 0 / 0.4936 GB, free: 10.5 MB / 410.7 MB Notification: Performance of Templates: time 0.3303/1.011, allocations: 67.75 MB / 0.5598 GB, free: 134.3 MB / 426.7 MB