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.001489/0.00149, allocations: 182.4 kB / 16.4 MB, free: 5.723 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.894/1.894, allocations: 205.4 MB / 222.5 MB, free: 9.121 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.001108/0.001108, allocations: 89.3 kB / 270.9 MB, free: 8.375 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.4956/0.4956, allocations: 43.54 MB / 362.7 MB, free: 52.17 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004683/0.0004685, allocations: 16 kB / 431.4 MB, free: 6.184 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1202/0.1207, allocations: 58.85 MB / 490.2 MB, free: 11.25 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 8.478/8.599, allocations: 2.846 GB / 3.325 GB, free: 40.02 MB / 0.5105 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002728/8.599, allocations: 85.08 kB / 3.325 GB, free: 39.98 MB / 0.5105 GB Notification: Performance of FrontEnd - DAE generated: time 4.862/13.46, allocations: 0.9102 GB / 4.235 GB, free: 35.45 MB / 0.5417 GB Notification: Performance of FrontEnd: time 2.776e-06/13.46, allocations: 0 / 4.235 GB, free: 35.45 MB / 0.5417 GB Notification: Performance of Transformations before backend: time 0.000323/13.46, allocations: 67.92 kB / 4.235 GB, free: 35.43 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.01975/13.48, allocations: 4.244 MB / 4.24 GB, free: 33.62 MB / 0.5417 GB Notification: Performance of prepare preOptimizeDAE: time 4.319e-05/13.48, allocations: 7.594 kB / 4.24 GB, free: 33.62 MB / 0.5417 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00932/13.49, allocations: 0.8769 MB / 4.24 GB, free: 33.48 MB / 0.5417 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008853/13.5, allocations: 2.12 MB / 4.243 GB, free: 33.03 MB / 0.5417 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003873/13.5, allocations: 183.6 kB / 4.243 GB, free: 33.03 MB / 0.5417 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001152/13.5, allocations: 204.4 kB / 4.243 GB, free: 33.03 MB / 0.5417 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01384/13.51, allocations: 3.675 MB / 4.246 GB, free: 32.47 MB / 0.5417 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.891e-05/13.51, allocations: 11.09 kB / 4.246 GB, free: 32.47 MB / 0.5417 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004615/13.52, allocations: 91.25 kB / 4.247 GB, free: 32.47 MB / 0.5417 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003506/13.52, allocations: 166.8 kB / 4.247 GB, free: 32.47 MB / 0.5417 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01406/13.53, allocations: 3.356 MB / 4.25 GB, free: 32.45 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.03158/13.56, allocations: 15.63 MB / 4.265 GB, free: 23.01 MB / 0.5417 GB Notification: Performance of preOpt comSubExp (simulation): time 0.009832/13.57, allocations: 2.833 MB / 4.268 GB, free: 22.41 MB / 0.5417 GB Notification: Performance of preOpt evalFunc (simulation): time 0.07771/13.65, allocations: 24.48 MB / 4.292 GB, free: 23.38 MB / 0.5573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.007271/13.66, allocations: 1.752 MB / 4.294 GB, free: 23.24 MB / 0.5573 GB Notification: Performance of pre-optimization done (n=173): time 5.661e-06/13.66, allocations: 0 / 4.294 GB, free: 23.24 MB / 0.5573 GB Notification: Performance of matching and sorting (n=189): time 0.04147/13.7, allocations: 9.408 MB / 4.303 GB, free: 21.99 MB / 0.5573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001663/13.7, allocations: 256.1 kB / 4.303 GB, free: 21.71 MB / 0.5573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003011/13.7, allocations: 1.427 MB / 4.304 GB, free: 21.54 MB / 0.5573 GB Notification: Performance of collectPreVariables (initialization): time 0.0006486/13.7, allocations: 59.95 kB / 4.305 GB, free: 21.5 MB / 0.5573 GB Notification: Performance of collectInitialEqns (initialization): time 0.0009397/13.7, allocations: 0.8997 MB / 4.305 GB, free: 21.07 MB / 0.5573 GB Notification: Performance of collectInitialBindings (initialization): time 0.00106/13.7, allocations: 0.6282 MB / 4.306 GB, free: 20.68 MB / 0.5573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003064/13.7, allocations: 41.41 kB / 4.306 GB, free: 20.68 MB / 0.5573 GB Notification: Performance of setup shared object (initialization): time 0.0002388/13.7, allocations: 391.1 kB / 4.306 GB, free: 20.36 MB / 0.5573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003788/13.71, allocations: 1.151 MB / 4.308 GB, free: 20.36 MB / 0.5573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004353/13.71, allocations: 1.613 MB / 4.309 GB, free: 19.91 MB / 0.5573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.004414/13.72, allocations: 1.389 MB / 4.31 GB, free: 19.82 MB / 0.5573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.676e-05/13.72, allocations: 3.062 kB / 4.31 GB, free: 19.82 MB / 0.5573 GB Notification: Performance of matching and sorting (n=264) (initialization): time 0.01114/13.73, allocations: 3.268 MB / 4.314 GB, free: 19.61 MB / 0.5573 GB Notification: Performance of prepare postOptimizeDAE: time 0.001736/13.73, allocations: 4.339 MB / 4.318 GB, free: 15.08 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.807e-05/13.73, allocations: 14.3 kB / 4.318 GB, free: 15.08 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001604/13.73, allocations: 248.1 kB / 4.318 GB, free: 15.04 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004567/13.74, allocations: 0.5245 MB / 4.319 GB, free: 15.04 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00272/13.74, allocations: 2.431 MB / 4.321 GB, free: 28.96 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00497/13.74, allocations: 309.6 kB / 4.321 GB, free: 28.93 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007485/13.74, allocations: 103.4 kB / 4.321 GB, free: 28.93 MB / 0.573 GB Notification: Performance of prepare postOptimizeDAE: time 1.706e-05/13.74, allocations: 4.344 kB / 4.321 GB, free: 28.93 MB / 0.573 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01104/13.76, allocations: 3.122 MB / 4.325 GB, free: 28.76 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.935e-05/13.76, allocations: 19.09 kB / 4.325 GB, free: 28.76 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001406/13.76, allocations: 249.7 kB / 4.325 GB, free: 28.73 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004479/13.76, allocations: 0.513 MB / 4.325 GB, free: 28.72 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002113/13.76, allocations: 2.434 MB / 4.328 GB, free: 26.64 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003872/13.77, allocations: 305.3 kB / 4.328 GB, free: 26.61 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005165/13.77, allocations: 106.5 kB / 4.328 GB, free: 26.61 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 (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 () * Number of clocked 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.002363/13.77, allocations: 0.7617 MB / 4.329 GB, free: 26.34 MB / 0.573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007409/13.77, allocations: 220.1 kB / 4.329 GB, free: 26.23 MB / 0.573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01754/13.79, allocations: 7.662 MB / 4.336 GB, free: 25.43 MB / 0.573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.509e-05/13.79, allocations: 83.56 kB / 4.337 GB, free: 25.43 MB / 0.573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.25e-05/13.79, allocations: 4 kB / 4.337 GB, free: 25.43 MB / 0.573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01414/13.8, allocations: 6.684 MB / 4.343 GB, free: 24.5 MB / 0.573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02891/13.83, allocations: 12.37 MB / 4.355 GB, free: 22.72 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.367e-05/13.83, allocations: 3.219 kB / 4.355 GB, free: 22.72 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003465/13.84, allocations: 440.6 kB / 4.356 GB, free: 22.7 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002325/13.84, allocations: 377.3 kB / 4.356 GB, free: 22.58 MB / 0.573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000523/13.84, allocations: 72.81 kB / 4.356 GB, free: 22.55 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002145/13.84, allocations: 2.528 MB / 4.358 GB, free: 20.27 MB / 0.573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.918e-06/13.84, allocations: 12.66 kB / 4.358 GB, free: 20.27 MB / 0.573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01732/13.86, allocations: 7.917 MB / 4.366 GB, free: 16.33 MB / 0.573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002454/13.86, allocations: 0.787 MB / 4.367 GB, free: 15.84 MB / 0.573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000802/13.86, allocations: 63.56 kB / 4.367 GB, free: 15.81 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003394/13.87, allocations: 214.5 kB / 4.367 GB, free: 15.76 MB / 0.573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005731/13.87, allocations: 179.5 kB / 4.367 GB, free: 15.73 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002908/13.87, allocations: 87.84 kB / 4.368 GB, free: 15.71 MB / 0.573 GB Notification: Performance of sorting global known variables: time 0.002791/13.87, allocations: 1.283 MB / 4.369 GB, free: 15.22 MB / 0.573 GB Notification: Performance of sort global known variables: time 8.02e-07/13.87, allocations: 0 / 4.369 GB, free: 15.22 MB / 0.573 GB Notification: Performance of remove unused functions: time 0.01302/13.88, allocations: 2.779 MB / 4.371 GB, free: 14.68 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) * Number of clocked states: 0 () * 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.01514/13.9, allocations: 2.867 MB / 4.374 GB, free: 13.92 MB / 0.573 GB Notification: Performance of simCode: created initialization part: time 0.0153/13.91, allocations: 5.371 MB / 4.38 GB, free: 11.96 MB / 0.573 GB Notification: Performance of simCode: created event and clocks part: time 1.517e-05/13.91, allocations: 0 / 4.38 GB, free: 11.96 MB / 0.573 GB Notification: Performance of simCode: created simulation system equations: time 0.006462/13.92, allocations: 2.763 MB / 4.382 GB, free: 10.76 MB / 0.573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.009164/13.93, allocations: 1.054 MB / 4.383 GB, free: 10.51 MB / 0.573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02029/13.95, allocations: 8.978 MB / 4.392 GB, free: 3.625 MB / 0.573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003293/13.95, allocations: 2.254 MB / 4.394 GB, free: 1.863 MB / 0.573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001627/13.95, allocations: 222.7 kB / 4.394 GB, free: 1.66 MB / 0.573 GB Notification: Performance of SimCode: time 1.303e-06/13.95, allocations: 0 / 4.394 GB, free: 1.66 MB / 0.573 GB Notification: Performance of Templates: time 0.6618/14.62, allocations: 119.1 MB / 4.511 GB, free: 54.25 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)