Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/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@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/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.1_cpp_Modelica.Electrical.Spice3.Examples.FourInverters") Notification: Performance of loadModel(Modelica): time 1.556/1.556, allocations: 171.2 MB / 186.7 MB, free: 1.129 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0007316/0.0007315, allocations: 12 kB / 233.2 MB, free: 3.07 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06829/0.06907, allocations: 38.77 MB / 271.9 MB, free: 12.22 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.FourInverters): time 0.02859/0.0977, allocations: 20.45 MB / 292.4 MB, free: 7.707 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.21/0.3077, allocations: 18.7 MB / 311.1 MB, free: 7.363 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004965/0.3128, allocations: 58.12 kB / 311.1 MB, free: 7.34 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.004746/0.3175, allocations: 1.282 MB / 312.4 MB, free: 7.035 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01079/0.3284, allocations: 2.971 MB / 315.4 MB, free: 6.887 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.00612/0.3345, allocations: 1.281 MB / 316.7 MB, free: 6.812 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.02248/0.357, allocations: 10.76 MB / 327.4 MB, free: 4.086 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001668/0.3588, allocations: 0.7881 MB / 328.2 MB, free: 3.762 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002918/0.3617, allocations: 1.569 MB / 329.8 MB, free: 2.859 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002863/0.3646, allocations: 1.869 MB / 331.6 MB, free: 1.121 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0005865/0.3652, allocations: 76 kB / 331.7 MB, free: 1.047 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006045/0.3713, allocations: 1.253 MB / 333 MB, free: 15.93 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0009015/0.3722, allocations: 0.5106 MB / 333.5 MB, free: 15.5 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.002121/0.3744, allocations: 1.178 MB / 334.7 MB, free: 14.75 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.008263/0.3826, allocations: 4.649 MB / 339.3 MB, free: 10.52 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.869e-06/0.3827, allocations: 2.406 kB / 339.3 MB, free: 10.52 MB / 266.7 MB Notification: Performance of FrontEnd: time 2.858e-06/0.3827, allocations: 0 / 339.3 MB, free: 10.52 MB / 266.7 MB Notification: Performance of Transformations before backend: time 0.0001292/0.3828, allocations: 0 / 339.3 MB, free: 10.52 MB / 266.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.01111/0.394, allocations: 5.87 MB / 345.2 MB, free: 4.914 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.188e-05/0.394, allocations: 8.031 kB / 345.2 MB, free: 4.906 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001385/0.3954, allocations: 0.7448 MB / 345.9 MB, free: 4.152 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01044/0.4059, allocations: 4.305 MB / 350.2 MB, free: 15.94 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.284e-05/0.406, allocations: 66 kB / 350.3 MB, free: 15.87 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003402/0.4064, allocations: 95.91 kB / 350.4 MB, free: 15.78 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003322/0.4097, allocations: 1.328 MB / 351.7 MB, free: 14.43 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.663e-05/0.4098, allocations: 2.297 kB / 351.7 MB, free: 14.43 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001674/0.4099, allocations: 39.98 kB / 351.8 MB, free: 14.39 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.3e-05/0.41, allocations: 39.98 kB / 351.8 MB, free: 14.35 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003692/0.4137, allocations: 1.519 MB / 353.3 MB, free: 12.83 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01328/0.427, allocations: 5.637 MB / 359 MB, free: 7.109 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002567/0.4296, allocations: 1.035 MB / 360 MB, free: 6.066 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.08269/0.5124, allocations: 60.24 MB / 420.2 MB, free: 1.695 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001422/0.5138, allocations: 0.5841 MB / 420.8 MB, free: 1.098 MB / 346.7 MB Notification: Performance of pre-optimization done (n=85): time 7.012e-06/0.5138, allocations: 3.984 kB / 420.8 MB, free: 1.094 MB / 346.7 MB Notification: Performance of matching and sorting (n=85): time 0.005242/0.5191, allocations: 2.572 MB / 423.4 MB, free: 14.36 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.917e-05/0.5192, allocations: 59.97 kB / 423.5 MB, free: 14.29 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01068/0.5299, allocations: 5.563 MB / 429 MB, free: 8.762 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000192/0.5301, allocations: 37.7 kB / 429.1 MB, free: 8.719 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003062/0.5332, allocations: 2.363 MB / 431.4 MB, free: 6.344 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000507/0.5338, allocations: 295.9 kB / 431.7 MB, free: 6.051 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001146/0.5339, allocations: 32 kB / 431.7 MB, free: 6.02 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.000235/0.5341, allocations: 378.7 kB / 432.1 MB, free: 5.641 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001211/0.5354, allocations: 419.7 kB / 432.5 MB, free: 5.23 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001823/0.5372, allocations: 1.108 MB / 433.6 MB, free: 3.789 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001543/0.5388, allocations: 0.5647 MB / 434.2 MB, free: 3.227 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.896e-05/0.5388, allocations: 8 kB / 434.2 MB, free: 3.219 MB / 362.7 MB Notification: Performance of matching and sorting (n=200) (initialization): time 0.004261/0.5431, allocations: 1.64 MB / 435.8 MB, free: 1.574 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.552e-05/0.5432, allocations: 16 kB / 435.9 MB, free: 1.559 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002853/0.5435, allocations: 163.9 kB / 436 MB, free: 1.398 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 5.877e-05/0.5435, allocations: 36 kB / 436 MB, free: 1.363 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001547/0.5451, allocations: 367.6 kB / 436.4 MB, free: 1.004 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.636e-05/0.5452, allocations: 55.77 kB / 436.5 MB, free: 0.9492 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002487/0.5477, allocations: 196.4 kB / 436.7 MB, free: 0.7578 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003233/0.548, allocations: 127.6 kB / 436.8 MB, free: 0.6367 MB / 362.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.1854/0.7335, allocations: 0.7177 MB / 437.5 MB, free: 128.8 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001042/0.7345, allocations: 0.7191 MB / 438.2 MB, free: 128.5 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007668/0.7422, allocations: 2.241 MB / 440.5 MB, free: 128.4 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.79e-05/0.7423, allocations: 8.266 kB / 440.5 MB, free: 128.4 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.577e-06/0.7423, allocations: 4.5 kB / 440.5 MB, free: 128.4 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.221e-05/0.7423, allocations: 3 kB / 440.5 MB, free: 128.4 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007889/0.7502, allocations: 3.649 MB / 444.1 MB, free: 127.2 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.000241/0.7505, allocations: 139.1 kB / 444.3 MB, free: 127.2 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009376/0.7514, allocations: 162.2 kB / 444.4 MB, free: 127.2 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.226e-05/0.7515, allocations: 3.969 kB / 444.4 MB, free: 127.2 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001531/0.7516, allocations: 62.06 kB / 444.5 MB, free: 127.2 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.779e-06/0.7517, allocations: 3.562 kB / 444.5 MB, free: 127.2 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.33e-06/0.7517, allocations: 7.562 kB / 444.5 MB, free: 127.2 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004535/0.7562, allocations: 2.213 MB / 446.7 MB, free: 126.2 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001599/0.7579, allocations: 0.8039 MB / 447.5 MB, free: 125.7 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007097/0.7586, allocations: 16.45 kB / 447.5 MB, free: 125.7 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001691/0.7603, allocations: 42.84 kB / 447.6 MB, free: 125.7 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002831/0.7606, allocations: 101.4 kB / 447.7 MB, free: 125.7 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001766/0.7608, allocations: 71.38 kB / 447.7 MB, free: 125.7 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.007519/0.7683, allocations: 3.564 MB / 451.3 MB, free: 124.4 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.269e-06/0.7684, allocations: 0 / 451.3 MB, free: 124.4 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.002856/0.7712, allocations: 1.09 MB / 452.4 MB, free: 124.4 MB / 362.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.001814/0.7731, allocations: 1.109 MB / 453.5 MB, free: 124.2 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.003089/0.7762, allocations: 1.466 MB / 455 MB, free: 123.6 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 5.218e-06/0.7762, allocations: 0 / 455 MB, free: 123.6 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001478/0.7777, allocations: 0.7944 MB / 455.8 MB, free: 123.2 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003835/0.7816, allocations: 0.9283 MB / 456.7 MB, free: 122.8 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0141/0.7957, allocations: 9.323 MB / 466 MB, free: 117.1 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002026/0.7978, allocations: 2.718 MB / 468.7 MB, free: 114.3 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00062/0.7984, allocations: 291.4 kB / 469 MB, free: 114 MB / 362.7 MB Notification: Performance of SimCode: time 2.285e-06/0.7984, allocations: 0 / 469 MB, free: 114 MB / 362.7 MB Notification: Performance of Templates: time 0.09892/0.8974, allocations: 67.76 MB / 0.5242 GB, free: 46.23 MB / 362.7 MB