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.Inverter.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.Inverter,tolerance=1e-07,outputFormat="mat",numberOfIntervals=3998,variableFilter="time|mp.S.v",fileNamePrefix="Modelica_3.2.1_cpp_Modelica.Electrical.Spice3.Examples.Inverter") Notification: Performance of loadModel(Modelica): time 1.819/1.819, allocations: 171.2 MB / 184.2 MB, free: 12.05 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 3e-05/3.017e-05, allocations: 3.984 kB / 228.8 MB, free: 15.42 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2114/0.2114, allocations: 38.77 MB / 267.6 MB, free: 9.449 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3389/0.5503, allocations: 93.64 MB / 361.2 MB, free: 36.01 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002341/0.5506, allocations: 72.34 kB / 361.3 MB, free: 36.01 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2562/0.8068, allocations: 90.88 MB / 452.2 MB, free: 2.082 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.138e-06/0.8069, allocations: 0 / 452.2 MB, free: 2.082 MB / 314.7 MB Notification: Performance of Transformations before backend: time 3.53e-05/0.8069, allocations: 20 kB / 452.2 MB, free: 2.062 MB / 314.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.003593/0.8105, allocations: 1.606 MB / 453.8 MB, free: 416 kB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.488e-05/0.8106, allocations: 12.03 kB / 453.8 MB, free: 404 kB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003809/0.811, allocations: 193.7 kB / 454 MB, free: 208 kB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002763/0.8137, allocations: 1.216 MB / 455.2 MB, free: 14.92 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.598e-05/0.8138, allocations: 24.55 kB / 455.2 MB, free: 14.89 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001128/0.8139, allocations: 27.95 kB / 455.3 MB, free: 14.87 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001004/0.815, allocations: 451.6 kB / 455.7 MB, free: 14.4 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.395e-05/0.815, allocations: 0 / 455.7 MB, free: 14.4 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.852e-05/0.8151, allocations: 11.98 kB / 455.7 MB, free: 14.39 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.876e-05/0.8151, allocations: 11.94 kB / 455.7 MB, free: 14.38 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008579/0.816, allocations: 378.4 kB / 456.1 MB, free: 14 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004117/0.8201, allocations: 1.662 MB / 457.8 MB, free: 12.27 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006393/0.8208, allocations: 275.5 kB / 458 MB, free: 11.99 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007175/0.8215, allocations: 374.9 kB / 458.4 MB, free: 11.62 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02537/0.8469, allocations: 18.17 MB / 476.6 MB, free: 6.863 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004969/0.8475, allocations: 219.1 kB / 476.8 MB, free: 6.637 MB / 346.7 MB Notification: Performance of pre-optimization done (n=29): time 4.082e-06/0.8475, allocations: 0 / 476.8 MB, free: 6.637 MB / 346.7 MB Notification: Performance of matching and sorting (n=29): time 0.001257/0.8488, allocations: 496.2 kB / 477.3 MB, free: 6.141 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001192/0.8489, allocations: 166.2 kB / 477.4 MB, free: 5.941 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002373/0.8513, allocations: 1.209 MB / 478.6 MB, free: 4.695 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 9.109e-05/0.8514, allocations: 33.7 kB / 478.7 MB, free: 4.656 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007064/0.8521, allocations: 0.6387 MB / 479.3 MB, free: 4.012 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001413/0.8523, allocations: 90.7 kB / 479.4 MB, free: 3.922 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.235e-05/0.8523, allocations: 15.94 kB / 479.4 MB, free: 3.906 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001735/0.8525, allocations: 334.8 kB / 479.8 MB, free: 3.57 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003124/0.8529, allocations: 109.1 kB / 479.9 MB, free: 3.465 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005075/0.8534, allocations: 331.8 kB / 480.2 MB, free: 3.039 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000374/0.8538, allocations: 152.3 kB / 480.3 MB, free: 2.891 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.689e-05/0.8538, allocations: 8 kB / 480.3 MB, free: 2.883 MB / 346.7 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.001219/0.855, allocations: 0.4953 MB / 480.8 MB, free: 2.379 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.14e-05/0.8551, allocations: 8 kB / 480.8 MB, free: 2.371 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.908e-05/0.8552, allocations: 43.98 kB / 480.9 MB, free: 2.328 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004138/0.8556, allocations: 137.2 kB / 481 MB, free: 2.191 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000585/0.8562, allocations: 119.8 kB / 481.1 MB, free: 2.074 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008663/0.8571, allocations: 0.6772 MB / 481.8 MB, free: 1.371 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009983/0.8581, allocations: 87.5 kB / 481.9 MB, free: 1.285 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.179e-05/0.8582, allocations: 35.94 kB / 481.9 MB, free: 1.25 MB / 346.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 () * 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.0002048/0.8584, allocations: 140.8 kB / 482.1 MB, free: 1.105 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002767/0.8587, allocations: 193.7 kB / 482.3 MB, free: 0.9141 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00243/0.8612, allocations: 0.6723 MB / 482.9 MB, free: 236 kB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.097e-05/0.8612, allocations: 4 kB / 482.9 MB, free: 232 kB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.222e-06/0.8612, allocations: 4.062 kB / 482.9 MB, free: 228 kB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.598e-06/0.8612, allocations: 0 / 482.9 MB, free: 228 kB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002853/0.8641, allocations: 1.238 MB / 484.2 MB, free: 14.91 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.263e-05/0.8642, allocations: 35.94 kB / 484.2 MB, free: 14.88 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003699/0.8646, allocations: 59.95 kB / 484.3 MB, free: 14.82 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000344/0.8649, allocations: 124.9 kB / 484.4 MB, free: 14.7 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.695e-05/0.865, allocations: 15.98 kB / 484.4 MB, free: 14.68 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008301/0.8659, allocations: 0.6772 MB / 485.1 MB, free: 13.98 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.199e-06/0.8659, allocations: 0 / 485.1 MB, free: 13.98 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001268/0.8672, allocations: 0.6374 MB / 485.7 MB, free: 13.29 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006324/0.8678, allocations: 298.6 kB / 486 MB, free: 12.98 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002249/0.8681, allocations: 8 kB / 486 MB, free: 12.97 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000697/0.8688, allocations: 43.95 kB / 486.1 MB, free: 12.93 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001485/0.8689, allocations: 39.95 kB / 486.1 MB, free: 12.89 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.411e-05/0.869, allocations: 19.98 kB / 486.1 MB, free: 12.87 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.00197/0.871, allocations: 0.9314 MB / 487.1 MB, free: 11.91 MB / 362.7 MB Notification: Performance of sort global known variables: time 9.84e-07/0.871, allocations: 0 / 487.1 MB, free: 11.91 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.001586/0.8726, allocations: 371.6 kB / 487.4 MB, free: 11.55 MB / 362.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) * 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.001286/0.8739, allocations: 0.6297 MB / 488 MB, free: 10.92 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.00116/0.8751, allocations: 427.9 kB / 488.5 MB, free: 10.49 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 5.481e-06/0.8751, allocations: 0 / 488.5 MB, free: 10.49 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005908/0.8757, allocations: 244.6 kB / 488.7 MB, free: 10.24 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001339/0.8771, allocations: 236 kB / 488.9 MB, free: 10 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003874/0.881, allocations: 1.581 MB / 490.5 MB, free: 8.379 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001053/0.8821, allocations: 1.187 MB / 491.7 MB, free: 7.16 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002402/0.8823, allocations: 79.44 kB / 491.8 MB, free: 7.082 MB / 362.7 MB Notification: Performance of SimCode: time 1.938e-06/0.8824, allocations: 0 / 491.8 MB, free: 7.082 MB / 362.7 MB Notification: Performance of Templates: time 0.238/1.12, allocations: 24.21 MB / 0.5039 GB, free: 86.28 MB / 362.7 MB