Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.2_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes14.conf.json Using package ModelicaTest with version 3.2.2 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.2+maint.om/package.mo) Using package ModelicaServices with version 3.2.2 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo) Using package Modelica with version 3.2.2 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo) Using package Complex with version 3.2.2 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo) Running command: translateModel(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes14,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|junctionIdeal.medium.h|junctionIdeal.medium.p|pipe1.mediums.1..h|pipe1.mediums.1..p|pipe2.mediums.1..h|pipe2.mediums.1..p|pipe3.mediums.1..h|pipe3.mediums.1..p|valveOpening1.a|valveOpening1.b|valveOpening1.last|valveOpening1.nextEvent|valveOpening2.a|valveOpening2.b|valveOpening2.last|valveOpening2.nextEvent",fileNamePrefix="ModelicaTest_3.2.2_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes14") Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo): time 0.004417/0.004417, allocations: 364.4 kB / 15.96 MB, free: 6.199 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 3.772/3.772, allocations: 388.9 MB / 405.6 MB, free: 10.32 MB / 346.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo): time 0.003488/0.003488, allocations: 234.1 kB / 451 MB, free: 145.1 MB / 346.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.2+maint.om/package.mo): time 0.4951/0.4951, allocations: 80.01 MB / 0.5627 GB, free: 19.85 MB / 346.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004533/0.0004535, allocations: 20.62 kB / 0.6265 GB, free: 96.56 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09091/0.09139, allocations: 54.87 MB / 0.6801 GB, free: 41.68 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes14): time 0.5123/0.6037, allocations: 95.94 MB / 0.7738 GB, free: 9.023 MB / 362.7 MB Notification: Performance of NFInst.instExpressions: time 0.06953/0.6733, allocations: 34.86 MB / 0.8078 GB, free: 9.289 MB / 394.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004057/0.6774, allocations: 107.2 kB / 0.8079 GB, free: 9.184 MB / 394.7 MB Notification: Performance of NFTyping.typeComponents: time 0.005171/0.6826, allocations: 1.084 MB / 0.809 GB, free: 8.094 MB / 394.7 MB [/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/Fluid/Sources.mo:772:36-773:54:writable] Warning: 'each' used when modifying non-array element m_flow. [/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/Fluid/Sources.mo:770:36-771:54:writable] Warning: 'each' used when modifying non-array element m_flow. [/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/Fluid/Sources.mo:772:36-773:54:writable] Warning: 'each' used when modifying non-array element m_flow. [/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/Fluid/Sources.mo:770:36-771:54:writable] Warning: 'each' used when modifying non-array element m_flow. Notification: Performance of NFTyping.typeBindings: time 0.02721/0.7099, allocations: 6.737 MB / 0.8156 GB, free: 1.348 MB / 394.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0288/0.7387, allocations: 7.209 MB / 0.8226 GB, free: 10.17 MB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 0.0144/0.7532, allocations: 8.312 MB / 0.8307 GB, free: 1.836 MB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003776/0.757, allocations: 1.291 MB / 0.832 GB, free: 0.5273 MB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00684/0.7639, allocations: 2.277 MB / 0.8342 GB, free: 14.24 MB / 426.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.04637/0.8103, allocations: 19.51 MB / 0.8533 GB, free: 10.71 MB / 442.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001013/0.8114, allocations: 112 kB / 0.8534 GB, free: 10.61 MB / 442.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0291/0.8405, allocations: 9.173 MB / 0.8623 GB, free: 1.422 MB / 442.7 MB Notification: Performance of NFScalarize.scalarize: time 0.00213/0.8427, allocations: 0.8295 MB / 0.8631 GB, free: 0.5898 MB / 442.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001432/0.8441, allocations: 0.5354 MB / 0.8637 GB, free: 52 kB / 442.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01649/0.8606, allocations: 6.447 MB / 0.87 GB, free: 9.59 MB / 458.7 MB Notification: Performance of FrontEnd - DAE generated: time 7.244e-06/0.8607, allocations: 0 / 0.87 GB, free: 9.59 MB / 458.7 MB Notification: Performance of FrontEnd: time 2.906e-06/0.8607, allocations: 0 / 0.87 GB, free: 9.59 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0001205/0.8608, allocations: 0 / 0.87 GB, free: 9.59 MB / 458.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 536 * Number of variables: 536 Notification: Performance of Generate backend data structure: time 0.01469/0.8755, allocations: 3.684 MB / 0.8736 GB, free: 5.832 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.051e-05/0.8756, allocations: 8.031 kB / 0.8736 GB, free: 5.824 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00825/0.8839, allocations: 0.832 MB / 0.8744 GB, free: 4.988 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01857/0.9025, allocations: 6.552 MB / 0.8808 GB, free: 14.38 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003462/0.9029, allocations: 187.8 kB / 0.8809 GB, free: 14.19 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007432/0.9036, allocations: 196 kB / 0.8811 GB, free: 14 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01255/0.9162, allocations: 3.571 MB / 0.8846 GB, free: 10.28 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.111e-05/0.9163, allocations: 7.938 kB / 0.8846 GB, free: 10.27 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003788/0.9167, allocations: 91.91 kB / 0.8847 GB, free: 10.18 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004516/0.9172, allocations: 199.6 kB / 0.8849 GB, free: 9.984 MB / 474.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0138/0.931, allocations: 3.328 MB / 0.8882 GB, free: 6.652 MB / 474.7 MB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3356/1.267, allocations: 15.35 MB / 0.9031 GB, free: 154.7 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009677/1.276, allocations: 2.777 MB / 0.9059 GB, free: 153.4 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003953/1.28, allocations: 1.22 MB / 0.9071 GB, free: 153 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.07607/1.357, allocations: 18.94 MB / 0.9255 GB, free: 139.9 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.007724/1.364, allocations: 1.698 MB / 0.9272 GB, free: 138.9 MB / 474.7 MB Notification: Performance of pre-optimization done (n=173): time 6.482e-06/1.364, allocations: 1.312 kB / 0.9272 GB, free: 138.9 MB / 474.7 MB Notification: Performance of matching and sorting (n=189): time 0.03992/1.404, allocations: 8.919 MB / 0.9359 GB, free: 134.5 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.069e-05/1.404, allocations: 183.1 kB / 0.9361 GB, free: 134.3 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002519/1.407, allocations: 1.496 MB / 0.9375 GB, free: 133.5 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004966/1.407, allocations: 57.05 kB / 0.9376 GB, free: 133.4 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008794/1.408, allocations: 1.009 MB / 0.9386 GB, free: 132.5 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000875/1.409, allocations: 0.6357 MB / 0.9392 GB, free: 132 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002291/1.41, allocations: 45.88 kB / 0.9393 GB, free: 131.9 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0001455/1.41, allocations: 393.7 kB / 0.9396 GB, free: 131.6 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003382/1.413, allocations: 1.119 MB / 0.9407 GB, free: 130.6 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004121/1.417, allocations: 1.662 MB / 0.9423 GB, free: 128.7 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005082/1.422, allocations: 1.387 MB / 0.9437 GB, free: 127.3 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.892e-05/1.422, allocations: 4 kB / 0.9437 GB, free: 127.3 MB / 474.7 MB Notification: Performance of matching and sorting (n=279) (initialization): time 0.0104/1.433, allocations: 3.316 MB / 0.9469 GB, free: 123.9 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0003298/1.433, allocations: 0.5841 MB / 0.9475 GB, free: 123.2 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.445e-05/1.433, allocations: 16 kB / 0.9475 GB, free: 123.1 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001414/1.435, allocations: 259.2 kB / 0.9478 GB, free: 122.9 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004256/1.439, allocations: 0.5484 MB / 0.9483 GB, free: 122.3 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001657/1.441, allocations: 2.436 MB / 0.9507 GB, free: 119.8 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004292/1.445, allocations: 303.7 kB / 0.951 GB, free: 119.5 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004126/1.445, allocations: 108 kB / 0.9511 GB, free: 119.4 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.354e-05/1.445, allocations: 4 kB / 0.9511 GB, free: 119.4 MB / 474.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.008916/1.454, allocations: 3.063 MB / 0.9541 GB, free: 116.3 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.406e-05/1.454, allocations: 12.97 kB / 0.9541 GB, free: 116.3 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001334/1.456, allocations: 252.1 kB / 0.9543 GB, free: 116 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004097/1.46, allocations: 0.5383 MB / 0.9549 GB, free: 115.5 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001631/1.462, allocations: 2.444 MB / 0.9572 GB, free: 112.9 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004052/1.466, allocations: 303.5 kB / 0.9575 GB, free: 112.6 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003736/1.466, allocations: 111.9 kB / 0.9576 GB, free: 112.5 MB / 474.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 66 * Number of states: 0 () * Number of discrete variables: 30 (valve2.state_b.phase,valve2.state_a.phase,valve1.state_b.phase,valve1.state_a.phase,$whenCondition1,$whenCondition2,source.medium.phase,pipe1.statesFM[2].phase,sink.medium.phase,pipe2.statesFM[2].phase,pipe3.statesFM[2].phase,valveOpening1.a,valveOpening1.b,valveOpening1.last,$PRE.valveOpening1.nextEvent,valveOpening1.nextEvent,valveOpening1.nextEventScaled,valveOpening2.a,valveOpening2.b,valveOpening2.last,$PRE.valveOpening2.nextEvent,valveOpening2.nextEvent,valveOpening2.nextEventScaled,junctionIdeal.medium.phase,pipe3.state_a.phase,pipe2.state_a.phase,pipe1.state_b.phase,pipe1.state_a.phase,pipe3.state_b.phase,pipe2.state_b.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (263): * Single equations (assignments): 257 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 4 {1 1,1 1,1 1,1 1} Notification: Performance of prepare postOptimizeDAE: time 0.00173/1.468, allocations: 0.7645 MB / 0.9584 GB, free: 111.7 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005308/1.468, allocations: 205.6 kB / 0.9586 GB, free: 111.5 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0151/1.483, allocations: 7.506 MB / 0.9659 GB, free: 103.9 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01217/1.496, allocations: 6.505 MB / 0.9723 GB, free: 97.25 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.43e-05/1.496, allocations: 0 / 0.9723 GB, free: 97.25 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001872/1.498, allocations: 0.7223 MB / 0.973 GB, free: 96.5 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007133/1.498, allocations: 59.98 kB / 0.973 GB, free: 96.44 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002999/1.501, allocations: 263.5 kB / 0.9733 GB, free: 96.18 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004433/1.502, allocations: 149.7 kB / 0.9734 GB, free: 96.04 MB / 474.7 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0117/1.514, allocations: 4.901 MB / 0.9782 GB, free: 91.05 MB / 474.7 MB Notification: Performance of postOpt detectDAEmodeSparsePattern (simulation): time 0.01434/1.528, allocations: 7 MB / 0.985 GB, free: 83.91 MB / 474.7 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.004505/1.533, allocations: 2.259 MB / 0.9872 GB, free: 81.65 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.002059/1.535, allocations: 1.105 MB / 0.9883 GB, free: 80.53 MB / 474.7 MB Notification: Performance of Backend: time 1.383e-06/1.535, allocations: 0 / 0.9883 GB, free: 80.53 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.02243/1.557, allocations: 6.162 MB / 0.9943 GB, free: 74.82 MB / 474.7 MB Notification: Performance of SimCode: time 0.01481/1.572, allocations: 7.321 MB / 1.001 GB, free: 67.43 MB / 474.7 MB Notification: Performance of Templates: time 0.523/2.095, allocations: 95.53 MB / 1.095 GB, free: 142.6 MB / 474.7 MB