Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.2_ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeClosingValve.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.DynamicPipeClosingValve,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|pipe.mediums.1..h|pipe.mediums.1..p",fileNamePrefix="ModelicaTest_3.2.2_ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeClosingValve") Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo): time 0.004043/0.00405, allocations: 366.4 kB / 15.96 MB, free: 6.203 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.906/3.906, allocations: 388.9 MB / 405.6 MB, free: 9.648 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.00352/0.00352, allocations: 222.5 kB / 451 MB, free: 145 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.5161/0.5161, allocations: 80.01 MB / 0.5627 GB, free: 19.78 MB / 346.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004776/0.0004779, allocations: 8 kB / 0.6265 GB, free: 96.57 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09333/0.09383, allocations: 54.88 MB / 0.6801 GB, free: 41.68 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeClosingValve): time 0.4785/0.5724, allocations: 44.4 MB / 0.7235 GB, free: 14.32 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.05282/0.6253, allocations: 24.29 MB / 0.7472 GB, free: 11.31 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001586/0.6269, allocations: 40.66 kB / 0.7472 GB, free: 11.29 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002048/0.629, allocations: 459.3 kB / 0.7477 GB, free: 11.12 MB / 346.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.02021/0.6492, allocations: 4.849 MB / 0.7524 GB, free: 9.508 MB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0167/0.666, allocations: 4.101 MB / 0.7564 GB, free: 7.25 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.004978/0.671, allocations: 3.104 MB / 0.7594 GB, free: 5.496 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001247/0.6723, allocations: 0.4924 MB / 0.7599 GB, free: 5.188 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.02201/0.6943, allocations: 9.288 MB / 0.769 GB, free: 332 kB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.03752/0.7319, allocations: 14.87 MB / 0.7835 GB, free: 1.578 MB / 362.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0003466/0.7323, allocations: 44 kB / 0.7835 GB, free: 1.535 MB / 362.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02599/0.7583, allocations: 8.012 MB / 0.7914 GB, free: 9.59 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0008122/0.7591, allocations: 290.9 kB / 0.7916 GB, free: 9.312 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0005787/0.7597, allocations: 225.2 kB / 0.7919 GB, free: 9.086 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01139/0.7711, allocations: 4.122 MB / 0.7959 GB, free: 5.211 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.192e-06/0.7712, allocations: 0 / 0.7959 GB, free: 5.211 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.234e-06/0.7712, allocations: 0 / 0.7959 GB, free: 5.211 MB / 378.7 MB Notification: Performance of Transformations before backend: time 2.476e-05/0.7713, allocations: 0 / 0.7959 GB, free: 5.211 MB / 378.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 196 * Number of variables: 196 Notification: Performance of Generate backend data structure: time 0.007816/0.7791, allocations: 1.939 MB / 0.7978 GB, free: 3.234 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.102e-05/0.7791, allocations: 8.031 kB / 0.7978 GB, free: 3.227 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00369/0.7828, allocations: 374.4 kB / 0.7981 GB, free: 2.859 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01904/0.8019, allocations: 7.031 MB / 0.805 GB, free: 12.16 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001284/0.8021, allocations: 69.98 kB / 0.8051 GB, free: 12.09 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002109/0.8023, allocations: 75.98 kB / 0.8051 GB, free: 12.02 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00517/0.8075, allocations: 1.455 MB / 0.8066 GB, free: 10.5 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.927e-05/0.8076, allocations: 4 kB / 0.8066 GB, free: 10.5 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001471/0.8078, allocations: 31.98 kB / 0.8066 GB, free: 10.46 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001499/0.8079, allocations: 72.77 kB / 0.8067 GB, free: 10.4 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005545/0.8135, allocations: 1.339 MB / 0.808 GB, free: 9.055 MB / 394.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.01349/0.827, allocations: 6.538 MB / 0.8144 GB, free: 1.977 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004729/0.8318, allocations: 1.013 MB / 0.8154 GB, free: 0.9414 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001626/0.8335, allocations: 456.1 kB / 0.8158 GB, free: 500 kB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1183/0.9518, allocations: 32.48 MB / 0.8475 GB, free: 12.18 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.971e-05/0.9519, allocations: 42.98 kB / 0.8475 GB, free: 12.12 MB / 442.7 MB Notification: Performance of pre-optimization done (n=56): time 4.448e-06/0.9519, allocations: 0 / 0.8475 GB, free: 12.12 MB / 442.7 MB Notification: Performance of matching and sorting (n=60): time 0.01495/0.9669, allocations: 3.313 MB / 0.8508 GB, free: 8.758 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000103/0.967, allocations: 170.7 kB / 0.8509 GB, free: 8.555 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001419/0.9685, allocations: 0.7036 MB / 0.8516 GB, free: 7.844 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001821/0.9687, allocations: 37.7 kB / 0.8517 GB, free: 7.801 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004672/0.9692, allocations: 427.5 kB / 0.8521 GB, free: 7.379 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003094/0.9695, allocations: 209 kB / 0.8523 GB, free: 7.172 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.277e-05/0.9696, allocations: 16 kB / 0.8523 GB, free: 7.156 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0002362/0.9698, allocations: 390.7 kB / 0.8527 GB, free: 6.766 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001627/0.9715, allocations: 413.7 kB / 0.8531 GB, free: 6.363 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001865/0.9734, allocations: 0.625 MB / 0.8537 GB, free: 5.652 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002114/0.9755, allocations: 481.9 kB / 0.8541 GB, free: 5.18 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.753e-05/0.9756, allocations: 4 kB / 0.8541 GB, free: 5.176 MB / 442.7 MB Notification: Performance of matching and sorting (n=93) (initialization): time 0.00558/0.9812, allocations: 1.358 MB / 0.8555 GB, free: 3.805 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002624/0.9815, allocations: 274.5 kB / 0.8557 GB, free: 3.449 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.8e-05/0.9815, allocations: 8 kB / 0.8557 GB, free: 3.441 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005485/0.987, allocations: 0.6759 MB / 0.8564 GB, free: 2.762 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001218/0.9883, allocations: 163.7 kB / 0.8565 GB, free: 2.602 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002863/0.9912, allocations: 1.307 MB / 0.8578 GB, free: 1.273 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002316/0.9936, allocations: 107.8 kB / 0.8579 GB, free: 1.168 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000269/0.9939, allocations: 39.98 kB / 0.858 GB, free: 1.129 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.007e-05/0.9939, allocations: 4 kB / 0.858 GB, free: 1.125 MB / 442.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.008151/1.002, allocations: 1.228 MB / 0.8592 GB, free: 15.89 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.152e-05/1.002, allocations: 7.984 kB / 0.8592 GB, free: 15.88 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005157/1.007, allocations: 448.8 kB / 0.8596 GB, free: 15.44 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002052/1.01, allocations: 167.8 kB / 0.8598 GB, free: 15.28 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003619/1.013, allocations: 1.113 MB / 0.8608 GB, free: 14.14 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002355/1.016, allocations: 111 kB / 0.8609 GB, free: 14.04 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002557/1.016, allocations: 43.98 kB / 0.861 GB, free: 13.99 MB / 458.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 28 * Number of states: 0 () * Number of discrete variables: 9 (pipe.state_a.phase,valve.state_b.phase,valve.state_a.phase,source.medium.phase,pipe.statesFM[2].phase,sink.medium.phase,sink.state.phase,pipe.state_b.phase,source.state.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (69): * Single equations (assignments): 68 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {2 23} Notification: Performance of prepare postOptimizeDAE: time 0.001214/1.017, allocations: 358.2 kB / 0.8613 GB, free: 13.63 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004666/1.018, allocations: 82.97 kB / 0.8614 GB, free: 13.55 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01239/1.03, allocations: 3.327 MB / 0.8647 GB, free: 10.22 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.009712/1.04, allocations: 2.793 MB / 0.8674 GB, free: 7.352 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.463e-05/1.04, allocations: 0 / 0.8674 GB, free: 7.352 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001595/1.042, allocations: 446.1 kB / 0.8678 GB, free: 6.895 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005162/1.042, allocations: 19.98 kB / 0.8678 GB, free: 6.875 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002601/1.045, allocations: 115.8 kB / 0.8679 GB, free: 6.762 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003639/1.045, allocations: 56.56 kB / 0.868 GB, free: 6.707 MB / 458.7 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.008867/1.054, allocations: 1.976 MB / 0.8699 GB, free: 4.719 MB / 458.7 MB Notification: Performance of postOpt detectDAEmodeSparsePattern (simulation): time 0.01133/1.065, allocations: 2.876 MB / 0.8727 GB, free: 1.82 MB / 458.7 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.003482/1.069, allocations: 0.8459 MB / 0.8736 GB, free: 0.9766 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.002717/1.072, allocations: 0.7824 MB / 0.8743 GB, free: 192 kB / 458.7 MB Notification: Performance of Backend: time 1.813e-06/1.072, allocations: 0 / 0.8743 GB, free: 192 kB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.02465/1.096, allocations: 3.044 MB / 0.8773 GB, free: 13.15 MB / 474.7 MB Notification: Performance of SimCode: time 0.01251/1.109, allocations: 3.467 MB / 0.8807 GB, free: 9.633 MB / 474.7 MB Notification: Performance of Templates: time 0.4484/1.558, allocations: 63.17 MB / 0.9424 GB, free: 160.1 MB / 490.7 MB