Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.1_cpp_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.conf.json Using package ModelicaServices with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/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.1_cpp_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel") Notification: Performance of loadModel(Modelica): time 1.61/1.61, allocations: 171.1 MB / 186.7 MB, free: 1.051 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003591/0.0003592, allocations: 15.98 kB / 233.2 MB, free: 3.055 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06934/0.06972, allocations: 38.77 MB / 271.9 MB, free: 12.2 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.InvertersExtendedModel): time 0.01542/0.08517, allocations: 11.83 MB / 283.8 MB, free: 340 kB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.2202/0.3054, allocations: 17.01 MB / 300.8 MB, free: 7.828 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002481/0.3079, allocations: 30.91 kB / 300.8 MB, free: 7.828 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.003593/0.3115, allocations: 0.9906 MB / 301.8 MB, free: 7.824 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.007574/0.3192, allocations: 2.101 MB / 303.9 MB, free: 7.805 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.004298/0.3235, allocations: 1.148 MB / 305 MB, free: 7.797 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.01219/0.3357, allocations: 5.607 MB / 310.6 MB, free: 7.68 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001019/0.3368, allocations: 434.9 kB / 311.1 MB, free: 7.516 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001738/0.3385, allocations: 0.8477 MB / 311.9 MB, free: 7.516 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001554/0.3401, allocations: 1.031 MB / 312.9 MB, free: 7.453 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002671/0.3404, allocations: 41.88 kB / 313 MB, free: 7.453 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004727/0.3451, allocations: 1.218 MB / 314.2 MB, free: 7.445 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0005136/0.3457, allocations: 283.2 kB / 314.5 MB, free: 7.32 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001196/0.3469, allocations: 0.6571 MB / 315.1 MB, free: 7.164 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.00385/0.3508, allocations: 2.794 MB / 317.9 MB, free: 6.238 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.551e-06/0.3508, allocations: 4 kB / 317.9 MB, free: 6.234 MB / 250.7 MB Notification: Performance of FrontEnd: time 3.102e-06/0.3508, allocations: 1.406 kB / 317.9 MB, free: 6.234 MB / 250.7 MB Notification: Performance of Transformations before backend: time 6.161e-05/0.3509, allocations: 0 / 317.9 MB, free: 6.234 MB / 250.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.005266/0.3562, allocations: 3.377 MB / 321.3 MB, free: 3.957 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.902e-05/0.3562, allocations: 8.25 kB / 321.3 MB, free: 3.957 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000512/0.3568, allocations: 419 kB / 321.7 MB, free: 3.742 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004385/0.3612, allocations: 2.307 MB / 324 MB, free: 2.5 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.937e-05/0.3612, allocations: 40.56 kB / 324.1 MB, free: 2.492 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001698/0.3614, allocations: 54.94 kB / 324.1 MB, free: 2.488 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001582/0.363, allocations: 0.7534 MB / 324.9 MB, free: 2.277 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.891e-05/0.3631, allocations: 0 / 324.9 MB, free: 2.277 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.021e-05/0.3632, allocations: 19.28 kB / 324.9 MB, free: 2.277 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.559e-05/0.3632, allocations: 22.86 kB / 324.9 MB, free: 2.273 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001844/0.3651, allocations: 0.8543 MB / 325.8 MB, free: 1.789 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006146/0.3712, allocations: 3.125 MB / 328.9 MB, free: 15.56 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001549/0.3728, allocations: 0.613 MB / 329.5 MB, free: 15.15 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.04243/0.4153, allocations: 30.36 MB / 359.9 MB, free: 15.09 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009809/0.4163, allocations: 385.5 kB / 360.2 MB, free: 14.77 MB / 298.7 MB Notification: Performance of pre-optimization done (n=49): time 4.623e-06/0.4163, allocations: 0 / 360.2 MB, free: 14.77 MB / 298.7 MB Notification: Performance of matching and sorting (n=49): time 0.003668/0.42, allocations: 1.488 MB / 361.7 MB, free: 13.36 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.759e-05/0.4201, allocations: 71.77 kB / 361.8 MB, free: 13.29 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008657/0.4288, allocations: 3.07 MB / 364.9 MB, free: 11 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001797/0.429, allocations: 36.2 kB / 364.9 MB, free: 10.96 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001915/0.4309, allocations: 1.286 MB / 366.2 MB, free: 10.55 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004025/0.4314, allocations: 167 kB / 366.4 MB, free: 10.42 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.619e-05/0.4315, allocations: 19.38 kB / 366.4 MB, free: 10.41 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0002555/0.4318, allocations: 346.8 kB / 366.7 MB, free: 10.08 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001476/0.4333, allocations: 261.7 kB / 367 MB, free: 9.887 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001386/0.4347, allocations: 0.616 MB / 367.6 MB, free: 9.184 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001002/0.4357, allocations: 350.8 kB / 367.9 MB, free: 8.902 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.302e-05/0.4357, allocations: 4 kB / 367.9 MB, free: 8.898 MB / 298.7 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.003351/0.4391, allocations: 0.9529 MB / 368.9 MB, free: 7.945 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.384e-05/0.4392, allocations: 8 kB / 368.9 MB, free: 7.938 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002533/0.4395, allocations: 87.98 kB / 369 MB, free: 7.852 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 5.741e-05/0.4396, allocations: 16 kB / 369 MB, free: 7.836 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001628/0.4412, allocations: 220.6 kB / 369.2 MB, free: 7.621 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.986e-05/0.4413, allocations: 27.86 kB / 369.2 MB, free: 7.594 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003296/0.4446, allocations: 115 kB / 369.4 MB, free: 7.48 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003808/0.445, allocations: 68 kB / 369.4 MB, free: 7.414 MB / 298.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.002305/0.4474, allocations: 452.9 kB / 369.9 MB, free: 6.965 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001288/0.4487, allocations: 403.1 kB / 370.3 MB, free: 6.566 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007548/0.4563, allocations: 1.28 MB / 371.5 MB, free: 5.281 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.914e-05/0.4563, allocations: 4 kB / 371.5 MB, free: 5.277 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.529e-05/0.4564, allocations: 4.453 kB / 371.5 MB, free: 5.273 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.738e-05/0.4564, allocations: 7.969 kB / 371.6 MB, free: 5.266 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006778/0.4632, allocations: 2.182 MB / 373.7 MB, free: 3.023 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001442/0.4634, allocations: 71.98 kB / 373.8 MB, free: 2.953 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006022/0.464, allocations: 108.7 kB / 373.9 MB, free: 2.848 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.124e-05/0.464, allocations: 3.953 kB / 373.9 MB, free: 2.844 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.851e-05/0.4641, allocations: 35.98 kB / 373.9 MB, free: 2.809 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.774e-06/0.4641, allocations: 1.859 kB / 373.9 MB, free: 2.809 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.386e-06/0.4642, allocations: 3.938 kB / 374 MB, free: 2.805 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003401/0.4676, allocations: 1.383 MB / 375.3 MB, free: 1.395 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001203/0.4688, allocations: 492 kB / 375.8 MB, free: 0.8906 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004155/0.4692, allocations: 19.94 kB / 375.8 MB, free: 0.8711 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001021/0.4703, allocations: 35.97 kB / 375.9 MB, free: 0.8359 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001833/0.4705, allocations: 64 kB / 375.9 MB, free: 0.7734 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001097/0.4706, allocations: 35.98 kB / 376 MB, free: 0.7383 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.004444/0.4751, allocations: 1.984 MB / 378 MB, free: 14.76 MB / 314.7 MB Notification: Performance of sort global known variables: time 1.779e-06/0.4751, allocations: 0 / 378 MB, free: 14.76 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.002179/0.4773, allocations: 0.5972 MB / 378.5 MB, free: 14.16 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.001406/0.4787, allocations: 0.7453 MB / 379.3 MB, free: 13.55 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.002186/0.4809, allocations: 0.8456 MB / 380.1 MB, free: 12.69 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 4.801e-06/0.481, allocations: 0 / 380.1 MB, free: 12.69 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001074/0.4821, allocations: 467.2 kB / 380.6 MB, free: 12.21 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002464/0.4845, allocations: 0.5087 MB / 381.1 MB, free: 11.7 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009853/0.4944, allocations: 5.205 MB / 386.3 MB, free: 6.449 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001903/0.4964, allocations: 1.773 MB / 388.1 MB, free: 4.648 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004626/0.4969, allocations: 163.4 kB / 388.2 MB, free: 4.492 MB / 314.7 MB Notification: Performance of SimCode: time 1.883e-06/0.4969, allocations: 0 / 388.2 MB, free: 4.492 MB / 314.7 MB Notification: Performance of Templates: time 0.07043/0.5673, allocations: 37.19 MB / 425.4 MB, free: 15.31 MB / 362.7 MB