Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes18.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.BranchingPipes18,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|junctionIdeal.medium.h|junctionIdeal.medium.p|junctionVolume.medium.h|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.BranchingPipes18") translateModel(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes18,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|junctionIdeal.medium.h|junctionIdeal.medium.p|junctionVolume.medium.h|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.BranchingPipes18") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001443/0.001443, allocations: 188.4 kB / 16.41 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.853/1.853, allocations: 205.4 MB / 222.5 MB, free: 9.113 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.001104/0.001103, allocations: 90 kB / 270.9 MB, free: 8.371 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.5011/0.5011, allocations: 43.55 MB / 362.7 MB, free: 52.21 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006325/0.0006325, allocations: 16 kB / 431.4 MB, free: 6.16 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1222/0.1228, allocations: 58.84 MB / 490.2 MB, free: 11.23 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 8.667/8.79, allocations: 2.847 GB / 3.326 GB, free: 39.04 MB / 0.5105 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002846/8.79, allocations: 78.84 kB / 3.326 GB, free: 39 MB / 0.5105 GB Notification: Performance of FrontEnd - DAE generated: time 5.303/14.09, allocations: 1.017 GB / 4.342 GB, free: 29.91 MB / 0.5417 GB Notification: Performance of FrontEnd: time 3.617e-06/14.09, allocations: 0 / 4.342 GB, free: 29.91 MB / 0.5417 GB Notification: Performance of Transformations before backend: time 0.0003197/14.09, allocations: 76.08 kB / 4.343 GB, free: 29.89 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: 575 * Number of variables: 575 Notification: Performance of Generate backend data structure: time 0.02164/14.11, allocations: 4.553 MB / 4.347 GB, free: 27.48 MB / 0.5417 GB Notification: Performance of prepare preOptimizeDAE: time 4.802e-05/14.11, allocations: 11.14 kB / 4.347 GB, free: 27.48 MB / 0.5417 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01033/14.13, allocations: 0.9437 MB / 4.348 GB, free: 27.25 MB / 0.5417 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009284/14.13, allocations: 2.214 MB / 4.35 GB, free: 26.26 MB / 0.5417 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003473/14.13, allocations: 193.7 kB / 4.35 GB, free: 26.18 MB / 0.5417 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001071/14.14, allocations: 230.2 kB / 4.35 GB, free: 26.11 MB / 0.5417 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01427/14.15, allocations: 3.926 MB / 4.354 GB, free: 24.45 MB / 0.5417 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001095/14.15, allocations: 12.34 kB / 4.354 GB, free: 24.45 MB / 0.5417 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005433/14.15, allocations: 96.33 kB / 4.354 GB, free: 24.39 MB / 0.5417 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003231/14.15, allocations: 175.1 kB / 4.355 GB, free: 24.36 MB / 0.5417 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01487/14.17, allocations: 3.624 MB / 4.358 GB, free: 23.28 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.03298/14.2, allocations: 16.95 MB / 4.375 GB, free: 10.51 MB / 0.5417 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0133/14.21, allocations: 3.203 MB / 4.378 GB, free: 9.141 MB / 0.5417 GB Notification: Performance of preOpt evalFunc (simulation): time 0.08628/14.3, allocations: 24.58 MB / 4.402 GB, free: 1.961 MB / 0.5573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.009266/14.31, allocations: 1.913 MB / 4.404 GB, free: 28 kB / 0.5573 GB Notification: Performance of pre-optimization done (n=192): time 6.382e-06/14.31, allocations: 0 / 4.404 GB, free: 28 kB / 0.5573 GB Notification: Performance of matching and sorting (n=212): time 0.5185/14.83, allocations: 10.52 MB / 4.414 GB, free: 48.59 MB / 0.5573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001325/14.83, allocations: 261.3 kB / 4.414 GB, free: 48.3 MB / 0.5573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003736/14.83, allocations: 1.526 MB / 4.416 GB, free: 48.08 MB / 0.5573 GB Notification: Performance of collectPreVariables (initialization): time 0.0007603/14.83, allocations: 68.02 kB / 4.416 GB, free: 48.05 MB / 0.5573 GB Notification: Performance of collectInitialEqns (initialization): time 0.001013/14.83, allocations: 0.9603 MB / 4.417 GB, free: 47.68 MB / 0.5573 GB Notification: Performance of collectInitialBindings (initialization): time 0.001123/14.83, allocations: 0.7052 MB / 4.417 GB, free: 47.33 MB / 0.5573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002984/14.83, allocations: 49.03 kB / 4.417 GB, free: 47.33 MB / 0.5573 GB Notification: Performance of setup shared object (initialization): time 0.0001673/14.83, allocations: 403.1 kB / 4.418 GB, free: 47.02 MB / 0.5573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004315/14.84, allocations: 1.29 MB / 4.419 GB, free: 47.01 MB / 0.5573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004951/14.84, allocations: 1.812 MB / 4.421 GB, free: 46.5 MB / 0.5573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.005038/14.85, allocations: 1.54 MB / 4.422 GB, free: 46.42 MB / 0.5573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.917e-05/14.85, allocations: 3.688 kB / 4.422 GB, free: 46.42 MB / 0.5573 GB Notification: Performance of matching and sorting (n=303) (initialization): time 0.01244/14.86, allocations: 3.681 MB / 4.426 GB, free: 46.19 MB / 0.5573 GB Notification: Performance of prepare postOptimizeDAE: time 0.001112/14.86, allocations: 4.948 MB / 4.431 GB, free: 41.04 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.792e-05/14.86, allocations: 12.25 kB / 4.431 GB, free: 41.04 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002099/14.86, allocations: 352 kB / 4.431 GB, free: 41 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005116/14.87, allocations: 0.6016 MB / 4.432 GB, free: 41 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002416/14.87, allocations: 3.093 MB / 4.435 GB, free: 38.41 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005496/14.88, allocations: 336.6 kB / 4.435 GB, free: 38.4 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005916/14.88, allocations: 120.5 kB / 4.435 GB, free: 38.4 MB / 0.5573 GB Notification: Performance of prepare postOptimizeDAE: time 1.616e-05/14.88, allocations: 11.03 kB / 4.435 GB, free: 38.4 MB / 0.5573 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01169/14.89, allocations: 3.527 MB / 4.439 GB, free: 38.25 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.489e-05/14.89, allocations: 16.3 kB / 4.439 GB, free: 38.25 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001845/14.89, allocations: 354.2 kB / 4.439 GB, free: 38.21 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004879/14.9, allocations: 0.5838 MB / 4.44 GB, free: 38.21 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002341/14.9, allocations: 3.097 MB / 4.443 GB, free: 35.62 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004564/14.9, allocations: 343.3 kB / 4.443 GB, free: 35.61 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004091/14.9, allocations: 111.8 kB / 4.443 GB, free: 35.61 MB / 0.5573 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 56 * Number of states: 0 () * Number of discrete variables: 31 (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,junctionVolume.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 (283): * Single equations (assignments): 276 * 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: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 5 {1 1,1 1,1 1,1 6,1 1} Notification: Performance of prepare postOptimizeDAE: time 0.002381/14.91, allocations: 0.8002 MB / 4.444 GB, free: 35.35 MB / 0.5573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008035/14.91, allocations: 231.8 kB / 4.444 GB, free: 35.23 MB / 0.5573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02148/14.93, allocations: 8.346 MB / 4.452 GB, free: 34.54 MB / 0.5573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001051/14.93, allocations: 88.88 kB / 4.452 GB, free: 34.54 MB / 0.5573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.285e-05/14.93, allocations: 3.625 kB / 4.452 GB, free: 34.54 MB / 0.5573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.02277/14.95, allocations: 7.261 MB / 4.459 GB, free: 33.61 MB / 0.5573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03327/14.99, allocations: 13.38 MB / 4.472 GB, free: 32 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.01e-05/14.99, allocations: 3.406 kB / 4.472 GB, free: 32 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003777/14.99, allocations: 499.8 kB / 4.473 GB, free: 32 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002824/14.99, allocations: 480.1 kB / 4.473 GB, free: 31.96 MB / 0.5573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004671/14.99, allocations: 88.84 kB / 4.473 GB, free: 31.96 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002363/14.99, allocations: 3.225 MB / 4.477 GB, free: 29.36 MB / 0.5573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.003e-05/14.99, allocations: 9.5 kB / 4.477 GB, free: 29.36 MB / 0.5573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01901/15.01, allocations: 8.65 MB / 4.485 GB, free: 27.93 MB / 0.5573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00287/15.02, allocations: 0.8288 MB / 4.486 GB, free: 27.58 MB / 0.5573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008228/15.02, allocations: 65.53 kB / 4.486 GB, free: 27.58 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003572/15.02, allocations: 241.4 kB / 4.486 GB, free: 27.57 MB / 0.5573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006028/15.02, allocations: 200.6 kB / 4.486 GB, free: 27.56 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003/15.02, allocations: 93.8 kB / 4.486 GB, free: 27.56 MB / 0.5573 GB Notification: Performance of sorting global known variables: time 0.003043/15.03, allocations: 1.349 MB / 4.488 GB, free: 27.42 MB / 0.5573 GB Notification: Performance of sort global known variables: time 7.11e-07/15.03, allocations: 0 / 4.488 GB, free: 27.42 MB / 0.5573 GB Notification: Performance of remove unused functions: time 0.01364/15.04, allocations: 2.946 MB / 4.491 GB, free: 27.31 MB / 0.5573 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 23 * Number of states: 9 (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,junctionVolume.medium.h) * Number of discrete variables: 59 ($cse3.phase,$cse3.region,$cse5.region3boundary,$cse6.region3boundary,$cse7.phase,$cse7.region,$cse12.phase,$cse12.region,$cse18.phase,$cse18.region,$cse19.phase,$cse19.region,$cse23.phase,$cse23.region,$cse24.phase,$cse24.region,$cse30.phase,$cse30.region,$cse31.phase,$cse31.region,$cse35.phase,$cse35.region,$cse38.phase,$cse38.region,$cse40.region3boundary,$cse41.region3boundary,$cse42.phase,$cse42.region,$cse44.region3boundary,$cse45.region3boundary,$cse46.phase,$cse46.region,$cse48.phase,$cse48.region,$cse49.region3boundary,$cse50.region3boundary,$cse51.phase,$cse51.region,$cse52.phase,$cse52.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,junctionVolume.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 (239): * Single equations (assignments): 208 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 24 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 5 {1 1,1 1,2 4,1 1,1 1} Notification: Performance of Backend phase and start with SimCode phase: time 0.0158/15.05, allocations: 3.048 MB / 4.494 GB, free: 26.98 MB / 0.5573 GB Notification: Performance of simCode: created initialization part: time 0.01674/15.07, allocations: 5.969 MB / 4.499 GB, free: 26.64 MB / 0.5573 GB Notification: Performance of simCode: created event and clocks part: time 1.509e-05/15.07, allocations: 0 / 4.499 GB, free: 26.64 MB / 0.5573 GB Notification: Performance of simCode: created simulation system equations: time 0.007162/15.08, allocations: 3.052 MB / 4.502 GB, free: 26.5 MB / 0.5573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01044/15.09, allocations: 1.22 MB / 4.504 GB, free: 26.47 MB / 0.5573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01921/15.11, allocations: 9.619 MB / 4.513 GB, free: 22.84 MB / 0.5573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002297/15.11, allocations: 2.344 MB / 4.515 GB, free: 22.09 MB / 0.5573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001772/15.11, allocations: 243.5 kB / 4.515 GB, free: 22.08 MB / 0.5573 GB Notification: Performance of SimCode: time 9.52e-07/15.11, allocations: 3.719 kB / 4.515 GB, free: 22.08 MB / 0.5573 GB Notification: Performance of Templates: time 0.6885/15.8, allocations: 139.3 MB / 4.652 GB, free: 61.65 MB / 0.573 GB make -j1 -f ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes18.makefile (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes18.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes18.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes18.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes18.sim & ./ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes18 --alarm=480 -emit_protected > ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes18.pipe 2>&1)