Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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.812/1.812, allocations: 171.2 MB / 187.3 MB, free: 1.137 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004822/0.0004822, allocations: 8 kB / 233.8 MB, free: 3.086 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08856/0.08908, allocations: 38.77 MB / 272.5 MB, free: 12.23 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4132/0.5023, allocations: 93.72 MB / 366.3 MB, free: 12.46 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002981/0.5027, allocations: 79.95 kB / 366.3 MB, free: 12.42 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6127/1.115, allocations: 90.99 MB / 457.3 MB, free: 79.3 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.454e-06/1.115, allocations: 4 kB / 457.3 MB, free: 79.3 MB / 346.7 MB Notification: Performance of Transformations before backend: time 3.494e-05/1.116, allocations: 21.16 kB / 457.4 MB, free: 79.3 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.005237/1.121, allocations: 1.952 MB / 459.3 MB, free: 78.12 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.616e-05/1.121, allocations: 10.22 kB / 459.3 MB, free: 78.12 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005447/1.121, allocations: 192.9 kB / 459.5 MB, free: 78.02 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002993/1.124, allocations: 1.232 MB / 460.7 MB, free: 77.59 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.507e-05/1.124, allocations: 22.3 kB / 460.8 MB, free: 77.59 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001203/1.125, allocations: 28.38 kB / 460.8 MB, free: 77.59 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001483/1.126, allocations: 0.5059 MB / 461.3 MB, free: 77.5 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.774e-05/1.126, allocations: 0 / 461.3 MB, free: 77.5 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.936e-05/1.126, allocations: 13.97 kB / 461.3 MB, free: 77.5 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.851e-05/1.126, allocations: 12.98 kB / 461.3 MB, free: 77.49 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00175/1.128, allocations: 0.5061 MB / 461.8 MB, free: 77.48 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004769/1.133, allocations: 1.661 MB / 463.5 MB, free: 77.07 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001603/1.135, allocations: 415.1 kB / 463.9 MB, free: 77.04 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0295/1.164, allocations: 18.11 MB / 482 MB, free: 63.54 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009494/1.165, allocations: 282.2 kB / 482.3 MB, free: 63.45 MB / 346.7 MB Notification: Performance of pre-optimization done (n=29): time 3.376e-06/1.165, allocations: 0 / 482.3 MB, free: 63.45 MB / 346.7 MB Notification: Performance of matching and sorting (n=29): time 0.003415/1.168, allocations: 0.8925 MB / 483.2 MB, free: 63.08 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.119e-05/1.169, allocations: 167.2 kB / 483.3 MB, free: 62.89 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003769/1.172, allocations: 1.451 MB / 484.8 MB, free: 62.31 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001449/1.173, allocations: 29.7 kB / 484.8 MB, free: 62.28 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009346/1.174, allocations: 0.6373 MB / 485.5 MB, free: 61.69 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001914/1.174, allocations: 88.78 kB / 485.5 MB, free: 61.62 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.964e-05/1.174, allocations: 11.81 kB / 485.6 MB, free: 61.62 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 9.993e-05/1.174, allocations: 333.9 kB / 485.9 MB, free: 61.29 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001296/1.175, allocations: 179.8 kB / 486.1 MB, free: 61.25 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00143/1.177, allocations: 400.9 kB / 486.4 MB, free: 60.91 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001421/1.178, allocations: 225.9 kB / 486.7 MB, free: 60.84 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.205e-05/1.178, allocations: 3.531 kB / 486.7 MB, free: 60.84 MB / 346.7 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.003512/1.182, allocations: 0.6341 MB / 487.3 MB, free: 60.62 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.738e-05/1.182, allocations: 8.469 kB / 487.3 MB, free: 60.62 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001432/1.182, allocations: 46.98 kB / 487.4 MB, free: 60.61 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006799/1.183, allocations: 133.7 kB / 487.5 MB, free: 60.59 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001237/1.184, allocations: 115.2 kB / 487.6 MB, free: 60.57 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001245/1.185, allocations: 0.6833 MB / 488.3 MB, free: 60 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001506/1.187, allocations: 87.48 kB / 488.4 MB, free: 59.96 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001012/1.187, allocations: 35.47 kB / 488.4 MB, free: 59.96 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 () * 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.0007859/1.188, allocations: 277.1 kB / 488.7 MB, free: 59.75 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003455/1.188, allocations: 187.2 kB / 488.9 MB, free: 59.66 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003352/1.191, allocations: 0.8208 MB / 489.7 MB, free: 59.36 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.855e-06/1.191, allocations: 3.938 kB / 489.7 MB, free: 59.36 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.533e-06/1.191, allocations: 0 / 489.7 MB, free: 59.36 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.751e-06/1.192, allocations: 3.656 kB / 489.7 MB, free: 59.36 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003799/1.195, allocations: 1.367 MB / 491.1 MB, free: 58.68 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.276e-05/1.195, allocations: 39.08 kB / 491.1 MB, free: 58.68 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004519/1.196, allocations: 55.42 kB / 491.1 MB, free: 58.68 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000345/1.196, allocations: 127.6 kB / 491.3 MB, free: 58.65 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.069e-05/1.196, allocations: 18.62 kB / 491.3 MB, free: 58.65 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006808/1.197, allocations: 0.6786 MB / 492 MB, free: 58.07 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.767e-06/1.197, allocations: 3.969 kB / 492 MB, free: 58.07 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002155/1.199, allocations: 0.7403 MB / 492.7 MB, free: 57.71 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006118/1.2, allocations: 290.6 kB / 493 MB, free: 57.5 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003095/1.2, allocations: 15.16 kB / 493 MB, free: 57.49 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008059/1.201, allocations: 34.97 kB / 493 MB, free: 57.49 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001668/1.201, allocations: 50.56 kB / 493.1 MB, free: 57.48 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.272e-05/1.201, allocations: 19.12 kB / 493.1 MB, free: 57.48 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.001883/1.203, allocations: 0.9517 MB / 494.1 MB, free: 57.09 MB / 346.7 MB Notification: Performance of sort global known variables: time 7.41e-07/1.203, allocations: 0 / 494.1 MB, free: 57.09 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.001564/1.205, allocations: 368.5 kB / 494.4 MB, free: 57.02 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) * 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.001231/1.206, allocations: 0.6216 MB / 495 MB, free: 56.85 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.002033/1.208, allocations: 0.5532 MB / 495.6 MB, free: 56.67 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 5.61e-06/1.208, allocations: 0 / 495.6 MB, free: 56.67 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001081/1.209, allocations: 312.1 kB / 495.9 MB, free: 56.55 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001597/1.211, allocations: 242.3 kB / 496.1 MB, free: 56.44 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004932/1.216, allocations: 2.54 MB / 498.7 MB, free: 55.04 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006495/1.216, allocations: 1.186 MB / 499.9 MB, free: 54.3 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000284/1.217, allocations: 77.81 kB / 499.9 MB, free: 54.3 MB / 346.7 MB Notification: Performance of SimCode: time 1.172e-06/1.217, allocations: 0 / 499.9 MB, free: 54.3 MB / 346.7 MB Notification: Performance of Templates: time 0.04533/1.262, allocations: 24.24 MB / 0.5119 GB, free: 32.77 MB / 346.7 MB