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.001826/0.001827, allocations: 175.2 kB / 12.73 MB, free: 2.59 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.398/1.398, allocations: 221.4 MB / 234.6 MB, free: 14.43 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001152/0.001152, allocations: 101.3 kB / 285.6 MB, free: 12.97 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.01067/0.01067, allocations: 1.556 MB / 338 MB, free: 8.469 MB / 282.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.0.0-main/package.mo): time 0.6157/0.6157, allocations: 90.04 MB / 479.4 MB, free: 2.965 MB / 314.7 MB Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Dassl" Notification: Performance of FrontEnd - loaded program: time 3.835e-05/3.839e-05, allocations: 4 kB / 0.5445 GB, free: 7.988 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1621/0.1621, allocations: 69.36 MB / 0.6122 GB, free: 2.539 MB / 394.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.241/1.404, allocations: 356.7 MB / 0.9606 GB, free: 60.33 MB / 0.573 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001943/1.404, allocations: 78.91 kB / 0.9606 GB, free: 60.29 MB / 0.573 GB Notification: Performance of FrontEnd - DAE generated: time 0.7483/2.152, allocations: 174.6 MB / 1.131 GB, free: 163.5 MB / 0.6042 GB Notification: Performance of FrontEnd: time 2.284e-06/2.152, allocations: 0 / 1.131 GB, free: 163.5 MB / 0.6042 GB Notification: Performance of Transformations before backend: time 8.954e-05/2.152, allocations: 24.12 kB / 1.131 GB, free: 163.4 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.002586/2.155, allocations: 1.169 MB / 1.132 GB, free: 162.5 MB / 0.6042 GB Notification: Performance of prepare preOptimizeDAE: time 3.467e-05/2.155, allocations: 19.58 kB / 1.132 GB, free: 162.5 MB / 0.6042 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004272/2.155, allocations: 107.5 kB / 1.132 GB, free: 162.5 MB / 0.6042 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001045/2.156, allocations: 0.5261 MB / 1.133 GB, free: 162.1 MB / 0.6042 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.663e-05/2.156, allocations: 56.84 kB / 1.133 GB, free: 162 MB / 0.6042 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001553/2.157, allocations: 79.66 kB / 1.133 GB, free: 162 MB / 0.6042 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00129/2.158, allocations: 0.752 MB / 1.134 GB, free: 161.6 MB / 0.6042 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.046e-05/2.158, allocations: 6.781 kB / 1.134 GB, free: 161.6 MB / 0.6042 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.897e-05/2.158, allocations: 34.12 kB / 1.134 GB, free: 161.5 MB / 0.6042 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.683e-05/2.158, allocations: 23.7 kB / 1.134 GB, free: 161.5 MB / 0.6042 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009364/2.159, allocations: 0.5886 MB / 1.134 GB, free: 161.3 MB / 0.6042 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004138/2.163, allocations: 3.75 MB / 1.138 GB, free: 157.9 MB / 0.6042 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009335/2.164, allocations: 0.5981 MB / 1.139 GB, free: 157.6 MB / 0.6042 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003859/2.164, allocations: 264.7 kB / 1.139 GB, free: 157.4 MB / 0.6042 GB Notification: Performance of preOpt evalFunc (simulation): time 0.002205/2.167, allocations: 2.149 MB / 1.141 GB, free: 155.3 MB / 0.6042 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005649/2.167, allocations: 369.9 kB / 1.141 GB, free: 155.1 MB / 0.6042 GB Notification: Performance of pre-optimization done (n=66): time 5.641e-06/2.167, allocations: 3.75 kB / 1.141 GB, free: 155.1 MB / 0.6042 GB Notification: Performance of matching and sorting (n=68): time 0.003374/2.171, allocations: 1.474 MB / 1.143 GB, free: 154.1 MB / 0.6042 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.675e-05/2.171, allocations: 89.34 kB / 1.143 GB, free: 154 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.0008013/2.172, allocations: 425.3 kB / 1.143 GB, free: 153.8 MB / 0.6042 GB Notification: Performance of collectPreVariables (initialization): time 6.673e-05/2.172, allocations: 37.14 kB / 1.143 GB, free: 153.8 MB / 0.6042 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003304/2.172, allocations: 376.7 kB / 1.144 GB, free: 153.4 MB / 0.6042 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002184/2.172, allocations: 229.5 kB / 1.144 GB, free: 153.2 MB / 0.6042 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.48e-05/2.172, allocations: 15.78 kB / 1.144 GB, free: 153.2 MB / 0.6042 GB Notification: Performance of setup shared object (initialization): time 0.0001539/2.173, allocations: 376.1 kB / 1.144 GB, free: 152.9 MB / 0.6042 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00039/2.173, allocations: 207.2 kB / 1.145 GB, free: 152.8 MB / 0.6042 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004263/2.173, allocations: 307.3 kB / 1.145 GB, free: 152.6 MB / 0.6042 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004562/2.174, allocations: 270 kB / 1.145 GB, free: 152.4 MB / 0.6042 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.853e-06/2.174, allocations: 3.781 kB / 1.145 GB, free: 152.4 MB / 0.6042 GB Notification: Performance of matching and sorting (n=86) (initialization): time 0.001435/2.175, allocations: 0.773 MB / 1.146 GB, free: 152 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 4.453e-05/2.175, allocations: 41.64 kB / 1.146 GB, free: 152 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.359e-05/2.175, allocations: 5.797 kB / 1.146 GB, free: 152 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003676/2.176, allocations: 101 kB / 1.146 GB, free: 151.9 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000512/2.176, allocations: 136 kB / 1.146 GB, free: 151.9 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001807/2.178, allocations: 1.884 MB / 1.148 GB, free: 150.2 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005935/2.179, allocations: 53.53 kB / 1.148 GB, free: 150.2 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.194e-05/2.179, allocations: 29.3 kB / 1.148 GB, free: 150.2 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.0001598/2.179, allocations: 143.7 kB / 1.148 GB, free: 150 MB / 0.6042 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.933e-05/2.179, allocations: 67.81 kB / 1.148 GB, free: 150 MB / 0.6042 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001426/2.18, allocations: 0.7724 MB / 1.149 GB, free: 149.5 MB / 0.6042 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.544e-06/2.18, allocations: 3.781 kB / 1.149 GB, free: 149.5 MB / 0.6042 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.849e-06/2.18, allocations: 7.562 kB / 1.149 GB, free: 149.5 MB / 0.6042 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.496e-06/2.18, allocations: 3.984 kB / 1.149 GB, free: 149.5 MB / 0.6042 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002163/2.183, allocations: 1.571 MB / 1.151 GB, free: 148.4 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.419e-06/2.183, allocations: 0 / 1.151 GB, free: 148.4 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004736/2.183, allocations: 125.2 kB / 1.151 GB, free: 148.4 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003052/2.183, allocations: 98.81 kB / 1.151 GB, free: 148.4 MB / 0.6042 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.86e-05/2.184, allocations: 27.84 kB / 1.151 GB, free: 148.3 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001525/2.185, allocations: 1.911 MB / 1.153 GB, free: 146.6 MB / 0.6042 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.482e-06/2.185, allocations: 0 / 1.153 GB, free: 146.6 MB / 0.6042 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001372/2.186, allocations: 1.07 MB / 1.154 GB, free: 146 MB / 0.6042 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002694/2.187, allocations: 199 kB / 1.154 GB, free: 145.8 MB / 0.6042 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.161e-05/2.187, allocations: 19.64 kB / 1.154 GB, free: 145.8 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004502/2.187, allocations: 61 kB / 1.154 GB, free: 145.8 MB / 0.6042 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001318/2.187, allocations: 53.97 kB / 1.154 GB, free: 145.8 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.944e-05/2.187, allocations: 30.39 kB / 1.154 GB, free: 145.7 MB / 0.6042 GB Notification: Performance of sorting global known variables: time 0.0003116/2.188, allocations: 323.8 kB / 1.154 GB, free: 145.6 MB / 0.6042 GB Notification: Performance of sort global known variables: time 2.3e-07/2.188, allocations: 0 / 1.154 GB, free: 145.6 MB / 0.6042 GB Notification: Performance of remove unused functions: time 0.001009/2.189, allocations: 313.1 kB / 1.155 GB, free: 145.4 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.0007554/2.19, allocations: 0.6099 MB / 1.155 GB, free: 144.9 MB / 0.6042 GB Notification: Performance of simCode: created initialization part: time 0.001134/2.191, allocations: 0.7953 MB / 1.156 GB, free: 144 MB / 0.6042 GB Notification: Performance of simCode: created event and clocks part: time 3.657e-06/2.191, allocations: 0 / 1.156 GB, free: 144 MB / 0.6042 GB Notification: Performance of simCode: created simulation system equations: time 0.0006175/2.191, allocations: 499.5 kB / 1.156 GB, free: 143.5 MB / 0.6042 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008748/2.192, allocations: 173.8 kB / 1.157 GB, free: 143.3 MB / 0.6042 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002007/2.194, allocations: 1.226 MB / 1.158 GB, free: 142.1 MB / 0.6042 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003628/2.195, allocations: 0.9655 MB / 1.159 GB, free: 141.1 MB / 0.6042 GB Notification: Performance of simCode: alias equations: time 0.0004284/2.195, allocations: 120.2 kB / 1.159 GB, free: 141 MB / 0.6042 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001445/2.195, allocations: 63.41 kB / 1.159 GB, free: 140.9 MB / 0.6042 GB Notification: Performance of SimCode: time 5.01e-07/2.195, allocations: 3.938 kB / 1.159 GB, free: 140.9 MB / 0.6042 GB Notification: Performance of Templates: time 0.02284/2.218, allocations: 15.76 MB / 1.174 GB, free: 125.3 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)