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 2.019/2.019, allocations: 194.8 MB / 211.6 MB, free: 2.996 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003663/0.0003664, allocations: 8 kB / 263.8 MB, free: 13.62 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08329/0.08369, allocations: 44.51 MB / 308.4 MB, free: 1.039 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.InvertersApartRecord): time 0.01555/0.09929, allocations: 11.35 MB / 319.7 MB, free: 5.66 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.02903/0.1284, allocations: 16.95 MB / 336.6 MB, free: 4.66 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00277/0.1312, allocations: 31.81 kB / 336.7 MB, free: 4.629 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.003801/0.135, allocations: 0.968 MB / 337.6 MB, free: 3.656 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.008288/0.1434, allocations: 2.049 MB / 339.7 MB, free: 1.602 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.00505/0.1485, allocations: 1.153 MB / 340.8 MB, free: 456 kB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.01326/0.1618, allocations: 5.492 MB / 346.3 MB, free: 10.95 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001109/0.1629, allocations: 420.6 kB / 346.8 MB, free: 10.5 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001637/0.1646, allocations: 0.824 MB / 347.6 MB, free: 9.672 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001816/0.1664, allocations: 0.994 MB / 348.6 MB, free: 8.672 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0003266/0.1668, allocations: 40 kB / 348.6 MB, free: 8.633 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005022/0.1718, allocations: 1.218 MB / 349.8 MB, free: 7.414 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0005112/0.1724, allocations: 282 kB / 350.1 MB, free: 7.137 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001115/0.1735, allocations: 0.6248 MB / 350.7 MB, free: 6.504 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.004681/0.1782, allocations: 2.606 MB / 353.3 MB, free: 3.891 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.436e-06/0.1783, allocations: 0 / 353.3 MB, free: 3.891 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.514e-06/0.1783, allocations: 0 / 353.3 MB, free: 3.891 MB / 298.7 MB Notification: Performance of Transformations before backend: time 7.137e-05/0.1784, allocations: 0 / 353.3 MB, free: 3.891 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.00644/0.1848, allocations: 3.264 MB / 356.6 MB, free: 0.5508 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.363e-05/0.1849, allocations: 8.031 kB / 356.6 MB, free: 0.543 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007258/0.1856, allocations: 395.2 kB / 357 MB, free: 156 kB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005457/0.1911, allocations: 2.27 MB / 359.3 MB, free: 13.81 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.074e-05/0.1912, allocations: 36.98 kB / 359.3 MB, free: 13.78 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002073/0.1914, allocations: 59.91 kB / 359.4 MB, free: 13.72 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001944/0.1934, allocations: 0.746 MB / 360.1 MB, free: 12.97 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.373e-05/0.1934, allocations: 3.938 kB / 360.1 MB, free: 12.96 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.686e-05/0.1935, allocations: 20 kB / 360.1 MB, free: 12.95 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.449e-05/0.1936, allocations: 19.98 kB / 360.1 MB, free: 12.93 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002289/0.1959, allocations: 0.8554 MB / 361 MB, free: 12.06 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007481/0.2034, allocations: 3.079 MB / 364.1 MB, free: 8.898 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001828/0.2053, allocations: 0.6181 MB / 364.7 MB, free: 8.273 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.2416/0.4469, allocations: 30.34 MB / 395 MB, free: 44.83 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009507/0.4479, allocations: 381.7 kB / 395.4 MB, free: 44.62 MB / 314.7 MB Notification: Performance of pre-optimization done (n=49): time 4.806e-06/0.448, allocations: 3.828 kB / 395.4 MB, free: 44.62 MB / 314.7 MB Notification: Performance of matching and sorting (n=49): time 0.002958/0.4509, allocations: 1.471 MB / 396.9 MB, free: 43.75 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.205e-05/0.451, allocations: 71.16 kB / 397 MB, free: 43.68 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004504/0.4555, allocations: 2.908 MB / 399.9 MB, free: 42.14 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001157/0.4557, allocations: 37.61 kB / 399.9 MB, free: 42.1 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001071/0.4568, allocations: 1.233 MB / 401.1 MB, free: 40.96 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002479/0.4571, allocations: 169.9 kB / 401.3 MB, free: 40.82 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.214e-05/0.4571, allocations: 15.94 kB / 401.3 MB, free: 40.81 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 8.292e-05/0.4572, allocations: 347.6 kB / 401.6 MB, free: 40.47 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008226/0.4581, allocations: 258.6 kB / 401.9 MB, free: 40.37 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009648/0.459, allocations: 0.6197 MB / 402.5 MB, free: 39.79 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00101/0.4601, allocations: 336.4 kB / 402.8 MB, free: 39.66 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.334e-05/0.4601, allocations: 2.906 kB / 402.9 MB, free: 39.66 MB / 314.7 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.002438/0.4626, allocations: 0.9547 MB / 403.8 MB, free: 39.25 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.186e-05/0.4626, allocations: 11.66 kB / 403.8 MB, free: 39.25 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001255/0.4628, allocations: 84.38 kB / 403.9 MB, free: 39.25 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.794e-05/0.4628, allocations: 19.06 kB / 403.9 MB, free: 39.25 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009397/0.4638, allocations: 209.3 kB / 404.1 MB, free: 39.14 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.414e-05/0.4638, allocations: 23.92 kB / 404.1 MB, free: 39.12 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00145/0.4653, allocations: 132.3 kB / 404.3 MB, free: 39 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001805/0.4655, allocations: 67.98 kB / 404.3 MB, free: 38.93 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.0009484/0.4665, allocations: 432.5 kB / 404.8 MB, free: 38.5 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000465/0.467, allocations: 383.4 kB / 405.1 MB, free: 38.12 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003743/0.4707, allocations: 1.267 MB / 406.4 MB, free: 36.88 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.81e-06/0.4708, allocations: 8 kB / 406.4 MB, free: 36.88 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.094e-06/0.4708, allocations: 0 / 406.4 MB, free: 36.88 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.017e-06/0.4708, allocations: 3.984 kB / 406.4 MB, free: 36.87 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004118/0.4749, allocations: 2.131 MB / 408.5 MB, free: 34.68 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001093/0.4751, allocations: 71.98 kB / 408.6 MB, free: 34.61 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006335/0.4757, allocations: 105.2 kB / 408.7 MB, free: 34.51 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.061e-05/0.4758, allocations: 4 kB / 408.7 MB, free: 34.5 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.033e-05/0.4758, allocations: 32 kB / 408.8 MB, free: 34.47 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.446e-06/0.4759, allocations: 11.94 kB / 408.8 MB, free: 34.46 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.073e-06/0.4759, allocations: 0 / 408.8 MB, free: 34.46 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002932/0.4788, allocations: 1.356 MB / 410.1 MB, free: 33.07 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008262/0.4797, allocations: 472.2 kB / 410.6 MB, free: 32.59 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004227/0.4801, allocations: 8 kB / 410.6 MB, free: 32.58 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00105/0.4812, allocations: 39.95 kB / 410.6 MB, free: 32.54 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001733/0.4814, allocations: 67.95 kB / 410.7 MB, free: 32.48 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.035e-05/0.4815, allocations: 36.69 kB / 410.7 MB, free: 32.44 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0034/0.4849, allocations: 1.881 MB / 412.6 MB, free: 30.56 MB / 314.7 MB Notification: Performance of sort global known variables: time 9.17e-07/0.4849, allocations: 0 / 412.6 MB, free: 30.56 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.001733/0.4867, allocations: 0.5921 MB / 413.2 MB, free: 30 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.001206/0.4879, allocations: 0.7411 MB / 413.9 MB, free: 29.43 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0019/0.4899, allocations: 0.8578 MB / 414.8 MB, free: 28.55 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 5.284e-06/0.4899, allocations: 0 / 414.8 MB, free: 28.55 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009126/0.4908, allocations: 467.7 kB / 415.3 MB, free: 28.07 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002025/0.4929, allocations: 497.9 kB / 415.7 MB, free: 27.58 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007585/0.5005, allocations: 4.973 MB / 420.7 MB, free: 22.57 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001237/0.5018, allocations: 1.731 MB / 422.5 MB, free: 20.81 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003715/0.5022, allocations: 155.4 kB / 422.6 MB, free: 20.66 MB / 314.7 MB Notification: Performance of SimCode: time 1.892e-06/0.5022, allocations: 0 / 422.6 MB, free: 20.66 MB / 314.7 MB Notification: Performance of Templates: time 0.06125/0.5635, allocations: 36.13 MB / 458.7 MB, free: 0.5352 MB / 330.7 MB