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.1 MB / 186.7 MB, free: 1.035 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003567/0.0003568, allocations: 8 kB / 233.2 MB, free: 3 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07123/0.07161, allocations: 38.76 MB / 272 MB, free: 12.16 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3265/0.3982, allocations: 94.21 MB / 366.2 MB, free: 11.98 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002361/0.3985, allocations: 74.53 kB / 366.3 MB, free: 11.94 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.7537/1.152, allocations: 196.6 MB / 0.5497 GB, free: 13.62 MB / 362.7 MB Notification: Performance of FrontEnd: time 3.038e-06/1.152, allocations: 0 / 0.5497 GB, free: 13.62 MB / 362.7 MB Notification: Performance of Transformations before backend: time 0.0001498/1.152, allocations: 88 kB / 0.5497 GB, free: 13.54 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.01451/1.167, allocations: 6.065 MB / 0.5557 GB, free: 7.383 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.537e-05/1.167, allocations: 8.031 kB / 0.5557 GB, free: 7.375 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001525/1.169, allocations: 0.7487 MB / 0.5564 GB, free: 6.617 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01175/1.18, allocations: 4.559 MB / 0.5608 GB, free: 1.977 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001029/1.18, allocations: 69.98 kB / 0.5609 GB, free: 1.906 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004087/1.181, allocations: 103.8 kB / 0.561 GB, free: 1.805 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003674/1.185, allocations: 1.527 MB / 0.5625 GB, free: 212 kB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.014e-05/1.185, allocations: 3.984 kB / 0.5625 GB, free: 208 kB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002036/1.185, allocations: 43.98 kB / 0.5626 GB, free: 164 kB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.465e-05/1.185, allocations: 39.98 kB / 0.5626 GB, free: 124 kB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.2238/1.409, allocations: 1.518 MB / 0.5641 GB, free: 45.82 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01468/1.423, allocations: 5.859 MB / 0.5698 GB, free: 45.15 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002482/1.426, allocations: 1.018 MB / 0.5708 GB, free: 45.12 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.08229/1.508, allocations: 71.59 MB / 0.6407 GB, free: 24.66 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001228/1.51, allocations: 0.5841 MB / 0.6413 GB, free: 24.6 MB / 394.7 MB Notification: Performance of pre-optimization done (n=85): time 4.824e-06/1.51, allocations: 0 / 0.6413 GB, free: 24.6 MB / 394.7 MB Notification: Performance of matching and sorting (n=85): time 0.004783/1.514, allocations: 2.579 MB / 0.6438 GB, free: 23.41 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002968/1.515, allocations: 480.7 kB / 0.6442 GB, free: 22.85 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01028/1.525, allocations: 4.871 MB / 0.649 GB, free: 22.43 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002207/1.525, allocations: 42.89 kB / 0.649 GB, free: 22.4 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0025/1.528, allocations: 2.357 MB / 0.6513 GB, free: 22.02 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004137/1.528, allocations: 300.3 kB / 0.6516 GB, free: 21.88 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001099/1.528, allocations: 27.28 kB / 0.6517 GB, free: 21.88 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0002092/1.529, allocations: 374.5 kB / 0.652 GB, free: 21.56 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001083/1.53, allocations: 423.9 kB / 0.6524 GB, free: 21.55 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001391/1.531, allocations: 1.199 MB / 0.6536 GB, free: 20.57 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00146/1.533, allocations: 0.5843 MB / 0.6542 GB, free: 20.55 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.561e-05/1.533, allocations: 7.531 kB / 0.6542 GB, free: 20.55 MB / 394.7 MB Notification: Performance of matching and sorting (n=200) (initialization): time 0.003641/1.536, allocations: 1.637 MB / 0.6558 GB, free: 20.46 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.295e-05/1.536, allocations: 15.75 kB / 0.6558 GB, free: 20.46 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002557/1.537, allocations: 165 kB / 0.6559 GB, free: 20.46 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 5.114e-05/1.537, allocations: 37.75 kB / 0.656 GB, free: 20.46 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001542/1.538, allocations: 372.2 kB / 0.6563 GB, free: 20.46 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.609e-05/1.538, allocations: 52.62 kB / 0.6564 GB, free: 20.46 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003347/1.542, allocations: 207.5 kB / 0.6566 GB, free: 20.41 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003547/1.542, allocations: 126.3 kB / 0.6567 GB, free: 20.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.002852/1.545, allocations: 0.7276 MB / 0.6574 GB, free: 20.3 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001077/1.546, allocations: 0.7235 MB / 0.6581 GB, free: 19.92 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007834/1.554, allocations: 2.274 MB / 0.6603 GB, free: 19.79 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.557e-05/1.554, allocations: 7.094 kB / 0.6603 GB, free: 19.79 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.533e-06/1.554, allocations: 6.516 kB / 0.6604 GB, free: 19.79 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.944e-06/1.554, allocations: 0 / 0.6604 GB, free: 19.79 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009709/1.564, allocations: 3.878 MB / 0.6641 GB, free: 19.32 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.00022/1.564, allocations: 140.2 kB / 0.6643 GB, free: 19.32 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00101/1.565, allocations: 162 kB / 0.6644 GB, free: 19.32 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.855e-06/1.565, allocations: 3.594 kB / 0.6644 GB, free: 19.32 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001441/1.565, allocations: 64.08 kB / 0.6645 GB, free: 19.32 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.586e-06/1.565, allocations: 6.875 kB / 0.6645 GB, free: 19.32 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.563e-06/1.565, allocations: 7.312 kB / 0.6645 GB, free: 19.32 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004615/1.57, allocations: 2.317 MB / 0.6668 GB, free: 18.61 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002567/1.572, allocations: 0.9364 MB / 0.6677 GB, free: 18.08 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001347/1.574, allocations: 21.3 kB / 0.6677 GB, free: 18.07 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002385/1.576, allocations: 55.17 kB / 0.6678 GB, free: 18.07 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002982/1.577, allocations: 98.48 kB / 0.6678 GB, free: 18.07 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001554/1.577, allocations: 63.8 kB / 0.6679 GB, free: 18.07 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.008766/1.585, allocations: 3.718 MB / 0.6715 GB, free: 17.54 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.016e-06/1.585, allocations: 6.719 kB / 0.6715 GB, free: 17.54 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.003983/1.589, allocations: 1.169 MB / 0.6727 GB, free: 17.48 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.00222/1.592, allocations: 1.241 MB / 0.6739 GB, free: 17.36 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.003399/1.595, allocations: 1.474 MB / 0.6753 GB, free: 16.83 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 7.501e-06/1.595, allocations: 0 / 0.6753 GB, free: 16.83 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001503/1.597, allocations: 0.791 MB / 0.6761 GB, free: 16.46 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004621/1.601, allocations: 0.9607 MB / 0.6771 GB, free: 16.05 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0158/1.617, allocations: 9.357 MB / 0.6862 GB, free: 7.965 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003047/1.62, allocations: 2.722 MB / 0.6888 GB, free: 6.09 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007009/1.621, allocations: 315.4 kB / 0.6891 GB, free: 5.781 MB / 394.7 MB Notification: Performance of SimCode: time 1.886e-06/1.621, allocations: 0 / 0.6891 GB, free: 5.781 MB / 394.7 MB Notification: Performance of Templates: time 0.3442/1.965, allocations: 68.95 MB / 0.7565 GB, free: 79.63 MB / 410.7 MB