Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.2_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes1.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.BranchingPipes1,tolerance=1e-06,outputFormat="empty",numberOfIntervals=10000,variableFilter="",fileNamePrefix="ModelicaTest_3.2.2_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes1") translateModel(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes1,tolerance=1e-06,outputFormat="empty",numberOfIntervals=10000,variableFilter="",fileNamePrefix="ModelicaTest_3.2.2_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes1") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo): time 0.0009819/0.0009821, allocations: 187.4 kB / 7.654 MB, free: 1.402 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 1.451/1.451, allocations: 194.3 MB / 202.4 MB, free: 8.535 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.001656/0.001656, allocations: 113.5 kB / 247.4 MB, free: 6.219 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.2158/0.2158, allocations: 39.95 MB / 332.2 MB, free: 4.773 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 1.671e-05/1.674e-05, allocations: 4 kB / 393.3 MB, free: 75.54 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1039/0.104, allocations: 54.87 MB / 448.2 MB, free: 20.65 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.579/7.683, allocations: 2.655 GB / 3.093 GB, free: 59.47 MB / 490.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000235/7.684, allocations: 82.31 kB / 3.093 GB, free: 59.43 MB / 490.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.303/10.99, allocations: 0.7879 GB / 3.881 GB, free: 25.34 MB / 0.4948 GB Notification: Performance of FrontEnd: time 1.643e-06/10.99, allocations: 0 / 3.881 GB, free: 25.34 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 0.0003266/10.99, allocations: 75.78 kB / 3.881 GB, free: 25.27 MB / 0.4948 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 518 * Number of variables: 518 Notification: Performance of Generate backend data structure: time 0.01632/11, allocations: 3.947 MB / 3.885 GB, free: 21.69 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 5.087e-05/11, allocations: 8.031 kB / 3.885 GB, free: 21.68 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007032/11.01, allocations: 0.8371 MB / 3.886 GB, free: 21.01 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006245/11.02, allocations: 2.09 MB / 3.888 GB, free: 19.32 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002157/11.02, allocations: 95.48 kB / 3.888 GB, free: 19.23 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001076/11.02, allocations: 116 kB / 3.888 GB, free: 19.12 MB / 0.4948 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.00558/11.02, allocations: 2.871 MB / 3.891 GB, free: 16.56 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006596/11.03, allocations: 2.873 MB / 3.893 GB, free: 13.74 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.833e-05/11.03, allocations: 11.84 kB / 3.894 GB, free: 13.73 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005956/11.03, allocations: 12 kB / 3.894 GB, free: 13.71 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002045/11.03, allocations: 163.6 kB / 3.894 GB, free: 13.55 MB / 0.4948 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.5887/11.62, allocations: 108.9 MB / 4 GB, free: 19.51 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003005/11.62, allocations: 1.592 MB / 4.002 GB, free: 19.47 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001639/11.63, allocations: 0.9767 MB / 4.003 GB, free: 19.46 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.03453/11.66, allocations: 17.54 MB / 4.02 GB, free: 23.92 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.003253/11.66, allocations: 1.218 MB / 4.021 GB, free: 23.77 MB / 0.5417 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.002309/11.67, allocations: 168.1 kB / 4.021 GB, free: 23.76 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=152): time 1.476e-05/11.67, allocations: 0 / 4.021 GB, free: 23.76 MB / 0.5417 GB Notification: Performance of matching and sorting (n=164): time 0.0253/11.69, allocations: 7.916 MB / 4.029 GB, free: 22.16 MB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0003586/11.69, allocations: 0.5063 MB / 4.029 GB, free: 21.57 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00273/11.69, allocations: 1.189 MB / 4.03 GB, free: 21.4 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 0.0003276/11.69, allocations: 33.75 kB / 4.03 GB, free: 21.37 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 0.001168/11.7, allocations: 1.03 MB / 4.031 GB, free: 21.02 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 0.0006775/11.7, allocations: 0.5317 MB / 4.032 GB, free: 20.75 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002297/11.7, allocations: 3.906 kB / 4.032 GB, free: 20.75 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 0.0002374/11.7, allocations: 389.2 kB / 4.032 GB, free: 20.44 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001757/11.7, allocations: 1.033 MB / 4.033 GB, free: 20.44 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00203/11.7, allocations: 1.499 MB / 4.035 GB, free: 19.93 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01176/11.71, allocations: 2.859 MB / 4.038 GB, free: 19.86 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.846e-05/11.71, allocations: 6.812 kB / 4.038 GB, free: 19.85 MB / 0.5417 GB Notification: Performance of matching and sorting (n=263) (initialization): time 0.01759/11.73, allocations: 4.704 MB / 4.042 GB, free: 19.6 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 0.001894/11.73, allocations: 4.52 MB / 4.047 GB, free: 14.97 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.055e-05/11.73, allocations: 17.38 kB / 4.047 GB, free: 14.96 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00337/11.74, allocations: 0.8091 MB / 4.047 GB, free: 14.91 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002055/11.74, allocations: 473.3 kB / 4.048 GB, free: 14.91 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003448/11.74, allocations: 3.316 MB / 4.051 GB, free: 12.82 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002759/11.74, allocations: 237.1 kB / 4.051 GB, free: 12.79 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004622/11.74, allocations: 110 kB / 4.051 GB, free: 12.79 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 1.175e-05/11.74, allocations: 4.438 kB / 4.051 GB, free: 12.79 MB / 0.5417 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01393/11.76, allocations: 4.205 MB / 4.056 GB, free: 12.66 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.607e-05/11.76, allocations: 19.33 kB / 4.056 GB, free: 12.66 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001021/11.76, allocations: 338.7 kB / 4.056 GB, free: 12.62 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002055/11.76, allocations: 0.4887 MB / 4.056 GB, free: 12.62 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004499/11.77, allocations: 3.986 MB / 4.06 GB, free: 9.84 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003184/11.77, allocations: 209.6 kB / 4.06 GB, free: 9.816 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000646/11.77, allocations: 104.6 kB / 4.061 GB, free: 9.816 MB / 0.5417 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 50 * Number of states: 0 () * Number of discrete variables: 29 (pipe3.state_a.phase,pipe2.state_a.phase,valve2.state_b.phase,valve2.state_a.phase,valve1.state_b.phase,valve1.state_a.phase,pipe1.state_b.phase,pipe1.state_a.phase,$whenCondition1,$whenCondition2,pipe1.statesFM[2].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,source.medium.phase,sink.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 (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.001288/11.77, allocations: 244 kB / 4.061 GB, free: 9.641 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008405/11.77, allocations: 196.4 kB / 4.061 GB, free: 9.539 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01035/11.78, allocations: 6.684 MB / 4.067 GB, free: 9.012 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.669e-05/11.78, allocations: 74.66 kB / 4.068 GB, free: 9.008 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.628e-06/11.78, allocations: 3.531 kB / 4.068 GB, free: 9.008 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.006687/11.79, allocations: 5.659 MB / 4.073 GB, free: 8.262 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01297/11.8, allocations: 9.027 MB / 4.082 GB, free: 7.688 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.532e-05/11.8, allocations: 6 kB / 4.082 GB, free: 7.688 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001241/11.8, allocations: 291.8 kB / 4.082 GB, free: 7.684 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003656/11.81, allocations: 2.349 MB / 4.084 GB, free: 7.574 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002074/11.81, allocations: 42.58 kB / 4.085 GB, free: 7.574 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004184/11.81, allocations: 4.423 MB / 4.089 GB, free: 21.45 MB / 0.5573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.53e-06/11.81, allocations: 4.094 kB / 4.089 GB, free: 21.45 MB / 0.5573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009665/11.82, allocations: 7.11 MB / 4.096 GB, free: 18.57 MB / 0.5573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001624/11.82, allocations: 0.6927 MB / 4.096 GB, free: 18.08 MB / 0.5573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007042/11.82, allocations: 32.39 kB / 4.096 GB, free: 18.06 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001975/11.83, allocations: 145.2 kB / 4.097 GB, free: 17.96 MB / 0.5573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002571/11.83, allocations: 128.9 kB / 4.097 GB, free: 17.9 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001908/11.83, allocations: 70.61 kB / 4.097 GB, free: 17.85 MB / 0.5573 GB Notification: Performance of sorting global known variables: time 0.001573/11.83, allocations: 1.08 MB / 4.098 GB, free: 17.18 MB / 0.5573 GB Notification: Performance of sort global known variables: time 2.81e-07/11.83, allocations: 2.625 kB / 4.098 GB, free: 17.18 MB / 0.5573 GB Notification: Performance of remove unused functions: time 0.01264/11.84, allocations: 2.699 MB / 4.101 GB, free: 14.93 MB / 0.5573 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 10 (pipe1.mediums[1].p,pipe1.mediums[1].h,valve1.filter.x[1],valve1.filter.x[2],valve2.filter.x[1],valve2.filter.x[2],pipe2.mediums[1].p,pipe2.mediums[1].h,pipe3.mediums[1].p,pipe3.mediums[1].h) * Number of discrete variables: 45 ($cse5.region3boundary,$cse6.region3boundary,$cse7.phase,$cse7.region,$cse10.phase,$cse10.region,$cse17.phase,$cse17.region,$cse18.phase,$cse18.region,$cse20.phase,$cse20.region,$cse25.phase,$cse25.region,$cse26.phase,$cse26.region,$cse28.phase,$cse28.region,$cse29.region3boundary,$cse30.region3boundary,$cse31.phase,$cse31.region,$cse33.phase,$cse33.region,$cse35.region3boundary,$cse36.region3boundary,$cse37.phase,$cse37.region,$cse39.phase,$cse39.region,$whenCondition1,$whenCondition2,pipe1.statesFM[2].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 (151): * Single equations (assignments): 130 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 15 * 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.01361/11.85, allocations: 3.017 MB / 4.103 GB, free: 12.89 MB / 0.5573 GB Notification: Performance of simCode: created initialization part: time 0.009533/11.86, allocations: 5.014 MB / 4.108 GB, free: 9.895 MB / 0.5573 GB Notification: Performance of simCode: created event and clocks part: time 7.333e-06/11.86, allocations: 0 / 4.108 GB, free: 9.895 MB / 0.5573 GB Notification: Performance of simCode: created simulation system equations: time 0.003548/11.87, allocations: 2.109 MB / 4.11 GB, free: 8.777 MB / 0.5573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005199/11.87, allocations: 0.7762 MB / 4.111 GB, free: 8.348 MB / 0.5573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01128/11.88, allocations: 5.364 MB / 4.116 GB, free: 4.52 MB / 0.5573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002514/11.89, allocations: 2.208 MB / 4.119 GB, free: 2.879 MB / 0.5573 GB Notification: Performance of simCode: alias equations: time 0.005032/11.89, allocations: 2.416 MB / 4.121 GB, free: 1.465 MB / 0.5573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004585/11.89, allocations: 144.1 kB / 4.121 GB, free: 1.348 MB / 0.5573 GB Notification: Performance of SimCode: time 1.002e-06/11.89, allocations: 1.406 kB / 4.121 GB, free: 1.348 MB / 0.5573 GB Notification: Performance of Templates: time 0.4367/12.33, allocations: 76.11 MB / 4.195 GB, free: 84.94 MB / 0.5573 GB make -j1 -f ModelicaTest_3.2.2_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes1.makefile (rm -f ModelicaTest_3.2.2_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes1.pipe ; mkfifo ModelicaTest_3.2.2_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes1.pipe ; head -c 1048576 < ModelicaTest_3.2.2_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes1.pipe >> ../files/ModelicaTest_3.2.2_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes1.sim & ./ModelicaTest_3.2.2_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes1 -abortSlowSimulation -alarm=480 -lv LOG_STATS > ModelicaTest_3.2.2_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes1.pipe 2>&1)