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.InvertersExtendedModel.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.InvertersExtendedModel,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.InvertersExtendedModel") Notification: Performance of loadModel(Modelica): time 1.974/1.974, allocations: 194.8 MB / 211.6 MB, free: 3.008 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003564/0.0003567, allocations: 8 kB / 263.8 MB, free: 13.62 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08164/0.08203, allocations: 44.51 MB / 308.4 MB, free: 1.043 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.InvertersExtendedModel): time 0.01644/0.09851, allocations: 11.82 MB / 320.2 MB, free: 5.191 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.02926/0.1278, allocations: 17.03 MB / 337.2 MB, free: 4.113 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002712/0.1306, allocations: 31.81 kB / 337.2 MB, free: 4.082 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.003864/0.1345, allocations: 0.9835 MB / 338.2 MB, free: 3.094 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.008513/0.143, allocations: 2.103 MB / 340.3 MB, free: 0.9844 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.005003/0.1481, allocations: 1.141 MB / 341.5 MB, free: 15.84 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.01378/0.1619, allocations: 5.617 MB / 347.1 MB, free: 10.21 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001196/0.1631, allocations: 441 kB / 347.5 MB, free: 9.75 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001802/0.165, allocations: 0.8551 MB / 348.4 MB, free: 8.891 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002023/0.167, allocations: 1.029 MB / 349.4 MB, free: 7.855 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0004343/0.1675, allocations: 40 kB / 349.4 MB, free: 7.816 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005189/0.1727, allocations: 1.218 MB / 350.6 MB, free: 6.598 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0005397/0.1733, allocations: 289.8 kB / 350.9 MB, free: 6.312 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001225/0.1745, allocations: 0.6521 MB / 351.6 MB, free: 5.652 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.005122/0.1797, allocations: 2.785 MB / 354.4 MB, free: 2.859 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.401e-06/0.1797, allocations: 0 / 354.4 MB, free: 2.859 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.825e-06/0.1797, allocations: 0 / 354.4 MB, free: 2.859 MB / 298.7 MB Notification: Performance of Transformations before backend: time 8.411e-05/0.1798, allocations: 4 kB / 354.4 MB, free: 2.855 MB / 298.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.006747/0.1866, allocations: 3.385 MB / 357.8 MB, free: 15.39 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.395e-05/0.1867, allocations: 8.031 kB / 357.8 MB, free: 15.39 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007699/0.1874, allocations: 414.9 kB / 358.2 MB, free: 14.98 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005658/0.1931, allocations: 2.319 MB / 360.5 MB, free: 12.59 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.139e-05/0.1932, allocations: 29 kB / 360.5 MB, free: 12.56 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001911/0.1934, allocations: 59.98 kB / 360.6 MB, free: 12.5 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001969/0.1954, allocations: 0.746 MB / 361.3 MB, free: 11.75 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.992e-05/0.1955, allocations: 0 / 361.3 MB, free: 11.75 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001065/0.1956, allocations: 27.97 kB / 361.4 MB, free: 11.73 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.288e-05/0.1956, allocations: 19.98 kB / 361.4 MB, free: 11.71 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002347/0.198, allocations: 0.8631 MB / 362.2 MB, free: 10.84 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007785/0.2058, allocations: 3.122 MB / 365.4 MB, free: 7.633 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001788/0.2076, allocations: 0.6142 MB / 366 MB, free: 7.012 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.2405/0.4482, allocations: 30.34 MB / 396.3 MB, free: 42.7 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009015/0.4492, allocations: 389.7 kB / 396.7 MB, free: 42.48 MB / 314.7 MB Notification: Performance of pre-optimization done (n=49): time 4.206e-06/0.4492, allocations: 3.938 kB / 396.7 MB, free: 42.48 MB / 314.7 MB Notification: Performance of matching and sorting (n=49): time 0.002981/0.4522, allocations: 1.49 MB / 398.2 MB, free: 41.62 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.89e-05/0.4523, allocations: 63.14 kB / 398.2 MB, free: 41.56 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004734/0.457, allocations: 3.068 MB / 401.3 MB, free: 39.95 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001275/0.4572, allocations: 36.36 kB / 401.3 MB, free: 39.91 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001152/0.4583, allocations: 1.291 MB / 402.6 MB, free: 38.72 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002128/0.4586, allocations: 169.3 kB / 402.8 MB, free: 38.58 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.967e-05/0.4586, allocations: 16.62 kB / 402.8 MB, free: 38.57 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 7.858e-05/0.4587, allocations: 348.8 kB / 403.2 MB, free: 38.23 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007418/0.4595, allocations: 261.1 kB / 403.4 MB, free: 38.13 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008756/0.4604, allocations: 0.6166 MB / 404 MB, free: 37.54 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000882/0.4613, allocations: 340.5 kB / 404.4 MB, free: 37.41 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.153e-05/0.4613, allocations: 2.656 kB / 404.4 MB, free: 37.41 MB / 314.7 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.002279/0.4636, allocations: 0.9585 MB / 405.3 MB, free: 37 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.935e-05/0.4637, allocations: 12.81 kB / 405.3 MB, free: 37 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001235/0.4638, allocations: 80.55 kB / 405.4 MB, free: 37 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.838e-05/0.4639, allocations: 19.03 kB / 405.4 MB, free: 37 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008403/0.4647, allocations: 219 kB / 405.6 MB, free: 36.86 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.373e-05/0.4648, allocations: 19.94 kB / 405.7 MB, free: 36.84 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001376/0.4661, allocations: 130.9 kB / 405.8 MB, free: 36.71 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001325/0.4663, allocations: 63.38 kB / 405.9 MB, free: 36.65 MB / 314.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.001079/0.4674, allocations: 453.5 kB / 406.3 MB, free: 36.2 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004913/0.4679, allocations: 399.1 kB / 406.7 MB, free: 35.8 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003907/0.4718, allocations: 1.289 MB / 408 MB, free: 34.54 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.074e-05/0.4719, allocations: 4 kB / 408 MB, free: 34.53 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.636e-06/0.4719, allocations: 0 / 408 MB, free: 34.53 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.44e-06/0.4719, allocations: 3.984 kB / 408 MB, free: 34.53 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003934/0.4758, allocations: 2.187 MB / 410.2 MB, free: 32.28 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001075/0.476, allocations: 67.98 kB / 410.2 MB, free: 32.21 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005611/0.4766, allocations: 107.9 kB / 410.3 MB, free: 32.11 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.386e-06/0.4766, allocations: 0 / 410.3 MB, free: 32.11 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.118e-05/0.4767, allocations: 35.98 kB / 410.4 MB, free: 32.07 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.987e-06/0.4767, allocations: 7.953 kB / 410.4 MB, free: 32.07 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.657e-06/0.4767, allocations: 0 / 410.4 MB, free: 32.07 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002693/0.4794, allocations: 1.375 MB / 411.8 MB, free: 30.66 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007928/0.4802, allocations: 492 kB / 412.2 MB, free: 30.16 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003857/0.4806, allocations: 8 kB / 412.2 MB, free: 30.15 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001023/0.4817, allocations: 48.02 kB / 412.3 MB, free: 30.11 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001699/0.4819, allocations: 59.89 kB / 412.4 MB, free: 30.05 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.09e-05/0.482, allocations: 39.98 kB / 412.4 MB, free: 30.01 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.00322/0.4852, allocations: 1.98 MB / 414.4 MB, free: 28.04 MB / 314.7 MB Notification: Performance of sort global known variables: time 1.34e-06/0.4852, allocations: 0 / 414.4 MB, free: 28.04 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.001744/0.487, allocations: 0.5973 MB / 415 MB, free: 27.46 MB / 314.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.001192/0.4882, allocations: 0.7502 MB / 415.7 MB, free: 26.88 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.001931/0.4902, allocations: 0.8578 MB / 416.6 MB, free: 26 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 5.744e-06/0.4902, allocations: 3.859 kB / 416.6 MB, free: 26 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008958/0.4911, allocations: 467.2 kB / 417 MB, free: 25.52 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002085/0.4932, allocations: 0.505 MB / 417.5 MB, free: 25.01 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007866/0.5011, allocations: 5.2 MB / 422.7 MB, free: 19.76 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001188/0.5024, allocations: 1.777 MB / 424.5 MB, free: 17.96 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003893/0.5028, allocations: 155.4 kB / 424.7 MB, free: 17.81 MB / 314.7 MB Notification: Performance of SimCode: time 1.743e-06/0.5028, allocations: 0 / 424.7 MB, free: 17.81 MB / 314.7 MB Notification: Performance of Templates: time 0.06781/0.5706, allocations: 37.18 MB / 461.9 MB, free: 12.63 MB / 346.7 MB