Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.2_cpp_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.conf.json Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Running command: translateModel(Modelica.Electrical.Spice3.Examples.InvertersApartRecord,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|mp1.S.v|mp2.S.v|v.p.v",fileNamePrefix="Modelica_3.2.2_cpp_Modelica.Electrical.Spice3.Examples.InvertersApartRecord") Notification: Performance of loadModel(Modelica): time 1.771/1.771, allocations: 194.9 MB / 211.7 MB, free: 2.988 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003592/0.0003594, allocations: 8 kB / 263.9 MB, free: 13.58 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08137/0.08175, allocations: 44.51 MB / 308.4 MB, free: 0.9922 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3632/0.445, allocations: 97.86 MB / 406.3 MB, free: 16.64 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002273/0.4453, allocations: 75.77 kB / 406.4 MB, free: 16.62 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.383/0.8283, allocations: 125.5 MB / 0.5194 GB, free: 5.031 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.395e-06/0.8283, allocations: 0 / 0.5194 GB, free: 5.031 MB / 410.7 MB Notification: Performance of Transformations before backend: time 7.063e-05/0.8284, allocations: 48 kB / 0.5194 GB, free: 4.984 MB / 410.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 154 * Number of variables: 154 Notification: Performance of Generate backend data structure: time 0.007355/0.8358, allocations: 3.434 MB / 0.5228 GB, free: 1.48 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.12e-05/0.8358, allocations: 12.03 kB / 0.5228 GB, free: 1.469 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006923/0.8365, allocations: 395.2 kB / 0.5232 GB, free: 1.078 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.2321/1.069, allocations: 2.39 MB / 0.5255 GB, free: 80.64 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.458e-05/1.069, allocations: 35.36 kB / 0.5255 GB, free: 80.64 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001694/1.069, allocations: 53.69 kB / 0.5256 GB, free: 80.64 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001882/1.071, allocations: 0.863 MB / 0.5264 GB, free: 80.52 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.086e-05/1.071, allocations: 3.375 kB / 0.5264 GB, free: 80.52 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001011/1.071, allocations: 21.5 kB / 0.5265 GB, free: 80.52 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.592e-05/1.071, allocations: 21.02 kB / 0.5265 GB, free: 80.52 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00238/1.073, allocations: 0.8549 MB / 0.5273 GB, free: 80.52 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007723/1.081, allocations: 3.191 MB / 0.5304 GB, free: 80.04 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001725/1.083, allocations: 0.6207 MB / 0.531 GB, free: 80.02 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03796/1.121, allocations: 36.02 MB / 0.5662 GB, free: 53.66 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009442/1.122, allocations: 386.2 kB / 0.5666 GB, free: 53.6 MB / 410.7 MB Notification: Performance of pre-optimization done (n=49): time 4.443e-06/1.122, allocations: 0 / 0.5666 GB, free: 53.6 MB / 410.7 MB Notification: Performance of matching and sorting (n=49): time 0.003075/1.125, allocations: 1.488 MB / 0.568 GB, free: 52.98 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.496e-05/1.125, allocations: 264.4 kB / 0.5683 GB, free: 52.67 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004484/1.13, allocations: 2.553 MB / 0.5708 GB, free: 52.4 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001338/1.13, allocations: 38.55 kB / 0.5708 GB, free: 52.37 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001163/1.131, allocations: 1.238 MB / 0.572 GB, free: 52.1 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002244/1.131, allocations: 167.8 kB / 0.5722 GB, free: 52.02 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.4e-05/1.131, allocations: 15.53 kB / 0.5722 GB, free: 52.02 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 8.065e-05/1.131, allocations: 345.1 kB / 0.5725 GB, free: 51.71 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008343/1.132, allocations: 260.1 kB / 0.5728 GB, free: 51.71 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009587/1.133, allocations: 0.6667 MB / 0.5734 GB, free: 51.19 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008947/1.134, allocations: 351.9 kB / 0.5738 GB, free: 51.19 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.974e-06/1.134, allocations: 3.469 kB / 0.5738 GB, free: 51.19 MB / 410.7 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.002361/1.137, allocations: 0.9531 MB / 0.5747 GB, free: 51.13 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.372e-05/1.137, allocations: 8.562 kB / 0.5747 GB, free: 51.13 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001314/1.137, allocations: 80.67 kB / 0.5748 GB, free: 51.13 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.474e-05/1.137, allocations: 23.55 kB / 0.5748 GB, free: 51.13 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008997/1.138, allocations: 227 kB / 0.575 GB, free: 51.13 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.556e-05/1.138, allocations: 23.5 kB / 0.575 GB, free: 51.13 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001877/1.14, allocations: 132.2 kB / 0.5752 GB, free: 51.1 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001781/1.14, allocations: 62.27 kB / 0.5752 GB, free: 51.1 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 56 * 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 (102): * Single equations (assignments): 98 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001475/1.141, allocations: 441 kB / 0.5756 GB, free: 50.99 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006276/1.142, allocations: 383 kB / 0.576 GB, free: 50.8 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004723/1.147, allocations: 1.289 MB / 0.5773 GB, free: 50.7 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.416e-05/1.147, allocations: 3.969 kB / 0.5773 GB, free: 50.7 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.185e-06/1.147, allocations: 5.828 kB / 0.5773 GB, free: 50.7 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.687e-06/1.147, allocations: 6.812 kB / 0.5773 GB, free: 50.7 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005693/1.153, allocations: 2.242 MB / 0.5795 GB, free: 50.31 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001198/1.153, allocations: 67.03 kB / 0.5795 GB, free: 50.31 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006686/1.153, allocations: 108.5 kB / 0.5796 GB, free: 50.31 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.153e-05/1.153, allocations: 7.328 kB / 0.5796 GB, free: 50.31 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.514e-05/1.154, allocations: 29 kB / 0.5797 GB, free: 50.31 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.68e-06/1.154, allocations: 5.844 kB / 0.5797 GB, free: 50.31 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.715e-06/1.154, allocations: 0 / 0.5797 GB, free: 50.31 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0032/1.157, allocations: 1.423 MB / 0.5811 GB, free: 49.86 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00141/1.158, allocations: 0.553 MB / 0.5816 GB, free: 49.51 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000678/1.159, allocations: 14.06 kB / 0.5816 GB, free: 49.51 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001394/1.16, allocations: 47.94 kB / 0.5817 GB, free: 49.51 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001992/1.161, allocations: 58.59 kB / 0.5817 GB, free: 49.51 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.7e-05/1.161, allocations: 40.8 kB / 0.5818 GB, free: 49.51 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.003691/1.164, allocations: 1.959 MB / 0.5837 GB, free: 49.33 MB / 410.7 MB Notification: Performance of sort global known variables: time 9.62e-07/1.164, allocations: 0 / 0.5837 GB, free: 49.33 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.002217/1.167, allocations: 0.6433 MB / 0.5843 GB, free: 49.32 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 2 (c1.vinternal,c2.vinternal) * 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 (42): * Single equations (assignments): 32 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 6 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001344/1.168, allocations: 0.8454 MB / 0.5851 GB, free: 49.23 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.002009/1.17, allocations: 0.8601 MB / 0.586 GB, free: 49.09 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 5.588e-06/1.17, allocations: 0 / 0.586 GB, free: 49.09 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000965/1.171, allocations: 462 kB / 0.5864 GB, free: 48.97 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002568/1.174, allocations: 0.4977 MB / 0.5869 GB, free: 48.93 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008094/1.182, allocations: 4.995 MB / 0.5918 GB, free: 46.6 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001246/1.183, allocations: 1.726 MB / 0.5935 GB, free: 45.87 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004213/1.183, allocations: 169.2 kB / 0.5936 GB, free: 45.86 MB / 410.7 MB Notification: Performance of SimCode: time 1.797e-06/1.183, allocations: 0 / 0.5936 GB, free: 45.86 MB / 410.7 MB Notification: Performance of Templates: time 0.05869/1.242, allocations: 37 MB / 0.6297 GB, free: 33.86 MB / 410.7 MB