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/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/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.631/1.631, allocations: 171.3 MB / 179.2 MB, free: 7.5 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 2.743e-05/2.758e-05, allocations: 11.94 kB / 222.5 MB, free: 8.688 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07105/0.0711, allocations: 38.75 MB / 261.3 MB, free: 1.844 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3159/0.387, allocations: 93 MB / 354.3 MB, free: 11.47 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002054/0.3873, allocations: 70.59 kB / 354.3 MB, free: 11.44 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4555/0.8428, allocations: 86.43 MB / 440.8 MB, free: 84.81 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.109e-06/0.8429, allocations: 0 / 440.8 MB, free: 84.81 MB / 346.7 MB Notification: Performance of Transformations before backend: time 2.679e-05/0.8429, allocations: 23.44 kB / 440.8 MB, free: 84.81 MB / 346.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.002912/0.8458, allocations: 1.608 MB / 442.4 MB, free: 83.87 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.871e-05/0.8459, allocations: 6.969 kB / 442.4 MB, free: 83.87 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002716/0.8462, allocations: 195.6 kB / 442.6 MB, free: 83.77 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002197/0.8484, allocations: 1.224 MB / 443.8 MB, free: 83.34 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.821e-05/0.8484, allocations: 11.66 kB / 443.8 MB, free: 83.34 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.712e-05/0.8485, allocations: 21.52 kB / 443.9 MB, free: 83.33 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0007444/0.8493, allocations: 364 kB / 444.2 MB, free: 83.33 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007261/0.85, allocations: 409.2 kB / 444.6 MB, free: 83.25 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.437e-05/0.8501, allocations: 0 / 444.6 MB, free: 83.25 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.707e-05/0.8501, allocations: 0 / 444.6 MB, free: 83.25 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.802e-05/0.8502, allocations: 14.95 kB / 444.6 MB, free: 83.25 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003493/0.8537, allocations: 1.591 MB / 446.2 MB, free: 82.88 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004689/0.8542, allocations: 259.5 kB / 446.5 MB, free: 82.86 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005488/0.8548, allocations: 362.8 kB / 446.8 MB, free: 82.84 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01886/0.8736, allocations: 18.18 MB / 465 MB, free: 69.45 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003915/0.8741, allocations: 199.7 kB / 465.2 MB, free: 69.4 MB / 346.7 MB Notification: Performance of pre-optimization done (n=29): time 4.003e-06/0.8741, allocations: 0 / 465.2 MB, free: 69.4 MB / 346.7 MB Notification: Performance of matching and sorting (n=29): time 0.001076/0.8752, allocations: 488.6 kB / 465.7 MB, free: 69.25 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.964e-05/0.8752, allocations: 168.9 kB / 465.8 MB, free: 69.07 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001669/0.8769, allocations: 1.106 MB / 466.9 MB, free: 68.86 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 5.482e-05/0.877, allocations: 36.89 kB / 467 MB, free: 68.83 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005158/0.8775, allocations: 0.6286 MB / 467.6 MB, free: 68.39 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.955e-05/0.8776, allocations: 100 kB / 467.7 MB, free: 68.32 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.495e-05/0.8777, allocations: 3.938 kB / 467.7 MB, free: 68.31 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 6.455e-05/0.8778, allocations: 334.5 kB / 468 MB, free: 67.98 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002388/0.878, allocations: 99.12 kB / 468.1 MB, free: 67.95 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003212/0.8784, allocations: 316.9 kB / 468.4 MB, free: 67.62 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003374/0.8787, allocations: 140.5 kB / 468.6 MB, free: 67.57 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.206e-06/0.8787, allocations: 0 / 468.6 MB, free: 67.57 MB / 346.7 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.001011/0.8798, allocations: 458.1 kB / 469 MB, free: 67.4 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.984e-05/0.8798, allocations: 6.625 kB / 469 MB, free: 67.4 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.204e-05/0.8799, allocations: 39.09 kB / 469.1 MB, free: 67.4 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003255/0.8802, allocations: 143.1 kB / 469.2 MB, free: 67.37 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004766/0.8807, allocations: 113.8 kB / 469.3 MB, free: 67.36 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006207/0.8814, allocations: 0.7027 MB / 470 MB, free: 66.78 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009724/0.8823, allocations: 70.56 kB / 470.1 MB, free: 66.75 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.064e-05/0.8825, allocations: 34.69 kB / 470.1 MB, free: 66.75 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.0001585/0.8826, allocations: 131.6 kB / 470.3 MB, free: 66.62 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002036/0.8828, allocations: 192 kB / 470.4 MB, free: 66.53 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002183/0.885, allocations: 0.6569 MB / 471.1 MB, free: 66.27 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.469e-06/0.8851, allocations: 3.891 kB / 471.1 MB, free: 66.27 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.008e-06/0.8851, allocations: 3.562 kB / 471.1 MB, free: 66.27 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.049e-06/0.8851, allocations: 0 / 471.1 MB, free: 66.27 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002294/0.8874, allocations: 1.175 MB / 472.3 MB, free: 65.66 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.384e-05/0.8875, allocations: 35.19 kB / 472.3 MB, free: 65.66 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003581/0.8879, allocations: 66.64 kB / 472.4 MB, free: 65.65 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002937/0.8882, allocations: 119.8 kB / 472.5 MB, free: 65.62 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.784e-05/0.8883, allocations: 14.91 kB / 472.5 MB, free: 65.62 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006163/0.8889, allocations: 0.6844 MB / 473.2 MB, free: 65.06 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.174e-06/0.8889, allocations: 4 kB / 473.2 MB, free: 65.06 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001034/0.89, allocations: 0.628 MB / 473.8 MB, free: 64.67 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005067/0.8905, allocations: 282.9 kB / 474.1 MB, free: 64.46 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002215/0.8907, allocations: 11.8 kB / 474.1 MB, free: 64.45 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006655/0.8914, allocations: 37.86 kB / 474.2 MB, free: 64.45 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001399/0.8916, allocations: 47.58 kB / 474.2 MB, free: 64.44 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.146e-05/0.8917, allocations: 21.78 kB / 474.2 MB, free: 64.43 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.001372/0.893, allocations: 0.8331 MB / 475.1 MB, free: 64.05 MB / 346.7 MB Notification: Performance of sort global known variables: time 8.39e-07/0.8931, allocations: 4 kB / 475.1 MB, free: 64.04 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.00133/0.8944, allocations: 340.1 kB / 475.4 MB, free: 64 MB / 346.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.001045/0.8955, allocations: 0.7125 MB / 476.1 MB, free: 63.78 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0008602/0.8963, allocations: 416.8 kB / 476.5 MB, free: 63.6 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 4.844e-06/0.8964, allocations: 0 / 476.5 MB, free: 63.6 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004461/0.8968, allocations: 232.7 kB / 476.7 MB, free: 63.49 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001224/0.8981, allocations: 240.8 kB / 477 MB, free: 63.38 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003096/0.9012, allocations: 1.556 MB / 478.5 MB, free: 62.7 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006808/0.9019, allocations: 1.185 MB / 479.7 MB, free: 61.96 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000218/0.9021, allocations: 82.56 kB / 479.8 MB, free: 61.95 MB / 346.7 MB Notification: Performance of SimCode: time 1.877e-06/0.9022, allocations: 4 kB / 479.8 MB, free: 61.95 MB / 346.7 MB Notification: Performance of Templates: time 0.03299/0.9351, allocations: 24.15 MB / 0.4921 GB, free: 43.39 MB / 346.7 MB