Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.1_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes12.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.1+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.1+maint.om/package.mo) Using package ModelicaServices with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo) Using package Modelica with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo) Using package Complex with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo) Running command: translateModel(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes12,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaTest_3.2.1_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes12") translateModel(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes12,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaTest_3.2.1_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes12") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo): time 0.001474/0.001474, allocations: 170.5 kB / 12.72 MB, free: 2.594 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo): time 1.358/1.358, allocations: 170.6 MB / 183.8 MB, free: 11.49 MB / 154.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo): time 0.001683/0.001683, allocations: 103.5 kB / 223.2 MB, free: 4.113 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.1+maint.om/package.mo): time 0.1836/0.1836, allocations: 38 MB / 300.4 MB, free: 5.355 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 3.577e-05/3.587e-05, allocations: 4 kB / 357 MB, free: 32.34 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1018/0.1019, allocations: 48.71 MB / 405.7 MB, free: 15.65 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.619/6.721, allocations: 2.545 GB / 2.941 GB, free: 140.8 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002319/6.722, allocations: 78.97 kB / 2.941 GB, free: 140.8 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.543/9.264, allocations: 0.7821 GB / 3.724 GB, free: 22.33 MB / 458.7 MB Notification: Performance of FrontEnd: time 1.553e-06/9.265, allocations: 0 / 3.724 GB, free: 22.33 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0001929/9.265, allocations: 71.55 kB / 3.724 GB, free: 22.31 MB / 458.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 514 * Number of variables: 514 Notification: Performance of Generate backend data structure: time 0.01251/9.277, allocations: 3.834 MB / 3.727 GB, free: 20.16 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.672e-05/9.277, allocations: 7.469 kB / 3.727 GB, free: 20.16 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00588/9.283, allocations: 0.812 MB / 3.728 GB, free: 19.95 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004827/9.288, allocations: 2.166 MB / 3.73 GB, free: 18.96 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000139/9.288, allocations: 174.4 kB / 3.73 GB, free: 18.89 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003686/9.289, allocations: 200.4 kB / 3.731 GB, free: 18.83 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006328/9.295, allocations: 3.684 MB / 3.734 GB, free: 17.25 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.465e-05/9.295, allocations: 7.781 kB / 3.734 GB, free: 17.25 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003704/9.295, allocations: 91.66 kB / 3.734 GB, free: 17.19 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001578/9.296, allocations: 168.4 kB / 3.734 GB, free: 17.16 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005911/9.301, allocations: 3.412 MB / 3.738 GB, free: 16.05 MB / 458.7 MB 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.01781/9.319, allocations: 14.75 MB / 3.752 GB, free: 3.043 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003657/9.323, allocations: 2.111 MB / 3.754 GB, free: 1.25 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001185/9.324, allocations: 1.05 MB / 3.755 GB, free: 316 kB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.311/9.635, allocations: 18.93 MB / 3.774 GB, free: 35.53 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.003798/9.639, allocations: 1.665 MB / 3.775 GB, free: 35.41 MB / 474.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001268/9.64, allocations: 186.2 kB / 3.776 GB, free: 35.41 MB / 474.7 MB Notification: Performance of pre-optimization done (n=158): time 4.098e-06/9.64, allocations: 0 / 3.776 GB, free: 35.41 MB / 474.7 MB Notification: Performance of matching and sorting (n=170): time 0.01831/9.659, allocations: 7.341 MB / 3.783 GB, free: 34.61 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001651/9.659, allocations: 415.9 kB / 3.783 GB, free: 34.13 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002969/9.662, allocations: 1.478 MB / 3.785 GB, free: 33.96 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003196/9.662, allocations: 62.47 kB / 3.785 GB, free: 33.93 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009968/9.663, allocations: 0.9939 MB / 3.786 GB, free: 33.62 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006639/9.664, allocations: 0.5734 MB / 3.786 GB, free: 33.34 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001338/9.664, allocations: 38.16 kB / 3.786 GB, free: 33.34 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0001564/9.664, allocations: 385.6 kB / 3.787 GB, free: 33.04 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001791/9.666, allocations: 1.051 MB / 3.788 GB, free: 33.03 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00203/9.668, allocations: 1.52 MB / 3.789 GB, free: 32.52 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001849/9.67, allocations: 1.319 MB / 3.79 GB, free: 32.43 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.646e-06/9.67, allocations: 3.094 kB / 3.79 GB, free: 32.43 MB / 474.7 MB Notification: Performance of matching and sorting (n=259) (initialization): time 0.005081/9.675, allocations: 3.331 MB / 3.794 GB, free: 32.15 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0007332/9.676, allocations: 4.58 MB / 3.798 GB, free: 27.36 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.624e-05/9.676, allocations: 15.09 kB / 3.798 GB, free: 27.36 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0044/9.68, allocations: 0.9601 MB / 3.799 GB, free: 27.32 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002031/9.682, allocations: 470.4 kB / 3.8 GB, free: 27.32 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002098/9.684, allocations: 3.161 MB / 3.803 GB, free: 25.24 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002481/9.687, allocations: 230.8 kB / 3.803 GB, free: 25.23 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002735/9.687, allocations: 112.4 kB / 3.803 GB, free: 25.23 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.179e-05/9.687, allocations: 7.031 kB / 3.803 GB, free: 25.23 MB / 474.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004707/9.692, allocations: 2.997 MB / 3.806 GB, free: 25.08 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.35e-05/9.692, allocations: 15.44 kB / 3.806 GB, free: 25.08 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001144/9.693, allocations: 353.6 kB / 3.806 GB, free: 25.05 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001799/9.695, allocations: 0.4911 MB / 3.807 GB, free: 25.05 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003082/9.698, allocations: 4.043 MB / 3.811 GB, free: 22.23 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002578/9.701, allocations: 234.5 kB / 3.811 GB, free: 22.23 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002472/9.701, allocations: 98 kB / 3.811 GB, free: 22.23 MB / 474.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 50 * Number of states: 0 () * Number of discrete variables: 27 (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,valveOpening2.a,valveOpening2.b,valveOpening2.last,$PRE.valveOpening2.nextEvent,valveOpening2.nextEvent,pipe3.state_b.phase,pipe2.state_b.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (223): * Single equations (assignments): 213 * Array equations: 2 * Algorithm blocks: 2 * Record equations: 2 * 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,3 19} Notification: Performance of prepare postOptimizeDAE: time 0.0006014/9.701, allocations: 305.3 kB / 3.811 GB, free: 22.05 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004298/9.702, allocations: 207.7 kB / 3.811 GB, free: 21.95 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00833/9.71, allocations: 7.758 MB / 3.819 GB, free: 21.27 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.008e-05/9.71, allocations: 86.17 kB / 3.819 GB, free: 21.27 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.302e-06/9.71, allocations: 3.953 kB / 3.819 GB, free: 21.27 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.006646/9.717, allocations: 6.794 MB / 3.826 GB, free: 20.32 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01163/9.729, allocations: 10.77 MB / 3.836 GB, free: 19.55 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.086e-05/9.729, allocations: 0.6875 kB / 3.836 GB, free: 19.55 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00132/9.73, allocations: 343.1 kB / 3.837 GB, free: 19.55 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004576/9.735, allocations: 2.493 MB / 3.839 GB, free: 19.46 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003607/9.735, allocations: 65.91 kB / 3.839 GB, free: 19.46 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002695/9.738, allocations: 4.118 MB / 3.843 GB, free: 17.36 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.435e-06/9.738, allocations: 0 / 3.843 GB, free: 17.36 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008368/9.746, allocations: 7.645 MB / 3.851 GB, free: 16.68 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001653/9.748, allocations: 0.75 MB / 3.851 GB, free: 16.36 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004761/9.748, allocations: 53.88 kB / 3.851 GB, free: 16.36 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001529/9.75, allocations: 196.5 kB / 3.852 GB, free: 16.34 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002513/9.75, allocations: 141.6 kB / 3.852 GB, free: 16.34 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001407/9.75, allocations: 70.66 kB / 3.852 GB, free: 16.34 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.001579/9.752, allocations: 1.233 MB / 3.853 GB, free: 16.18 MB / 474.7 MB Notification: Performance of sort global known variables: time 1.8e-07/9.752, allocations: 1.312 kB / 3.853 GB, free: 16.18 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.00886/9.761, allocations: 2.803 MB / 3.856 GB, free: 16.05 MB / 474.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 10 (pipe1.mediums[1].p,pipe1.mediums[1].h,valveIncompressible.filter.x[1],valveIncompressible.filter.x[2],valveIncompressible1.filter.x[1],valveIncompressible1.filter.x[2],pipe2.mediums[1].p,pipe2.mediums[1].h,pipe3.mediums[1].p,pipe3.mediums[1].h) * Number of discrete variables: 53 ($cse3.phase,$cse3.region,$cse5.region3boundary,$cse6.region3boundary,$cse7.phase,$cse7.region,$cse10.phase,$cse10.region,$cse11.phase,$cse11.region,$cse18.phase,$cse18.region,$cse19.phase,$cse19.region,$cse21.phase,$cse21.region,$cse22.phase,$cse22.region,$cse27.phase,$cse27.region,$cse28.phase,$cse28.region,$cse30.phase,$cse30.region,$cse33.phase,$cse33.region,$cse35.region3boundary,$cse36.region3boundary,$cse37.phase,$cse37.region,$cse39.phase,$cse39.region,$cse41.region3boundary,$cse42.region3boundary,$cse43.phase,$cse43.region,$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,valveOpening2.a,valveOpening2.b,valveOpening2.last,valveOpening2.nextEvent) * Number of discrete states: 10 (valveOpening2.last,valveOpening2.nextEvent,valveOpening2.b,valveOpening2.a,$whenCondition2,valveOpening1.last,valveOpening1.nextEvent,valveOpening1.b,valveOpening1.a,$whenCondition1) * Top-level inputs: 0 Notification: Strong component statistics for simulation (168): * Single equations (assignments): 143 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 19 * 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,3 28} Notification: Performance of Backend phase and start with SimCode phase: time 0.01221/9.773, allocations: 2.819 MB / 3.858 GB, free: 15.75 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.007448/9.78, allocations: 5.241 MB / 3.864 GB, free: 15.16 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 7.003e-06/9.781, allocations: 0.625 kB / 3.864 GB, free: 15.16 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002949/9.783, allocations: 2.302 MB / 3.866 GB, free: 15.02 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004275/9.788, allocations: 0.8816 MB / 3.867 GB, free: 15 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.4593/10.25, allocations: 125.8 MB / 3.99 GB, free: 65.39 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001375/10.25, allocations: 2.3 MB / 3.992 GB, free: 64.62 MB / 0.4948 GB Notification: Performance of simCode: alias equations: time 0.004633/10.25, allocations: 2.38 MB / 3.994 GB, free: 64.59 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004567/10.25, allocations: 152.4 kB / 3.994 GB, free: 64.59 MB / 0.4948 GB Notification: Performance of SimCode: time 7.81e-07/10.25, allocations: 4.219 kB / 3.994 GB, free: 64.59 MB / 0.4948 GB Notification: Performance of Templates: time 0.1092/10.36, allocations: 91.3 MB / 4.083 GB, free: 52.38 MB / 0.4948 GB make -j1 -f ModelicaTest_3.2.1_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes12.makefile (rm -f ModelicaTest_3.2.1_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes12.pipe ; mkfifo ModelicaTest_3.2.1_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes12.pipe ; head -c 1048576 < ModelicaTest_3.2.1_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes12.pipe >> ../files/ModelicaTest_3.2.1_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes12.sim & ./ModelicaTest_3.2.1_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes12 -abortSlowSimulation -alarm=480 -lv LOG_STATS > ModelicaTest_3.2.1_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes12.pipe 2>&1)