Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.1_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_Modelica.Electrical.Spice3.Examples.Inverter") Notification: Performance of loadModel(Modelica): time 2.084/2.084, allocations: 171.1 MB / 186.7 MB, free: 1.125 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004834/0.0004835, allocations: 12 kB / 233.9 MB, free: 2.387 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08588/0.0864, allocations: 38.78 MB / 272.6 MB, free: 11.53 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4151/0.5015, allocations: 93.73 MB / 366.4 MB, free: 11.88 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002648/0.5019, allocations: 77.16 kB / 366.4 MB, free: 11.84 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5798/1.082, allocations: 91 MB / 457.4 MB, free: 79.93 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.464e-06/1.082, allocations: 7.344 kB / 457.4 MB, free: 79.92 MB / 346.7 MB Notification: Performance of Transformations before backend: time 4.414e-05/1.082, allocations: 18.91 kB / 457.5 MB, free: 79.92 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.006632/1.088, allocations: 1.946 MB / 459.4 MB, free: 78.74 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.683e-05/1.088, allocations: 7.469 kB / 459.4 MB, free: 78.74 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004036/1.089, allocations: 196.1 kB / 459.6 MB, free: 78.64 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003648/1.093, allocations: 1.229 MB / 460.8 MB, free: 78.21 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.303e-05/1.093, allocations: 27.8 kB / 460.9 MB, free: 78.2 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001604/1.093, allocations: 26.5 kB / 460.9 MB, free: 78.2 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001982/1.095, allocations: 0.5013 MB / 461.4 MB, free: 78.12 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.934e-05/1.095, allocations: 0 / 461.4 MB, free: 78.12 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001026/1.095, allocations: 22.22 kB / 461.4 MB, free: 78.11 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.167e-05/1.095, allocations: 6.75 kB / 461.4 MB, free: 78.11 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002417/1.097, allocations: 0.511 MB / 461.9 MB, free: 78.1 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005654/1.103, allocations: 1.66 MB / 463.6 MB, free: 77.69 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002058/1.105, allocations: 418 kB / 464 MB, free: 77.66 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02725/1.133, allocations: 18.11 MB / 482.1 MB, free: 64.12 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009257/1.133, allocations: 277.2 kB / 482.4 MB, free: 64.02 MB / 346.7 MB Notification: Performance of pre-optimization done (n=29): time 4.248e-06/1.134, allocations: 0 / 482.4 MB, free: 64.02 MB / 346.7 MB Notification: Performance of matching and sorting (n=29): time 0.003292/1.137, allocations: 0.8921 MB / 483.3 MB, free: 63.66 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.916e-05/1.137, allocations: 169.9 kB / 483.4 MB, free: 63.46 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002761/1.14, allocations: 1.444 MB / 484.9 MB, free: 62.89 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001029/1.14, allocations: 33.64 kB / 484.9 MB, free: 62.86 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007186/1.141, allocations: 0.7224 MB / 485.6 MB, free: 62.27 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001211/1.141, allocations: 102.5 kB / 485.7 MB, free: 62.2 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.166e-05/1.141, allocations: 8 kB / 485.7 MB, free: 62.19 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 7.333e-05/1.141, allocations: 328 kB / 486.1 MB, free: 61.88 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007605/1.142, allocations: 179 kB / 486.2 MB, free: 61.84 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008387/1.142, allocations: 403.5 kB / 486.6 MB, free: 61.5 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007996/1.143, allocations: 217.3 kB / 486.8 MB, free: 61.43 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.612e-06/1.143, allocations: 0 / 486.8 MB, free: 61.43 MB / 346.7 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.002392/1.146, allocations: 0.7927 MB / 487.6 MB, free: 61.12 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.574e-05/1.146, allocations: 7.938 kB / 487.6 MB, free: 61.12 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.612e-05/1.146, allocations: 41.36 kB / 487.7 MB, free: 61.12 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000425/1.146, allocations: 133.1 kB / 487.8 MB, free: 61.09 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007309/1.147, allocations: 122.8 kB / 487.9 MB, free: 61.08 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00074/1.148, allocations: 0.6775 MB / 488.6 MB, free: 60.51 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001125/1.149, allocations: 88.53 kB / 488.7 MB, free: 60.47 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.698e-05/1.149, allocations: 36.12 kB / 488.7 MB, free: 60.46 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.0007129/1.15, allocations: 273.4 kB / 489 MB, free: 60.26 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000233/1.15, allocations: 188.4 kB / 489.2 MB, free: 60.16 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003231/1.153, allocations: 0.8223 MB / 490 MB, free: 59.87 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.498e-06/1.153, allocations: 7.766 kB / 490 MB, free: 59.87 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.683e-06/1.153, allocations: 0 / 490 MB, free: 59.87 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.001e-06/1.153, allocations: 0 / 490 MB, free: 59.87 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003576/1.157, allocations: 1.369 MB / 491.4 MB, free: 59.19 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.503e-05/1.157, allocations: 38.72 kB / 491.4 MB, free: 59.19 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004501/1.157, allocations: 54.22 kB / 491.5 MB, free: 59.19 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003519/1.158, allocations: 125.7 kB / 491.6 MB, free: 59.16 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.29e-05/1.158, allocations: 16.62 kB / 491.6 MB, free: 59.16 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007105/1.159, allocations: 0.6779 MB / 492.3 MB, free: 58.59 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.35e-06/1.159, allocations: 3.531 kB / 492.3 MB, free: 58.59 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002081/1.161, allocations: 0.74 MB / 493 MB, free: 58.23 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006127/1.161, allocations: 289.1 kB / 493.3 MB, free: 58.01 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002988/1.162, allocations: 18.2 kB / 493.3 MB, free: 58 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007935/1.163, allocations: 36.92 kB / 493.4 MB, free: 58 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001648/1.163, allocations: 44.08 kB / 493.4 MB, free: 57.99 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.15e-05/1.163, allocations: 23.16 kB / 493.4 MB, free: 57.99 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.001728/1.164, allocations: 0.9541 MB / 494.4 MB, free: 57.59 MB / 346.7 MB Notification: Performance of sort global known variables: time 9.31e-07/1.165, allocations: 0 / 494.4 MB, free: 57.59 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.001565/1.166, allocations: 362 kB / 494.7 MB, free: 57.54 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.001186/1.167, allocations: 0.6275 MB / 495.4 MB, free: 57.36 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.002116/1.169, allocations: 0.5552 MB / 495.9 MB, free: 57.18 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 4.298e-06/1.169, allocations: 0 / 495.9 MB, free: 57.18 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001017/1.171, allocations: 312.2 kB / 496.2 MB, free: 57.06 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001467/1.172, allocations: 241.3 kB / 496.5 MB, free: 56.95 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004674/1.177, allocations: 2.502 MB / 499 MB, free: 55.26 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006032/1.177, allocations: 1.181 MB / 0.4884 GB, free: 54.25 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.0009846/1.178, allocations: 180.5 kB / 0.4886 GB, free: 54.12 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001912/1.179, allocations: 75.44 kB / 0.4887 GB, free: 54.05 MB / 346.7 MB Notification: Performance of SimCode: time 1.152e-06/1.179, allocations: 0 / 0.4887 GB, free: 54.05 MB / 346.7 MB Notification: Performance of Templates: time 0.0483/1.227, allocations: 18.79 MB / 0.507 GB, free: 37.27 MB / 346.7 MB