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: 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_Modelica.Electrical.Spice3.Examples.FourInverters") Notification: Performance of loadModel(Modelica): time 1.923/1.923, allocations: 171.2 MB / 186.7 MB, free: 1.031 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003578/0.0003578, allocations: 8 kB / 233.8 MB, free: 2.391 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08448/0.08487, allocations: 38.78 MB / 272.6 MB, free: 11.54 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3983/0.4833, allocations: 94.2 MB / 366.8 MB, free: 11.48 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002855/0.4836, allocations: 78.28 kB / 366.9 MB, free: 11.45 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.985/1.469, allocations: 196.6 MB / 0.5503 GB, free: 12.46 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.495e-06/1.469, allocations: 0 / 0.5503 GB, free: 12.46 MB / 362.7 MB Notification: Performance of Transformations before backend: time 0.0001851/1.469, allocations: 84 kB / 0.5503 GB, free: 12.38 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.01831/1.487, allocations: 6.058 MB / 0.5563 GB, free: 6.234 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.628e-05/1.487, allocations: 8.031 kB / 0.5563 GB, free: 6.227 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002057/1.489, allocations: 0.7565 MB / 0.557 GB, free: 5.461 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01437/1.504, allocations: 4.559 MB / 0.5615 GB, free: 0.8164 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001092/1.504, allocations: 66 kB / 0.5615 GB, free: 0.7539 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005572/1.504, allocations: 107.8 kB / 0.5616 GB, free: 0.6484 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.2687/1.773, allocations: 1.526 MB / 0.5631 GB, free: 46.64 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.538e-05/1.773, allocations: 6.75 kB / 0.5631 GB, free: 46.64 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002516/1.773, allocations: 38.58 kB / 0.5632 GB, free: 46.64 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.736e-05/1.774, allocations: 37.14 kB / 0.5632 GB, free: 46.64 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004926/1.778, allocations: 1.523 MB / 0.5647 GB, free: 46.63 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01883/1.797, allocations: 5.85 MB / 0.5704 GB, free: 45.97 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003413/1.801, allocations: 1.025 MB / 0.5714 GB, free: 45.93 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1233/1.924, allocations: 71.59 MB / 0.6413 GB, free: 25.48 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002575/1.927, allocations: 0.5824 MB / 0.6419 GB, free: 25.42 MB / 394.7 MB Notification: Performance of pre-optimization done (n=85): time 6.452e-06/1.927, allocations: 0 / 0.6419 GB, free: 25.42 MB / 394.7 MB Notification: Performance of matching and sorting (n=85): time 0.009895/1.937, allocations: 2.591 MB / 0.6444 GB, free: 24.23 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0003591/1.937, allocations: 483.5 kB / 0.6449 GB, free: 23.66 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.02037/1.958, allocations: 5.745 MB / 0.6505 GB, free: 23.2 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004305/1.958, allocations: 43.48 kB / 0.6505 GB, free: 23.17 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.005957/1.964, allocations: 2.934 MB / 0.6534 GB, free: 22.82 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007673/1.965, allocations: 293.7 kB / 0.6537 GB, free: 22.68 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002402/1.965, allocations: 27.34 kB / 0.6537 GB, free: 22.68 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0003086/1.966, allocations: 369.2 kB / 0.654 GB, free: 22.38 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002324/1.968, allocations: 420.4 kB / 0.6544 GB, free: 22.38 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003141/1.971, allocations: 1.203 MB / 0.6556 GB, free: 21.39 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002839/1.974, allocations: 0.5811 MB / 0.6562 GB, free: 21.37 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.01e-05/1.974, allocations: 7.594 kB / 0.6562 GB, free: 21.37 MB / 394.7 MB Notification: Performance of matching and sorting (n=200) (initialization): time 0.009692/1.984, allocations: 2.251 MB / 0.6584 GB, free: 20.97 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.585e-05/1.984, allocations: 14.34 kB / 0.6584 GB, free: 20.97 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0005268/1.984, allocations: 163.3 kB / 0.6586 GB, free: 20.97 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.444e-05/1.985, allocations: 35.38 kB / 0.6586 GB, free: 20.97 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003441/1.988, allocations: 373.9 kB / 0.6589 GB, free: 20.96 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.146e-05/1.988, allocations: 50.97 kB / 0.659 GB, free: 20.96 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006189/1.994, allocations: 212 kB / 0.6592 GB, free: 20.91 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005215/1.995, allocations: 120.5 kB / 0.6593 GB, free: 20.91 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.00371/1.999, allocations: 0.7215 MB / 0.66 GB, free: 20.8 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002129/2.001, allocations: 0.7227 MB / 0.6607 GB, free: 20.43 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01347/2.014, allocations: 2.286 MB / 0.663 GB, free: 20.29 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.048e-05/2.014, allocations: 9.844 kB / 0.663 GB, free: 20.29 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.279e-05/2.014, allocations: 3.953 kB / 0.663 GB, free: 20.29 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.552e-05/2.014, allocations: 3.422 kB / 0.663 GB, free: 20.29 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01479/2.029, allocations: 3.882 MB / 0.6668 GB, free: 19.82 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0003977/2.03, allocations: 136.6 kB / 0.6669 GB, free: 19.82 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001995/2.032, allocations: 168.5 kB / 0.6671 GB, free: 19.81 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.439e-05/2.032, allocations: 3.969 kB / 0.6671 GB, free: 19.81 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000216/2.032, allocations: 62.86 kB / 0.6671 GB, free: 19.81 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.006e-05/2.032, allocations: 3.656 kB / 0.6671 GB, free: 19.81 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.422e-06/2.032, allocations: 6.078 kB / 0.6671 GB, free: 19.81 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008212/2.04, allocations: 2.217 MB / 0.6693 GB, free: 19.23 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00373/2.044, allocations: 0.9389 MB / 0.6702 GB, free: 18.68 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002146/2.046, allocations: 21.14 kB / 0.6702 GB, free: 18.68 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004659/2.051, allocations: 54.09 kB / 0.6703 GB, free: 18.68 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006385/2.052, allocations: 103.4 kB / 0.6704 GB, free: 18.68 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002673/2.052, allocations: 69.22 kB / 0.6704 GB, free: 18.68 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.014/2.066, allocations: 3.708 MB / 0.6741 GB, free: 17.48 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.102e-06/2.066, allocations: 3.312 kB / 0.6741 GB, free: 17.48 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.006499/2.073, allocations: 1.174 MB / 0.6752 GB, free: 17.42 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.004006/2.077, allocations: 1.238 MB / 0.6764 GB, free: 17.3 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.004347/2.081, allocations: 1.469 MB / 0.6779 GB, free: 16.77 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 7.303e-06/2.081, allocations: 3.031 kB / 0.6779 GB, free: 16.77 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001851/2.083, allocations: 0.787 MB / 0.6786 GB, free: 16.34 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00561/2.089, allocations: 0.9595 MB / 0.6796 GB, free: 15.52 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01952/2.108, allocations: 9.265 MB / 0.6886 GB, free: 7.02 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004023/2.112, allocations: 2.722 MB / 0.6913 GB, free: 5.145 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.004588/2.117, allocations: 0.729 MB / 0.692 GB, free: 4.75 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000829/2.118, allocations: 310.1 kB / 0.6923 GB, free: 4.449 MB / 394.7 MB Notification: Performance of SimCode: time 1.754e-06/2.118, allocations: 0 / 0.6923 GB, free: 4.449 MB / 394.7 MB Notification: Performance of Templates: time 0.4653/2.583, allocations: 54.69 MB / 0.7457 GB, free: 70.53 MB / 394.7 MB