Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ThermofluidStream_ThermofluidStream.Examples.WaterHammer.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ObsoleteModelica4 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.0.0-main/package.mo", uses=false) Using package ThermofluidStream with version 1.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.0.0-main/package.mo) Using package ObsoleteModelica4 with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ObsoleteModelica4 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Running command: translateModel(ThermofluidStream.Examples.WaterHammer,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="Time|checkValve.inlet.m_flow|firstOrder.y|pulse.T_start|pulse.count|reservoir.M|reservoir.U_med|source.outlet.m_flow",fileNamePrefix="ThermofluidStream_ThermofluidStream.Examples.WaterHammer") translateModel(ThermofluidStream.Examples.WaterHammer,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="Time|checkValve.inlet.m_flow|firstOrder.y|pulse.T_start|pulse.count|reservoir.M|reservoir.U_med|source.outlet.m_flow",fileNamePrefix="ThermofluidStream_ThermofluidStream.Examples.WaterHammer") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00123/0.001229, allocations: 173.9 kB / 7.648 MB, free: 1.422 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.386/1.386, allocations: 221.5 MB / 229.6 MB, free: 7.582 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001025/0.001025, allocations: 87.22 kB / 280.5 MB, free: 5.336 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ObsoleteModelica4 4.0.0+maint.om/package.mo): time 0.009879/0.009879, allocations: 1.565 MB / 332.8 MB, free: 13.56 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.0.0-main/package.mo): time 0.7466/0.7466, allocations: 90.04 MB / 474 MB, free: 13.04 MB / 314.7 MB Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Dassl" Notification: Performance of FrontEnd - loaded program: time 1.242e-05/1.246e-05, allocations: 3.125 kB / 0.5375 GB, free: 33.09 MB / 362.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.14/0.1401, allocations: 69.37 MB / 0.6052 GB, free: 144 kB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.099/1.239, allocations: 356 MB / 0.9529 GB, free: 167.9 MB / 0.6042 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002664/1.24, allocations: 75.45 kB / 0.953 GB, free: 167.9 MB / 0.6042 GB Notification: Performance of FrontEnd - DAE generated: time 0.3191/1.559, allocations: 173.8 MB / 1.123 GB, free: 38.93 MB / 0.6042 GB Notification: Performance of FrontEnd: time 1.522e-06/1.559, allocations: 0 / 1.123 GB, free: 38.93 MB / 0.6042 GB Notification: Performance of Transformations before backend: time 7.218e-05/1.559, allocations: 24 kB / 1.123 GB, free: 38.91 MB / 0.6042 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 185 * Number of variables: 185 Notification: Performance of Generate backend data structure: time 0.002313/1.561, allocations: 1.164 MB / 1.124 GB, free: 37.69 MB / 0.6042 GB Notification: Performance of prepare preOptimizeDAE: time 3.806e-05/1.561, allocations: 12.03 kB / 1.124 GB, free: 37.68 MB / 0.6042 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003794/1.562, allocations: 106.9 kB / 1.124 GB, free: 37.57 MB / 0.6042 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008738/1.563, allocations: 0.5237 MB / 1.124 GB, free: 37.01 MB / 0.6042 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.642e-05/1.563, allocations: 24 kB / 1.124 GB, free: 36.98 MB / 0.6042 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001041/1.563, allocations: 55.98 kB / 1.125 GB, free: 36.93 MB / 0.6042 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0008273/1.564, allocations: 0.5467 MB / 1.125 GB, free: 36.38 MB / 0.6042 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009313/1.564, allocations: 0.6542 MB / 1.126 GB, free: 35.71 MB / 0.6042 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.872e-05/1.565, allocations: 0 / 1.126 GB, free: 35.71 MB / 0.6042 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.721e-05/1.565, allocations: 11.89 kB / 1.126 GB, free: 35.7 MB / 0.6042 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.366e-05/1.565, allocations: 16 kB / 1.126 GB, free: 35.69 MB / 0.6042 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003438/1.568, allocations: 3.624 MB / 1.129 GB, free: 31.69 MB / 0.6042 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007372/1.569, allocations: 0.5639 MB / 1.13 GB, free: 31.11 MB / 0.6042 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002953/1.569, allocations: 254.6 kB / 1.13 GB, free: 30.86 MB / 0.6042 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001875/1.571, allocations: 2.127 MB / 1.132 GB, free: 28.45 MB / 0.6042 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004263/1.571, allocations: 340.8 kB / 1.132 GB, free: 28.09 MB / 0.6042 GB Notification: Performance of pre-optimization done (n=66): time 2.295e-06/1.571, allocations: 3.938 kB / 1.132 GB, free: 28.09 MB / 0.6042 GB Notification: Performance of matching and sorting (n=68): time 0.003029/1.574, allocations: 1.368 MB / 1.134 GB, free: 26.67 MB / 0.6042 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.116e-05/1.575, allocations: 89.62 kB / 1.134 GB, free: 26.56 MB / 0.6042 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.0.0-main/FlowControl/BasicControlValve.mo:27:3-28:92:writable] Warning: Parameter valveLinear.m_flow_ref_set has no value, and is fixed during initialization (fixed=true), using available start value (start=0.0) as default value. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.0.0-main/FlowControl/BasicControlValve.mo:25:3-26:88:writable] Warning: Parameter valveLinear.Cvs_UK has no value, and is fixed during initialization (fixed=true), using available start value (start=0.0) as default value. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.0.0-main/FlowControl/BasicControlValve.mo:23:3-24:88:writable] Warning: Parameter valveLinear.Cvs_US has no value, and is fixed during initialization (fixed=true), using available start value (start=0.0) as default value. Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003888/1.575, allocations: 378.1 kB / 1.134 GB, free: 26.19 MB / 0.6042 GB Notification: Performance of collectPreVariables (initialization): time 4.792e-05/1.575, allocations: 25.7 kB / 1.134 GB, free: 26.16 MB / 0.6042 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001805/1.575, allocations: 383.8 kB / 1.135 GB, free: 25.77 MB / 0.6042 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001133/1.575, allocations: 216.7 kB / 1.135 GB, free: 25.56 MB / 0.6042 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.813e-05/1.575, allocations: 4 kB / 1.135 GB, free: 25.55 MB / 0.6042 GB Notification: Performance of setup shared object (initialization): time 8.349e-05/1.575, allocations: 374.8 kB / 1.135 GB, free: 25.18 MB / 0.6042 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002622/1.576, allocations: 193.5 kB / 1.135 GB, free: 24.99 MB / 0.6042 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002826/1.576, allocations: 287.5 kB / 1.136 GB, free: 24.68 MB / 0.6042 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000569/1.577, allocations: 224.5 kB / 1.136 GB, free: 24.46 MB / 0.6042 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.936e-06/1.577, allocations: 4 kB / 1.136 GB, free: 24.45 MB / 0.6042 GB Notification: Performance of matching and sorting (n=86) (initialization): time 0.001234/1.578, allocations: 0.6953 MB / 1.137 GB, free: 23.75 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 3.763e-05/1.578, allocations: 35.36 kB / 1.137 GB, free: 23.71 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.134e-05/1.578, allocations: 4 kB / 1.137 GB, free: 23.71 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003186/1.578, allocations: 101 kB / 1.137 GB, free: 23.61 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004636/1.579, allocations: 135.8 kB / 1.137 GB, free: 23.47 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001541/1.58, allocations: 1.826 MB / 1.139 GB, free: 21.53 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004827/1.581, allocations: 43.97 kB / 1.139 GB, free: 21.48 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.107e-05/1.581, allocations: 27.98 kB / 1.139 GB, free: 21.46 MB / 0.6042 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 9 * Number of states: 0 () * Number of discrete variables: 5 ($whenCondition1,$PRE.pulse.T_start,pulse.T_start,$PRE.pulse.count,pulse.count) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (75): * Single equations (assignments): 72 * Array equations: 0 * 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: 1 {(2,100.0%) 8} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001295/1.581, allocations: 120.6 kB / 1.139 GB, free: 21.33 MB / 0.6042 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.032e-05/1.581, allocations: 71.14 kB / 1.139 GB, free: 21.26 MB / 0.6042 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001369/1.582, allocations: 0.7133 MB / 1.14 GB, free: 20.54 MB / 0.6042 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.043e-06/1.582, allocations: 8 kB / 1.14 GB, free: 20.53 MB / 0.6042 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.338e-06/1.582, allocations: 4 kB / 1.14 GB, free: 20.52 MB / 0.6042 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.515e-06/1.582, allocations: 3.984 kB / 1.14 GB, free: 20.52 MB / 0.6042 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002122/1.585, allocations: 1.433 MB / 1.141 GB, free: 19.04 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.298e-06/1.585, allocations: 3.938 kB / 1.141 GB, free: 19.04 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004709/1.585, allocations: 115.9 kB / 1.141 GB, free: 18.92 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002738/1.585, allocations: 104.7 kB / 1.141 GB, free: 18.82 MB / 0.6042 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.27e-05/1.585, allocations: 19.97 kB / 1.141 GB, free: 18.8 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00137/1.587, allocations: 1.838 MB / 1.143 GB, free: 16.84 MB / 0.6042 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.615e-06/1.587, allocations: 0 / 1.143 GB, free: 16.84 MB / 0.6042 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001455/1.588, allocations: 1.007 MB / 1.144 GB, free: 15.81 MB / 0.6042 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002303/1.589, allocations: 200.2 kB / 1.144 GB, free: 15.59 MB / 0.6042 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.997e-05/1.589, allocations: 11.98 kB / 1.144 GB, free: 15.58 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004545/1.589, allocations: 43.95 kB / 1.144 GB, free: 15.54 MB / 0.6042 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001128/1.589, allocations: 60.47 kB / 1.144 GB, free: 15.48 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.751e-05/1.589, allocations: 27.98 kB / 1.144 GB, free: 15.45 MB / 0.6042 GB Notification: Performance of sorting global known variables: time 0.0002527/1.59, allocations: 283 kB / 1.145 GB, free: 15.18 MB / 0.6042 GB Notification: Performance of sort global known variables: time 1.3e-07/1.59, allocations: 0 / 1.145 GB, free: 15.18 MB / 0.6042 GB Notification: Performance of remove unused functions: time 0.0008497/1.59, allocations: 291.8 kB / 1.145 GB, free: 14.89 MB / 0.6042 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 5 (splitterT2_1.splitterN.outlets[1].m_flow,checkValve.inlet.m_flow,reservoir.M,reservoir.U_med,firstOrder.y) * Number of discrete variables: 3 ($whenCondition1,pulse.T_start,pulse.count) * Number of discrete states: 1 (pulse.count) * Top-level inputs: 0 Notification: Strong component statistics for simulation (60): * Single equations (assignments): 56 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * When equations: 2 * 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: 1 {(2,100.0%) 8} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0008154/1.591, allocations: 0.6182 MB / 1.145 GB, free: 14.27 MB / 0.6042 GB Notification: Performance of simCode: created initialization part: time 0.00103/1.592, allocations: 0.7471 MB / 1.146 GB, free: 13.49 MB / 0.6042 GB Notification: Performance of simCode: created event and clocks part: time 2.775e-06/1.592, allocations: 0 / 1.146 GB, free: 13.49 MB / 0.6042 GB Notification: Performance of simCode: created simulation system equations: time 0.0006406/1.593, allocations: 477.1 kB / 1.147 GB, free: 13.01 MB / 0.6042 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008874/1.594, allocations: 173.6 kB / 1.147 GB, free: 12.84 MB / 0.6042 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00196/1.596, allocations: 1.17 MB / 1.148 GB, free: 11.64 MB / 0.6042 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003522/1.596, allocations: 0.9736 MB / 1.149 GB, free: 10.64 MB / 0.6042 GB Notification: Performance of simCode: alias equations: time 0.0004612/1.597, allocations: 116.6 kB / 1.149 GB, free: 10.53 MB / 0.6042 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001832/1.597, allocations: 63.41 kB / 1.149 GB, free: 10.46 MB / 0.6042 GB Notification: Performance of SimCode: time 3.71e-07/1.597, allocations: 0 / 1.149 GB, free: 10.46 MB / 0.6042 GB Notification: Performance of Templates: time 0.3133/1.91, allocations: 12.85 MB / 1.162 GB, free: 141.2 MB / 0.6042 GB make -j1 -f ThermofluidStream_ThermofluidStream.Examples.WaterHammer.makefile (rm -f ThermofluidStream_ThermofluidStream.Examples.WaterHammer.pipe ; mkfifo ThermofluidStream_ThermofluidStream.Examples.WaterHammer.pipe ; head -c 1048576 < ThermofluidStream_ThermofluidStream.Examples.WaterHammer.pipe >> ../files/ThermofluidStream_ThermofluidStream.Examples.WaterHammer.sim & ./ThermofluidStream_ThermofluidStream.Examples.WaterHammer -abortSlowSimulation -alarm=1200 -emit_protected -lv LOG_STATS > ThermofluidStream_ThermofluidStream.Examples.WaterHammer.pipe 2>&1)