Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.2_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes12.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.SeriesPipes12,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaTest_3.2.2_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes12") translateModel(ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes12,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaTest_3.2.2_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes12") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo): time 0.001188/0.001188, 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.375/1.375, 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.001657, allocations: 114.2 kB / 247.4 MB, free: 6.215 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.1763/0.1763, allocations: 39.94 MB / 332.2 MB, free: 4.758 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 1.636e-05/1.637e-05, allocations: 3.984 kB / 393.3 MB, free: 75.53 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08864/0.08868, allocations: 54.86 MB / 448.2 MB, free: 20.66 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.42/6.509, allocations: 2.657 GB / 3.095 GB, free: 9.551 MB / 474.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003122/6.51, allocations: 75.97 kB / 3.095 GB, free: 9.516 MB / 474.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/Fluid/Interfaces.mo:734:9-739:39:writable] Notification: From here: [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/Fluid/Interfaces.mo:327:3-329:69:writable] Warning: Inherited elements are not identical: bug: https://trac.modelica.org/Modelica/ticket/627 first: Medium.MassFlowRate m_flow(min = if allowFlowReversal then -Modelica.Constants.inf else 0, start = m_flow_start, stateSelect = if momentumDynamics == Modelica.Fluid.Types.Dynamics.SteadyState then StateSelect.default else StateSelect.prefer) "mass flow rates between states" second: Medium.MassFlowRate m_flow(min = if allowFlowReversal then -Modelica.Constants.inf else 0, start = m_flow_start) "Mass flow rate in design flow direction" Continue .... Notification: Performance of FrontEnd - DAE generated: time 3.72/10.23, allocations: 0.7917 GB / 3.887 GB, free: 39.66 MB / 0.5105 GB Notification: Performance of FrontEnd: time 6.202e-06/10.23, allocations: 0 / 3.887 GB, free: 39.66 MB / 0.5105 GB Notification: Performance of Transformations before backend: time 0.0004619/10.23, allocations: 63.84 kB / 3.887 GB, free: 39.66 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: 512 * Number of variables: 512 Notification: Performance of Generate backend data structure: time 0.02057/10.25, allocations: 3.848 MB / 3.891 GB, free: 38.01 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 5.676e-05/10.25, allocations: 11.38 kB / 3.891 GB, free: 38.01 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007176/10.26, allocations: 0.8427 MB / 3.892 GB, free: 37.88 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007126/10.27, allocations: 2.09 MB / 3.894 GB, free: 37.43 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004416/10.27, allocations: 99.48 kB / 3.894 GB, free: 37.43 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001379/10.27, allocations: 117.4 kB / 3.894 GB, free: 37.42 MB / 0.5105 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.005501/10.27, allocations: 2.536 MB / 3.896 GB, free: 37.41 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004537/10.28, allocations: 2.782 MB / 3.899 GB, free: 36.86 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.911e-05/10.28, allocations: 13.22 kB / 3.899 GB, free: 36.86 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002162/10.28, allocations: 11.19 kB / 3.899 GB, free: 36.86 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002129/10.28, allocations: 152.6 kB / 3.899 GB, free: 36.86 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.178/10.46, allocations: 78.63 MB / 3.976 GB, free: 27.96 MB / 0.5417 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003273/10.46, allocations: 1.64 MB / 3.978 GB, free: 27.91 MB / 0.5417 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001786/10.46, allocations: 0.9759 MB / 3.979 GB, free: 27.9 MB / 0.5417 GB Notification: Performance of preOpt evalFunc (simulation): time 0.03701/10.5, allocations: 17.45 MB / 3.996 GB, free: 16.44 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.003141/10.5, allocations: 1.169 MB / 3.997 GB, free: 16.31 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=147): time 8.826e-06/10.5, allocations: 0 / 3.997 GB, free: 16.31 MB / 0.5417 GB Notification: Performance of matching and sorting (n=163): time 0.02947/10.53, allocations: 7.975 MB / 4.004 GB, free: 14.59 MB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002895/10.53, allocations: 387.7 kB / 4.005 GB, free: 14.15 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002948/10.53, allocations: 1.127 MB / 4.006 GB, free: 13.97 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 0.0005234/10.53, allocations: 25.7 kB / 4.006 GB, free: 13.94 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 0.001305/10.54, allocations: 1.014 MB / 4.007 GB, free: 13.47 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 0.0009929/10.54, allocations: 0.5444 MB / 4.007 GB, free: 13.12 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003183/10.54, allocations: 0 / 4.007 GB, free: 13.12 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 0.0002921/10.54, allocations: 388.3 kB / 4.008 GB, free: 12.81 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001913/10.54, allocations: 1.015 MB / 4.009 GB, free: 12.8 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002251/10.54, allocations: 1.5 MB / 4.01 GB, free: 12.25 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01361/10.56, allocations: 3.31 MB / 4.014 GB, free: 12.16 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.884e-05/10.56, allocations: 3.719 kB / 4.014 GB, free: 12.16 MB / 0.5417 GB Notification: Performance of matching and sorting (n=263) (initialization): time 0.02213/10.58, allocations: 5.527 MB / 4.019 GB, free: 11.93 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 0.00302/10.58, allocations: 5.261 MB / 4.024 GB, free: 22.5 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.672e-05/10.58, allocations: 17.91 kB / 4.024 GB, free: 22.5 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.007742/10.59, allocations: 2.028 MB / 4.026 GB, free: 22.45 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001604/10.59, allocations: 317.4 kB / 4.026 GB, free: 22.45 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008721/10.6, allocations: 3.664 MB / 4.03 GB, free: 21.86 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004134/10.6, allocations: 249.7 kB / 4.03 GB, free: 21.83 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008485/10.6, allocations: 109.3 kB / 4.03 GB, free: 21.83 MB / 0.5573 GB Notification: Performance of prepare postOptimizeDAE: time 2.635e-05/10.6, allocations: 6 kB / 4.03 GB, free: 21.83 MB / 0.5573 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.02098/10.63, allocations: 4.944 MB / 4.035 GB, free: 21.72 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001467/10.63, allocations: 12.91 kB / 4.035 GB, free: 21.72 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.006616/10.63, allocations: 1.547 MB / 4.037 GB, free: 21.67 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001938/10.63, allocations: 358.8 kB / 4.037 GB, free: 21.66 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004549/10.64, allocations: 2.69 MB / 4.04 GB, free: 21.1 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003447/10.64, allocations: 225.5 kB / 4.04 GB, free: 21.07 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006942/10.64, allocations: 100.1 kB / 4.04 GB, free: 21.07 MB / 0.5573 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 59 * Number of states: 0 () * Number of discrete variables: 23 (pipe3.state_a.phase,simpleGenericOrifice.state_b.phase,simpleGenericOrifice.state_a.phase,valve.state_b.phase,valve.state_a.phase,pipe1.state_a.phase,$whenCondition1,pipe1.statesFM[2].phase,pipe2.statesFM[1].phase,pipe2.statesFM[2].phase,valveOpening1.a,valveOpening1.b,valveOpening1.last,$PRE.valveOpening1.nextEvent,valveOpening1.nextEvent,valveOpening1.nextEventScaled,pipe3.statesFM[2].phase,source.medium.phase,sink.medium.phase,pipe3.state_b.phase,pipe2.state_b.phase,pipe2.state_a.phase,pipe1.state_b.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (162): * Single equations (assignments): 158 * Array equations: 1 * Algorithm blocks: 1 * Record equations: 1 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {8 86} Notification: Performance of prepare postOptimizeDAE: time 0.00126/10.64, allocations: 192.9 kB / 4.04 GB, free: 20.92 MB / 0.5573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009269/10.65, allocations: 190.1 kB / 4.04 GB, free: 20.83 MB / 0.5573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0125/10.66, allocations: 6.822 MB / 4.047 GB, free: 20.18 MB / 0.5573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.322e-05/10.66, allocations: 79.27 kB / 4.047 GB, free: 20.18 MB / 0.5573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.276e-05/10.66, allocations: 0 / 4.047 GB, free: 20.18 MB / 0.5573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.009357/10.67, allocations: 5.648 MB / 4.053 GB, free: 18.96 MB / 0.5573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01969/10.69, allocations: 9.252 MB / 4.062 GB, free: 14.33 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.268e-05/10.69, allocations: 2 kB / 4.062 GB, free: 14.33 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001704/10.69, allocations: 359.4 kB / 4.062 GB, free: 14.06 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009795/10.69, allocations: 334.9 kB / 4.062 GB, free: 13.88 MB / 0.5573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002948/10.69, allocations: 44.77 kB / 4.062 GB, free: 13.85 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002519/10.69, allocations: 2.686 MB / 4.065 GB, free: 11.45 MB / 0.5573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.807e-06/10.69, allocations: 0 / 4.065 GB, free: 11.45 MB / 0.5573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01303/10.71, allocations: 6.402 MB / 4.071 GB, free: 7.82 MB / 0.5573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002541/10.71, allocations: 0.6957 MB / 4.072 GB, free: 7.324 MB / 0.5573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001084/10.71, allocations: 24.44 kB / 4.072 GB, free: 7.309 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002724/10.71, allocations: 159.2 kB / 4.072 GB, free: 7.191 MB / 0.5573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004139/10.71, allocations: 137.8 kB / 4.072 GB, free: 7.125 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002541/10.71, allocations: 67.67 kB / 4.072 GB, free: 7.082 MB / 0.5573 GB Notification: Performance of sorting global known variables: time 0.003059/10.72, allocations: 1.026 MB / 4.073 GB, free: 6.477 MB / 0.5573 GB Notification: Performance of sort global known variables: time 1.242e-06/10.72, allocations: 0 / 4.073 GB, free: 6.477 MB / 0.5573 GB Notification: Performance of remove unused functions: time 0.02326/10.74, allocations: 2.632 MB / 4.076 GB, free: 4.008 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,valve.filter.x[1],valve.filter.x[2],pipe2.mediums[1].p,pipe2.mediums[1].h,pipe2.mediums[2].p,pipe2.mediums[2].h,pipe3.mediums[1].p,pipe3.mediums[1].h) * Number of discrete variables: 44 ($cse5.region3boundary,$cse6.region3boundary,$cse7.phase,$cse7.region,$cse9.phase,$cse9.region,$cse14.phase,$cse14.region,$cse15.phase,$cse15.region,$cse17.phase,$cse17.region,$cse18.region3boundary,$cse19.region3boundary,$cse20.phase,$cse20.region,$cse21.region3boundary,$cse22.region3boundary,$cse23.phase,$cse23.region,$cse25.phase,$cse25.region,$cse26.phase,$cse26.region,$cse31.phase,$cse31.region,$cse32.phase,$cse32.region,$cse33.region3boundary,$cse34.region3boundary,$cse35.phase,$cse35.region,$cse37.phase,$cse37.region,$whenCondition1,pipe1.statesFM[2].phase,pipe2.statesFM[1].phase,pipe2.statesFM[2].phase,valveOpening1.a,valveOpening1.b,valveOpening1.last,valveOpening1.nextEvent,valveOpening1.nextEventScaled,pipe3.statesFM[2].phase) * Number of discrete states: 6 (valveOpening1.nextEvent,valveOpening1.last,valveOpening1.nextEventScaled,valveOpening1.b,valveOpening1.a,$whenCondition1) * Top-level inputs: 0 Notification: Strong component statistics for simulation (183): * Single equations (assignments): 157 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 21 * 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.02037/10.76, allocations: 2.98 MB / 4.079 GB, free: 1.727 MB / 0.5573 GB Notification: Performance of simCode: created initialization part: time 0.4693/11.23, allocations: 4.84 MB / 4.083 GB, free: 82.75 MB / 0.5573 GB Notification: Performance of simCode: created event and clocks part: time 2.04e-05/11.23, allocations: 0.7188 kB / 4.083 GB, free: 82.75 MB / 0.5573 GB Notification: Performance of simCode: created simulation system equations: time 0.006026/11.24, allocations: 2.171 MB / 4.086 GB, free: 82.68 MB / 0.5573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006184/11.24, allocations: 0.7661 MB / 4.086 GB, free: 82.68 MB / 0.5573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01338/11.26, allocations: 5.66 MB / 4.092 GB, free: 81.65 MB / 0.5573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002082/11.26, allocations: 2.216 MB / 4.094 GB, free: 80.88 MB / 0.5573 GB Notification: Performance of simCode: alias equations: time 0.005312/11.26, allocations: 1.943 MB / 4.096 GB, free: 80.86 MB / 0.5573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005321/11.26, allocations: 140.3 kB / 4.096 GB, free: 80.86 MB / 0.5573 GB Notification: Performance of SimCode: time 1.954e-06/11.26, allocations: 0 / 4.096 GB, free: 80.86 MB / 0.5573 GB Notification: Performance of Templates: time 0.1232/11.39, allocations: 81.87 MB / 4.176 GB, free: 76.6 MB / 0.5573 GB make -j1 -f ModelicaTest_3.2.2_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes12.makefile (rm -f ModelicaTest_3.2.2_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes12.pipe ; mkfifo ModelicaTest_3.2.2_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes12.pipe ; head -c 1048576 < ModelicaTest_3.2.2_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes12.pipe >> ../files/ModelicaTest_3.2.2_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes12.sim & ./ModelicaTest_3.2.2_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes12 -abortSlowSimulation -alarm=480 -lv LOG_STATS > ModelicaTest_3.2.2_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes12.pipe 2>&1)