Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.1_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes12.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.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.1_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes12") Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo): time 0.002714/0.002714, allocations: 347.6 kB / 15.94 MB, free: 6.219 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.422/3.422, allocations: 341.5 MB / 358.2 MB, free: 12.63 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.003472/0.003471, allocations: 225.3 kB / 397.9 MB, free: 4.98 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.6385/0.6385, allocations: 76.09 MB / 0.5014 GB, free: 112.6 MB / 362.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0007337/0.0007341, allocations: 8 kB / 0.5592 GB, free: 53.46 MB / 362.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1616/0.1624, allocations: 48.7 MB / 0.6067 GB, free: 4.652 MB / 362.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 8.082/8.244, allocations: 2.545 GB / 3.152 GB, free: 87.52 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003012/8.245, allocations: 88.61 kB / 3.152 GB, free: 87.51 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.003/12.25, allocations: 0.7494 GB / 3.902 GB, free: 23.64 MB / 458.7 MB Notification: Performance of FrontEnd: time 2.585e-06/12.25, allocations: 0 / 3.902 GB, free: 23.64 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0004155/12.25, allocations: 71.56 kB / 3.902 GB, free: 23.63 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: 514 * Number of variables: 514 Notification: Performance of Generate backend data structure: time 0.02218/12.27, allocations: 4.13 MB / 3.906 GB, free: 21.54 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.339e-05/12.27, allocations: 7.281 kB / 3.906 GB, free: 21.54 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008886/12.28, allocations: 0.8093 MB / 3.906 GB, free: 21.39 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.04137/12.32, allocations: 13.36 MB / 3.919 GB, free: 20.73 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003711/12.32, allocations: 177.9 kB / 3.92 GB, free: 20.72 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001219/12.32, allocations: 193.9 kB / 3.92 GB, free: 20.72 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01438/12.34, allocations: 3.724 MB / 3.923 GB, free: 20.12 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001101/12.34, allocations: 7.188 kB / 3.923 GB, free: 20.12 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0008414/12.34, allocations: 85.42 kB / 3.924 GB, free: 20.12 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003355/12.34, allocations: 166.6 kB / 3.924 GB, free: 20.11 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01404/12.35, allocations: 3.537 MB / 3.927 GB, free: 20.05 MB / 458.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.03204/12.38, allocations: 14.72 MB / 3.942 GB, free: 10.85 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008574/12.39, allocations: 2.188 MB / 3.944 GB, free: 10.18 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003667/12.4, allocations: 1.134 MB / 3.945 GB, free: 9.781 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.06436/12.46, allocations: 18.87 MB / 3.963 GB, free: 12.9 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.006422/12.47, allocations: 1.671 MB / 3.965 GB, free: 12.39 MB / 474.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.00168/12.47, allocations: 199.1 kB / 3.965 GB, free: 12.27 MB / 474.7 MB Notification: Performance of pre-optimization done (n=158): time 6.342e-06/12.47, allocations: 0 / 3.965 GB, free: 12.27 MB / 474.7 MB Notification: Performance of matching and sorting (n=170): time 0.04038/12.51, allocations: 9.072 MB / 3.974 GB, free: 4.957 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002499/12.51, allocations: 422 kB / 3.974 GB, free: 4.457 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003719/12.51, allocations: 1.687 MB / 3.976 GB, free: 3.051 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005929/12.51, allocations: 57.7 kB / 3.976 GB, free: 2.988 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001307/12.52, allocations: 0.986 MB / 3.977 GB, free: 2.09 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001107/12.52, allocations: 0.5736 MB / 3.978 GB, free: 1.57 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002466/12.52, allocations: 36 kB / 3.978 GB, free: 1.535 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0002359/12.52, allocations: 390.2 kB / 3.978 GB, free: 1.172 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003873/12.52, allocations: 1.153 MB / 3.979 GB, free: 220 kB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.009576/12.53, allocations: 1.934 MB / 3.981 GB, free: 15.36 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00467/12.54, allocations: 1.398 MB / 3.982 GB, free: 14.12 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.718e-05/12.54, allocations: 4 kB / 3.982 GB, free: 14.11 MB / 490.7 MB Notification: Performance of matching and sorting (n=259) (initialization): time 0.0117/12.55, allocations: 3.533 MB / 3.986 GB, free: 11.01 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0004377/12.55, allocations: 497 kB / 3.986 GB, free: 10.36 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.866e-05/12.55, allocations: 12 kB / 3.986 GB, free: 10.35 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.008688/12.56, allocations: 0.9902 MB / 3.987 GB, free: 9.625 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004055/12.56, allocations: 472.5 kB / 3.988 GB, free: 9.234 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004661/12.57, allocations: 3.176 MB / 3.991 GB, free: 6.18 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004177/12.57, allocations: 232.1 kB / 3.991 GB, free: 6 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008575/12.57, allocations: 107.2 kB / 3.991 GB, free: 5.906 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.898e-05/12.57, allocations: 4 kB / 3.991 GB, free: 5.902 MB / 490.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01233/12.58, allocations: 3.2 MB / 3.994 GB, free: 2.738 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.269e-05/12.58, allocations: 19.98 kB / 3.994 GB, free: 2.719 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002368/12.59, allocations: 371.7 kB / 3.995 GB, free: 2.344 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004328/12.59, allocations: 495.3 kB / 3.995 GB, free: 1.859 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.3997/12.99, allocations: 4.043 MB / 3.999 GB, free: 50.57 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003884/12.99, allocations: 240.7 kB / 3.999 GB, free: 50.57 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006996/12.99, allocations: 98.61 kB / 3.999 GB, free: 50.57 MB / 490.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 50 * Number of states: 0 () * Number of discrete variables: 27 (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,valveOpening2.a,valveOpening2.b,valveOpening2.last,$PRE.valveOpening2.nextEvent,valveOpening2.nextEvent,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.002412/13, allocations: 0.7685 MB / 4 GB, free: 50.32 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00073/13, allocations: 209.5 kB / 4 GB, free: 50.32 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01931/13.02, allocations: 7.858 MB / 4.008 GB, free: 49.79 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001409/13.02, allocations: 83.58 kB / 4.008 GB, free: 49.79 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.916e-05/13.02, allocations: 0 / 4.008 GB, free: 49.79 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01488/13.03, allocations: 6.893 MB / 4.015 GB, free: 48.88 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02448/13.06, allocations: 10.87 MB / 4.025 GB, free: 48.25 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.351e-05/13.06, allocations: 3.094 kB / 4.025 GB, free: 48.25 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002907/13.06, allocations: 347.8 kB / 4.026 GB, free: 48.25 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.008101/13.07, allocations: 2.143 MB / 4.028 GB, free: 48.16 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005992/13.07, allocations: 65.34 kB / 4.028 GB, free: 48.16 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004524/13.07, allocations: 4.107 MB / 4.032 GB, free: 46.08 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.268e-06/13.07, allocations: 0 / 4.032 GB, free: 46.08 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01781/13.09, allocations: 7.965 MB / 4.04 GB, free: 45.47 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002366/13.09, allocations: 0.7441 MB / 4.04 GB, free: 45.2 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007761/13.09, allocations: 52.55 kB / 4.04 GB, free: 45.2 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003518/13.1, allocations: 202.1 kB / 4.041 GB, free: 45.19 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00069/13.1, allocations: 136.5 kB / 4.041 GB, free: 45.19 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002814/13.1, allocations: 72.72 kB / 4.041 GB, free: 45.19 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.002995/13.1, allocations: 1.24 MB / 4.042 GB, free: 45.04 MB / 490.7 MB Notification: Performance of sort global known variables: time 5.81e-07/13.1, allocations: 0 / 4.042 GB, free: 45.04 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.01362/13.12, allocations: 2.688 MB / 4.045 GB, free: 45.04 MB / 490.7 MB 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: 53 ($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,valveOpening2.a,valveOpening2.b,valveOpening2.last,valveOpening2.nextEvent) * Number of discrete states: 10 (valveOpening2.last,valveOpening2.nextEvent,valveOpening2.b,valveOpening2.a,$whenCondition2,valveOpening1.last,valveOpening1.nextEvent,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.01539/13.13, allocations: 2.672 MB / 4.047 GB, free: 44.82 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.01567/13.15, allocations: 5.467 MB / 4.053 GB, free: 44.25 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 8.045e-06/13.15, allocations: 10.59 kB / 4.053 GB, free: 44.25 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.005852/13.15, allocations: 2.384 MB / 4.055 GB, free: 44.08 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008867/13.16, allocations: 0.9184 MB / 4.056 GB, free: 44.07 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2158/13.38, allocations: 81.06 MB / 4.135 GB, free: 31.86 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002842/13.38, allocations: 2.29 MB / 4.137 GB, free: 30.96 MB / 490.7 MB Notification: Performance of simCode: alias equations: time 0.007099/13.39, allocations: 2.191 MB / 4.139 GB, free: 30.47 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001111/13.39, allocations: 177.7 kB / 4.14 GB, free: 30.31 MB / 490.7 MB Notification: Performance of SimCode: time 1.683e-06/13.39, allocations: 0 / 4.14 GB, free: 30.31 MB / 490.7 MB Notification: Performance of Templates: time 0.5929/13.98, allocations: 86.67 MB / 4.224 GB, free: 50.01 MB / 490.7 MB