Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.2_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.conf.json Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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_Modelica.Electrical.Spice3.Examples.InvertersApartRecord") Notification: Performance of loadModel(Modelica): time 2.056/2.056, allocations: 194.8 MB / 211.7 MB, free: 3.012 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003501/0.0003501, allocations: 8 kB / 264.5 MB, free: 12.95 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09476/0.09513, allocations: 44.51 MB / 309 MB, free: 380 kB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4259/0.5211, allocations: 97.86 MB / 406.9 MB, free: 13.12 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002645/0.5214, allocations: 84.3 kB / 407 MB, free: 13.11 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4411/0.9625, allocations: 125.5 MB / 0.52 GB, free: 2.492 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.305e-06/0.9625, allocations: 0 / 0.52 GB, free: 2.492 MB / 410.7 MB Notification: Performance of Transformations before backend: time 8.935e-05/0.9626, allocations: 47.94 kB / 0.52 GB, free: 2.445 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.2749/1.238, allocations: 3.431 MB / 0.5234 GB, free: 79.2 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.26e-05/1.238, allocations: 9.031 kB / 0.5234 GB, free: 79.2 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006608/1.238, allocations: 395.3 kB / 0.5238 GB, free: 79 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006453/1.245, allocations: 2.392 MB / 0.5261 GB, free: 78.54 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.476e-05/1.245, allocations: 36.31 kB / 0.5261 GB, free: 78.54 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002103/1.245, allocations: 56.25 kB / 0.5262 GB, free: 78.54 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002369/1.248, allocations: 0.861 MB / 0.527 GB, free: 78.43 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.148e-05/1.248, allocations: 2.812 kB / 0.527 GB, free: 78.43 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00012/1.248, allocations: 21.67 kB / 0.527 GB, free: 78.43 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.161e-05/1.248, allocations: 19.69 kB / 0.5271 GB, free: 78.43 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002746/1.25, allocations: 0.8582 MB / 0.5279 GB, free: 78.42 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008757/1.259, allocations: 3.195 MB / 0.531 GB, free: 77.91 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001978/1.261, allocations: 0.6131 MB / 0.5316 GB, free: 77.88 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.04573/1.307, allocations: 36.02 MB / 0.5668 GB, free: 51.53 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001128/1.308, allocations: 391.9 kB / 0.5672 GB, free: 51.47 MB / 410.7 MB Notification: Performance of pre-optimization done (n=49): time 4.258e-06/1.308, allocations: 0 / 0.5672 GB, free: 51.47 MB / 410.7 MB Notification: Performance of matching and sorting (n=49): time 0.00384/1.312, allocations: 1.471 MB / 0.5686 GB, free: 50.86 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.818e-05/1.312, allocations: 269.6 kB / 0.5689 GB, free: 50.55 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005058/1.317, allocations: 3.009 MB / 0.5718 GB, free: 50.25 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001959/1.318, allocations: 39.02 kB / 0.5718 GB, free: 50.21 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001538/1.319, allocations: 1.5 MB / 0.5733 GB, free: 50 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002843/1.319, allocations: 171.2 kB / 0.5735 GB, free: 49.92 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.031e-05/1.319, allocations: 16.5 kB / 0.5735 GB, free: 49.92 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 8.623e-05/1.32, allocations: 341.4 kB / 0.5738 GB, free: 49.61 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000971/1.321, allocations: 260.2 kB / 0.5741 GB, free: 49.61 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001166/1.322, allocations: 0.6663 MB / 0.5747 GB, free: 49.09 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001074/1.323, allocations: 350.7 kB / 0.575 GB, free: 49.09 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.015e-05/1.323, allocations: 5.812 kB / 0.5751 GB, free: 49.09 MB / 410.7 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.003417/1.326, allocations: 1.274 MB / 0.5763 GB, free: 48.87 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.719e-05/1.326, allocations: 11.42 kB / 0.5763 GB, free: 48.87 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001531/1.327, allocations: 83.08 kB / 0.5764 GB, free: 48.87 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.751e-05/1.327, allocations: 18.75 kB / 0.5764 GB, free: 48.87 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001262/1.328, allocations: 211.9 kB / 0.5766 GB, free: 48.87 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.656e-05/1.328, allocations: 26.66 kB / 0.5766 GB, free: 48.87 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001961/1.33, allocations: 131.5 kB / 0.5768 GB, free: 48.84 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001427/1.33, allocations: 67.41 kB / 0.5768 GB, free: 48.84 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.001336/1.331, allocations: 438.3 kB / 0.5772 GB, free: 48.73 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006768/1.332, allocations: 385.1 kB / 0.5776 GB, free: 48.54 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005103/1.337, allocations: 1.287 MB / 0.5789 GB, free: 48.45 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.105e-05/1.337, allocations: 6.938 kB / 0.5789 GB, free: 48.45 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.212e-06/1.337, allocations: 3.969 kB / 0.5789 GB, free: 48.45 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.256e-06/1.337, allocations: 3.891 kB / 0.5789 GB, free: 48.45 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005705/1.343, allocations: 2.252 MB / 0.5811 GB, free: 48.05 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001429/1.343, allocations: 69.98 kB / 0.5811 GB, free: 48.05 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008571/1.344, allocations: 106.1 kB / 0.5812 GB, free: 48.05 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.06e-05/1.344, allocations: 2.219 kB / 0.5812 GB, free: 48.05 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.421e-05/1.344, allocations: 33.72 kB / 0.5813 GB, free: 48.05 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.862e-06/1.344, allocations: 0 / 0.5813 GB, free: 48.05 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.97e-06/1.344, allocations: 3.938 kB / 0.5813 GB, free: 48.05 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0038/1.348, allocations: 1.367 MB / 0.5826 GB, free: 47.68 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001381/1.349, allocations: 0.5563 MB / 0.5832 GB, free: 47.32 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006438/1.35, allocations: 8.781 kB / 0.5832 GB, free: 47.32 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001329/1.351, allocations: 48.44 kB / 0.5832 GB, free: 47.32 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002227/1.352, allocations: 62.02 kB / 0.5833 GB, free: 47.32 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001006/1.352, allocations: 40.62 kB / 0.5833 GB, free: 47.32 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.004642/1.356, allocations: 1.954 MB / 0.5852 GB, free: 47.14 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.233e-06/1.356, allocations: 0 / 0.5852 GB, free: 47.14 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.004599/1.361, allocations: 0.6561 MB / 0.5859 GB, free: 47.13 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.002955/1.364, allocations: 0.8313 MB / 0.5867 GB, free: 47.02 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.003934/1.368, allocations: 0.859 MB / 0.5875 GB, free: 46.88 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 8.206e-06/1.368, allocations: 0 / 0.5875 GB, free: 46.88 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001368/1.37, allocations: 463 kB / 0.588 GB, free: 46.76 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00277/1.372, allocations: 0.4977 MB / 0.5884 GB, free: 46.72 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008897/1.381, allocations: 4.937 MB / 0.5933 GB, free: 44.41 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001213/1.383, allocations: 1.733 MB / 0.595 GB, free: 43.69 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.002022/1.385, allocations: 378.7 kB / 0.5953 GB, free: 43.66 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003763/1.385, allocations: 159.9 kB / 0.5955 GB, free: 43.65 MB / 410.7 MB Notification: Performance of SimCode: time 1.623e-06/1.385, allocations: 0 / 0.5955 GB, free: 43.65 MB / 410.7 MB Notification: Performance of Templates: time 0.08386/1.469, allocations: 31.27 MB / 0.626 GB, free: 34.52 MB / 410.7 MB