Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes12.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes12") 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.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes12") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001525/0.001525, allocations: 186.2 kB / 16.41 MB, free: 5.727 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.858/1.858, allocations: 205.4 MB / 222.5 MB, free: 9.125 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001087/0.001086, allocations: 92.38 kB / 270.9 MB, free: 8.363 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.4861/0.4861, allocations: 43.56 MB / 362.7 MB, free: 52.2 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004592/0.0004593, allocations: 8 kB / 431.4 MB, free: 6.176 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1179/0.1184, allocations: 58.85 MB / 490.2 MB, free: 11.24 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 8.277/8.396, allocations: 2.825 GB / 3.304 GB, free: 30.79 MB / 0.5105 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002798/8.396, allocations: 86.27 kB / 3.304 GB, free: 30.74 MB / 0.5105 GB Notification: Performance of FrontEnd - DAE generated: time 4.236/12.63, allocations: 0.8087 GB / 4.113 GB, free: 28.38 MB / 0.5261 GB Notification: Performance of FrontEnd: time 2.785e-06/12.63, allocations: 4 kB / 4.113 GB, free: 28.38 MB / 0.5261 GB Notification: Performance of Transformations before backend: time 0.000352/12.63, allocations: 70.8 kB / 4.113 GB, free: 28.35 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: 518 * Number of variables: 518 Notification: Performance of Generate backend data structure: time 0.0221/12.65, allocations: 4.242 MB / 4.117 GB, free: 25.93 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 4.279e-05/12.65, allocations: 10.47 kB / 4.117 GB, free: 25.93 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009437/12.66, allocations: 0.8404 MB / 4.118 GB, free: 25.71 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009141/12.67, allocations: 2.187 MB / 4.12 GB, free: 24.69 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003181/12.67, allocations: 177.8 kB / 4.12 GB, free: 24.61 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001154/12.67, allocations: 199.1 kB / 4.12 GB, free: 24.54 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01433/12.69, allocations: 3.735 MB / 4.124 GB, free: 21.67 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.161e-05/12.69, allocations: 3.938 kB / 4.124 GB, free: 21.67 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000477/12.69, allocations: 91.97 kB / 4.124 GB, free: 21.58 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002976/12.69, allocations: 170.2 kB / 4.124 GB, free: 21.44 MB / 0.5261 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01383/12.7, allocations: 3.557 MB / 4.128 GB, free: 18.51 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.03054/12.73, allocations: 14.93 MB / 4.142 GB, free: 3.688 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.008731/12.74, allocations: 2.244 MB / 4.144 GB, free: 1.441 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.5125/13.26, allocations: 24.53 MB / 4.168 GB, free: 42.09 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.007328/13.26, allocations: 1.713 MB / 4.17 GB, free: 41.97 MB / 0.5417 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001736/13.27, allocations: 197.5 kB / 4.17 GB, free: 41.97 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=162): time 5.56e-06/13.27, allocations: 2.781 kB / 4.17 GB, free: 41.97 MB / 0.5417 GB Notification: Performance of matching and sorting (n=174): time 0.04247/13.31, allocations: 9.373 MB / 4.179 GB, free: 40.9 MB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001462/13.31, allocations: 414.6 kB / 4.18 GB, free: 40.43 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003423/13.31, allocations: 1.567 MB / 4.181 GB, free: 40.22 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 0.0006088/13.31, allocations: 57.2 kB / 4.181 GB, free: 40.19 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 0.0009486/13.31, allocations: 0.9027 MB / 4.182 GB, free: 39.84 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 0.0009837/13.31, allocations: 0.5837 MB / 4.183 GB, free: 39.55 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002833/13.31, allocations: 38.09 kB / 4.183 GB, free: 39.55 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 0.0001565/13.31, allocations: 394.3 kB / 4.183 GB, free: 39.23 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003706/13.32, allocations: 1.182 MB / 4.184 GB, free: 39.23 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004211/13.32, allocations: 1.619 MB / 4.186 GB, free: 38.77 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.004198/13.33, allocations: 1.413 MB / 4.187 GB, free: 38.69 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.444e-05/13.33, allocations: 3 kB / 4.187 GB, free: 38.69 MB / 0.5417 GB Notification: Performance of matching and sorting (n=257) (initialization): time 0.01086/13.34, allocations: 3.465 MB / 4.191 GB, free: 38.47 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 0.0008403/13.34, allocations: 3.913 MB / 4.195 GB, free: 34.41 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.667e-05/13.34, allocations: 16.53 kB / 4.195 GB, free: 34.41 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.008627/13.35, allocations: 0.9818 MB / 4.196 GB, free: 34.38 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003876/13.35, allocations: 466.8 kB / 4.196 GB, free: 34.38 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003745/13.35, allocations: 3.161 MB / 4.199 GB, free: 32.29 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004138/13.36, allocations: 235.6 kB / 4.199 GB, free: 32.29 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005193/13.36, allocations: 103.6 kB / 4.199 GB, free: 32.29 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 1.447e-05/13.36, allocations: 4.812 kB / 4.199 GB, free: 32.29 MB / 0.5417 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01108/13.37, allocations: 3.259 MB / 4.203 GB, free: 32.14 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.944e-05/13.37, allocations: 15.38 kB / 4.203 GB, free: 32.14 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002093/13.37, allocations: 360.6 kB / 4.203 GB, free: 32.11 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00402/13.38, allocations: 486.9 kB / 4.203 GB, free: 32.11 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005331/13.38, allocations: 4.102 MB / 4.207 GB, free: 29.29 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003282/13.39, allocations: 241.6 kB / 4.208 GB, free: 29.28 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003923/13.39, allocations: 101.1 kB / 4.208 GB, free: 29.28 MB / 0.5417 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 44 * 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 (219): * Single equations (assignments): 209 * 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.002186/13.39, allocations: 0.7604 MB / 4.209 GB, free: 29.03 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007659/13.39, allocations: 218.4 kB / 4.209 GB, free: 28.92 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01753/13.41, allocations: 7.972 MB / 4.217 GB, free: 28.25 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001085/13.41, allocations: 83.2 kB / 4.217 GB, free: 28.25 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.705e-06/13.41, allocations: 1.125 kB / 4.217 GB, free: 28.25 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0157/13.42, allocations: 6.973 MB / 4.223 GB, free: 27.33 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02303/13.45, allocations: 11.09 MB / 4.234 GB, free: 26.61 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.856e-05/13.45, allocations: 0 / 4.234 GB, free: 26.61 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002891/13.45, allocations: 351.6 kB / 4.235 GB, free: 26.61 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.007909/13.46, allocations: 2.168 MB / 4.237 GB, free: 26.51 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005895/13.46, allocations: 69.38 kB / 4.237 GB, free: 26.51 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004654/13.46, allocations: 4.094 MB / 4.241 GB, free: 24.4 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.066e-06/13.46, allocations: 0 / 4.241 GB, free: 24.4 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01826/13.48, allocations: 8.128 MB / 4.249 GB, free: 23.7 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002809/13.48, allocations: 0.7831 MB / 4.249 GB, free: 23.39 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001088/13.48, allocations: 51.38 kB / 4.25 GB, free: 23.39 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003567/13.49, allocations: 201.2 kB / 4.25 GB, free: 23.38 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006799/13.49, allocations: 144.9 kB / 4.25 GB, free: 23.37 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002743/13.49, allocations: 72.58 kB / 4.25 GB, free: 23.37 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 0.00295/13.49, allocations: 1.388 MB / 4.251 GB, free: 23.23 MB / 0.5417 GB Notification: Performance of sort global known variables: time 6.62e-07/13.49, allocations: 0 / 4.251 GB, free: 23.23 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.01331/13.51, allocations: 2.861 MB / 4.254 GB, free: 23.1 MB / 0.5417 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 (170): * Single equations (assignments): 145 * 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.01509/13.52, allocations: 2.857 MB / 4.257 GB, free: 22.81 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.0146/13.53, allocations: 5.594 MB / 4.262 GB, free: 22.23 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 8.226e-06/13.53, allocations: 0 / 4.262 GB, free: 22.23 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.005387/13.54, allocations: 2.438 MB / 4.265 GB, free: 22.07 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008209/13.55, allocations: 0.9643 MB / 4.266 GB, free: 22.05 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01632/13.56, allocations: 8.686 MB / 4.274 GB, free: 18.82 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002115/13.57, allocations: 2.265 MB / 4.276 GB, free: 18.07 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001312/13.57, allocations: 196.5 kB / 4.277 GB, free: 18.07 MB / 0.5417 GB Notification: Performance of SimCode: time 1.172e-06/13.57, allocations: 2.344 kB / 4.277 GB, free: 18.07 MB / 0.5417 GB Notification: Performance of Templates: time 0.6385/14.21, allocations: 118.3 MB / 4.392 GB, free: 78.2 MB / 0.573 GB make -j1 -f ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes12.makefile (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes12.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes12.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes12.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes12.sim & ./ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes12 --alarm=480 -emit_protected > ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes12.pipe 2>&1)