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.008395/0.008395, allocations: 172 kB / 15.11 MB, free: 5.973 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.574/1.574, allocations: 223.2 MB / 239 MB, free: 1.777 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.001074/0.001074, allocations: 90.61 kB / 290.2 MB, free: 13.93 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.01313/0.01313, allocations: 1.553 MB / 342.9 MB, free: 9.262 MB / 282.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.0.0-main/package.mo): time 0.8688/0.8688, allocations: 90.31 MB / 484.7 MB, free: 21.89 MB / 330.7 MB Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Dassl" Notification: Performance of FrontEnd - loaded program: time 0.0005505/0.0005505, allocations: 28.11 kB / 0.5526 GB, free: 30.19 MB / 362.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2105/0.2111, allocations: 69.36 MB / 0.6203 GB, free: 5.625 MB / 394.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.477/1.688, allocations: 356.8 MB / 0.9687 GB, free: 162.5 MB / 0.6042 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002964/1.688, allocations: 81.73 kB / 0.9688 GB, free: 162.5 MB / 0.6042 GB Notification: Performance of FrontEnd - DAE generated: time 0.3494/2.038, allocations: 175.4 MB / 1.14 GB, free: 17.7 MB / 0.6042 GB Notification: Performance of FrontEnd: time 3.757e-06/2.038, allocations: 0 / 1.14 GB, free: 17.7 MB / 0.6042 GB Notification: Performance of Transformations before backend: time 7.662e-05/2.038, allocations: 27.98 kB / 1.14 GB, free: 17.68 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.002832/2.041, allocations: 1.254 MB / 1.141 GB, free: 16.37 MB / 0.6042 GB Notification: Performance of prepare preOptimizeDAE: time 6.085e-05/2.041, allocations: 11.98 kB / 1.141 GB, free: 16.36 MB / 0.6042 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002995/2.041, allocations: 106.8 kB / 1.141 GB, free: 16.25 MB / 0.6042 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008983/2.042, allocations: 0.5316 MB / 1.142 GB, free: 15.68 MB / 0.6042 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.881e-05/2.042, allocations: 54 kB / 1.142 GB, free: 15.62 MB / 0.6042 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001139/2.042, allocations: 76 kB / 1.142 GB, free: 15.55 MB / 0.6042 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001355/2.044, allocations: 0.7868 MB / 1.143 GB, free: 14.75 MB / 0.6042 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.146e-05/2.044, allocations: 3.984 kB / 1.143 GB, free: 14.74 MB / 0.6042 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.094e-05/2.044, allocations: 32 kB / 1.143 GB, free: 14.71 MB / 0.6042 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.003e-05/2.044, allocations: 23.95 kB / 1.143 GB, free: 14.69 MB / 0.6042 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001086/2.045, allocations: 0.6441 MB / 1.144 GB, free: 14.04 MB / 0.6042 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004244/2.049, allocations: 3.748 MB / 1.147 GB, free: 9.906 MB / 0.6042 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001105/2.05, allocations: 0.6507 MB / 1.148 GB, free: 9.246 MB / 0.6042 GB Notification: Performance of preOpt evalFunc (simulation): time 0.002565/2.053, allocations: 2.139 MB / 1.15 GB, free: 6.82 MB / 0.6042 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006642/2.054, allocations: 393.9 kB / 1.15 GB, free: 6.418 MB / 0.6042 GB Notification: Performance of pre-optimization done (n=66): time 4.398e-06/2.054, allocations: 0 / 1.15 GB, free: 6.418 MB / 0.6042 GB Notification: Performance of matching and sorting (n=68): time 0.004125/2.058, allocations: 2.06 MB / 1.152 GB, free: 4.246 MB / 0.6042 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.311e-05/2.058, allocations: 89.67 kB / 1.152 GB, free: 4.141 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.0005643/2.058, allocations: 422.3 kB / 1.153 GB, free: 3.723 MB / 0.6042 GB Notification: Performance of collectPreVariables (initialization): time 5.309e-05/2.058, allocations: 37.7 kB / 1.153 GB, free: 3.68 MB / 0.6042 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002746/2.059, allocations: 379.9 kB / 1.153 GB, free: 3.301 MB / 0.6042 GB Notification: Performance of collectInitialBindings (initialization): time 0.000153/2.059, allocations: 236.5 kB / 1.153 GB, free: 3.066 MB / 0.6042 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.099e-05/2.059, allocations: 12 kB / 1.153 GB, free: 3.055 MB / 0.6042 GB Notification: Performance of setup shared object (initialization): time 0.0001467/2.059, allocations: 374.8 kB / 1.154 GB, free: 2.68 MB / 0.6042 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004318/2.06, allocations: 237.9 kB / 1.154 GB, free: 2.445 MB / 0.6042 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004643/2.06, allocations: 327.1 kB / 1.154 GB, free: 2.094 MB / 0.6042 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004719/2.06, allocations: 296.8 kB / 1.155 GB, free: 1.797 MB / 0.6042 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.713e-06/2.061, allocations: 4 kB / 1.155 GB, free: 1.793 MB / 0.6042 GB Notification: Performance of matching and sorting (n=86) (initialization): time 0.001352/2.062, allocations: 0.8191 MB / 1.155 GB, free: 0.957 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 5.653e-05/2.062, allocations: 33.7 kB / 1.155 GB, free: 0.918 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.224e-05/2.062, allocations: 0 / 1.155 GB, free: 0.918 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003858/2.062, allocations: 112.8 kB / 1.156 GB, free: 0.8047 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005337/2.063, allocations: 135.8 kB / 1.156 GB, free: 0.6719 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.5327/2.596, allocations: 1.909 MB / 1.158 GB, free: 136.1 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009875/2.597, allocations: 54.14 kB / 1.158 GB, free: 136.1 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.929e-05/2.597, allocations: 30.19 kB / 1.158 GB, free: 136.1 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 () * Number of clocked 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.0005822/2.597, allocations: 211.5 kB / 1.158 GB, free: 136 MB / 0.6042 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001216/2.598, allocations: 65.94 kB / 1.158 GB, free: 136 MB / 0.6042 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002163/2.6, allocations: 0.8189 MB / 1.159 GB, free: 135.9 MB / 0.6042 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.365e-05/2.6, allocations: 8.438 kB / 1.159 GB, free: 135.9 MB / 0.6042 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.969e-06/2.6, allocations: 5.719 kB / 1.159 GB, free: 135.9 MB / 0.6042 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.339e-05/2.6, allocations: 3.938 kB / 1.159 GB, free: 135.9 MB / 0.6042 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003253/2.603, allocations: 1.62 MB / 1.16 GB, free: 135.6 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.092e-06/2.603, allocations: 1.469 kB / 1.16 GB, free: 135.6 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005697/2.604, allocations: 119.6 kB / 1.16 GB, free: 135.6 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003817/2.604, allocations: 106.6 kB / 1.16 GB, free: 135.6 MB / 0.6042 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.845e-05/2.604, allocations: 25.59 kB / 1.161 GB, free: 135.6 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002008/2.606, allocations: 1.948 MB / 1.162 GB, free: 134.3 MB / 0.6042 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.417e-06/2.606, allocations: 4.656 kB / 1.162 GB, free: 134.3 MB / 0.6042 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002135/2.608, allocations: 1.135 MB / 1.164 GB, free: 134.1 MB / 0.6042 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003539/2.609, allocations: 210.3 kB / 1.164 GB, free: 134 MB / 0.6042 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.273e-05/2.609, allocations: 20.03 kB / 1.164 GB, free: 134 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004735/2.609, allocations: 60.58 kB / 1.164 GB, free: 134 MB / 0.6042 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001473/2.609, allocations: 59 kB / 1.164 GB, free: 134 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.921e-05/2.609, allocations: 31.83 kB / 1.164 GB, free: 134 MB / 0.6042 GB Notification: Performance of sorting global known variables: time 0.0004521/2.61, allocations: 328.1 kB / 1.164 GB, free: 133.9 MB / 0.6042 GB Notification: Performance of sort global known variables: time 2.6e-07/2.61, allocations: 0 / 1.164 GB, free: 133.9 MB / 0.6042 GB Notification: Performance of remove unused functions: time 0.001164/2.611, allocations: 315.4 kB / 1.165 GB, free: 133.9 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) * Number of clocked states: 0 () * 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.0009648/2.612, allocations: 0.6016 MB / 1.165 GB, free: 133.8 MB / 0.6042 GB Notification: Performance of simCode: created initialization part: time 0.001551/2.614, allocations: 0.8473 MB / 1.166 GB, free: 133.5 MB / 0.6042 GB Notification: Performance of simCode: created event and clocks part: time 3.797e-06/2.614, allocations: 0 / 1.166 GB, free: 133.5 MB / 0.6042 GB Notification: Performance of simCode: created simulation system equations: time 0.0007673/2.614, allocations: 0.5118 MB / 1.166 GB, free: 133.4 MB / 0.6042 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009154/2.615, allocations: 175.4 kB / 1.167 GB, free: 133.4 MB / 0.6042 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002831/2.618, allocations: 2.054 MB / 1.169 GB, free: 132.5 MB / 0.6042 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005311/2.619, allocations: 0.9765 MB / 1.17 GB, free: 131.8 MB / 0.6042 GB Notification: Performance of simCode: alias equations: time 0.0005537/2.619, allocations: 120.4 kB / 1.17 GB, free: 131.8 MB / 0.6042 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001664/2.619, allocations: 64.45 kB / 1.17 GB, free: 131.8 MB / 0.6042 GB Notification: Performance of SimCode: time 1.724e-06/2.619, allocations: 5.062 kB / 1.17 GB, free: 131.8 MB / 0.6042 GB Notification: Performance of Templates: time 0.03584/2.655, allocations: 15.05 MB / 1.184 GB, free: 131.5 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)