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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 0.3.1-main/package.mo", uses=false) Using package ThermofluidStream with version 0.3.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 0.3.1-main/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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 3.2.3+maint.om/package.mo): time 0.0009923/0.0009921, allocations: 170.1 kB / 16.11 MB, free: 5.582 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.819/1.819, allocations: 205.4 MB / 222.3 MB, free: 9.012 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001034/0.001034, allocations: 81.05 kB / 270.6 MB, free: 8.246 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 0.3.1-main/package.mo): time 0.896/0.896, allocations: 89.58 MB / 408.5 MB, free: 4.492 MB / 298.7 MB Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Dassl" Notification: Performance of FrontEnd - loaded program: time 0.000409/0.000409, allocations: 16 kB / 485.2 MB, free: 7.641 MB / 378.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.427/0.4274, allocations: 66 MB / 0.5382 GB, free: 34.47 MB / 394.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.7713/1.199, allocations: 356.7 MB / 0.8865 GB, free: 6.812 MB / 0.573 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003443/1.199, allocations: 85.88 kB / 0.8866 GB, free: 6.773 MB / 0.573 GB Notification: Performance of FrontEnd - DAE generated: time 0.7308/1.93, allocations: 170.4 MB / 1.053 GB, free: 105.9 MB / 0.5886 GB Notification: Performance of FrontEnd: time 2.565e-06/1.93, allocations: 0 / 1.053 GB, free: 105.9 MB / 0.5886 GB Notification: Performance of Transformations before backend: time 0.0001387/1.93, allocations: 27.98 kB / 1.053 GB, free: 105.9 MB / 0.5886 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.004052/1.934, allocations: 1.238 MB / 1.054 GB, free: 104.6 MB / 0.5886 GB Notification: Performance of prepare preOptimizeDAE: time 5.352e-05/1.934, allocations: 12.03 kB / 1.054 GB, free: 104.6 MB / 0.5886 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007777/1.935, allocations: 107.7 kB / 1.054 GB, free: 104.5 MB / 0.5886 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001545/1.937, allocations: 0.5557 MB / 1.055 GB, free: 103.9 MB / 0.5886 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.101e-05/1.937, allocations: 59.31 kB / 1.055 GB, free: 103.8 MB / 0.5886 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002651/1.937, allocations: 75.98 kB / 1.055 GB, free: 103.8 MB / 0.5886 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00184/1.939, allocations: 0.7985 MB / 1.056 GB, free: 102.9 MB / 0.5886 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.947e-05/1.939, allocations: 3.938 kB / 1.056 GB, free: 102.9 MB / 0.5886 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.607e-05/1.939, allocations: 32 kB / 1.056 GB, free: 102.9 MB / 0.5886 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.295e-05/1.939, allocations: 20 kB / 1.056 GB, free: 102.9 MB / 0.5886 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001284/1.94, allocations: 0.6402 MB / 1.057 GB, free: 102.3 MB / 0.5886 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004625/1.945, allocations: 3.717 MB / 1.06 GB, free: 98.14 MB / 0.5886 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001021/1.946, allocations: 0.6434 MB / 1.061 GB, free: 97.49 MB / 0.5886 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004408/1.947, allocations: 294.6 kB / 1.061 GB, free: 97.2 MB / 0.5886 GB Notification: Performance of preOpt evalFunc (simulation): time 0.002122/1.949, allocations: 2.123 MB / 1.063 GB, free: 94.79 MB / 0.5886 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005712/1.949, allocations: 393.8 kB / 1.064 GB, free: 94.39 MB / 0.5886 GB Notification: Performance of pre-optimization done (n=66): time 2.585e-06/1.949, allocations: 0 / 1.064 GB, free: 94.39 MB / 0.5886 GB Notification: Performance of matching and sorting (n=68): time 0.003497/1.953, allocations: 1.98 MB / 1.065 GB, free: 92.32 MB / 0.5886 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.821e-05/1.953, allocations: 81.67 kB / 1.066 GB, free: 92.21 MB / 0.5886 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 0.3.1-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 0.3.1-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 0.3.1-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.0005773/1.954, allocations: 494.9 kB / 1.066 GB, free: 91.72 MB / 0.5886 GB Notification: Performance of collectPreVariables (initialization): time 5.31e-05/1.954, allocations: 41.7 kB / 1.066 GB, free: 91.68 MB / 0.5886 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002259/1.954, allocations: 371.9 kB / 1.066 GB, free: 91.3 MB / 0.5886 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001407/1.954, allocations: 236.6 kB / 1.067 GB, free: 91.07 MB / 0.5886 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.884e-05/1.954, allocations: 15.94 kB / 1.067 GB, free: 91.05 MB / 0.5886 GB Notification: Performance of setup shared object (initialization): time 0.0001024/1.954, allocations: 382.7 kB / 1.067 GB, free: 90.67 MB / 0.5886 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004171/1.955, allocations: 229.9 kB / 1.067 GB, free: 90.45 MB / 0.5886 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005144/1.955, allocations: 339 kB / 1.068 GB, free: 90.09 MB / 0.5886 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009158/1.956, allocations: 0.5957 MB / 1.068 GB, free: 89.46 MB / 0.5886 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.558e-06/1.956, allocations: 0 / 1.068 GB, free: 89.46 MB / 0.5886 GB Notification: Performance of matching and sorting (n=86) (initialization): time 0.001497/1.958, allocations: 0.8268 MB / 1.069 GB, free: 88.62 MB / 0.5886 GB Notification: Performance of prepare postOptimizeDAE: time 4.894e-05/1.958, allocations: 37.7 kB / 1.069 GB, free: 88.57 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.475e-05/1.958, allocations: 4 kB / 1.069 GB, free: 88.57 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003787/1.958, allocations: 104.7 kB / 1.069 GB, free: 88.46 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004861/1.958, allocations: 131.9 kB / 1.069 GB, free: 88.34 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001938/1.96, allocations: 1.89 MB / 1.071 GB, free: 86.32 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000676/1.961, allocations: 56.05 kB / 1.071 GB, free: 86.26 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.725e-05/1.961, allocations: 24 kB / 1.071 GB, free: 86.24 MB / 0.5886 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.0005482/1.962, allocations: 213.9 kB / 1.071 GB, free: 86.02 MB / 0.5886 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001438/1.962, allocations: 75.16 kB / 1.071 GB, free: 85.95 MB / 0.5886 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001727/1.964, allocations: 0.7955 MB / 1.072 GB, free: 85.13 MB / 0.5886 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.285e-06/1.964, allocations: 8 kB / 1.072 GB, free: 85.12 MB / 0.5886 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.494e-06/1.964, allocations: 11.88 kB / 1.072 GB, free: 85.11 MB / 0.5886 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.107e-06/1.964, allocations: 3.984 kB / 1.072 GB, free: 85.11 MB / 0.5886 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002516/1.966, allocations: 1.612 MB / 1.074 GB, free: 83.43 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.989e-06/1.966, allocations: 4.031 kB / 1.074 GB, free: 83.43 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004427/1.967, allocations: 119.9 kB / 1.074 GB, free: 83.31 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003085/1.967, allocations: 104.6 kB / 1.074 GB, free: 83.21 MB / 0.5886 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.913e-05/1.967, allocations: 23.98 kB / 1.074 GB, free: 83.18 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001585/1.969, allocations: 1.918 MB / 1.076 GB, free: 81.14 MB / 0.5886 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.108e-06/1.969, allocations: 4.031 kB / 1.076 GB, free: 81.13 MB / 0.5886 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001653/1.97, allocations: 1.114 MB / 1.077 GB, free: 80 MB / 0.5886 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003985/1.971, allocations: 196.3 kB / 1.077 GB, free: 79.79 MB / 0.5886 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001424/1.971, allocations: 35.8 kB / 1.077 GB, free: 79.75 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005422/1.972, allocations: 55.86 kB / 1.077 GB, free: 79.7 MB / 0.5886 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001463/1.972, allocations: 56.48 kB / 1.077 GB, free: 79.64 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.197e-05/1.972, allocations: 31.97 kB / 1.077 GB, free: 79.61 MB / 0.5886 GB Notification: Performance of sorting global known variables: time 0.0003564/1.972, allocations: 326.9 kB / 1.078 GB, free: 79.29 MB / 0.5886 GB Notification: Performance of sort global known variables: time 1.51e-07/1.972, allocations: 0 / 1.078 GB, free: 79.29 MB / 0.5886 GB Notification: Performance of remove unused functions: time 0.001098/1.973, allocations: 311.8 kB / 1.078 GB, free: 78.99 MB / 0.5886 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.0009147/1.974, allocations: 0.6039 MB / 1.079 GB, free: 78.38 MB / 0.5886 GB Notification: Performance of simCode: created initialization part: time 0.00155/1.976, allocations: 0.8512 MB / 1.079 GB, free: 77.5 MB / 0.5886 GB Notification: Performance of simCode: created event and clocks part: time 4.238e-06/1.976, allocations: 0 / 1.079 GB, free: 77.5 MB / 0.5886 GB Notification: Performance of simCode: created simulation system equations: time 0.0007897/1.977, allocations: 0.5269 MB / 1.08 GB, free: 76.95 MB / 0.5886 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00108/1.978, allocations: 185.7 kB / 1.08 GB, free: 76.77 MB / 0.5886 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003038/1.981, allocations: 2.058 MB / 1.082 GB, free: 74.68 MB / 0.5886 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00044/1.981, allocations: 0.9617 MB / 1.083 GB, free: 73.69 MB / 0.5886 GB Notification: Performance of simCode: alias equations: time 0.0005545/1.982, allocations: 112.7 kB / 1.083 GB, free: 73.58 MB / 0.5886 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001562/1.982, allocations: 67.34 kB / 1.083 GB, free: 73.51 MB / 0.5886 GB Notification: Performance of SimCode: time 8.12e-07/1.982, allocations: 0 / 1.083 GB, free: 73.51 MB / 0.5886 GB Notification: Performance of Templates: time 0.02565/2.008, allocations: 15.21 MB / 1.098 GB, free: 58.4 MB / 0.5886 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)