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 1.928/1.928, allocations: 194.9 MB / 211.7 MB, free: 2.996 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003615/0.0003617, allocations: 12 kB / 264.6 MB, free: 12.95 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09146/0.09185, allocations: 44.51 MB / 309.1 MB, free: 372 kB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.InvertersApartRecord): time 0.017/0.1089, allocations: 11.34 MB / 320.4 MB, free: 4.988 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.04078/0.1497, allocations: 16.96 MB / 337.4 MB, free: 3.984 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003402/0.1532, allocations: 27.81 kB / 337.4 MB, free: 3.957 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.006403/0.1597, allocations: 0.9641 MB / 338.4 MB, free: 2.988 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01337/0.1731, allocations: 2.053 MB / 340.4 MB, free: 0.9297 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.008209/0.1814, allocations: 1.149 MB / 341.6 MB, free: 15.78 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.02714/0.2086, allocations: 5.461 MB / 347 MB, free: 10.31 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001716/0.2104, allocations: 424.5 kB / 347.4 MB, free: 9.859 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002617/0.213, allocations: 0.8318 MB / 348.3 MB, free: 9.023 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003138/0.2162, allocations: 0.9901 MB / 349.3 MB, free: 8.027 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.000492/0.2168, allocations: 40 kB / 349.3 MB, free: 7.988 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.009581/0.2264, allocations: 1.218 MB / 350.5 MB, free: 6.77 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0009137/0.2273, allocations: 277.9 kB / 350.8 MB, free: 6.496 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001553/0.2289, allocations: 0.6248 MB / 351.4 MB, free: 5.863 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.007511/0.2365, allocations: 2.61 MB / 354 MB, free: 3.246 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.21e-06/0.2365, allocations: 0 / 354 MB, free: 3.246 MB / 298.7 MB Notification: Performance of FrontEnd: time 3.467e-06/0.2366, allocations: 0 / 354 MB, free: 3.246 MB / 298.7 MB Notification: Performance of Transformations before backend: time 0.0001181/0.2367, allocations: 0 / 354 MB, free: 3.246 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.01235/0.2491, allocations: 3.264 MB / 357.3 MB, free: 15.9 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.723e-05/0.2492, allocations: 8.031 kB / 357.3 MB, free: 15.89 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001266/0.2504, allocations: 395.2 kB / 357.7 MB, free: 15.5 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008379/0.2588, allocations: 2.266 MB / 359.9 MB, free: 13.17 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.645e-05/0.259, allocations: 37 kB / 360 MB, free: 13.14 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002988/0.2593, allocations: 55.89 kB / 360 MB, free: 13.08 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003116/0.2624, allocations: 0.746 MB / 360.8 MB, free: 12.33 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.407e-05/0.2625, allocations: 0 / 360.8 MB, free: 12.33 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001559/0.2627, allocations: 20 kB / 360.8 MB, free: 12.31 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.672e-05/0.2627, allocations: 23.97 kB / 360.8 MB, free: 12.29 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003626/0.2664, allocations: 0.8593 MB / 361.7 MB, free: 11.42 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01139/0.2778, allocations: 3.075 MB / 364.8 MB, free: 8.262 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003328/0.2812, allocations: 0.6181 MB / 365.4 MB, free: 7.637 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.3635/0.6448, allocations: 30.33 MB / 395.7 MB, free: 44.15 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001094/0.6459, allocations: 383.6 kB / 396.1 MB, free: 43.93 MB / 314.7 MB Notification: Performance of pre-optimization done (n=49): time 3.407e-06/0.6459, allocations: 3.281 kB / 396.1 MB, free: 43.93 MB / 314.7 MB Notification: Performance of matching and sorting (n=49): time 0.003403/0.6494, allocations: 1.472 MB / 397.6 MB, free: 43.07 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.037e-05/0.6494, allocations: 59.25 kB / 397.6 MB, free: 43 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004056/0.6535, allocations: 2.914 MB / 400.5 MB, free: 41.46 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 8.905e-05/0.6536, allocations: 37.61 kB / 400.6 MB, free: 41.42 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00139/0.655, allocations: 1.499 MB / 402.1 MB, free: 40.11 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001734/0.6552, allocations: 174.3 kB / 402.2 MB, free: 39.96 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.569e-05/0.6553, allocations: 14.84 kB / 402.2 MB, free: 39.95 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 7.734e-05/0.6553, allocations: 338.4 kB / 402.6 MB, free: 39.62 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009431/0.6563, allocations: 260.4 kB / 402.8 MB, free: 39.53 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001091/0.6574, allocations: 0.6198 MB / 403.4 MB, free: 38.94 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001038/0.6585, allocations: 342.3 kB / 403.8 MB, free: 38.8 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.318e-06/0.6585, allocations: 3.812 kB / 403.8 MB, free: 38.8 MB / 314.7 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.002933/0.6614, allocations: 1.271 MB / 405.1 MB, free: 38.05 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.404e-05/0.6615, allocations: 8 kB / 405.1 MB, free: 38.05 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001426/0.6616, allocations: 80 kB / 405.1 MB, free: 37.97 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.988e-05/0.6617, allocations: 18.19 kB / 405.2 MB, free: 37.95 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001201/0.6629, allocations: 214.9 kB / 405.4 MB, free: 37.75 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.529e-05/0.6629, allocations: 27.86 kB / 405.4 MB, free: 37.72 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001426/0.6644, allocations: 119 kB / 405.5 MB, free: 37.61 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001276/0.6645, allocations: 71.98 kB / 405.6 MB, free: 37.54 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.0009593/0.6655, allocations: 436.4 kB / 406 MB, free: 37.1 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003996/0.6659, allocations: 383.3 kB / 406.4 MB, free: 36.72 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004455/0.6703, allocations: 1.268 MB / 407.7 MB, free: 35.48 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.995e-06/0.6704, allocations: 4 kB / 407.7 MB, free: 35.48 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001281/0.6705, allocations: 68.86 kB / 407.7 MB, free: 35.41 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008484/0.6714, allocations: 468.2 kB / 408.2 MB, free: 34.93 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005567/0.6719, allocations: 15.95 kB / 408.2 MB, free: 34.92 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001173/0.6731, allocations: 39.95 kB / 408.2 MB, free: 34.88 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002069/0.6733, allocations: 63.94 kB / 408.3 MB, free: 34.82 MB / 314.7 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.002592/0.6759, allocations: 0.7305 MB / 409 MB, free: 34.08 MB / 314.7 MB Notification: Performance of postOpt detectDAEmodeSparsePattern (simulation): time 0.003226/0.6792, allocations: 1.401 MB / 410.4 MB, free: 32.66 MB / 314.7 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0008563/0.6801, allocations: 267.7 kB / 410.7 MB, free: 32.4 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.003033/0.6831, allocations: 1.884 MB / 412.6 MB, free: 30.52 MB / 314.7 MB Notification: Performance of Backend: time 7.71e-07/0.6831, allocations: 0 / 412.6 MB, free: 30.52 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0037/0.6868, allocations: 1.464 MB / 414 MB, free: 29.22 MB / 314.7 MB Notification: Performance of SimCode: time 0.008501/0.6954, allocations: 5.872 MB / 419.9 MB, free: 23.27 MB / 314.7 MB Notification: Performance of Templates: time 0.08871/0.7841, allocations: 31.55 MB / 451.5 MB, free: 7.742 MB / 330.7 MB