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/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/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.684/1.684, allocations: 171.3 MB / 179.2 MB, free: 7.594 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 1.662e-05/1.689e-05, allocations: 4 kB / 222.5 MB, free: 8.711 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07098/0.07102, allocations: 38.77 MB / 261.3 MB, free: 1.855 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3181/0.3891, allocations: 93.46 MB / 354.7 MB, free: 11.12 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002323/0.3894, allocations: 70.39 kB / 354.8 MB, free: 11.09 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.7718/1.161, allocations: 189.8 MB / 0.5318 GB, free: 5.422 MB / 346.7 MB Notification: Performance of FrontEnd: time 3.339e-06/1.161, allocations: 0 / 0.5318 GB, free: 5.422 MB / 346.7 MB Notification: Performance of Transformations before backend: time 0.0002177/1.162, allocations: 88 kB / 0.5319 GB, free: 5.336 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.01554/1.177, allocations: 4.675 MB / 0.5365 GB, free: 0.5938 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.351e-05/1.177, allocations: 12.03 kB / 0.5365 GB, free: 0.582 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.2591/1.436, allocations: 0.7497 MB / 0.5372 GB, free: 38.97 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01319/1.449, allocations: 4.498 MB / 0.5416 GB, free: 38.27 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.295e-05/1.45, allocations: 37.84 kB / 0.5417 GB, free: 38.27 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005115/1.45, allocations: 72.25 kB / 0.5417 GB, free: 38.26 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.00333/1.453, allocations: 1.312 MB / 0.543 GB, free: 38.25 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003204/1.457, allocations: 1.317 MB / 0.5443 GB, free: 38.05 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.146e-05/1.457, allocations: 0 / 0.5443 GB, free: 38.05 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001753/1.457, allocations: 3.891 kB / 0.5443 GB, free: 38.05 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.248e-05/1.457, allocations: 39.61 kB / 0.5443 GB, free: 38.05 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01591/1.473, allocations: 5.656 MB / 0.5499 GB, free: 37.4 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001846/1.475, allocations: 0.8483 MB / 0.5507 GB, free: 37.38 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001952/1.477, allocations: 1.131 MB / 0.5518 GB, free: 37.34 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.09184/1.569, allocations: 71.88 MB / 0.622 GB, free: 16.85 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008758/1.57, allocations: 498.8 kB / 0.6225 GB, free: 16.79 MB / 378.7 MB Notification: Performance of pre-optimization done (n=85): time 5.205e-06/1.57, allocations: 0 / 0.6225 GB, free: 16.79 MB / 378.7 MB Notification: Performance of matching and sorting (n=85): time 0.003178/1.573, allocations: 1.426 MB / 0.6239 GB, free: 16.38 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0003017/1.573, allocations: 481.5 kB / 0.6243 GB, free: 15.81 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009039/1.582, allocations: 4.403 MB / 0.6286 GB, free: 15.39 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002309/1.583, allocations: 29.67 kB / 0.6287 GB, free: 15.36 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002357/1.585, allocations: 2.356 MB / 0.631 GB, free: 14.97 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004284/1.585, allocations: 289.1 kB / 0.6312 GB, free: 14.83 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.812e-05/1.585, allocations: 0 / 0.6312 GB, free: 14.83 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0002163/1.586, allocations: 379 kB / 0.6316 GB, free: 14.52 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000693/1.586, allocations: 316.4 kB / 0.6319 GB, free: 14.52 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001015/1.587, allocations: 1.084 MB / 0.633 GB, free: 13.52 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001106/1.589, allocations: 489.7 kB / 0.6334 GB, free: 13.51 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.686e-05/1.589, allocations: 6.062 kB / 0.6334 GB, free: 13.51 MB / 378.7 MB Notification: Performance of matching and sorting (n=200) (initialization): time 0.002884/1.591, allocations: 1.319 MB / 0.6347 GB, free: 13.43 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.201e-05/1.592, allocations: 15 kB / 0.6347 GB, free: 13.43 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002532/1.592, allocations: 161 kB / 0.6349 GB, free: 13.43 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 5.363e-05/1.592, allocations: 38.75 kB / 0.6349 GB, free: 13.43 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001411/1.593, allocations: 365.3 kB / 0.6353 GB, free: 13.43 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.608e-05/1.593, allocations: 53.73 kB / 0.6353 GB, free: 13.43 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00355/1.597, allocations: 173.8 kB / 0.6355 GB, free: 13.38 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003605/1.597, allocations: 127 kB / 0.6356 GB, free: 13.38 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 () * 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.0004004/1.598, allocations: 176.2 kB / 0.6358 GB, free: 13.27 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001486/1.599, allocations: 0.7246 MB / 0.6365 GB, free: 12.9 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007783/1.607, allocations: 2.088 MB / 0.6385 GB, free: 12.76 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.636e-05/1.607, allocations: 10.19 kB / 0.6385 GB, free: 12.76 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.386e-06/1.607, allocations: 2.625 kB / 0.6385 GB, free: 12.76 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.047e-05/1.607, allocations: 3.234 kB / 0.6385 GB, free: 12.76 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008478/1.616, allocations: 3.547 MB / 0.642 GB, free: 12.36 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.00022/1.616, allocations: 139.3 kB / 0.6421 GB, free: 12.36 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009161/1.617, allocations: 169.7 kB / 0.6423 GB, free: 12.36 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.133e-05/1.617, allocations: 5.906 kB / 0.6423 GB, free: 12.36 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001266/1.617, allocations: 49.94 kB / 0.6423 GB, free: 12.36 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.17e-06/1.617, allocations: 8.25 kB / 0.6424 GB, free: 12.36 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.65e-06/1.617, allocations: 0 / 0.6424 GB, free: 12.36 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004121/1.621, allocations: 2.059 MB / 0.6444 GB, free: 27.66 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002799/1.624, allocations: 0.9313 MB / 0.6453 GB, free: 27.13 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001772/1.626, allocations: 13.19 kB / 0.6453 GB, free: 27.13 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003158/1.629, allocations: 37.8 kB / 0.6453 GB, free: 27.13 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003781/1.629, allocations: 102.2 kB / 0.6454 GB, free: 27.13 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001709/1.63, allocations: 69.48 kB / 0.6455 GB, free: 27.13 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.007797/1.637, allocations: 3.258 MB / 0.6487 GB, free: 26.88 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.249e-06/1.637, allocations: 3.938 kB / 0.6487 GB, free: 26.88 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.004038/1.641, allocations: 1.12 MB / 0.6498 GB, free: 26.84 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) * 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.002116/1.644, allocations: 1.313 MB / 0.651 GB, free: 26.45 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.002216/1.646, allocations: 1.254 MB / 0.6523 GB, free: 25.49 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 5.844e-06/1.646, allocations: 0 / 0.6523 GB, free: 25.49 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001107/1.647, allocations: 0.6975 MB / 0.653 GB, free: 24.89 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005048/1.652, allocations: 0.9408 MB / 0.6539 GB, free: 24.42 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01227/1.664, allocations: 6.108 MB / 0.6598 GB, free: 19.32 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002909/1.667, allocations: 2.73 MB / 0.6625 GB, free: 17.44 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007064/1.668, allocations: 315.4 kB / 0.6628 GB, free: 17.13 MB / 394.7 MB Notification: Performance of SimCode: time 2.567e-06/1.668, allocations: 0 / 0.6628 GB, free: 17.13 MB / 394.7 MB Notification: Performance of Templates: time 0.3417/2.01, allocations: 68.74 MB / 0.7299 GB, free: 75 MB / 394.7 MB