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.FourInverters.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.FourInverters,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|mp1.S.v|mp2.S.v|mp3.S.v|mp4.S.v|v.p.v",fileNamePrefix="Modelica_3.2.1_Modelica.Electrical.Spice3.Examples.FourInverters") Notification: Performance of loadModel(Modelica): time 1.826/1.826, allocations: 171.1 MB / 186.7 MB, free: 1.141 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003504/0.0003505, allocations: 12 kB / 233.9 MB, free: 2.398 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08104/0.08142, allocations: 38.78 MB / 272.6 MB, free: 11.54 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.FourInverters): time 0.03049/0.112, allocations: 20.45 MB / 293.1 MB, free: 7.031 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.2625/0.3746, allocations: 18.69 MB / 311.8 MB, free: 7.883 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005616/0.3802, allocations: 54.09 kB / 311.8 MB, free: 7.863 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.006071/0.3863, allocations: 1.289 MB / 313.1 MB, free: 7.559 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01378/0.4002, allocations: 2.969 MB / 316.1 MB, free: 7.41 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.007524/0.4078, allocations: 1.281 MB / 317.4 MB, free: 7.336 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.03001/0.4378, allocations: 10.72 MB / 328.1 MB, free: 4.398 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001768/0.4397, allocations: 0.784 MB / 328.9 MB, free: 4.082 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003488/0.4432, allocations: 1.565 MB / 330.4 MB, free: 2.996 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004044/0.4473, allocations: 1.872 MB / 332.3 MB, free: 1.254 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0008094/0.4481, allocations: 76 kB / 332.4 MB, free: 1.18 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.007436/0.4556, allocations: 1.256 MB / 333.6 MB, free: 64 kB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001224/0.4569, allocations: 0.5058 MB / 334.1 MB, free: 15.64 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.002471/0.4594, allocations: 1.181 MB / 335.3 MB, free: 14.88 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.009764/0.4692, allocations: 4.65 MB / 340 MB, free: 10.64 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.13e-06/0.4692, allocations: 0 / 340 MB, free: 10.64 MB / 266.7 MB Notification: Performance of FrontEnd: time 3.798e-06/0.4692, allocations: 0 / 340 MB, free: 10.64 MB / 266.7 MB Notification: Performance of Transformations before backend: time 0.0002654/0.4695, allocations: 1.859 kB / 340 MB, free: 10.64 MB / 266.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 288 * Number of variables: 288 Notification: Performance of Generate backend data structure: time 0.01459/0.4841, allocations: 5.87 MB / 345.9 MB, free: 4.703 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.465e-05/0.4842, allocations: 12.02 kB / 345.9 MB, free: 4.691 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001649/0.4859, allocations: 0.7448 MB / 346.6 MB, free: 3.938 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01194/0.4978, allocations: 4.304 MB / 350.9 MB, free: 15.55 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.482e-05/0.498, allocations: 66 kB / 351 MB, free: 15.48 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003931/0.4984, allocations: 99.73 kB / 351.1 MB, free: 15.39 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003923/0.5023, allocations: 1.309 MB / 352.4 MB, free: 14.07 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.44e-05/0.5024, allocations: 6.297 kB / 352.4 MB, free: 14.06 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000202/0.5026, allocations: 35.98 kB / 352.4 MB, free: 14.03 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.996e-05/0.5027, allocations: 39.98 kB / 352.5 MB, free: 13.99 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004797/0.5075, allocations: 1.523 MB / 354 MB, free: 12.46 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01699/0.5245, allocations: 5.637 MB / 359.6 MB, free: 6.738 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003372/0.5279, allocations: 1.028 MB / 360.7 MB, free: 5.703 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.09706/0.625, allocations: 60.25 MB / 420.9 MB, free: 1.32 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001952/0.6271, allocations: 0.5755 MB / 421.5 MB, free: 0.7305 MB / 346.7 MB Notification: Performance of pre-optimization done (n=85): time 5.6e-06/0.6271, allocations: 0 / 421.5 MB, free: 0.7305 MB / 346.7 MB Notification: Performance of matching and sorting (n=85): time 0.006962/0.6341, allocations: 2.579 MB / 424.1 MB, free: 13.99 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.872e-05/0.6342, allocations: 59.97 kB / 424.1 MB, free: 13.92 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01337/0.6476, allocations: 5.563 MB / 429.7 MB, free: 8.391 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002934/0.6479, allocations: 37.7 kB / 429.7 MB, free: 8.348 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.004317/0.6522, allocations: 2.935 MB / 432.6 MB, free: 5.398 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006072/0.6529, allocations: 295.9 kB / 432.9 MB, free: 5.105 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001434/0.6531, allocations: 32 kB / 433 MB, free: 5.074 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0002137/0.6533, allocations: 373.9 kB / 433.3 MB, free: 4.703 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001766/0.6551, allocations: 415.8 kB / 433.7 MB, free: 4.297 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002294/0.6574, allocations: 1.103 MB / 434.8 MB, free: 2.859 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002068/0.6595, allocations: 0.5686 MB / 435.4 MB, free: 2.293 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.997e-05/0.6596, allocations: 4 kB / 435.4 MB, free: 2.289 MB / 362.7 MB Notification: Performance of matching and sorting (n=200) (initialization): time 0.006718/0.6663, allocations: 2.243 MB / 437.7 MB, free: 36 kB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.331e-05/0.6664, allocations: 17.09 kB / 437.7 MB, free: 20 kB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.2398/0.9062, allocations: 157.9 kB / 437.8 MB, free: 129.9 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 7.723e-05/0.9064, allocations: 35.95 kB / 437.9 MB, free: 129.9 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002415/0.9088, allocations: 372.5 kB / 438.2 MB, free: 129.9 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.424e-05/0.9089, allocations: 51.27 kB / 438.3 MB, free: 129.9 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003378/0.9123, allocations: 194.8 kB / 438.5 MB, free: 129.9 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005139/0.9129, allocations: 123.9 kB / 438.6 MB, free: 129.9 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 108 * 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 (184): * Single equations (assignments): 176 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 8 * 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.00263/0.9155, allocations: 0.7204 MB / 439.3 MB, free: 129.7 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001535/0.9171, allocations: 0.7177 MB / 440 MB, free: 129.5 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009855/0.9269, allocations: 2.252 MB / 442.3 MB, free: 129.3 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.052e-05/0.927, allocations: 8.5 kB / 442.3 MB, free: 129.3 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.000306/0.9273, allocations: 136.8 kB / 442.4 MB, free: 129.3 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002198/0.9295, allocations: 0.8073 MB / 443.2 MB, free: 128.7 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001503/0.9311, allocations: 13.8 kB / 443.2 MB, free: 128.7 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002677/0.9338, allocations: 54.8 kB / 443.3 MB, free: 128.7 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005048/0.9343, allocations: 96.75 kB / 443.4 MB, free: 128.7 MB / 362.7 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.004684/0.939, allocations: 1.095 MB / 444.5 MB, free: 128.4 MB / 362.7 MB Notification: Performance of postOpt detectDAEmodeSparsePattern (simulation): time 0.006742/0.9458, allocations: 2.245 MB / 446.7 MB, free: 127.3 MB / 362.7 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.001559/0.9475, allocations: 418.8 kB / 447.1 MB, free: 127.2 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.009355/0.9568, allocations: 3.563 MB / 450.7 MB, free: 126 MB / 362.7 MB Notification: Performance of Backend: time 1.593e-06/0.9569, allocations: 3.344 kB / 450.7 MB, free: 126 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.006363/0.9633, allocations: 2.301 MB / 453 MB, free: 125.3 MB / 362.7 MB Notification: Performance of SimCode: time 0.02091/0.9842, allocations: 10.83 MB / 463.8 MB, free: 119.1 MB / 362.7 MB Notification: Performance of Templates: time 0.1663/1.151, allocations: 53.99 MB / 0.5057 GB, free: 66.19 MB / 362.7 MB