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.Inverter.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.Inverter,tolerance=1e-07,outputFormat="mat",numberOfIntervals=3998,variableFilter="time|mp.S.v",fileNamePrefix="Modelica_3.2.2_Modelica.Electrical.Spice3.Examples.Inverter") Notification: Performance of loadModel(Modelica): time 2.254/2.254, allocations: 194.8 MB / 211.7 MB, free: 3.012 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003506/0.0003509, allocations: 8 kB / 264.5 MB, free: 12.94 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09611/0.09649, allocations: 44.51 MB / 309 MB, free: 372 kB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5644/0.661, allocations: 97.55 MB / 406.6 MB, free: 13.17 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003146/0.6614, allocations: 74.06 kB / 406.7 MB, free: 13.16 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3544/1.016, allocations: 89.48 MB / 496.2 MB, free: 7.535 MB / 378.7 MB Notification: Performance of FrontEnd: time 3.146e-06/1.016, allocations: 3.938 kB / 496.2 MB, free: 7.531 MB / 378.7 MB Notification: Performance of Transformations before backend: time 5.705e-05/1.016, allocations: 28 kB / 496.2 MB, free: 7.504 MB / 378.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 80 * Number of variables: 80 Notification: Performance of Generate backend data structure: time 0.006154/1.022, allocations: 1.949 MB / 498.1 MB, free: 5.492 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.27e-05/1.022, allocations: 8.031 kB / 498.1 MB, free: 5.484 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004789/1.023, allocations: 193.7 kB / 498.3 MB, free: 5.293 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003545/1.026, allocations: 1.239 MB / 499.6 MB, free: 3.984 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.11e-05/1.026, allocations: 16.56 kB / 499.6 MB, free: 3.969 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000135/1.027, allocations: 28 kB / 499.6 MB, free: 3.941 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001675/1.028, allocations: 0.5025 MB / 0.4884 GB, free: 3.418 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.743e-05/1.028, allocations: 4 kB / 0.4884 GB, free: 3.414 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.656e-05/1.028, allocations: 8 kB / 0.4884 GB, free: 3.406 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.704e-05/1.028, allocations: 16 kB / 0.4884 GB, free: 3.391 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001988/1.03, allocations: 0.502 MB / 0.4889 GB, free: 2.891 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005039/1.035, allocations: 1.647 MB / 0.4905 GB, free: 1.172 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001739/1.037, allocations: 423.2 kB / 0.4909 GB, free: 0.75 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02988/1.067, allocations: 18.12 MB / 0.5086 GB, free: 12.04 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001064/1.068, allocations: 271.2 kB / 0.5089 GB, free: 11.77 MB / 410.7 MB Notification: Performance of pre-optimization done (n=29): time 4.108e-06/1.068, allocations: 0 / 0.5089 GB, free: 11.77 MB / 410.7 MB Notification: Performance of matching and sorting (n=29): time 0.003866/1.072, allocations: 0.9001 MB / 0.5097 GB, free: 10.84 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001353/1.072, allocations: 166.2 kB / 0.5099 GB, free: 10.64 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003097/1.075, allocations: 1.444 MB / 0.5113 GB, free: 9.156 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001208/1.076, allocations: 33.7 kB / 0.5113 GB, free: 9.117 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009885/1.077, allocations: 0.7188 MB / 0.5121 GB, free: 8.391 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001709/1.077, allocations: 106.7 kB / 0.5122 GB, free: 8.285 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.518e-05/1.077, allocations: 8 kB / 0.5122 GB, free: 8.277 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001635/1.077, allocations: 322 kB / 0.5125 GB, free: 7.957 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008492/1.078, allocations: 181 kB / 0.5126 GB, free: 7.781 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001032/1.079, allocations: 399.7 kB / 0.513 GB, free: 7.285 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008854/1.08, allocations: 220 kB / 0.5132 GB, free: 7.07 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.596e-06/1.08, allocations: 4 kB / 0.5132 GB, free: 7.066 MB / 410.7 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.002746/1.083, allocations: 0.7795 MB / 0.514 GB, free: 6.277 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.55e-05/1.083, allocations: 12 kB / 0.514 GB, free: 6.266 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001029/1.083, allocations: 43.98 kB / 0.5141 GB, free: 6.223 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004789/1.083, allocations: 132.8 kB / 0.5142 GB, free: 6.09 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008068/1.084, allocations: 123.8 kB / 0.5143 GB, free: 5.969 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001001/1.085, allocations: 0.6772 MB / 0.515 GB, free: 5.266 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00127/1.087, allocations: 87.55 kB / 0.515 GB, free: 5.18 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001109/1.087, allocations: 32 kB / 0.5151 GB, free: 5.148 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 30 * 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 (53): * Single equations (assignments): 52 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 5} Notification: Performance of prepare postOptimizeDAE: time 0.0008592/1.088, allocations: 283.9 kB / 0.5153 GB, free: 4.863 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000442/1.088, allocations: 189.7 kB / 0.5155 GB, free: 4.676 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003882/1.092, allocations: 0.8126 MB / 0.5163 GB, free: 3.852 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.461e-05/1.092, allocations: 7.938 kB / 0.5163 GB, free: 3.844 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.884e-06/1.092, allocations: 0 / 0.5163 GB, free: 3.844 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.128e-06/1.092, allocations: 3.984 kB / 0.5163 GB, free: 3.84 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004127/1.096, allocations: 1.378 MB / 0.5177 GB, free: 2.391 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.615e-05/1.096, allocations: 32 kB / 0.5177 GB, free: 2.359 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004842/1.097, allocations: 63.95 kB / 0.5178 GB, free: 2.297 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004093/1.097, allocations: 124.8 kB / 0.5179 GB, free: 2.172 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.289e-05/1.097, allocations: 16 kB / 0.5179 GB, free: 2.156 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000927/1.098, allocations: 0.6811 MB / 0.5186 GB, free: 1.449 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.786e-06/1.098, allocations: 4.031 kB / 0.5186 GB, free: 1.445 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002423/1.101, allocations: 0.7359 MB / 0.5193 GB, free: 0.6797 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007221/1.101, allocations: 282.7 kB / 0.5196 GB, free: 392 kB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003068/1.102, allocations: 12 kB / 0.5196 GB, free: 380 kB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008568/1.103, allocations: 39.95 kB / 0.5196 GB, free: 340 kB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001748/1.103, allocations: 39.95 kB / 0.5196 GB, free: 300 kB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.966e-05/1.103, allocations: 23.98 kB / 0.5197 GB, free: 276 kB / 410.7 MB Notification: Performance of sorting global known variables: time 0.3/1.403, allocations: 0.9453 MB / 0.5206 GB, free: 100.7 MB / 410.7 MB Notification: Performance of sort global known variables: time 6.61e-07/1.403, allocations: 2.312 kB / 0.5206 GB, free: 100.7 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.00156/1.404, allocations: 363.4 kB / 0.5209 GB, free: 100.7 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 0 () * 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 (21): * Single equations (assignments): 14 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 6 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 5} Notification: Performance of Backend phase and start with SimCode phase: time 0.001372/1.406, allocations: 0.6243 MB / 0.5215 GB, free: 100.6 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.002393/1.408, allocations: 0.5472 MB / 0.5221 GB, free: 100.5 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 4.949e-06/1.408, allocations: 3.656 kB / 0.5221 GB, free: 100.5 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00114/1.409, allocations: 308.8 kB / 0.5224 GB, free: 100.5 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001527/1.411, allocations: 247.5 kB / 0.5226 GB, free: 100.4 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005676/1.417, allocations: 2.497 MB / 0.5251 GB, free: 99.25 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000884/1.418, allocations: 1.187 MB / 0.5262 GB, free: 98.54 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.001239/1.419, allocations: 177.9 kB / 0.5264 GB, free: 98.53 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002161/1.419, allocations: 74.34 kB / 0.5265 GB, free: 98.52 MB / 410.7 MB Notification: Performance of SimCode: time 1.503e-06/1.419, allocations: 0 / 0.5265 GB, free: 98.52 MB / 410.7 MB Notification: Performance of Templates: time 0.05392/1.473, allocations: 18.78 MB / 0.5448 GB, free: 97.57 MB / 410.7 MB