Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.2_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes18.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.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.2_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes18") Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo): time 0.004299/0.004299, allocations: 360.2 kB / 15.95 MB, free: 6.207 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.916/3.916, allocations: 388.9 MB / 405.6 MB, free: 9.566 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.004955/0.004954, allocations: 229.6 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.6715/0.6715, allocations: 80.02 MB / 0.5627 GB, free: 19.75 MB / 346.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004846/0.0004848, allocations: 12.97 kB / 0.6265 GB, free: 96.52 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0958/0.09631, allocations: 54.87 MB / 0.6801 GB, free: 41.64 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 8.478/8.574, allocations: 2.678 GB / 3.358 GB, free: 113.7 MB / 490.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003192/8.575, allocations: 87.19 kB / 3.358 GB, free: 113.7 MB / 490.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.337/13.91, allocations: 0.9582 GB / 4.316 GB, free: 38.09 MB / 0.5261 GB Notification: Performance of FrontEnd: time 2.565e-06/13.91, allocations: 2.406 kB / 4.316 GB, free: 38.09 MB / 0.5261 GB Notification: Performance of Transformations before backend: time 0.0003924/13.91, allocations: 75.31 kB / 4.316 GB, free: 38.08 MB / 0.5261 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 575 * Number of variables: 575 Notification: Performance of Generate backend data structure: time 0.02317/13.94, allocations: 4.53 MB / 4.32 GB, free: 36.16 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 4.783e-05/13.94, allocations: 11.66 kB / 4.32 GB, free: 36.16 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01025/13.95, allocations: 0.933 MB / 4.321 GB, free: 36.02 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0396/13.99, allocations: 13.64 MB / 4.335 GB, free: 35.45 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003839/13.99, allocations: 203.9 kB / 4.335 GB, free: 35.44 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001183/13.99, allocations: 219.6 kB / 4.335 GB, free: 35.44 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01427/14, allocations: 3.927 MB / 4.339 GB, free: 34.82 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.455e-05/14, allocations: 13.33 kB / 4.339 GB, free: 34.82 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004593/14, allocations: 97.23 kB / 4.339 GB, free: 34.82 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003247/14, allocations: 171.4 kB / 4.339 GB, free: 34.81 MB / 0.5261 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01469/14.02, allocations: 3.61 MB / 4.343 GB, free: 34.78 MB / 0.5261 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.03356/14.05, allocations: 16.7 MB / 4.359 GB, free: 24.68 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0116/14.06, allocations: 3.155 MB / 4.362 GB, free: 24.07 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.004362/14.07, allocations: 1.362 MB / 4.363 GB, free: 24.06 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.05815/14.12, allocations: 18.56 MB / 4.382 GB, free: 28.51 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.008119/14.13, allocations: 1.874 MB / 4.383 GB, free: 28.38 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=192): time 5.781e-06/14.13, allocations: 3.156 kB / 4.383 GB, free: 28.38 MB / 0.5417 GB Notification: Performance of matching and sorting (n=212): time 0.04871/14.18, allocations: 10.11 MB / 4.393 GB, free: 27.16 MB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000184/14.18, allocations: 263.1 kB / 4.394 GB, free: 26.88 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003778/14.19, allocations: 1.629 MB / 4.395 GB, free: 26.64 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 0.0007424/14.19, allocations: 67.42 kB / 4.395 GB, free: 26.61 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 0.001375/14.19, allocations: 1.047 MB / 4.396 GB, free: 26.19 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 0.001228/14.19, allocations: 0.7085 MB / 4.397 GB, free: 25.74 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003096/14.19, allocations: 50.88 kB / 4.397 GB, free: 25.74 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 0.0002699/14.19, allocations: 399.9 kB / 4.397 GB, free: 25.43 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004444/14.19, allocations: 1.271 MB / 4.399 GB, free: 25.42 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005063/14.2, allocations: 1.824 MB / 4.4 GB, free: 24.84 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.005139/14.2, allocations: 1.533 MB / 4.402 GB, free: 24.73 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.011e-05/14.2, allocations: 3.688 kB / 4.402 GB, free: 24.73 MB / 0.5417 GB Notification: Performance of matching and sorting (n=309) (initialization): time 0.01427/14.22, allocations: 3.72 MB / 4.405 GB, free: 24.41 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 0.0004447/14.22, allocations: 0.5541 MB / 4.406 GB, free: 23.74 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.051e-05/14.22, allocations: 17.41 kB / 4.406 GB, free: 23.73 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002026/14.22, allocations: 350.3 kB / 4.406 GB, free: 23.69 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005207/14.23, allocations: 0.5987 MB / 4.407 GB, free: 23.69 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003064/14.23, allocations: 3.106 MB / 4.41 GB, free: 21.09 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005451/14.24, allocations: 329.5 kB / 4.41 GB, free: 21.05 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009654/14.24, allocations: 122.6 kB / 4.41 GB, free: 21.05 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 1.391e-05/14.24, allocations: 2.781 kB / 4.41 GB, free: 21.05 MB / 0.5417 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01282/14.25, allocations: 3.442 MB / 4.414 GB, free: 20.87 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.251e-05/14.25, allocations: 15.22 kB / 4.414 GB, free: 20.87 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00192/14.25, allocations: 352.7 kB / 4.414 GB, free: 20.83 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005097/14.26, allocations: 0.5934 MB / 4.415 GB, free: 20.82 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002933/14.26, allocations: 3.098 MB / 4.418 GB, free: 18.22 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005109/14.26, allocations: 336.5 kB / 4.418 GB, free: 18.19 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008546/14.27, allocations: 118.3 kB / 4.418 GB, free: 18.18 MB / 0.5417 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 62 * Number of states: 0 () * Number of discrete variables: 31 (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,junctionVolume.medium.phase,pipe3.state_a.phase,pipe3.state_b.phase,pipe2.state_a.phase,pipe2.state_b.phase,pipe1.state_b.phase,pipe1.state_a.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (287): * Single equations (assignments): 280 * 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.002788/14.27, allocations: 0.7935 MB / 4.419 GB, free: 17.92 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000812/14.27, allocations: 225.5 kB / 4.419 GB, free: 17.8 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02094/14.29, allocations: 8.228 MB / 4.427 GB, free: 16.96 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001186/14.29, allocations: 95.55 kB / 4.427 GB, free: 16.96 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.424e-05/14.29, allocations: 3.688 kB / 4.427 GB, free: 16.96 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01643/14.31, allocations: 7.147 MB / 4.434 GB, free: 16.01 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0342/14.34, allocations: 13.16 MB / 4.447 GB, free: 13.33 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.779e-05/14.34, allocations: 3.312 kB / 4.447 GB, free: 13.33 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003991/14.35, allocations: 484.6 kB / 4.448 GB, free: 13.3 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002942/14.35, allocations: 478.9 kB / 4.448 GB, free: 13.16 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007109/14.35, allocations: 86.05 kB / 4.448 GB, free: 13.12 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003171/14.35, allocations: 3.224 MB / 4.451 GB, free: 10.25 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.037e-06/14.35, allocations: 10.06 kB / 4.451 GB, free: 10.25 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01992/14.37, allocations: 8.093 MB / 4.459 GB, free: 6.633 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002614/14.37, allocations: 0.7906 MB / 4.46 GB, free: 6.145 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001033/14.38, allocations: 62.34 kB / 4.46 GB, free: 6.109 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004168/14.38, allocations: 236.6 kB / 4.46 GB, free: 6.051 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008425/14.38, allocations: 195.1 kB / 4.46 GB, free: 6.02 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004076/14.38, allocations: 87.33 kB / 4.461 GB, free: 6.004 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 0.002817/14.38, allocations: 1.194 MB / 4.462 GB, free: 5.555 MB / 0.5417 GB Notification: Performance of sort global known variables: time 9.52e-07/14.38, allocations: 0 / 4.462 GB, free: 5.555 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.01508/14.4, allocations: 2.815 MB / 4.464 GB, free: 3.656 MB / 0.5417 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 23 * Number of states: 9 (pipe1.mediums[1].p,pipe1.mediums[1].h,pipe2.mediums[1].p,pipe2.mediums[1].h,pipe3.mediums[1].p,pipe3.mediums[1].h,junctionIdeal.medium.p,junctionIdeal.medium.h,junctionVolume.medium.h) * Number of discrete variables: 59 ($cse3.phase,$cse3.region,$cse5.region3boundary,$cse6.region3boundary,$cse7.phase,$cse7.region,$cse12.phase,$cse12.region,$cse18.phase,$cse18.region,$cse19.phase,$cse19.region,$cse23.phase,$cse23.region,$cse24.phase,$cse24.region,$cse30.phase,$cse30.region,$cse31.phase,$cse31.region,$cse35.phase,$cse35.region,$cse38.phase,$cse38.region,$cse40.region3boundary,$cse41.region3boundary,$cse42.phase,$cse42.region,$cse44.region3boundary,$cse45.region3boundary,$cse46.phase,$cse46.region,$cse48.phase,$cse48.region,$cse49.region3boundary,$cse50.region3boundary,$cse51.phase,$cse51.region,$cse52.phase,$cse52.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,junctionIdeal.medium.phase,junctionVolume.medium.phase) * 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 (237): * Single equations (assignments): 206 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 24 * 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,2 4,1 1,1 1} Notification: Performance of Backend phase and start with SimCode phase: time 0.01697/14.42, allocations: 2.908 MB / 4.467 GB, free: 1.469 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.0204/14.44, allocations: 5.967 MB / 4.473 GB, free: 12.25 MB / 0.5574 GB Notification: Performance of simCode: created event and clocks part: time 1.363e-05/14.44, allocations: 4.062 kB / 4.473 GB, free: 12.24 MB / 0.5574 GB Notification: Performance of simCode: created simulation system equations: time 0.008606/14.45, allocations: 3.042 MB / 4.476 GB, free: 9.5 MB / 0.5574 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01209/14.46, allocations: 1.183 MB / 4.477 GB, free: 8.641 MB / 0.5574 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.7002/15.16, allocations: 82.61 MB / 4.558 GB, free: 58.83 MB / 0.5574 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002998/15.16, allocations: 2.383 MB / 4.56 GB, free: 58.02 MB / 0.5574 GB Notification: Performance of simCode: alias equations: time 0.008401/15.17, allocations: 2.522 MB / 4.563 GB, free: 57.93 MB / 0.5574 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001539/15.17, allocations: 221.9 kB / 4.563 GB, free: 57.92 MB / 0.5574 GB Notification: Performance of SimCode: time 1.473e-06/15.17, allocations: 0 / 4.563 GB, free: 57.92 MB / 0.5574 GB Notification: Performance of Templates: time 0.2058/15.38, allocations: 93.65 MB / 4.654 GB, free: 37.04 MB / 0.5574 GB