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.InvertersApartRecord.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.InvertersApartRecord,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.InvertersApartRecord") Notification: Performance of loadModel(Modelica): time 1.68/1.68, allocations: 171.2 MB / 186.7 MB, free: 1.137 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003533/0.0003535, allocations: 8 kB / 233.1 MB, free: 3.082 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09149/0.09187, allocations: 38.79 MB / 271.9 MB, free: 12.22 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.InvertersApartRecord): time 0.02426/0.1162, allocations: 11.33 MB / 283.3 MB, free: 0.8438 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.2306/0.3469, allocations: 16.94 MB / 300.2 MB, free: 7.801 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002641/0.3496, allocations: 29.78 kB / 300.2 MB, free: 7.801 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.003651/0.3533, allocations: 0.977 MB / 301.2 MB, free: 7.797 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.007309/0.3606, allocations: 2.048 MB / 303.3 MB, free: 7.777 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.004444/0.3651, allocations: 1.151 MB / 304.4 MB, free: 7.77 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.01257/0.3777, allocations: 5.488 MB / 309.9 MB, free: 7.641 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00101/0.3788, allocations: 421.8 kB / 310.3 MB, free: 7.488 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001768/0.3806, allocations: 0.8272 MB / 311.1 MB, free: 7.484 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001604/0.3822, allocations: 0.9917 MB / 312.1 MB, free: 7.484 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002916/0.3825, allocations: 41.88 kB / 312.2 MB, free: 7.484 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004953/0.3875, allocations: 1.218 MB / 313.4 MB, free: 7.484 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0005493/0.3881, allocations: 273.8 kB / 313.7 MB, free: 7.484 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001146/0.3892, allocations: 0.6248 MB / 314.3 MB, free: 7.402 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003786/0.393, allocations: 2.613 MB / 316.9 MB, free: 6.703 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.813e-06/0.3931, allocations: 7.969 kB / 316.9 MB, free: 6.699 MB / 250.7 MB Notification: Performance of FrontEnd: time 2.234e-06/0.3931, allocations: 1.406 kB / 316.9 MB, free: 6.699 MB / 250.7 MB Notification: Performance of Transformations before backend: time 6.061e-05/0.3932, allocations: 0 / 316.9 MB, free: 6.699 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.005184/0.3984, allocations: 3.253 MB / 320.2 MB, free: 4.508 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.828e-05/0.3984, allocations: 8.625 kB / 320.2 MB, free: 4.508 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005307/0.399, allocations: 402.7 kB / 320.6 MB, free: 4.301 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004193/0.4032, allocations: 2.261 MB / 322.8 MB, free: 3.082 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.714e-05/0.4033, allocations: 41.94 kB / 322.9 MB, free: 3.074 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001676/0.4034, allocations: 56.03 kB / 322.9 MB, free: 3.07 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001624/0.4051, allocations: 0.7487 MB / 323.7 MB, free: 2.863 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.939e-05/0.4051, allocations: 3.938 kB / 323.7 MB, free: 2.859 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.854e-05/0.4052, allocations: 18.28 kB / 323.7 MB, free: 2.859 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.488e-05/0.4052, allocations: 23.67 kB / 323.7 MB, free: 2.855 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001889/0.4071, allocations: 0.8578 MB / 324.6 MB, free: 2.598 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00586/0.413, allocations: 3.075 MB / 327.6 MB, free: 400 kB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001423/0.4145, allocations: 0.6158 MB / 328.3 MB, free: 15.97 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.04109/0.4556, allocations: 30.35 MB / 358.6 MB, free: 15.91 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009931/0.4566, allocations: 383.8 kB / 359 MB, free: 15.59 MB / 298.7 MB Notification: Performance of pre-optimization done (n=49): time 5.397e-06/0.4567, allocations: 0 / 359 MB, free: 15.59 MB / 298.7 MB Notification: Performance of matching and sorting (n=49): time 0.003346/0.46, allocations: 1.478 MB / 360.5 MB, free: 14.2 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.943e-05/0.4601, allocations: 63.19 kB / 360.5 MB, free: 14.13 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005038/0.4652, allocations: 2.916 MB / 363.4 MB, free: 11.94 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001255/0.4653, allocations: 35.95 kB / 363.5 MB, free: 11.91 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00111/0.4665, allocations: 1.221 MB / 364.7 MB, free: 11.5 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002388/0.4667, allocations: 181 kB / 364.9 MB, free: 11.36 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.104e-05/0.4668, allocations: 17.44 kB / 364.9 MB, free: 11.35 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001894/0.467, allocations: 340.1 kB / 365.2 MB, free: 11.02 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008038/0.4678, allocations: 264 kB / 365.5 MB, free: 10.83 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001105/0.4689, allocations: 0.6208 MB / 366.1 MB, free: 10.13 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009023/0.4698, allocations: 341.5 kB / 366.4 MB, free: 9.898 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.067e-05/0.4699, allocations: 8 kB / 366.4 MB, free: 9.891 MB / 298.7 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.002468/0.4724, allocations: 0.9426 MB / 367.4 MB, free: 9.129 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.216e-05/0.4724, allocations: 12 kB / 367.4 MB, free: 9.117 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001514/0.4726, allocations: 82.61 kB / 367.5 MB, free: 9.039 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.865e-05/0.4726, allocations: 20 kB / 367.5 MB, free: 9.02 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009101/0.4735, allocations: 218 kB / 367.7 MB, free: 8.816 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.705e-05/0.4736, allocations: 27.86 kB / 367.7 MB, free: 8.789 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001421/0.475, allocations: 118.5 kB / 367.8 MB, free: 8.684 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001541/0.4752, allocations: 67 kB / 367.9 MB, free: 8.625 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.001114/0.4763, allocations: 446.9 kB / 368.3 MB, free: 8.348 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006085/0.477, allocations: 379.4 kB / 368.7 MB, free: 7.973 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004268/0.4812, allocations: 1.264 MB / 370 MB, free: 6.711 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.23e-05/0.4813, allocations: 4 kB / 370 MB, free: 6.707 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.659e-06/0.4813, allocations: 4.828 kB / 370 MB, free: 6.703 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.69e-06/0.4813, allocations: 0 / 370 MB, free: 6.703 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004897/0.4862, allocations: 2.127 MB / 372.1 MB, free: 4.516 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001336/0.4864, allocations: 71.98 kB / 372.2 MB, free: 4.445 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000606/0.487, allocations: 107.9 kB / 372.3 MB, free: 4.34 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.409e-05/0.487, allocations: 7.953 kB / 372.3 MB, free: 4.332 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.261e-05/0.4871, allocations: 31.25 kB / 372.3 MB, free: 4.305 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.785e-06/0.4872, allocations: 4 kB / 372.3 MB, free: 4.301 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.381e-06/0.4872, allocations: 2.406 kB / 372.3 MB, free: 4.301 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003315/0.4905, allocations: 1.364 MB / 373.7 MB, free: 2.91 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009948/0.4915, allocations: 472.2 kB / 374.2 MB, free: 2.426 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003854/0.4919, allocations: 15.95 kB / 374.2 MB, free: 2.41 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00098/0.4929, allocations: 40.03 kB / 374.2 MB, free: 2.371 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001863/0.4931, allocations: 59.94 kB / 374.3 MB, free: 2.312 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001075/0.4932, allocations: 39.98 kB / 374.3 MB, free: 2.273 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.003721/0.497, allocations: 1.881 MB / 376.2 MB, free: 404 kB / 298.7 MB Notification: Performance of sort global known variables: time 9.24e-07/0.497, allocations: 0 / 376.2 MB, free: 404 kB / 298.7 MB Notification: Performance of remove unused functions: time 0.002054/0.4991, allocations: 0.5856 MB / 376.8 MB, free: 15.8 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.001347/0.5004, allocations: 0.7383 MB / 377.5 MB, free: 15.2 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.002206/0.5027, allocations: 0.8516 MB / 378.4 MB, free: 14.33 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 4.743e-06/0.5027, allocations: 0 / 378.4 MB, free: 14.33 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001081/0.5038, allocations: 470.2 kB / 378.8 MB, free: 13.85 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002324/0.5061, allocations: 0.4915 MB / 379.3 MB, free: 13.36 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009184/0.5153, allocations: 4.977 MB / 384.3 MB, free: 8.34 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001757/0.5171, allocations: 1.731 MB / 386 MB, free: 6.582 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004526/0.5176, allocations: 155.4 kB / 386.2 MB, free: 6.43 MB / 314.7 MB Notification: Performance of SimCode: time 1.951e-06/0.5176, allocations: 0 / 386.2 MB, free: 6.43 MB / 314.7 MB Notification: Performance of Templates: time 0.06858/0.5862, allocations: 36.14 MB / 422.3 MB, free: 2.297 MB / 346.7 MB