Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.2_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes2.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.BranchingPipes2,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|valveOpening1.a|valveOpening1.b|valveOpening1.last|valveOpening1.nextEvent|valveOpening2.a|valveOpening2.b|valveOpening2.last|valveOpening2.nextEvent",fileNamePrefix="ModelicaTest_3.2.2_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes2") Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo): time 0.005093/0.005098, allocations: 358.6 kB / 15.95 MB, free: 6.211 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.015/4.015, allocations: 388.9 MB / 405.6 MB, free: 9.59 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.003636/0.003635, allocations: 224.2 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.6538/0.6538, allocations: 80.03 MB / 0.5627 GB, free: 19.76 MB / 346.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004857/0.0004859, allocations: 12 kB / 0.6265 GB, free: 96.54 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09588/0.09639, allocations: 54.88 MB / 0.6801 GB, free: 41.65 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 8.35/8.447, allocations: 2.673 GB / 3.353 GB, free: 112.7 MB / 490.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002637/8.447, allocations: 82.11 kB / 3.353 GB, free: 112.7 MB / 490.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.492/12.94, allocations: 0.7605 GB / 4.113 GB, free: 41.32 MB / 0.5105 GB Notification: Performance of FrontEnd: time 3.105e-06/12.94, allocations: 0 / 4.113 GB, free: 41.32 MB / 0.5105 GB Notification: Performance of Transformations before backend: time 0.0002787/12.94, allocations: 60.16 kB / 4.113 GB, free: 41.31 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: 467 * Number of variables: 467 Notification: Performance of Generate backend data structure: time 0.02129/12.96, allocations: 3.916 MB / 4.117 GB, free: 39.39 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 4.787e-05/12.96, allocations: 7.594 kB / 4.117 GB, free: 39.39 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0086/12.97, allocations: 0.7859 MB / 4.118 GB, free: 39.26 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03961/13.01, allocations: 13.42 MB / 4.131 GB, free: 38.71 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003344/13.01, allocations: 163.1 kB / 4.131 GB, free: 38.71 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001052/13.01, allocations: 183.2 kB / 4.131 GB, free: 38.71 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01324/13.02, allocations: 3.355 MB / 4.135 GB, free: 38.22 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.685e-05/13.02, allocations: 8.531 kB / 4.135 GB, free: 38.22 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004826/13.02, allocations: 89.36 kB / 4.135 GB, free: 38.21 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000334/13.02, allocations: 146.9 kB / 4.135 GB, free: 38.21 MB / 0.5105 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01295/13.04, allocations: 3.174 MB / 4.138 GB, free: 38.2 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.02788/13.07, allocations: 13.62 MB / 4.151 GB, free: 29.95 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.008364/13.07, allocations: 2.036 MB / 4.153 GB, free: 29.92 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003606/13.08, allocations: 1.128 MB / 4.154 GB, free: 29.91 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.05857/13.14, allocations: 18.82 MB / 4.173 GB, free: 18.07 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.006605/13.14, allocations: 1.602 MB / 4.174 GB, free: 17.94 MB / 0.5105 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001921/13.14, allocations: 173.7 kB / 4.175 GB, free: 17.87 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=155): time 9.197e-06/13.14, allocations: 0 / 4.175 GB, free: 17.87 MB / 0.5105 GB Notification: Performance of matching and sorting (n=167): time 0.04017/13.19, allocations: 8.181 MB / 4.183 GB, free: 16.83 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001177/13.19, allocations: 256 kB / 4.183 GB, free: 16.54 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002953/13.19, allocations: 1.427 MB / 4.184 GB, free: 16.36 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.0006356/13.19, allocations: 57.77 kB / 4.184 GB, free: 16.33 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.001076/13.19, allocations: 0.8826 MB / 4.185 GB, free: 15.97 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.001068/13.19, allocations: 0.5542 MB / 4.186 GB, free: 15.62 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002341/13.19, allocations: 34.38 kB / 4.186 GB, free: 15.62 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0001642/13.19, allocations: 374.2 kB / 4.186 GB, free: 15.32 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003433/13.2, allocations: 1.019 MB / 4.187 GB, free: 15.31 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004133/13.2, allocations: 1.468 MB / 4.188 GB, free: 14.87 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.004075/13.2, allocations: 1.257 MB / 4.19 GB, free: 14.79 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.151e-05/13.2, allocations: 6.047 kB / 4.19 GB, free: 14.78 MB / 0.5105 GB Notification: Performance of matching and sorting (n=236) (initialization): time 0.01176/13.22, allocations: 3.107 MB / 4.193 GB, free: 14.52 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 0.0003661/13.22, allocations: 482.4 kB / 4.193 GB, free: 13.98 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.286e-05/13.22, allocations: 12.66 kB / 4.193 GB, free: 13.98 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.005628/13.22, allocations: 0.5301 MB / 4.194 GB, free: 13.95 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004872/13.23, allocations: 458.8 kB / 4.194 GB, free: 13.95 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004962/13.23, allocations: 2.702 MB / 4.197 GB, free: 27.88 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005745/13.24, allocations: 263.2 kB / 4.197 GB, free: 27.85 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008355/13.24, allocations: 100.3 kB / 4.197 GB, free: 27.85 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 1.697e-05/13.24, allocations: 7.156 kB / 4.197 GB, free: 27.85 MB / 0.5261 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01236/13.25, allocations: 2.745 MB / 4.2 GB, free: 27.7 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.849e-05/13.25, allocations: 13.91 kB / 4.2 GB, free: 27.69 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001432/13.25, allocations: 206.2 kB / 4.2 GB, free: 27.67 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004974/13.26, allocations: 471.2 kB / 4.2 GB, free: 27.66 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002211/13.26, allocations: 1.876 MB / 4.202 GB, free: 26.11 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005353/13.26, allocations: 256.6 kB / 4.203 GB, free: 26.08 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007317/13.27, allocations: 100.6 kB / 4.203 GB, free: 26.07 MB / 0.5261 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 48 * Number of states: 0 () * Number of discrete variables: 29 (valveIncompressible1.state_b.phase,valveIncompressible1.state_a.phase,valveIncompressible.state_b.phase,valveIncompressible.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_a.phase,pipe3.state_b.phase,pipe2.state_a.phase,pipe2.state_b.phase,pipe1.state_a.phase,pipe1.state_b.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (215): * Single equations (assignments): 209 * 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: 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,2 5} Notification: Performance of prepare postOptimizeDAE: time 0.00301/13.27, allocations: 0.7089 MB / 4.203 GB, free: 25.81 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007983/13.27, allocations: 190.8 kB / 4.204 GB, free: 25.71 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02111/13.29, allocations: 7.455 MB / 4.211 GB, free: 24.91 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001227/13.29, allocations: 81.86 kB / 4.211 GB, free: 24.91 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.521e-05/13.29, allocations: 0 / 4.211 GB, free: 24.91 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01617/13.31, allocations: 6.517 MB / 4.217 GB, free: 23.97 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0253/13.33, allocations: 11.2 MB / 4.228 GB, free: 22.13 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.854e-05/13.33, allocations: 3.688 kB / 4.228 GB, free: 22.13 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002848/13.34, allocations: 364.2 kB / 4.229 GB, free: 22.11 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.004291/13.34, allocations: 1.206 MB / 4.23 GB, free: 21.88 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005189/13.34, allocations: 61.66 kB / 4.23 GB, free: 21.85 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003304/13.34, allocations: 3.219 MB / 4.233 GB, free: 19.28 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.356e-06/13.34, allocations: 5.031 kB / 4.233 GB, free: 19.28 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01491/13.36, allocations: 7.171 MB / 4.24 GB, free: 15.98 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00224/13.36, allocations: 0.6939 MB / 4.241 GB, free: 15.55 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008063/13.36, allocations: 53.25 kB / 4.241 GB, free: 15.52 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002927/13.36, allocations: 186 kB / 4.241 GB, free: 15.48 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004393/13.36, allocations: 153.2 kB / 4.241 GB, free: 15.45 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002427/13.37, allocations: 72.84 kB / 4.241 GB, free: 15.43 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.002198/13.37, allocations: 1.072 MB / 4.242 GB, free: 15.02 MB / 0.5261 GB Notification: Performance of sort global known variables: time 4.9e-07/13.37, allocations: 1.5 kB / 4.242 GB, free: 15.02 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.01633/13.38, allocations: 2.441 MB / 4.244 GB, free: 14.23 MB / 0.5261 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 19 * Number of states: 6 (pipe1.mediums[1].p,pipe1.mediums[1].h,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,$cse9.phase,$cse9.region,$cse10.phase,$cse10.region,$cse17.phase,$cse17.region,$cse18.phase,$cse18.region,$cse20.phase,$cse20.region,$cse21.phase,$cse21.region,$cse26.phase,$cse26.region,$cse27.phase,$cse27.region,$cse29.phase,$cse29.region,$cse32.phase,$cse32.region,$cse34.region3boundary,$cse35.region3boundary,$cse36.phase,$cse36.region,$cse38.phase,$cse38.region,$cse40.region3boundary,$cse41.region3boundary,$cse42.phase,$cse42.region,$cse44.phase,$cse44.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 (177): * Single equations (assignments): 151 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 20 * 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,2 12} Notification: Performance of Backend phase and start with SimCode phase: time 0.01743/13.4, allocations: 2.523 MB / 4.247 GB, free: 12.33 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.01384/13.42, allocations: 4.866 MB / 4.252 GB, free: 8.09 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 1.458e-05/13.42, allocations: 5.312 kB / 4.252 GB, free: 8.086 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.006422/13.42, allocations: 2.508 MB / 4.254 GB, free: 5.863 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00866/13.43, allocations: 0.8831 MB / 4.255 GB, free: 5.211 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.8399/14.27, allocations: 81.42 MB / 4.335 GB, free: 65.01 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004522/14.27, allocations: 2.18 MB / 4.337 GB, free: 64.25 MB / 0.5417 GB Notification: Performance of simCode: alias equations: time 0.01069/14.29, allocations: 2.251 MB / 4.339 GB, free: 64.23 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001654/14.29, allocations: 172.4 kB / 4.339 GB, free: 64.23 MB / 0.5417 GB Notification: Performance of SimCode: time 2.034e-06/14.29, allocations: 0 / 4.339 GB, free: 64.23 MB / 0.5417 GB Notification: Performance of Templates: time 0.2422/14.53, allocations: 79.91 MB / 4.417 GB, free: 58.22 MB / 0.5417 GB