Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.2_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes12.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.BranchingPipes12,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|pipe1.mediums.1..h|pipe1.mediums.1..p|pipe2.mediums.1..h|pipe2.mediums.1..p|pipe3.mediums.1..h|pipe3.mediums.1..p|valveIncompressible.filter.x.1.|valveIncompressible.filter.x.2.|valveIncompressible1.filter.x.1.|valveIncompressible1.filter.x.2.|valveOpening1.a|valveOpening1.b|valveOpening1.last|valveOpening1.nextEvent|valveOpening2.a|valveOpening2.b|valveOpening2.last|valveOpening2.nextEvent",fileNamePrefix="ModelicaTest_3.2.2_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes12") Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo): time 0.00481/0.004817, allocations: 362.8 kB / 15.95 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 4.153/4.153, allocations: 388.9 MB / 405.6 MB, free: 10.25 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.005579/0.00558, allocations: 229.6 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.5493/0.5493, allocations: 80.02 MB / 0.5627 GB, free: 19.85 MB / 346.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004724/0.0004726, allocations: 8 kB / 0.6265 GB, free: 96.57 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09674/0.09724, allocations: 54.87 MB / 0.6801 GB, free: 41.68 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 8.072/8.17, allocations: 2.656 GB / 3.336 GB, free: 102.9 MB / 490.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003272/8.17, allocations: 87.14 kB / 3.336 GB, free: 102.9 MB / 490.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.183/12.35, allocations: 0.7637 GB / 4.1 GB, free: 38.57 MB / 0.5105 GB Notification: Performance of FrontEnd: time 3.367e-06/12.35, allocations: 0 / 4.1 GB, free: 38.57 MB / 0.5105 GB Notification: Performance of Transformations before backend: time 0.000476/12.35, allocations: 74.34 kB / 4.1 GB, free: 38.56 MB / 0.5105 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 518 * Number of variables: 518 Notification: Performance of Generate backend data structure: time 0.02335/12.38, allocations: 4.246 MB / 4.104 GB, free: 36.69 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 4.151e-05/12.38, allocations: 9.625 kB / 4.104 GB, free: 36.69 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009804/12.39, allocations: 0.8345 MB / 4.105 GB, free: 36.55 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.08002/12.47, allocations: 13.61 MB / 4.118 GB, free: 35.98 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000399/12.47, allocations: 176.6 kB / 4.118 GB, free: 35.98 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001273/12.47, allocations: 198.1 kB / 4.118 GB, free: 35.98 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.018/12.49, allocations: 3.732 MB / 4.122 GB, free: 35.43 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001045/12.49, allocations: 7.219 kB / 4.122 GB, free: 35.43 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006791/12.49, allocations: 88.53 kB / 4.122 GB, free: 35.43 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004225/12.49, allocations: 163.2 kB / 4.122 GB, free: 35.42 MB / 0.5105 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01382/12.5, allocations: 3.543 MB / 4.126 GB, free: 35.41 MB / 0.5105 GB 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.03062/12.53, allocations: 14.75 MB / 4.14 GB, free: 26.8 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.008217/12.54, allocations: 2.197 MB / 4.142 GB, free: 26.77 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003474/12.54, allocations: 1.152 MB / 4.143 GB, free: 26.77 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.05551/12.6, allocations: 18.89 MB / 4.162 GB, free: 14.92 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.006745/12.61, allocations: 1.675 MB / 4.164 GB, free: 14.8 MB / 0.5105 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001902/12.61, allocations: 194 kB / 4.164 GB, free: 14.71 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=162): time 8.456e-06/12.61, allocations: 0 / 4.164 GB, free: 14.71 MB / 0.5105 GB Notification: Performance of matching and sorting (n=174): time 0.06498/12.67, allocations: 9.018 MB / 4.173 GB, free: 13.62 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0003162/12.67, allocations: 414.2 kB / 4.173 GB, free: 13.15 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004853/12.68, allocations: 1.685 MB / 4.175 GB, free: 12.97 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.0007076/12.68, allocations: 59.23 kB / 4.175 GB, free: 12.94 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.001225/12.68, allocations: 0.994 MB / 4.176 GB, free: 12.54 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.001045/12.68, allocations: 0.5842 MB / 4.176 GB, free: 12.17 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003276/12.68, allocations: 41.25 kB / 4.176 GB, free: 12.17 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0002735/12.68, allocations: 386.4 kB / 4.177 GB, free: 11.87 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003714/12.69, allocations: 1.16 MB / 4.178 GB, free: 11.86 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004236/12.69, allocations: 1.641 MB / 4.179 GB, free: 11.36 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.004276/12.69, allocations: 1.418 MB / 4.181 GB, free: 11.27 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.831e-05/12.69, allocations: 7.922 kB / 4.181 GB, free: 11.27 MB / 0.5105 GB Notification: Performance of matching and sorting (n=263) (initialization): time 0.01129/12.71, allocations: 3.508 MB / 4.184 GB, free: 10.98 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 0.0007787/12.71, allocations: 494.2 kB / 4.185 GB, free: 26.44 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.479e-05/12.71, allocations: 13.69 kB / 4.185 GB, free: 26.44 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.008476/12.72, allocations: 0.991 MB / 4.186 GB, free: 26.4 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003883/12.72, allocations: 473.6 kB / 4.186 GB, free: 26.4 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004221/12.72, allocations: 3.161 MB / 4.189 GB, free: 24.32 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00407/12.73, allocations: 245.1 kB / 4.189 GB, free: 24.3 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006327/12.73, allocations: 104.7 kB / 4.189 GB, free: 24.3 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 1.441e-05/12.73, allocations: 3.969 kB / 4.189 GB, free: 24.3 MB / 0.5261 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0106/12.74, allocations: 3.184 MB / 4.193 GB, free: 24.15 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.838e-05/12.74, allocations: 20.38 kB / 4.193 GB, free: 24.15 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002161/12.74, allocations: 367.3 kB / 4.193 GB, free: 24.12 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004034/12.75, allocations: 0.4889 MB / 4.193 GB, free: 24.12 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005872/12.75, allocations: 4.052 MB / 4.197 GB, free: 21.3 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003729/12.76, allocations: 233.5 kB / 4.198 GB, free: 21.29 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005163/12.76, allocations: 104.1 kB / 4.198 GB, free: 21.29 MB / 0.5261 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 50 * Number of states: 0 () * Number of discrete variables: 29 (pipe3.state_a.phase,pipe2.state_a.phase,valveIncompressible1.state_b.phase,valveIncompressible1.state_a.phase,valveIncompressible.state_b.phase,valveIncompressible.state_a.phase,pipe1.state_b.phase,pipe1.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,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 (223): * Single equations (assignments): 213 * Array equations: 2 * Algorithm blocks: 2 * Record equations: 2 * 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,3 19} Notification: Performance of prepare postOptimizeDAE: time 0.002206/12.76, allocations: 0.7689 MB / 4.198 GB, free: 21.02 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006879/12.76, allocations: 212.4 kB / 4.199 GB, free: 20.92 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01646/12.78, allocations: 7.857 MB / 4.206 GB, free: 20.12 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.861e-05/12.78, allocations: 83.08 kB / 4.206 GB, free: 20.12 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.076e-06/12.78, allocations: 3.938 kB / 4.206 GB, free: 20.12 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01387/12.79, allocations: 6.875 MB / 4.213 GB, free: 19.2 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02259/12.81, allocations: 10.89 MB / 4.224 GB, free: 17.87 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.761e-05/12.81, allocations: 4 kB / 4.224 GB, free: 17.87 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002871/12.81, allocations: 341.8 kB / 4.224 GB, free: 17.85 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.008011/12.82, allocations: 2.14 MB / 4.226 GB, free: 17.47 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006107/12.82, allocations: 68.52 kB / 4.226 GB, free: 17.44 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00506/12.83, allocations: 4.112 MB / 4.23 GB, free: 14.51 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.777e-06/12.83, allocations: 0 / 4.23 GB, free: 14.51 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01774/12.85, allocations: 7.975 MB / 4.238 GB, free: 10.95 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002363/12.85, allocations: 0.7477 MB / 4.239 GB, free: 10.48 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009358/12.85, allocations: 61 kB / 4.239 GB, free: 10.45 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003351/12.85, allocations: 190.5 kB / 4.239 GB, free: 10.4 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006314/12.85, allocations: 137.6 kB / 4.239 GB, free: 10.38 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003335/12.85, allocations: 76.92 kB / 4.239 GB, free: 10.37 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.003159/12.86, allocations: 1.249 MB / 4.24 GB, free: 9.891 MB / 0.5261 GB Notification: Performance of sort global known variables: time 9.72e-07/12.86, allocations: 0 / 4.24 GB, free: 9.891 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.01268/12.87, allocations: 2.706 MB / 4.243 GB, free: 9.34 MB / 0.5261 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 10 (pipe1.mediums[1].p,pipe1.mediums[1].h,valveIncompressible.filter.x[1],valveIncompressible.filter.x[2],valveIncompressible1.filter.x[1],valveIncompressible1.filter.x[2],pipe2.mediums[1].p,pipe2.mediums[1].h,pipe3.mediums[1].p,pipe3.mediums[1].h) * Number of discrete variables: 55 ($cse3.phase,$cse3.region,$cse5.region3boundary,$cse6.region3boundary,$cse7.phase,$cse7.region,$cse10.phase,$cse10.region,$cse11.phase,$cse11.region,$cse18.phase,$cse18.region,$cse19.phase,$cse19.region,$cse21.phase,$cse21.region,$cse22.phase,$cse22.region,$cse27.phase,$cse27.region,$cse28.phase,$cse28.region,$cse30.phase,$cse30.region,$cse33.phase,$cse33.region,$cse35.region3boundary,$cse36.region3boundary,$cse37.phase,$cse37.region,$cse39.phase,$cse39.region,$cse41.region3boundary,$cse42.region3boundary,$cse43.phase,$cse43.region,$cse45.phase,$cse45.region,$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,valveOpening1.nextEvent,valveOpening1.nextEventScaled,valveOpening2.a,valveOpening2.b,valveOpening2.last,valveOpening2.nextEvent,valveOpening2.nextEventScaled) * Number of discrete states: 12 (valveOpening2.nextEvent,valveOpening2.last,valveOpening2.nextEventScaled,valveOpening2.b,valveOpening2.a,$whenCondition2,valveOpening1.nextEvent,valveOpening1.last,valveOpening1.nextEventScaled,valveOpening1.b,valveOpening1.a,$whenCondition1) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (168): * Single equations (assignments): 143 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 19 * 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,3 28} Notification: Performance of Backend phase and start with SimCode phase: time 0.01511/12.89, allocations: 2.685 MB / 4.246 GB, free: 8.609 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.01723/12.9, allocations: 5.592 MB / 4.251 GB, free: 4.648 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 7.043e-06/12.9, allocations: 0 / 4.251 GB, free: 4.648 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.006711/12.91, allocations: 2.43 MB / 4.254 GB, free: 2.461 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.009741/12.92, allocations: 0.9201 MB / 4.254 GB, free: 1.789 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.673/13.59, allocations: 81.87 MB / 4.334 GB, free: 62.8 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004007/13.6, allocations: 2.296 MB / 4.337 GB, free: 62 MB / 0.5417 GB Notification: Performance of simCode: alias equations: time 0.009517/13.61, allocations: 2.197 MB / 4.339 GB, free: 61.92 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001252/13.61, allocations: 175.9 kB / 4.339 GB, free: 61.91 MB / 0.5417 GB Notification: Performance of SimCode: time 1.332e-06/13.61, allocations: 0 / 4.339 GB, free: 61.91 MB / 0.5417 GB Notification: Performance of Templates: time 0.2368/13.84, allocations: 87.26 MB / 4.424 GB, free: 51.87 MB / 0.5417 GB