Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.1_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.conf.json Using package ModelicaServices with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel") Notification: Performance of loadModel(Modelica): time 1.661/1.661, allocations: 171.2 MB / 186.7 MB, free: 1.121 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005269/0.0005273, allocations: 8 kB / 233.9 MB, free: 2.395 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1455/0.146, allocations: 38.78 MB / 272.6 MB, free: 11.54 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.InvertersExtendedModel): time 0.02963/0.1757, allocations: 11.82 MB / 284.5 MB, free: 15.68 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.2696/0.4454, allocations: 17.01 MB / 301.5 MB, free: 8.449 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002962/0.4485, allocations: 30.22 kB / 301.5 MB, free: 8.449 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.00453/0.453, allocations: 0.9883 MB / 302.5 MB, free: 8.441 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.009263/0.4624, allocations: 2.102 MB / 304.6 MB, free: 8.422 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.005705/0.4681, allocations: 1.148 MB / 305.7 MB, free: 8.414 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0167/0.4849, allocations: 5.585 MB / 311.3 MB, free: 8.289 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00107/0.486, allocations: 439.8 kB / 311.7 MB, free: 8.125 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002357/0.4884, allocations: 0.8499 MB / 312.6 MB, free: 8.125 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00291/0.4913, allocations: 1.024 MB / 313.6 MB, free: 7.793 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0007939/0.4922, allocations: 46.41 kB / 313.7 MB, free: 7.789 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006924/0.4991, allocations: 1.22 MB / 314.9 MB, free: 7.781 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0006936/0.4999, allocations: 283 kB / 315.2 MB, free: 7.656 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001692/0.5016, allocations: 0.6533 MB / 315.8 MB, free: 7.5 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.005227/0.5068, allocations: 2.792 MB / 318.6 MB, free: 6.473 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.587e-06/0.5069, allocations: 0 / 318.6 MB, free: 6.473 MB / 250.7 MB Notification: Performance of FrontEnd: time 2.935e-06/0.5069, allocations: 0 / 318.6 MB, free: 6.473 MB / 250.7 MB Notification: Performance of Transformations before backend: time 0.000136/0.507, allocations: 0 / 318.6 MB, free: 6.473 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.007811/0.5149, allocations: 3.383 MB / 322 MB, free: 4.188 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.355e-05/0.5149, allocations: 12.03 kB / 322 MB, free: 4.184 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000929/0.5159, allocations: 416.7 kB / 322.4 MB, free: 3.973 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005642/0.5215, allocations: 2.311 MB / 324.7 MB, free: 2.73 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.995e-05/0.5216, allocations: 36.28 kB / 324.8 MB, free: 2.727 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002032/0.5218, allocations: 57.27 kB / 324.8 MB, free: 2.719 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002106/0.524, allocations: 0.7451 MB / 325.6 MB, free: 2.516 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.366e-05/0.524, allocations: 0 / 325.6 MB, free: 2.516 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000109/0.5241, allocations: 31.06 kB / 325.6 MB, free: 2.504 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.028e-05/0.5242, allocations: 21.7 kB / 325.6 MB, free: 2.5 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002514/0.5267, allocations: 0.8558 MB / 326.5 MB, free: 1.918 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008249/0.535, allocations: 3.117 MB / 329.6 MB, free: 15.69 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002233/0.5373, allocations: 0.6109 MB / 330.2 MB, free: 15.29 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.06244/0.5998, allocations: 30.36 MB / 360.6 MB, free: 15.23 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002009/0.6018, allocations: 391.2 kB / 360.9 MB, free: 14.89 MB / 298.7 MB Notification: Performance of pre-optimization done (n=49): time 7.344e-06/0.6019, allocations: 4 kB / 360.9 MB, free: 14.89 MB / 298.7 MB Notification: Performance of matching and sorting (n=49): time 0.006924/0.6088, allocations: 1.484 MB / 362.4 MB, free: 13.5 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.329e-05/0.609, allocations: 70 kB / 362.5 MB, free: 13.42 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01025/0.6192, allocations: 3.068 MB / 365.6 MB, free: 11.13 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002579/0.6196, allocations: 42.62 kB / 365.6 MB, free: 11.09 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002936/0.6225, allocations: 1.57 MB / 367.2 MB, free: 10.22 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004927/0.6231, allocations: 164.8 kB / 367.3 MB, free: 10.06 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000117/0.6232, allocations: 20 kB / 367.4 MB, free: 10.04 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0002216/0.6235, allocations: 337.9 kB / 367.7 MB, free: 9.707 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001785/0.6253, allocations: 257.9 kB / 367.9 MB, free: 9.457 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002166/0.6275, allocations: 0.6212 MB / 368.6 MB, free: 8.668 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002145/0.6297, allocations: 340.5 kB / 368.9 MB, free: 8.336 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.97e-05/0.6298, allocations: 4 kB / 368.9 MB, free: 8.332 MB / 298.7 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.006582/0.6364, allocations: 1.289 MB / 370.2 MB, free: 7.039 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.769e-05/0.6365, allocations: 10.81 kB / 370.2 MB, free: 7.031 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002845/0.6368, allocations: 80 kB / 370.3 MB, free: 6.953 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 6.174e-05/0.6369, allocations: 23.98 kB / 370.3 MB, free: 6.93 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002179/0.6391, allocations: 207.7 kB / 370.5 MB, free: 6.727 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.48e-05/0.6392, allocations: 35.81 kB / 370.5 MB, free: 6.691 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00332/0.6425, allocations: 123 kB / 370.7 MB, free: 6.57 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000409/0.643, allocations: 67.98 kB / 370.7 MB, free: 6.504 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.002159/0.6452, allocations: 451.5 kB / 371.2 MB, free: 6.055 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001392/0.6466, allocations: 403.1 kB / 371.6 MB, free: 5.656 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008408/0.6551, allocations: 1.285 MB / 372.8 MB, free: 4.359 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.44e-05/0.6552, allocations: 0 / 372.8 MB, free: 4.359 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0002222/0.6554, allocations: 72.86 kB / 372.9 MB, free: 4.289 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002218/0.6576, allocations: 484 kB / 373.4 MB, free: 3.793 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001738/0.6594, allocations: 16 kB / 373.4 MB, free: 3.777 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002932/0.6624, allocations: 39.95 kB / 373.4 MB, free: 3.738 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004086/0.6629, allocations: 59.94 kB / 373.5 MB, free: 3.68 MB / 298.7 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.004481/0.6674, allocations: 0.737 MB / 374.2 MB, free: 2.941 MB / 298.7 MB Notification: Performance of postOpt detectDAEmodeSparsePattern (simulation): time 0.004806/0.6723, allocations: 1.424 MB / 375.7 MB, free: 1.492 MB / 298.7 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.001017/0.6733, allocations: 268.5 kB / 375.9 MB, free: 1.23 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.004817/0.6782, allocations: 1.984 MB / 377.9 MB, free: 15.25 MB / 314.7 MB Notification: Performance of Backend: time 2.956e-06/0.6782, allocations: 4 kB / 377.9 MB, free: 15.25 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.004883/0.6831, allocations: 1.454 MB / 379.4 MB, free: 13.95 MB / 314.7 MB Notification: Performance of SimCode: time 0.01392/0.6971, allocations: 6.127 MB / 385.5 MB, free: 7.742 MB / 314.7 MB Notification: Performance of Templates: time 0.1156/0.8127, allocations: 32.3 MB / 417.8 MB, free: 7.469 MB / 346.7 MB