Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes14.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.BranchingPipes14,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|junctionIdeal.medium.h|junctionIdeal.medium.p|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.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes14") translateModel(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes14,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|junctionIdeal.medium.h|junctionIdeal.medium.p|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.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes14") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002313/0.002317, allocations: 181.4 kB / 13.66 MB, free: 1.664 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.131/2.131, allocations: 205.2 MB / 219.4 MB, free: 14.21 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.001077/0.001076, allocations: 82.72 kB / 267.5 MB, free: 14.04 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2893/0.2893, allocations: 43.49 MB / 359.1 MB, free: 12.24 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 4.73e-05/4.741e-05, allocations: 4 kB / 425.3 MB, free: 23.38 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1303/0.1303, allocations: 58.86 MB / 484.1 MB, free: 12.47 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 8.732/8.862, allocations: 2.846 GB / 3.319 GB, free: 101.1 MB / 0.5105 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000299/8.862, allocations: 84.98 kB / 3.319 GB, free: 101.1 MB / 0.5105 GB Notification: Performance of FrontEnd - DAE generated: time 4.728/13.59, allocations: 0.9078 GB / 4.227 GB, free: 37.09 MB / 0.5417 GB Notification: Performance of FrontEnd: time 2.304e-06/13.59, allocations: 0 / 4.227 GB, free: 37.09 MB / 0.5417 GB Notification: Performance of Transformations before backend: time 0.0003532/13.59, allocations: 67.53 kB / 4.227 GB, free: 37.08 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.01849/13.61, allocations: 3.966 MB / 4.231 GB, free: 35.36 MB / 0.5417 GB Notification: Performance of prepare preOptimizeDAE: time 5.189e-05/13.61, allocations: 13.56 kB / 4.231 GB, free: 35.35 MB / 0.5417 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009405/13.62, allocations: 0.875 MB / 4.232 GB, free: 35.21 MB / 0.5417 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008984/13.63, allocations: 2.099 MB / 4.234 GB, free: 34.77 MB / 0.5417 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003827/13.63, allocations: 186 kB / 4.234 GB, free: 34.77 MB / 0.5417 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001137/13.63, allocations: 207.4 kB / 4.234 GB, free: 34.76 MB / 0.5417 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01286/13.64, allocations: 3.642 MB / 4.238 GB, free: 34.21 MB / 0.5417 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001031/13.64, allocations: 11.62 kB / 4.238 GB, free: 34.21 MB / 0.5417 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007756/13.64, allocations: 92.89 kB / 4.238 GB, free: 34.21 MB / 0.5417 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000348/13.64, allocations: 164.6 kB / 4.238 GB, free: 34.2 MB / 0.5417 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01138/13.66, allocations: 3.221 MB / 4.241 GB, free: 34.19 MB / 0.5417 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.03067/13.69, allocations: 15.63 MB / 4.256 GB, free: 24.75 MB / 0.5417 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00796/13.69, allocations: 2.712 MB / 4.259 GB, free: 24.15 MB / 0.5417 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002977/13.7, allocations: 1.163 MB / 4.26 GB, free: 24.13 MB / 0.5417 GB Notification: Performance of preOpt evalFunc (simulation): time 0.07688/13.77, allocations: 24.56 MB / 4.284 GB, free: 24.91 MB / 0.5573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.006304/13.78, allocations: 1.741 MB / 4.286 GB, free: 24.77 MB / 0.5573 GB Notification: Performance of pre-optimization done (n=173): time 5.601e-06/13.78, allocations: 0 / 4.286 GB, free: 24.77 MB / 0.5573 GB Notification: Performance of matching and sorting (n=189): time 0.03329/13.81, allocations: 7.88 MB / 4.294 GB, free: 23.66 MB / 0.5573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001869/13.81, allocations: 256.4 kB / 4.294 GB, free: 23.38 MB / 0.5573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003109/13.82, allocations: 1.409 MB / 4.295 GB, free: 23.19 MB / 0.5573 GB Notification: Performance of collectPreVariables (initialization): time 0.0006502/13.82, allocations: 62.05 kB / 4.295 GB, free: 23.16 MB / 0.5573 GB Notification: Performance of collectInitialEqns (initialization): time 0.00106/13.82, allocations: 0.9039 MB / 4.296 GB, free: 22.72 MB / 0.5573 GB Notification: Performance of collectInitialBindings (initialization): time 0.001073/13.82, allocations: 0.6305 MB / 4.297 GB, free: 22.32 MB / 0.5573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002605/13.82, allocations: 39.25 kB / 4.297 GB, free: 22.32 MB / 0.5573 GB Notification: Performance of setup shared object (initialization): time 0.0002546/13.82, allocations: 393.6 kB / 4.297 GB, free: 22.01 MB / 0.5573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002888/13.82, allocations: 1.033 MB / 4.298 GB, free: 22 MB / 0.5573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003439/13.83, allocations: 1.494 MB / 4.3 GB, free: 21.54 MB / 0.5573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003394/13.83, allocations: 1.278 MB / 4.301 GB, free: 21.43 MB / 0.5573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.591e-05/13.83, allocations: 7.938 kB / 4.301 GB, free: 21.43 MB / 0.5573 GB Notification: Performance of matching and sorting (n=264) (initialization): time 0.008882/13.84, allocations: 3.01 MB / 4.304 GB, free: 21.05 MB / 0.5573 GB Notification: Performance of prepare postOptimizeDAE: time 0.001799/13.84, allocations: 4.335 MB / 4.308 GB, free: 16.42 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.728e-05/13.84, allocations: 14.11 kB / 4.308 GB, free: 16.42 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001349/13.84, allocations: 236.3 kB / 4.308 GB, free: 16.33 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00443/13.85, allocations: 0.5177 MB / 4.309 GB, free: 16.28 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002193/13.85, allocations: 2.438 MB / 4.311 GB, free: 14.04 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004864/13.85, allocations: 309.7 kB / 4.311 GB, free: 13.97 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006978/13.85, allocations: 102.5 kB / 4.312 GB, free: 13.95 MB / 0.5573 GB Notification: Performance of prepare postOptimizeDAE: time 1.655e-05/13.86, allocations: 3.031 kB / 4.312 GB, free: 13.95 MB / 0.5573 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.008125/13.86, allocations: 2.885 MB / 4.314 GB, free: 12.86 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.392e-05/13.86, allocations: 7.844 kB / 4.314 GB, free: 12.86 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001153/13.86, allocations: 233.7 kB / 4.315 GB, free: 12.78 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004315/13.87, allocations: 0.5197 MB / 4.315 GB, free: 12.73 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002107/13.87, allocations: 2.428 MB / 4.317 GB, free: 10.49 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003852/13.87, allocations: 302.3 kB / 4.318 GB, free: 10.43 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005009/13.88, allocations: 106.1 kB / 4.318 GB, free: 10.4 MB / 0.5573 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 (valve2.state_b.phase,valve2.state_a.phase,valve1.state_b.phase,valve1.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,junctionIdeal.medium.phase,pipe3.state_a.phase,pipe3.state_b.phase,pipe2.state_a.phase,pipe2.state_b.phase,pipe1.state_b.phase,pipe1.state_a.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (250): * Single equations (assignments): 244 * 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.0009464/13.88, allocations: 305.3 kB / 4.318 GB, free: 10.13 MB / 0.5573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000691/13.88, allocations: 223.6 kB / 4.318 GB, free: 10.02 MB / 0.5573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01519/13.89, allocations: 7.555 MB / 4.326 GB, free: 6.656 MB / 0.5573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001045/13.89, allocations: 85.41 kB / 4.326 GB, free: 6.633 MB / 0.5573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.174e-05/13.89, allocations: 0 / 4.326 GB, free: 6.633 MB / 0.5573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01222/13.9, allocations: 6.576 MB / 4.332 GB, free: 2.414 MB / 0.5573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03023/13.93, allocations: 12.26 MB / 4.344 GB, free: 7.656 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.774e-05/13.93, allocations: 7.938 kB / 4.344 GB, free: 7.648 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003663/13.94, allocations: 436.9 kB / 4.345 GB, free: 7.293 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002026/13.94, allocations: 346.8 kB / 4.345 GB, free: 7.02 MB / 0.573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005918/13.94, allocations: 75.41 kB / 4.345 GB, free: 6.957 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002385/13.94, allocations: 2.526 MB / 4.348 GB, free: 4.422 MB / 0.573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.409e-05/13.94, allocations: 11.94 kB / 4.348 GB, free: 4.41 MB / 0.573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.4599/14.4, allocations: 7.638 MB / 4.355 GB, free: 66.5 MB / 0.573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002735/14.41, allocations: 0.7807 MB / 4.356 GB, free: 66.41 MB / 0.573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001032/14.41, allocations: 62.92 kB / 4.356 GB, free: 66.41 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003866/14.41, allocations: 221.6 kB / 4.356 GB, free: 66.41 MB / 0.573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008043/14.41, allocations: 181.8 kB / 4.356 GB, free: 66.41 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003768/14.41, allocations: 91.59 kB / 4.356 GB, free: 66.41 MB / 0.573 GB Notification: Performance of sorting global known variables: time 0.003146/14.42, allocations: 1.252 MB / 4.358 GB, free: 66.25 MB / 0.573 GB Notification: Performance of sort global known variables: time 7.72e-07/14.42, allocations: 0 / 4.358 GB, free: 66.25 MB / 0.573 GB Notification: Performance of remove unused functions: time 0.01419/14.43, allocations: 2.779 MB / 4.36 GB, free: 66.25 MB / 0.573 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 23 * 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,junctionIdeal.medium.p,junctionIdeal.medium.h) * Number of discrete variables: 56 ($cse3.phase,$cse3.region,$cse5.region3boundary,$cse6.region3boundary,$cse7.phase,$cse7.region,$cse12.phase,$cse12.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.region3boundary,$cse39.region3boundary,$cse40.phase,$cse40.region,$cse42.phase,$cse42.region,$cse43.region3boundary,$cse44.region3boundary,$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,junctionIdeal.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) * Top-level inputs: 0 Notification: Strong component statistics for simulation (214): * Single equations (assignments): 185 * 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.01646/14.45, allocations: 2.863 MB / 4.363 GB, free: 66.09 MB / 0.573 GB Notification: Performance of simCode: created initialization part: time 0.01582/14.46, allocations: 5.097 MB / 4.368 GB, free: 65.75 MB / 0.573 GB Notification: Performance of simCode: created event and clocks part: time 1.43e-05/14.46, allocations: 3.688 kB / 4.368 GB, free: 65.75 MB / 0.573 GB Notification: Performance of simCode: created simulation system equations: time 0.006604/14.47, allocations: 2.661 MB / 4.371 GB, free: 65.61 MB / 0.573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.009872/14.48, allocations: 1.061 MB / 4.372 GB, free: 65.59 MB / 0.573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0161/14.5, allocations: 6.227 MB / 4.378 GB, free: 64.3 MB / 0.573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003426/14.5, allocations: 2.249 MB / 4.38 GB, free: 63.55 MB / 0.573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001663/14.5, allocations: 221.6 kB / 4.38 GB, free: 63.55 MB / 0.573 GB Notification: Performance of SimCode: time 1.843e-06/14.5, allocations: 0 / 4.38 GB, free: 63.55 MB / 0.573 GB Notification: Performance of Templates: time 0.2019/14.7, allocations: 118.6 MB / 4.496 GB, free: 50.99 MB / 0.573 GB make -j1 -f ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes14.makefile (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes14.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes14.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes14.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes14.sim & ./ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes14 --alarm=480 -emit_protected > ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes14.pipe 2>&1)