Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.2_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes3.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.2+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.2+maint.om/package.mo) Using package ModelicaServices with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo) Using package Modelica with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo) Using package Complex with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo) Running command: translateModel(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes3,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaTest_3.2.2_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes3") translateModel(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes3,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaTest_3.2.2_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes3") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo): time 0.001417/0.001417, allocations: 181.9 kB / 12.74 MB, free: 2.582 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 1.574/1.574, allocations: 194.3 MB / 207.5 MB, free: 3.465 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo): time 0.001667/0.001667, allocations: 109.9 kB / 252.6 MB, free: 4.828 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.2+maint.om/package.mo): time 0.2414/0.2414, allocations: 39.94 MB / 337.5 MB, free: 484 kB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 5.88e-05/5.882e-05, allocations: 4 kB / 400.3 MB, free: 69.87 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1691/0.1692, allocations: 54.86 MB / 455.1 MB, free: 14.97 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 8.442/8.612, allocations: 2.673 GB / 3.118 GB, free: 94.02 MB / 490.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003637/8.612, allocations: 81.66 kB / 3.118 GB, free: 94.02 MB / 490.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.29/11.9, allocations: 0.8678 GB / 3.986 GB, free: 39.41 MB / 0.5105 GB Notification: Performance of FrontEnd: time 2.635e-06/11.9, allocations: 0 / 3.986 GB, free: 39.41 MB / 0.5105 GB Notification: Performance of Transformations before backend: time 0.0001933/11.9, allocations: 72.53 kB / 3.986 GB, free: 39.39 MB / 0.5105 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 476 * Number of variables: 476 Notification: Performance of Generate backend data structure: time 0.01739/11.92, allocations: 3.747 MB / 3.989 GB, free: 37.56 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 5.222e-05/11.92, allocations: 9.594 kB / 3.989 GB, free: 37.56 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007131/11.93, allocations: 0.7867 MB / 3.99 GB, free: 37.43 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006989/11.93, allocations: 1.976 MB / 3.992 GB, free: 36.98 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002932/11.93, allocations: 167.8 kB / 3.992 GB, free: 36.98 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007275/11.93, allocations: 189.1 kB / 3.992 GB, free: 36.97 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007266/11.94, allocations: 3.239 MB / 3.996 GB, free: 36.48 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.398e-05/11.94, allocations: 6.969 kB / 3.996 GB, free: 36.48 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002601/11.94, allocations: 81.25 kB / 3.996 GB, free: 36.48 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001997/11.94, allocations: 150.7 kB / 3.996 GB, free: 36.48 MB / 0.5105 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005549/11.95, allocations: 2.832 MB / 3.999 GB, free: 36.44 MB / 0.5105 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.016/11.96, allocations: 13.9 MB / 4.012 GB, free: 27.87 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003818/11.97, allocations: 1.962 MB / 4.014 GB, free: 27.82 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0013/11.97, allocations: 1.03 MB / 4.015 GB, free: 27.82 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.03477/12, allocations: 18.87 MB / 4.033 GB, free: 15.81 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.004037/12.01, allocations: 1.601 MB / 4.035 GB, free: 15.68 MB / 0.5105 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.00162/12.01, allocations: 163.7 kB / 4.035 GB, free: 15.6 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=155): time 5.601e-06/12.01, allocations: 0 / 4.035 GB, free: 15.6 MB / 0.5105 GB Notification: Performance of matching and sorting (n=167): time 0.01624/12.03, allocations: 6.882 MB / 4.042 GB, free: 13.16 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001061/12.03, allocations: 258 kB / 4.042 GB, free: 12.88 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001907/12.03, allocations: 1.26 MB / 4.043 GB, free: 12.39 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.0001881/12.03, allocations: 64.14 kB / 4.043 GB, free: 12.33 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.0006991/12.03, allocations: 0.8934 MB / 4.044 GB, free: 11.63 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.0004391/12.03, allocations: 0.5582 MB / 4.045 GB, free: 11.2 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001122/12.03, allocations: 39.06 kB / 4.045 GB, free: 11.18 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0001361/12.03, allocations: 376.6 kB / 4.045 GB, free: 10.84 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001211/12.03, allocations: 0.9157 MB / 4.046 GB, free: 10.51 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001484/12.03, allocations: 1.355 MB / 4.047 GB, free: 9.68 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001516/12.03, allocations: 1.164 MB / 4.049 GB, free: 9.215 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.454e-06/12.03, allocations: 3.906 kB / 4.049 GB, free: 9.215 MB / 0.5105 GB Notification: Performance of matching and sorting (n=236) (initialization): time 0.00494/12.04, allocations: 2.907 MB / 4.051 GB, free: 8.094 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 0.001939/12.04, allocations: 4.368 MB / 4.056 GB, free: 19.36 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.661e-05/12.04, allocations: 12.19 kB / 4.056 GB, free: 19.36 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00237/12.04, allocations: 0.5264 MB / 4.056 GB, free: 19.23 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00186/12.05, allocations: 457.8 kB / 4.057 GB, free: 18.91 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002274/12.05, allocations: 2.707 MB / 4.059 GB, free: 16.25 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002813/12.05, allocations: 265.1 kB / 4.06 GB, free: 16.04 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002432/12.05, allocations: 99.27 kB / 4.06 GB, free: 15.95 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 1.452e-05/12.05, allocations: 7.656 kB / 4.06 GB, free: 15.95 MB / 0.5261 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003779/12.05, allocations: 2.541 MB / 4.062 GB, free: 13.71 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.769e-05/12.05, allocations: 15.94 kB / 4.062 GB, free: 13.69 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005672/12.06, allocations: 198.5 kB / 4.062 GB, free: 13.52 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001681/12.06, allocations: 465.7 kB / 4.063 GB, free: 13.14 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001324/12.06, allocations: 1.875 MB / 4.065 GB, free: 11.27 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002698/12.06, allocations: 267.1 kB / 4.065 GB, free: 11.06 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001871/12.06, allocations: 87.5 kB / 4.065 GB, free: 10.98 MB / 0.5261 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 48 * Number of states: 0 () * Number of discrete variables: 29 (valveIncompressible1.state_b.phase,valveIncompressible1.state_a.phase,valveIncompressible.state_b.phase,valveIncompressible.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_a.phase,pipe3.state_b.phase,pipe2.state_a.phase,pipe2.state_b.phase,pipe1.state_a.phase,pipe1.state_b.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (215): * Single equations (assignments): 209 * 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,2 5} Notification: Performance of prepare postOptimizeDAE: time 0.0008177/12.06, allocations: 301 kB / 4.065 GB, free: 10.68 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004192/12.06, allocations: 193.7 kB / 4.065 GB, free: 10.49 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01008/12.07, allocations: 7.339 MB / 4.073 GB, free: 3.887 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.681e-05/12.07, allocations: 81.91 kB / 4.073 GB, free: 3.836 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.019e-05/12.07, allocations: 0 / 4.073 GB, free: 3.836 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.4659/12.54, allocations: 6.676 MB / 4.079 GB, free: 52.97 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01958/12.56, allocations: 11.09 MB / 4.09 GB, free: 52 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.065e-05/12.56, allocations: 3.312 kB / 4.09 GB, free: 52 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001521/12.56, allocations: 361.6 kB / 4.09 GB, free: 52 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003093/12.56, allocations: 1.299 MB / 4.092 GB, free: 51.94 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000377/12.56, allocations: 69.45 kB / 4.092 GB, free: 51.94 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002257/12.57, allocations: 3.192 MB / 4.095 GB, free: 49.86 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.131e-06/12.57, allocations: 8.531 kB / 4.095 GB, free: 49.86 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01053/12.58, allocations: 7.148 MB / 4.102 GB, free: 48.79 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002099/12.58, allocations: 0.7083 MB / 4.102 GB, free: 48.61 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004809/12.58, allocations: 56.7 kB / 4.103 GB, free: 48.61 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00153/12.58, allocations: 194.2 kB / 4.103 GB, free: 48.61 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002853/12.58, allocations: 153.8 kB / 4.103 GB, free: 48.6 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001392/12.58, allocations: 69.81 kB / 4.103 GB, free: 48.6 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.00162/12.58, allocations: 1.07 MB / 4.104 GB, free: 48.44 MB / 0.5261 GB Notification: Performance of sort global known variables: time 4.11e-07/12.58, allocations: 0 / 4.104 GB, free: 48.44 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.01251/12.59, allocations: 2.596 MB / 4.107 GB, free: 48.44 MB / 0.5261 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 19 * Number of states: 6 (pipe1.mediums[1].p,pipe1.mediums[1].h,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,$cse9.phase,$cse9.region,$cse10.phase,$cse10.region,$cse15.phase,$cse15.region,$cse16.phase,$cse16.region,$cse18.phase,$cse18.region,$cse19.phase,$cse19.region,$cse24.phase,$cse24.region,$cse25.phase,$cse25.region,$cse27.phase,$cse27.region,$cse30.phase,$cse30.region,$cse32.region3boundary,$cse33.region3boundary,$cse34.phase,$cse34.region,$cse36.phase,$cse36.region,$cse37.region3boundary,$cse38.region3boundary,$cse39.phase,$cse39.region,$cse41.phase,$cse41.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) * Top-level inputs: 0 Notification: Strong component statistics for simulation (177): * Single equations (assignments): 151 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 20 * 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,2 12} Notification: Performance of Backend phase and start with SimCode phase: time 0.01521/12.61, allocations: 2.768 MB / 4.109 GB, free: 48.27 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.007992/12.62, allocations: 4.633 MB / 4.114 GB, free: 47.94 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 1.175e-05/12.62, allocations: 0 / 4.114 GB, free: 47.94 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.003601/12.62, allocations: 2.434 MB / 4.116 GB, free: 47.8 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005338/12.63, allocations: 0.9094 MB / 4.117 GB, free: 47.79 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2031/12.83, allocations: 127.4 MB / 4.241 GB, free: 21.6 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001527/12.83, allocations: 2.192 MB / 4.244 GB, free: 19.95 MB / 0.5261 GB Notification: Performance of simCode: alias equations: time 0.004971/12.84, allocations: 2.425 MB / 4.246 GB, free: 18.51 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004989/12.84, allocations: 155.2 kB / 4.246 GB, free: 18.38 MB / 0.5261 GB Notification: Performance of SimCode: time 1.603e-06/12.84, allocations: 0 / 4.246 GB, free: 18.38 MB / 0.5261 GB Notification: Performance of Templates: time 0.5665/13.4, allocations: 86.52 MB / 4.331 GB, free: 63.99 MB / 0.5417 GB make -j1 -f ModelicaTest_3.2.2_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes3.makefile (rm -f ModelicaTest_3.2.2_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes3.pipe ; mkfifo ModelicaTest_3.2.2_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes3.pipe ; head -c 1048576 < ModelicaTest_3.2.2_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes3.pipe >> ../files/ModelicaTest_3.2.2_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes3.sim & ./ModelicaTest_3.2.2_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes3 -abortSlowSimulation -alarm=480 -lv LOG_STATS > ModelicaTest_3.2.2_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes3.pipe 2>&1)