Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.2_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.conf.json Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Running command: translateModel(Modelica.Electrical.Spice3.Examples.InvertersExtendedModel,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|mp1.S.v|mp2.S.v|v.p.v",fileNamePrefix="Modelica_3.2.2_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel") Notification: Performance of loadModel(Modelica): time 2.094/2.094, allocations: 194.8 MB / 211.7 MB, free: 3.008 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.00038/0.0003801, allocations: 15.98 kB / 264.5 MB, free: 12.95 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09373/0.09414, allocations: 44.5 MB / 309 MB, free: 384 kB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4673/0.5615, allocations: 97.88 MB / 406.9 MB, free: 13.1 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003249/0.5619, allocations: 81.42 kB / 407 MB, free: 13.09 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5117/1.074, allocations: 127.3 MB / 0.5218 GB, free: 0.5859 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.615e-06/1.074, allocations: 0 / 0.5218 GB, free: 0.5859 MB / 410.7 MB Notification: Performance of Transformations before backend: time 8.062e-05/1.074, allocations: 48 kB / 0.5219 GB, free: 0.5391 MB / 410.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 154 * Number of variables: 154 Notification: Performance of Generate backend data structure: time 0.2862/1.36, allocations: 3.558 MB / 0.5253 GB, free: 78.82 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.903e-05/1.36, allocations: 9.312 kB / 0.5253 GB, free: 78.82 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001464/1.362, allocations: 415.8 kB / 0.5257 GB, free: 78.61 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007746/1.369, allocations: 2.465 MB / 0.5281 GB, free: 78.01 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.843e-05/1.369, allocations: 37.23 kB / 0.5282 GB, free: 78.01 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002269/1.37, allocations: 53.66 kB / 0.5282 GB, free: 78.01 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002415/1.372, allocations: 0.8616 MB / 0.5291 GB, free: 77.9 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.561e-05/1.372, allocations: 3.734 kB / 0.5291 GB, free: 77.9 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001213/1.372, allocations: 24.08 kB / 0.5291 GB, free: 77.9 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.985e-05/1.372, allocations: 20.97 kB / 0.5291 GB, free: 77.9 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00277/1.375, allocations: 0.8525 MB / 0.5299 GB, free: 77.89 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01047/1.386, allocations: 3.292 MB / 0.5332 GB, free: 77.36 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002121/1.388, allocations: 0.6124 MB / 0.5338 GB, free: 77.34 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.04614/1.434, allocations: 36.06 MB / 0.569 GB, free: 50.96 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00113/1.435, allocations: 395.5 kB / 0.5693 GB, free: 50.91 MB / 410.7 MB Notification: Performance of pre-optimization done (n=49): time 3.897e-06/1.435, allocations: 0 / 0.5693 GB, free: 50.91 MB / 410.7 MB Notification: Performance of matching and sorting (n=49): time 0.004011/1.439, allocations: 1.482 MB / 0.5708 GB, free: 50.29 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.119e-05/1.439, allocations: 275.5 kB / 0.5711 GB, free: 49.97 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005524/1.445, allocations: 3.186 MB / 0.5742 GB, free: 49.66 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001673/1.445, allocations: 37.11 kB / 0.5742 GB, free: 49.63 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001625/1.447, allocations: 1.583 MB / 0.5757 GB, free: 49.37 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002606/1.447, allocations: 166 kB / 0.5759 GB, free: 49.27 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.932e-05/1.447, allocations: 18 kB / 0.5759 GB, free: 49.27 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 7.946e-05/1.447, allocations: 338.8 kB / 0.5762 GB, free: 48.97 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009574/1.448, allocations: 258.4 kB / 0.5765 GB, free: 48.97 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001146/1.449, allocations: 0.6699 MB / 0.5771 GB, free: 48.45 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001059/1.45, allocations: 345.3 kB / 0.5775 GB, free: 48.45 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.038e-05/1.45, allocations: 3.656 kB / 0.5775 GB, free: 48.45 MB / 410.7 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.003615/1.454, allocations: 1.285 MB / 0.5787 GB, free: 48.22 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.166e-05/1.454, allocations: 18.64 kB / 0.5788 GB, free: 48.21 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001562/1.454, allocations: 82.91 kB / 0.5788 GB, free: 48.21 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.793e-05/1.454, allocations: 22.38 kB / 0.5789 GB, free: 48.21 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001258/1.456, allocations: 211.2 kB / 0.5791 GB, free: 48.21 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.936e-05/1.456, allocations: 26.39 kB / 0.5791 GB, free: 48.21 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002436/1.458, allocations: 129.8 kB / 0.5792 GB, free: 48.16 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001736/1.458, allocations: 70.03 kB / 0.5793 GB, free: 48.16 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 56 * 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 (102): * Single equations (assignments): 98 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * 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.001415/1.46, allocations: 454.8 kB / 0.5797 GB, free: 48.04 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009499/1.461, allocations: 403.3 kB / 0.5801 GB, free: 47.84 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005347/1.466, allocations: 1.303 MB / 0.5814 GB, free: 47.74 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.071e-05/1.466, allocations: 3.469 kB / 0.5814 GB, free: 47.74 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.164e-06/1.466, allocations: 0 / 0.5814 GB, free: 47.74 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.336e-06/1.466, allocations: 3.75 kB / 0.5814 GB, free: 47.74 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006349/1.472, allocations: 2.334 MB / 0.5836 GB, free: 47.34 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001409/1.473, allocations: 70.17 kB / 0.5837 GB, free: 47.34 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008564/1.474, allocations: 106.4 kB / 0.5838 GB, free: 47.34 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.063e-05/1.474, allocations: 3.531 kB / 0.5838 GB, free: 47.34 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.776e-05/1.474, allocations: 31.78 kB / 0.5839 GB, free: 47.34 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.065e-06/1.474, allocations: 6.172 kB / 0.5839 GB, free: 47.34 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.757e-06/1.474, allocations: 3.891 kB / 0.5839 GB, free: 47.34 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003986/1.478, allocations: 1.38 MB / 0.5852 GB, free: 46.95 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001772/1.479, allocations: 0.5163 MB / 0.5857 GB, free: 46.65 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007859/1.48, allocations: 17.56 kB / 0.5857 GB, free: 46.64 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001478/1.482, allocations: 42.36 kB / 0.5858 GB, free: 46.64 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002324/1.482, allocations: 67.5 kB / 0.5858 GB, free: 46.64 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000102/1.482, allocations: 33.25 kB / 0.5859 GB, free: 46.64 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.004031/1.486, allocations: 2.073 MB / 0.5879 GB, free: 46.46 MB / 410.7 MB Notification: Performance of sort global known variables: time 6.91e-07/1.486, allocations: 0 / 0.5879 GB, free: 46.46 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.002756/1.489, allocations: 0.6684 MB / 0.5885 GB, free: 46.43 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 2 (c1.vinternal,c2.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 (42): * Single equations (assignments): 32 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * 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.001609/1.491, allocations: 0.8675 MB / 0.5894 GB, free: 46.32 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.002423/1.493, allocations: 0.8647 MB / 0.5902 GB, free: 46.18 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 5.38e-06/1.493, allocations: 2.188 kB / 0.5902 GB, free: 46.18 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001125/1.494, allocations: 464.7 kB / 0.5907 GB, free: 46.05 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003001/1.497, allocations: 0.5151 MB / 0.5912 GB, free: 46.01 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008973/1.506, allocations: 5.142 MB / 0.5962 GB, free: 43.62 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001193/1.507, allocations: 1.786 MB / 0.5979 GB, free: 42.89 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.002035/1.51, allocations: 381 kB / 0.5983 GB, free: 42.86 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003718/1.51, allocations: 158 kB / 0.5985 GB, free: 42.85 MB / 410.7 MB Notification: Performance of SimCode: time 1.192e-06/1.51, allocations: 0 / 0.5985 GB, free: 42.85 MB / 410.7 MB Notification: Performance of Templates: time 0.08616/1.596, allocations: 32.86 MB / 0.6306 GB, free: 31.16 MB / 410.7 MB