Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.2_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes13.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.2+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.2+maint.om/package.mo) Using package ModelicaServices with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo) Using package Modelica with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo) Using package Complex with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo) Running command: translateModel(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes13,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaTest_3.2.2_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes13") translateModel(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes13,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaTest_3.2.2_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes13") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo): time 0.0009533/0.0009534, allocations: 176 kB / 7.652 MB, free: 1.426 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 1.869/1.869, allocations: 194.4 MB / 202.4 MB, free: 13.02 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo): time 0.001762/0.001762, allocations: 112 kB / 247.4 MB, free: 28 kB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.2+maint.om/package.mo): time 0.237/0.237, allocations: 39.96 MB / 332.2 MB, free: 0.6289 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.999e-05/2.006e-05, allocations: 0 / 393.3 MB, free: 3.441 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3359/0.3359, allocations: 54.88 MB / 448.2 MB, free: 13.66 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.243/7.579, allocations: 2.656 GB / 3.093 GB, free: 118.3 MB / 474.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001995/7.58, allocations: 79.95 kB / 3.093 GB, free: 118.2 MB / 474.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.253/10.83, allocations: 0.8553 GB / 3.949 GB, free: 36.47 MB / 0.5105 GB Notification: Performance of FrontEnd: time 2.394e-06/10.83, allocations: 0 / 3.949 GB, free: 36.47 MB / 0.5105 GB Notification: Performance of Transformations before backend: time 0.0003555/10.83, allocations: 56.3 kB / 3.949 GB, free: 36.47 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: 476 * Number of variables: 476 Notification: Performance of Generate backend data structure: time 0.01398/10.85, allocations: 3.819 MB / 3.953 GB, free: 35.51 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 4.29e-05/10.85, allocations: 7.594 kB / 3.953 GB, free: 35.51 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005892/10.85, allocations: 0.7835 MB / 3.953 GB, free: 35.38 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005275/10.86, allocations: 1.947 MB / 3.955 GB, free: 34.95 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001647/10.86, allocations: 81.61 kB / 3.955 GB, free: 34.95 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005662/10.86, allocations: 108.7 kB / 3.955 GB, free: 34.95 MB / 0.5105 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.004199/10.86, allocations: 2.33 MB / 3.958 GB, free: 34.94 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004585/10.87, allocations: 2.562 MB / 3.96 GB, free: 34.49 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.565e-05/10.87, allocations: 14.12 kB / 3.96 GB, free: 34.48 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002087/10.87, allocations: 10.95 kB / 3.96 GB, free: 34.48 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001817/10.87, allocations: 145.2 kB / 3.96 GB, free: 34.48 MB / 0.5105 GB Warning: The model contains alias variables with conflicting start and/or 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.228/11.1, allocations: 108.3 MB / 4.066 GB, free: 26.61 MB / 0.5573 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002312/11.1, allocations: 1.409 MB / 4.067 GB, free: 26.57 MB / 0.5573 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001214/11.1, allocations: 0.874 MB / 4.068 GB, free: 26.56 MB / 0.5573 GB Notification: Performance of preOpt evalFunc (simulation): time 0.03341/11.13, allocations: 17.53 MB / 4.085 GB, free: 15 MB / 0.5573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002954/11.14, allocations: 1.094 MB / 4.086 GB, free: 14.85 MB / 0.5573 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001915/11.14, allocations: 148.6 kB / 4.087 GB, free: 14.79 MB / 0.5573 GB Notification: Performance of pre-optimization done (n=136): time 1.069e-05/11.14, allocations: 1.781 kB / 4.087 GB, free: 14.79 MB / 0.5573 GB Notification: Performance of matching and sorting (n=148): time 0.02277/11.16, allocations: 7.183 MB / 4.094 GB, free: 13.18 MB / 0.5573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000195/11.16, allocations: 358.1 kB / 4.094 GB, free: 12.77 MB / 0.5573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002113/11.16, allocations: 1.07 MB / 4.095 GB, free: 12.59 MB / 0.5573 GB Notification: Performance of collectPreVariables (initialization): time 0.0002221/11.16, allocations: 25.7 kB / 4.095 GB, free: 12.56 MB / 0.5573 GB Notification: Performance of collectInitialEqns (initialization): time 0.0008282/11.17, allocations: 0.9466 MB / 4.096 GB, free: 12.14 MB / 0.5573 GB Notification: Performance of collectInitialBindings (initialization): time 0.0004983/11.17, allocations: 494.4 kB / 4.096 GB, free: 11.82 MB / 0.5573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001639/11.17, allocations: 3.562 kB / 4.096 GB, free: 11.82 MB / 0.5573 GB Notification: Performance of setup shared object (initialization): time 0.0001764/11.17, allocations: 376 kB / 4.097 GB, free: 11.51 MB / 0.5573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001291/11.17, allocations: 0.8969 MB / 4.098 GB, free: 11.51 MB / 0.5573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001461/11.17, allocations: 1.295 MB / 4.099 GB, free: 11.07 MB / 0.5573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01093/11.18, allocations: 2.666 MB / 4.102 GB, free: 11 MB / 0.5573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.754e-05/11.18, allocations: 3.406 kB / 4.102 GB, free: 11 MB / 0.5573 GB Notification: Performance of matching and sorting (n=230) (initialization): time 0.0166/11.2, allocations: 4.328 MB / 4.106 GB, free: 10.76 MB / 0.5573 GB Notification: Performance of prepare postOptimizeDAE: time 0.001863/11.2, allocations: 4.311 MB / 4.11 GB, free: 6.309 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.386e-05/11.2, allocations: 9.406 kB / 4.11 GB, free: 6.309 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002043/11.2, allocations: 0.5317 MB / 4.111 GB, free: 6.262 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002149/11.2, allocations: 438.8 kB / 4.111 GB, free: 6.258 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003655/11.21, allocations: 2.941 MB / 4.114 GB, free: 20.17 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003092/11.21, allocations: 233.7 kB / 4.114 GB, free: 20.14 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005537/11.21, allocations: 94.56 kB / 4.114 GB, free: 20.14 MB / 0.573 GB Notification: Performance of prepare postOptimizeDAE: time 1.703e-05/11.21, allocations: 3.906 kB / 4.114 GB, free: 20.14 MB / 0.573 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01318/11.22, allocations: 3.782 MB / 4.118 GB, free: 20.02 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.851e-05/11.22, allocations: 11.56 kB / 4.118 GB, free: 20.02 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004551/11.22, allocations: 184.5 kB / 4.118 GB, free: 20 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002006/11.23, allocations: 459.2 kB / 4.118 GB, free: 19.99 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00141/11.23, allocations: 1.897 MB / 4.12 GB, free: 18.43 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002579/11.23, allocations: 207 kB / 4.12 GB, free: 18.4 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003837/11.23, allocations: 93.52 kB / 4.121 GB, free: 18.4 MB / 0.573 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 (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_a.phase,$whenCondition1,$whenCondition2,pipe1.statesFM[2].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,source.medium.phase,sink.medium.phase,pipe3.state_b.phase,pipe2.state_b.phase,pipe1.state_b.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (205): * Single equations (assignments): 199 * 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 9} Notification: Performance of prepare postOptimizeDAE: time 0.0008334/11.23, allocations: 236.6 kB / 4.121 GB, free: 18.22 MB / 0.573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000527/11.23, allocations: 183 kB / 4.121 GB, free: 18.13 MB / 0.573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008421/11.24, allocations: 6.281 MB / 4.127 GB, free: 17.54 MB / 0.573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.648e-05/11.24, allocations: 73.41 kB / 4.127 GB, free: 17.54 MB / 0.573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.128e-05/11.24, allocations: 3.953 kB / 4.127 GB, free: 17.53 MB / 0.573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.006061/11.25, allocations: 5.303 MB / 4.132 GB, free: 16.79 MB / 0.573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01203/11.26, allocations: 8.477 MB / 4.141 GB, free: 13.43 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.011e-05/11.26, allocations: 1.125 kB / 4.141 GB, free: 13.43 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001169/11.26, allocations: 283.3 kB / 4.141 GB, free: 13.21 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002334/11.26, allocations: 1.503 MB / 4.142 GB, free: 12.23 MB / 0.573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001651/11.26, allocations: 36.75 kB / 4.142 GB, free: 12.2 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003207/11.27, allocations: 3.698 MB / 4.146 GB, free: 9.312 MB / 0.573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.736e-06/11.27, allocations: 4.594 kB / 4.146 GB, free: 9.309 MB / 0.573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009602/11.27, allocations: 6.378 MB / 4.152 GB, free: 5.73 MB / 0.573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0019/11.28, allocations: 0.6457 MB / 4.153 GB, free: 5.266 MB / 0.573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007569/11.28, allocations: 31.11 kB / 4.153 GB, free: 5.25 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001957/11.28, allocations: 141.3 kB / 4.153 GB, free: 5.148 MB / 0.573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002694/11.28, allocations: 121.5 kB / 4.153 GB, free: 5.09 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001756/11.28, allocations: 64.7 kB / 4.153 GB, free: 5.047 MB / 0.573 GB Notification: Performance of sorting global known variables: time 0.001998/11.28, allocations: 0.9921 MB / 4.154 GB, free: 4.461 MB / 0.573 GB Notification: Performance of sort global known variables: time 1.71e-07/11.28, allocations: 3.938 kB / 4.154 GB, free: 4.457 MB / 0.573 GB Notification: Performance of remove unused functions: time 0.01378/11.3, allocations: 2.571 MB / 4.157 GB, free: 2.047 MB / 0.573 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * 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: 45 ($cse5.region3boundary,$cse6.region3boundary,$cse7.phase,$cse7.region,$cse9.phase,$cse9.region,$cse14.phase,$cse14.region,$cse15.phase,$cse15.region,$cse17.phase,$cse17.region,$cse22.phase,$cse22.region,$cse23.phase,$cse23.region,$cse25.phase,$cse25.region,$cse26.region3boundary,$cse27.region3boundary,$cse28.phase,$cse28.region,$cse30.phase,$cse30.region,$cse31.region3boundary,$cse32.region3boundary,$cse33.phase,$cse33.region,$cse35.phase,$cse35.region,$whenCondition1,$whenCondition2,pipe1.statesFM[2].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) * Top-level inputs: 0 Notification: Strong component statistics for simulation (147): * Single equations (assignments): 125 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 16 * 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 16} Notification: Performance of Backend phase and start with SimCode phase: time 0.3664/11.66, allocations: 3.075 MB / 4.16 GB, free: 95.71 MB / 0.573 GB Notification: Performance of simCode: created initialization part: time 0.006977/11.67, allocations: 4.318 MB / 4.164 GB, free: 95.42 MB / 0.573 GB Notification: Performance of simCode: created event and clocks part: time 6.832e-06/11.67, allocations: 0 / 4.164 GB, free: 95.42 MB / 0.573 GB Notification: Performance of simCode: created simulation system equations: time 0.002425/11.67, allocations: 1.99 MB / 4.166 GB, free: 95.29 MB / 0.573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004159/11.68, allocations: 0.7885 MB / 4.167 GB, free: 95.27 MB / 0.573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008139/11.68, allocations: 4.976 MB / 4.172 GB, free: 94.32 MB / 0.573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002074/11.69, allocations: 2.091 MB / 4.174 GB, free: 93.56 MB / 0.573 GB Notification: Performance of simCode: alias equations: time 0.004959/11.69, allocations: 2.378 MB / 4.176 GB, free: 93.53 MB / 0.573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004188/11.69, allocations: 137.9 kB / 4.176 GB, free: 93.52 MB / 0.573 GB Notification: Performance of SimCode: time 2.725e-06/11.69, allocations: 0 / 4.176 GB, free: 93.52 MB / 0.573 GB Notification: Performance of Templates: time 0.09447/11.79, allocations: 71.19 MB / 4.246 GB, free: 89.8 MB / 0.573 GB make -j1 -f ModelicaTest_3.2.2_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes13.makefile (rm -f ModelicaTest_3.2.2_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes13.pipe ; mkfifo ModelicaTest_3.2.2_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes13.pipe ; head -c 1048576 < ModelicaTest_3.2.2_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes13.pipe >> ../files/ModelicaTest_3.2.2_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes13.sim & ./ModelicaTest_3.2.2_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes13 -abortSlowSimulation -alarm=480 -lv LOG_STATS > ModelicaTest_3.2.2_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes13.pipe 2>&1)