Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.1_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes18.conf.json Using package ModelicaTest with version 3.2.1 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.1+maint.om/package.mo) Using package ModelicaServices with version 3.2.1 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo) Using package Modelica with version 3.2.1 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo) Using package Complex with version 3.2.1 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo) Running command: translateModel(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes18,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|junctionIdeal.medium.h|junctionIdeal.medium.p|junctionVolume.medium.h|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.1_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes18") Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo): time 0.003988/0.003994, allocations: 348.7 kB / 15.95 MB, free: 6.215 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo): time 3.844/3.844, allocations: 341.5 MB / 358.2 MB, free: 12.62 MB / 298.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo): time 0.003666/0.003666, allocations: 225.1 kB / 397.9 MB, free: 4.973 MB / 330.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.1+maint.om/package.mo): time 0.4619/0.4619, allocations: 76.09 MB / 0.5014 GB, free: 112.6 MB / 362.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006745/0.0006748, allocations: 8 kB / 0.5592 GB, free: 53.46 MB / 362.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08756/0.08827, allocations: 48.7 MB / 0.6067 GB, free: 4.652 MB / 362.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes18): time 0.4027/0.491, allocations: 104.6 MB / 0.7088 GB, free: 8.438 MB / 362.7 MB Notification: Performance of NFInst.instExpressions: time 0.07119/0.5623, allocations: 36.55 MB / 0.7445 GB, free: 3.844 MB / 394.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004276/0.5666, allocations: 115.1 kB / 0.7446 GB, free: 3.73 MB / 394.7 MB Notification: Performance of NFTyping.typeComponents: time 0.005748/0.5724, allocations: 1.161 MB / 0.7458 GB, free: 2.562 MB / 394.7 MB [/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+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.1+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.1+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.1+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.03015/0.6026, allocations: 6.984 MB / 0.7526 GB, free: 11.58 MB / 410.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.03769/0.6403, allocations: 7.509 MB / 0.7599 GB, free: 4.129 MB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 0.3564/0.9968, allocations: 8.848 MB / 0.7686 GB, free: 18.62 MB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00378/1.001, allocations: 1.387 MB / 0.7699 GB, free: 18.56 MB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.007795/1.008, allocations: 2.434 MB / 0.7723 GB, free: 18.56 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.04701/1.055, allocations: 19.48 MB / 0.7913 GB, free: 18.26 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001323/1.057, allocations: 126.1 kB / 0.7914 GB, free: 18.26 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02741/1.084, allocations: 9.118 MB / 0.8004 GB, free: 17.31 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 0.002315/1.087, allocations: 0.8682 MB / 0.8012 GB, free: 17.03 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001866/1.089, allocations: 0.5744 MB / 0.8018 GB, free: 16.7 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01595/1.105, allocations: 6.665 MB / 0.8083 GB, free: 13.4 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 9.057e-06/1.105, allocations: 3.188 kB / 0.8083 GB, free: 13.4 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.746e-06/1.105, allocations: 0 / 0.8083 GB, free: 13.4 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0001556/1.105, allocations: 1.5 kB / 0.8083 GB, free: 13.4 MB / 410.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 571 * Number of variables: 571 Notification: Performance of Generate backend data structure: time 0.01535/1.12, allocations: 3.832 MB / 0.812 GB, free: 9.801 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.186e-05/1.12, allocations: 8.031 kB / 0.812 GB, free: 9.793 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008658/1.129, allocations: 0.8606 MB / 0.8129 GB, free: 8.992 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01619/1.145, allocations: 6.509 MB / 0.8192 GB, free: 4.516 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003177/1.146, allocations: 201.4 kB / 0.8194 GB, free: 4.398 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000822/1.146, allocations: 217.3 kB / 0.8196 GB, free: 4.258 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01315/1.16, allocations: 3.799 MB / 0.8233 GB, free: 1.289 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.975e-05/1.16, allocations: 15 kB / 0.8233 GB, free: 1.285 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004351/1.16, allocations: 91.7 kB / 0.8234 GB, free: 1.262 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004385/1.161, allocations: 207.7 kB / 0.8236 GB, free: 1.078 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01548/1.176, allocations: 3.574 MB / 0.8271 GB, free: 14.5 MB / 426.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.05409/1.23, allocations: 16.59 MB / 0.8433 GB, free: 15.21 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01978/1.25, allocations: 3.144 MB / 0.8464 GB, free: 12.7 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.007065/1.257, allocations: 1.327 MB / 0.8477 GB, free: 11.84 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.08512/1.342, allocations: 18.77 MB / 0.866 GB, free: 7.242 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.008254/1.351, allocations: 1.835 MB / 0.8678 GB, free: 5.82 MB / 458.7 MB Notification: Performance of pre-optimization done (n=188): time 8.015e-06/1.351, allocations: 0 / 0.8678 GB, free: 5.82 MB / 458.7 MB Notification: Performance of matching and sorting (n=208): time 0.05155/1.402, allocations: 9.996 MB / 0.8776 GB, free: 14.17 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001393/1.403, allocations: 184.2 kB / 0.8777 GB, free: 13.96 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003527/1.406, allocations: 1.589 MB / 0.8793 GB, free: 12.76 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0006165/1.407, allocations: 62.89 kB / 0.8794 GB, free: 12.72 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001362/1.408, allocations: 1.076 MB / 0.8804 GB, free: 12.03 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001395/1.41, allocations: 0.6967 MB / 0.8811 GB, free: 11.44 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003134/1.41, allocations: 49.25 kB / 0.8811 GB, free: 11.43 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0002682/1.41, allocations: 405.2 kB / 0.8815 GB, free: 11.06 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004732/1.415, allocations: 1.245 MB / 0.8827 GB, free: 10.21 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005635/1.421, allocations: 1.85 MB / 0.8845 GB, free: 8.602 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005437/1.426, allocations: 1.515 MB / 0.886 GB, free: 7.617 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.408e-05/1.426, allocations: 4 kB / 0.886 GB, free: 7.613 MB / 474.7 MB Notification: Performance of matching and sorting (n=314) (initialization): time 0.01452/1.441, allocations: 3.757 MB / 0.8897 GB, free: 4.949 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0006175/1.441, allocations: 0.6244 MB / 0.8903 GB, free: 4.152 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.177e-05/1.441, allocations: 19.98 kB / 0.8903 GB, free: 4.133 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002208/1.444, allocations: 356.6 kB / 0.8907 GB, free: 3.844 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00544/1.449, allocations: 0.6167 MB / 0.8913 GB, free: 3.285 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003346/1.453, allocations: 3.105 MB / 0.8943 GB, free: 288 kB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005156/1.458, allocations: 331.7 kB / 0.8946 GB, free: 15.99 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008042/1.459, allocations: 125.9 kB / 0.8947 GB, free: 15.89 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.63e-05/1.459, allocations: 4 kB / 0.8947 GB, free: 15.89 MB / 490.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01305/1.472, allocations: 3.482 MB / 0.8981 GB, free: 13.52 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.327e-05/1.472, allocations: 19.98 kB / 0.8982 GB, free: 13.5 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002006/1.474, allocations: 351.3 kB / 0.8985 GB, free: 13.22 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005195/1.479, allocations: 0.6121 MB / 0.8991 GB, free: 12.66 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003162/1.482, allocations: 3.101 MB / 0.9021 GB, free: 9.66 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00498/1.487, allocations: 336.2 kB / 0.9024 GB, free: 9.375 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009029/1.488, allocations: 122.3 kB / 0.9026 GB, free: 9.281 MB / 490.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 73 * Number of states: 0 () * Number of discrete variables: 29 (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,valveOpening2.a,valveOpening2.b,valveOpening2.last,$PRE.valveOpening2.nextEvent,valveOpening2.nextEvent,junctionIdeal.medium.phase,junctionVolume.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 (296): * Single equations (assignments): 289 * 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: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 5 {1 1,1 1,1 1,1 6,1 1} Notification: Performance of prepare postOptimizeDAE: time 0.002752/1.491, allocations: 0.7883 MB / 0.9033 GB, free: 8.723 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007514/1.492, allocations: 221.4 kB / 0.9035 GB, free: 8.504 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02172/1.514, allocations: 8.183 MB / 0.9115 GB, free: 2.957 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01708/1.531, allocations: 7.097 MB / 0.9185 GB, free: 14.03 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.266e-05/1.531, allocations: 0 / 0.9185 GB, free: 14.03 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00246/1.533, allocations: 0.767 MB / 0.9192 GB, free: 13.38 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009536/1.534, allocations: 55.98 kB / 0.9193 GB, free: 13.36 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003931/1.538, allocations: 280.6 kB / 0.9195 GB, free: 13.12 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008279/1.539, allocations: 173.5 kB / 0.9197 GB, free: 12.97 MB / 0.4948 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.01733/1.556, allocations: 5.389 MB / 0.925 GB, free: 9.09 MB / 0.4948 GB Notification: Performance of postOpt detectDAEmodeSparsePattern (simulation): time 0.02101/1.578, allocations: 7.587 MB / 0.9324 GB, free: 3.289 MB / 0.4948 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.006292/1.584, allocations: 2.408 MB / 0.9347 GB, free: 0.8789 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.003006/1.587, allocations: 1.151 MB / 0.9358 GB, free: 15.71 MB / 0.5105 GB Notification: Performance of Backend: time 2.835e-06/1.587, allocations: 4 kB / 0.9358 GB, free: 15.71 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.03105/1.618, allocations: 6.51 MB / 0.9422 GB, free: 9.582 MB / 0.5105 GB Notification: Performance of SimCode: time 0.02035/1.638, allocations: 7.873 MB / 0.9499 GB, free: 1.789 MB / 0.5105 GB Notification: Performance of Templates: time 0.5449/2.183, allocations: 101 MB / 1.048 GB, free: 153.9 MB / 0.5105 GB