Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.1_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes4.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.BranchingPipes4,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaTest_3.2.1_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes4") translateModel(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes4,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaTest_3.2.1_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes4") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo): time 0.001179/0.001179, allocations: 169.9 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.367/1.367, allocations: 170.6 MB / 183.8 MB, free: 11.48 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.001711/0.001711, allocations: 107.5 kB / 223.2 MB, free: 4.109 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.1906/0.1906, allocations: 38 MB / 300.4 MB, free: 5.352 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 3.49e-05/3.493e-05, allocations: 4 kB / 357 MB, free: 32.31 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09964/0.09969, allocations: 48.71 MB / 405.7 MB, free: 15.64 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.001/7.101, allocations: 2.549 GB / 2.946 GB, free: 88.39 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002023/7.101, allocations: 77.61 kB / 2.946 GB, free: 88.39 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.947/10.05, allocations: 0.8761 GB / 3.822 GB, free: 27.93 MB / 474.7 MB Notification: Performance of FrontEnd: time 1.603e-06/10.05, allocations: 0 / 3.822 GB, free: 27.93 MB / 474.7 MB Notification: Performance of Transformations before backend: time 0.0001758/10.05, allocations: 67.2 kB / 3.822 GB, free: 27.92 MB / 474.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 532 * Number of variables: 532 Notification: Performance of Generate backend data structure: time 0.01196/10.06, allocations: 3.901 MB / 3.826 GB, free: 26.15 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.764e-05/10.06, allocations: 10.56 kB / 3.826 GB, free: 26.15 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006059/10.07, allocations: 0.847 MB / 3.827 GB, free: 26.02 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004915/10.07, allocations: 2.066 MB / 3.829 GB, free: 25.57 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002778/10.07, allocations: 178.3 kB / 3.829 GB, free: 25.56 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004354/10.07, allocations: 201 kB / 3.829 GB, free: 25.56 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00655/10.08, allocations: 3.647 MB / 3.833 GB, free: 25.04 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.028e-05/10.08, allocations: 7.375 kB / 3.833 GB, free: 25.04 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002559/10.08, allocations: 92.66 kB / 3.833 GB, free: 25.04 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001689/10.08, allocations: 165.5 kB / 3.833 GB, free: 25.03 MB / 474.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005909/10.09, allocations: 3.278 MB / 3.836 GB, free: 25.02 MB / 474.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.0157/10.1, allocations: 15.39 MB / 3.851 GB, free: 15.65 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00416/10.11, allocations: 2.168 MB / 3.853 GB, free: 15.59 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001187/10.11, allocations: 1.014 MB / 3.854 GB, free: 15.58 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03087/10.14, allocations: 18.93 MB / 3.873 GB, free: 19.38 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.003792/10.14, allocations: 1.673 MB / 3.874 GB, free: 19.25 MB / 490.7 MB Notification: Performance of pre-optimization done (n=159): time 3.897e-06/10.14, allocations: 0 / 3.874 GB, free: 19.25 MB / 490.7 MB Notification: Performance of matching and sorting (n=175): time 0.01705/10.16, allocations: 7.526 MB / 3.882 GB, free: 18.16 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001458/10.16, allocations: 258.8 kB / 3.882 GB, free: 17.87 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00183/10.16, allocations: 1.434 MB / 3.883 GB, free: 17.43 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001761/10.16, allocations: 57.33 kB / 3.883 GB, free: 17.38 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006605/10.16, allocations: 0.9986 MB / 3.884 GB, free: 16.61 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004083/10.16, allocations: 0.5808 MB / 3.885 GB, free: 16.16 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001253/10.16, allocations: 43.03 kB / 3.885 GB, free: 16.12 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0001507/10.16, allocations: 383.2 kB / 3.885 GB, free: 15.79 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001282/10.16, allocations: 1.006 MB / 3.886 GB, free: 15.43 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001424/10.16, allocations: 1.468 MB / 3.888 GB, free: 14.51 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001487/10.17, allocations: 1.257 MB / 3.889 GB, free: 14 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.462e-06/10.17, allocations: 3.938 kB / 3.889 GB, free: 13.99 MB / 490.7 MB Notification: Performance of matching and sorting (n=259) (initialization): time 0.004237/10.17, allocations: 3.065 MB / 3.892 GB, free: 12.8 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001653/10.17, allocations: 5.009 MB / 3.897 GB, free: 7.395 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.897e-05/10.17, allocations: 13.69 kB / 3.897 GB, free: 7.395 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007637/10.17, allocations: 233.6 kB / 3.897 GB, free: 7.312 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001961/10.17, allocations: 0.5181 MB / 3.898 GB, free: 7.258 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001425/10.18, allocations: 2.445 MB / 3.9 GB, free: 5.016 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002226/10.18, allocations: 274.7 kB / 3.9 GB, free: 4.945 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001973/10.18, allocations: 105.5 kB / 3.9 GB, free: 4.926 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.108e-06/10.18, allocations: 7.797 kB / 3.9 GB, free: 4.922 MB / 490.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00409/10.18, allocations: 2.794 MB / 3.903 GB, free: 2.566 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.913e-05/10.18, allocations: 12 kB / 3.903 GB, free: 2.555 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007612/10.18, allocations: 241.2 kB / 3.903 GB, free: 2.348 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00194/10.19, allocations: 0.5119 MB / 3.904 GB, free: 1.914 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001506/10.19, allocations: 2.422 MB / 3.906 GB, free: 15.47 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002213/10.19, allocations: 271 kB / 3.906 GB, free: 15.26 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002066/10.19, allocations: 111 kB / 3.906 GB, free: 15.16 MB / 0.4948 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 55 * Number of states: 0 () * Number of discrete variables: 28 (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,splitter.medium.phase,pipe3.state_b.phase,pipe2.state_b.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (247): * Single equations (assignments): 241 * 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.0006076/10.19, allocations: 295.5 kB / 3.907 GB, free: 14.86 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003648/10.19, allocations: 201.6 kB / 3.907 GB, free: 14.66 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009403/10.2, allocations: 7.534 MB / 3.914 GB, free: 7.898 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.66e-05/10.2, allocations: 84.06 kB / 3.914 GB, free: 7.848 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.464e-06/10.2, allocations: 0 / 3.914 GB, free: 7.848 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.007407/10.21, allocations: 6.567 MB / 3.921 GB, free: 1.707 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2915/10.5, allocations: 10.74 MB / 3.931 GB, free: 57.51 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.237e-06/10.5, allocations: 0 / 3.931 GB, free: 57.51 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00171/10.5, allocations: 413.7 kB / 3.932 GB, free: 57.51 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001188/10.5, allocations: 338.2 kB / 3.932 GB, free: 57.48 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002135/10.5, allocations: 65.94 kB / 3.932 GB, free: 57.48 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001132/10.5, allocations: 2.516 MB / 3.935 GB, free: 55.42 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.198e-06/10.5, allocations: 5.375 kB / 3.935 GB, free: 55.42 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008537/10.51, allocations: 6.786 MB / 3.941 GB, free: 54.94 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001588/10.51, allocations: 0.7484 MB / 3.942 GB, free: 54.85 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000373/10.51, allocations: 52.19 kB / 3.942 GB, free: 54.85 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001482/10.52, allocations: 208.4 kB / 3.942 GB, free: 54.85 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000306/10.52, allocations: 146.9 kB / 3.942 GB, free: 54.84 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001577/10.52, allocations: 72.69 kB / 3.942 GB, free: 54.84 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.001653/10.52, allocations: 1.198 MB / 3.944 GB, free: 54.68 MB / 0.4948 GB Notification: Performance of sort global known variables: time 2.4e-07/10.52, allocations: 1.125 kB / 3.944 GB, free: 54.68 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.008796/10.53, allocations: 2.814 MB / 3.946 GB, free: 54.68 MB / 0.4948 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * 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,splitter.medium.p,splitter.medium.h) * Number of discrete variables: 54 ($cse3.phase,$cse3.region,$cse5.region3boundary,$cse6.region3boundary,$cse7.phase,$cse7.region,$cse10.phase,$cse10.region,$cse11.phase,$cse11.region,$cse16.phase,$cse16.region,$cse17.phase,$cse17.region,$cse19.phase,$cse19.region,$cse20.phase,$cse20.region,$cse25.phase,$cse25.region,$cse26.phase,$cse26.region,$cse28.phase,$cse28.region,$cse31.phase,$cse31.region,$cse33.region3boundary,$cse34.region3boundary,$cse35.phase,$cse35.region,$cse37.region3boundary,$cse38.region3boundary,$cse39.phase,$cse39.region,$cse41.region3boundary,$cse42.region3boundary,$cse43.phase,$cse43.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,splitter.medium.phase) * 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 (200): * Single equations (assignments): 171 * 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.009397/10.54, allocations: 2.943 MB / 3.949 GB, free: 54.52 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.006819/10.54, allocations: 4.94 MB / 3.954 GB, free: 54.17 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 5.681e-06/10.54, allocations: 3.719 kB / 3.954 GB, free: 54.17 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.003336/10.55, allocations: 2.352 MB / 3.956 GB, free: 54.03 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004703/10.55, allocations: 0.9575 MB / 3.957 GB, free: 54.01 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1844/10.74, allocations: 125.5 MB / 4.08 GB, free: 27.78 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001388/10.74, allocations: 2.276 MB / 4.082 GB, free: 26.09 MB / 0.4948 GB Notification: Performance of simCode: alias equations: time 0.004713/10.74, allocations: 2.619 MB / 4.085 GB, free: 24.52 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000554/10.74, allocations: 182.4 kB / 4.085 GB, free: 24.37 MB / 0.4948 GB Notification: Performance of SimCode: time 1.312e-06/10.74, allocations: 0 / 4.085 GB, free: 24.37 MB / 0.4948 GB Notification: Performance of Templates: time 0.3799/11.12, allocations: 90.07 MB / 4.173 GB, free: 52.37 MB / 0.4948 GB make -j1 -f ModelicaTest_3.2.1_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes4.makefile (rm -f ModelicaTest_3.2.1_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes4.pipe ; mkfifo ModelicaTest_3.2.1_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes4.pipe ; head -c 1048576 < ModelicaTest_3.2.1_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes4.pipe >> ../files/ModelicaTest_3.2.1_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes4.sim & ./ModelicaTest_3.2.1_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes4 -abortSlowSimulation -alarm=480 -lv LOG_STATS > ModelicaTest_3.2.1_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes4.pipe 2>&1)