Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes4.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.BranchingPipes4,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|splitter.medium.h|splitter.medium.p|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.BranchingPipes4") translateModel(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes4,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|splitter.medium.h|splitter.medium.p|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.BranchingPipes4") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002243/0.002243, allocations: 185.9 kB / 16.4 MB, free: 5.75 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.966/1.966, allocations: 205.4 MB / 222.5 MB, free: 9.117 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.001082/0.001082, allocations: 92.17 kB / 270.9 MB, free: 8.359 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.4882/0.4882, allocations: 43.55 MB / 362.7 MB, free: 51.92 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004456/0.0004456, allocations: 16 kB / 431.4 MB, free: 5.945 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1182/0.1187, allocations: 58.85 MB / 490.2 MB, free: 11.01 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 8.175/8.294, allocations: 2.83 GB / 3.308 GB, free: 55.25 MB / 0.5105 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003226/8.294, allocations: 82.34 kB / 3.308 GB, free: 55.21 MB / 0.5105 GB Notification: Performance of FrontEnd - DAE generated: time 4.885/13.18, allocations: 0.9068 GB / 4.215 GB, free: 34.92 MB / 0.5417 GB Notification: Performance of FrontEnd: time 3.186e-06/13.18, allocations: 0 / 4.215 GB, free: 34.92 MB / 0.5417 GB Notification: Performance of Transformations before backend: time 0.0003294/13.18, allocations: 66.23 kB / 4.215 GB, free: 34.91 MB / 0.5417 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 536 * Number of variables: 536 Notification: Performance of Generate backend data structure: time 0.02062/13.2, allocations: 4.321 MB / 4.219 GB, free: 33.02 MB / 0.5417 GB Notification: Performance of prepare preOptimizeDAE: time 4.545e-05/13.2, allocations: 9.406 kB / 4.219 GB, free: 33.02 MB / 0.5417 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009484/13.21, allocations: 0.8741 MB / 4.22 GB, free: 32.88 MB / 0.5417 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008808/13.22, allocations: 2.086 MB / 4.222 GB, free: 32.43 MB / 0.5417 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003511/13.22, allocations: 184.3 kB / 4.223 GB, free: 32.43 MB / 0.5417 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001078/13.22, allocations: 205.3 kB / 4.223 GB, free: 32.43 MB / 0.5417 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01323/13.23, allocations: 3.7 MB / 4.226 GB, free: 31.91 MB / 0.5417 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.842e-05/13.23, allocations: 7.875 kB / 4.226 GB, free: 31.91 MB / 0.5417 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004996/13.23, allocations: 92.27 kB / 4.226 GB, free: 31.91 MB / 0.5417 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003509/13.23, allocations: 170.5 kB / 4.227 GB, free: 31.9 MB / 0.5417 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01386/13.25, allocations: 3.448 MB / 4.23 GB, free: 31.89 MB / 0.5417 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.03279/13.28, allocations: 15.57 MB / 4.245 GB, free: 22.59 MB / 0.5417 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01045/13.29, allocations: 2.307 MB / 4.247 GB, free: 22.55 MB / 0.5417 GB Notification: Performance of preOpt evalFunc (simulation): time 0.07869/13.37, allocations: 24.53 MB / 4.271 GB, free: 23.52 MB / 0.5573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.007304/13.38, allocations: 1.735 MB / 4.273 GB, free: 23.39 MB / 0.5573 GB Notification: Performance of pre-optimization done (n=163): time 6.873e-06/13.38, allocations: 0 / 4.273 GB, free: 23.39 MB / 0.5573 GB Notification: Performance of matching and sorting (n=179): time 0.04275/13.42, allocations: 9.23 MB / 4.282 GB, free: 22.16 MB / 0.5573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001735/13.42, allocations: 262.3 kB / 4.282 GB, free: 21.88 MB / 0.5573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003648/13.42, allocations: 1.514 MB / 4.284 GB, free: 21.7 MB / 0.5573 GB Notification: Performance of collectPreVariables (initialization): time 0.0006311/13.43, allocations: 59.92 kB / 4.284 GB, free: 21.67 MB / 0.5573 GB Notification: Performance of collectInitialEqns (initialization): time 0.001025/13.43, allocations: 0.9043 MB / 4.285 GB, free: 21.23 MB / 0.5573 GB Notification: Performance of collectInitialBindings (initialization): time 0.001055/13.43, allocations: 0.6011 MB / 4.285 GB, free: 20.85 MB / 0.5573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003116/13.43, allocations: 43.38 kB / 4.285 GB, free: 20.85 MB / 0.5573 GB Notification: Performance of setup shared object (initialization): time 0.0002216/13.43, allocations: 389 kB / 4.286 GB, free: 20.54 MB / 0.5573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00386/13.43, allocations: 1.153 MB / 4.287 GB, free: 20.54 MB / 0.5573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004457/13.44, allocations: 1.574 MB / 4.288 GB, free: 20.08 MB / 0.5573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.004448/13.44, allocations: 1.375 MB / 4.29 GB, free: 20 MB / 0.5573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.891e-05/13.44, allocations: 7.234 kB / 4.29 GB, free: 20 MB / 0.5573 GB Notification: Performance of matching and sorting (n=257) (initialization): time 0.01129/13.45, allocations: 3.242 MB / 4.293 GB, free: 19.79 MB / 0.5573 GB Notification: Performance of prepare postOptimizeDAE: time 0.001552/13.45, allocations: 4.338 MB / 4.297 GB, free: 15.28 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.605e-05/13.45, allocations: 11.12 kB / 4.297 GB, free: 15.28 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001551/13.46, allocations: 254 kB / 4.297 GB, free: 15.25 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004319/13.46, allocations: 0.5075 MB / 4.298 GB, free: 15.25 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002054/13.46, allocations: 2.425 MB / 4.3 GB, free: 13.18 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00437/13.47, allocations: 272.1 kB / 4.301 GB, free: 13.16 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006619/13.47, allocations: 104.4 kB / 4.301 GB, free: 13.16 MB / 0.5573 GB Notification: Performance of prepare postOptimizeDAE: time 1.434e-05/13.47, allocations: 3.906 kB / 4.301 GB, free: 13.16 MB / 0.5573 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01048/13.48, allocations: 3.097 MB / 4.304 GB, free: 13.02 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.984e-05/13.48, allocations: 15.28 kB / 4.304 GB, free: 13.02 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001373/13.48, allocations: 251.2 kB / 4.304 GB, free: 12.99 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004134/13.48, allocations: 0.503 MB / 4.304 GB, free: 12.98 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002452/13.49, allocations: 2.428 MB / 4.307 GB, free: 26.91 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003368/13.49, allocations: 287.2 kB / 4.307 GB, free: 26.87 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004136/13.49, allocations: 101.1 kB / 4.307 GB, free: 26.87 MB / 0.573 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 49 * Number of states: 0 () * Number of discrete variables: 30 (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,splitter.medium.phase,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 (243): * Single equations (assignments): 237 * 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,1 1} Notification: Performance of prepare postOptimizeDAE: time 0.002257/13.49, allocations: 0.7583 MB / 4.308 GB, free: 26.6 MB / 0.573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006957/13.49, allocations: 215.4 kB / 4.308 GB, free: 26.49 MB / 0.573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01712/13.51, allocations: 7.725 MB / 4.316 GB, free: 25.69 MB / 0.573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.359e-05/13.51, allocations: 86.52 kB / 4.316 GB, free: 25.68 MB / 0.573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.134e-05/13.51, allocations: 0 / 4.316 GB, free: 25.68 MB / 0.573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01419/13.52, allocations: 6.751 MB / 4.322 GB, free: 24.76 MB / 0.573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02421/13.55, allocations: 11.03 MB / 4.333 GB, free: 23.96 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.545e-05/13.55, allocations: 0 / 4.333 GB, free: 23.96 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003384/13.55, allocations: 418 kB / 4.333 GB, free: 23.95 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002325/13.55, allocations: 368.6 kB / 4.334 GB, free: 23.9 MB / 0.573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004995/13.55, allocations: 67.95 kB / 4.334 GB, free: 23.9 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001994/13.56, allocations: 2.519 MB / 4.336 GB, free: 21.82 MB / 0.573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.056e-06/13.56, allocations: 0 / 4.336 GB, free: 21.82 MB / 0.573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0159/13.57, allocations: 7.286 MB / 4.343 GB, free: 21.14 MB / 0.573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002396/13.57, allocations: 0.7847 MB / 4.344 GB, free: 20.8 MB / 0.573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007585/13.58, allocations: 49.02 kB / 4.344 GB, free: 20.8 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002954/13.58, allocations: 219.8 kB / 4.345 GB, free: 20.77 MB / 0.573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004383/13.58, allocations: 154.2 kB / 4.345 GB, free: 20.77 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002372/13.58, allocations: 76.62 kB / 4.345 GB, free: 20.77 MB / 0.573 GB Notification: Performance of sorting global known variables: time 0.002735/13.58, allocations: 1.353 MB / 4.346 GB, free: 20.62 MB / 0.573 GB Notification: Performance of sort global known variables: time 9.82e-07/13.58, allocations: 0 / 4.346 GB, free: 20.62 MB / 0.573 GB Notification: Performance of remove unused functions: time 0.0125/13.59, allocations: 2.873 MB / 4.349 GB, free: 20.22 MB / 0.573 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 8 (pipe1.mediums[1].p,pipe1.mediums[1].h,pipe2.mediums[1].p,pipe2.mediums[1].h,pipe3.mediums[1].p,pipe3.mediums[1].h,splitter.medium.p,splitter.medium.h) * Number of discrete variables: 56 ($cse3.phase,$cse3.region,$cse5.region3boundary,$cse6.region3boundary,$cse7.phase,$cse7.region,$cse10.phase,$cse10.region,$cse11.phase,$cse11.region,$cse16.phase,$cse16.region,$cse17.phase,$cse17.region,$cse19.phase,$cse19.region,$cse20.phase,$cse20.region,$cse25.phase,$cse25.region,$cse26.phase,$cse26.region,$cse28.phase,$cse28.region,$cse31.phase,$cse31.region,$cse33.region3boundary,$cse34.region3boundary,$cse35.phase,$cse35.region,$cse37.region3boundary,$cse38.region3boundary,$cse39.phase,$cse39.region,$cse41.region3boundary,$cse42.region3boundary,$cse43.phase,$cse43.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,splitter.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 (202): * Single equations (assignments): 173 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 23 * 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,1 1} Notification: Performance of Backend phase and start with SimCode phase: time 0.01518/13.61, allocations: 2.97 MB / 4.352 GB, free: 19.48 MB / 0.573 GB Notification: Performance of simCode: created initialization part: time 0.01432/13.62, allocations: 5.32 MB / 4.357 GB, free: 18.04 MB / 0.573 GB Notification: Performance of simCode: created event and clocks part: time 9.668e-06/13.62, allocations: 7.906 kB / 4.357 GB, free: 18.04 MB / 0.573 GB Notification: Performance of simCode: created simulation system equations: time 0.005373/13.63, allocations: 2.477 MB / 4.359 GB, free: 16.95 MB / 0.573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008891/13.64, allocations: 1.032 MB / 4.36 GB, free: 16.71 MB / 0.573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01743/13.66, allocations: 8.757 MB / 4.369 GB, free: 12.02 MB / 0.573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002291/13.66, allocations: 2.236 MB / 4.371 GB, free: 11.14 MB / 0.573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001514/13.66, allocations: 224.2 kB / 4.371 GB, free: 11.11 MB / 0.573 GB Notification: Performance of SimCode: time 1.072e-06/13.66, allocations: 3 kB / 4.371 GB, free: 11.11 MB / 0.573 GB Notification: Performance of Templates: time 0.6383/14.3, allocations: 119.4 MB / 4.488 GB, free: 55.64 MB / 0.573 GB make -j1 -f ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes4.makefile (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes4.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes4.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes4.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes4.sim & ./ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes4 --alarm=480 -emit_protected > ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes4.pipe 2>&1)