Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ThermofluidStream_OM_adaptions_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.4.0-OM_adaptions/package.mo", uses=false) Using package ThermofluidStream with version 0.4.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 0.4.0-OM_adaptions/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_OM_adaptions_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_OM_adaptions_ThermofluidStream.Examples.WaterHammer") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001868/0.001868, allocations: 174.7 kB / 12.73 MB, free: 2.59 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.548/1.548, allocations: 205.2 MB / 218.5 MB, free: 9.215 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.0008409/0.0008411, allocations: 89.02 kB / 266.6 MB, free: 9.273 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 0.4.0-OM_adaptions/package.mo): time 0.7563/0.7563, allocations: 90.35 MB / 405 MB, free: 8.645 MB / 298.7 MB Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Dassl" Notification: Performance of FrontEnd - loaded program: time 3.077e-05/3.078e-05, allocations: 0 / 479.2 MB, free: 14.34 MB / 378.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.359/0.3591, allocations: 66.25 MB / 0.5326 GB, free: 28.51 MB / 394.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.7166/1.076, allocations: 356.7 MB / 0.8809 GB, free: 4.32 MB / 0.5573 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.00022/1.076, allocations: 72.59 kB / 0.881 GB, free: 4.289 MB / 0.5573 GB Notification: Performance of FrontEnd - DAE generated: time 0.687/1.763, allocations: 170.9 MB / 1.048 GB, free: 120 MB / 0.5886 GB Notification: Performance of FrontEnd: time 2.064e-06/1.763, allocations: 3.938 kB / 1.048 GB, free: 120 MB / 0.5886 GB Notification: Performance of Transformations before backend: time 6e-05/1.763, allocations: 23.98 kB / 1.048 GB, free: 120 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.002249/1.765, allocations: 1.153 MB / 1.049 GB, free: 118.8 MB / 0.5886 GB Notification: Performance of prepare preOptimizeDAE: time 4.269e-05/1.765, allocations: 8.031 kB / 1.049 GB, free: 118.8 MB / 0.5886 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002808/1.766, allocations: 114.7 kB / 1.049 GB, free: 118.7 MB / 0.5886 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008234/1.767, allocations: 0.5316 MB / 1.05 GB, free: 118.1 MB / 0.5886 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.354e-05/1.767, allocations: 54 kB / 1.05 GB, free: 118.1 MB / 0.5886 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001091/1.767, allocations: 79.91 kB / 1.05 GB, free: 118 MB / 0.5886 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001159/1.768, allocations: 0.7596 MB / 1.051 GB, free: 117.2 MB / 0.5886 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.91e-05/1.768, allocations: 4 kB / 1.051 GB, free: 117.2 MB / 0.5886 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.635e-05/1.768, allocations: 28 kB / 1.051 GB, free: 117.2 MB / 0.5886 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.541e-05/1.768, allocations: 23.94 kB / 1.051 GB, free: 117.2 MB / 0.5886 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000843/1.769, allocations: 0.5935 MB / 1.051 GB, free: 116.6 MB / 0.5886 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003583/1.772, allocations: 3.752 MB / 1.055 GB, free: 112.4 MB / 0.5886 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00084/1.773, allocations: 0.6013 MB / 1.055 GB, free: 111.8 MB / 0.5886 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003444/1.774, allocations: 272.3 kB / 1.056 GB, free: 111.6 MB / 0.5886 GB Notification: Performance of preOpt evalFunc (simulation): time 0.002141/1.776, allocations: 2.143 MB / 1.058 GB, free: 109.1 MB / 0.5886 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005089/1.776, allocations: 365.9 kB / 1.058 GB, free: 108.7 MB / 0.5886 GB Notification: Performance of pre-optimization done (n=66): time 3.556e-06/1.776, allocations: 3.938 kB / 1.058 GB, free: 108.7 MB / 0.5886 GB Notification: Performance of matching and sorting (n=68): time 0.002455/1.779, allocations: 1.474 MB / 1.06 GB, free: 107.2 MB / 0.5886 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.519e-05/1.779, allocations: 89.59 kB / 1.06 GB, free: 107.1 MB / 0.5886 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 0.4.0-OM_adaptions/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.4.0-OM_adaptions/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.4.0-OM_adaptions/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.0004578/1.779, allocations: 424.8 kB / 1.06 GB, free: 106.7 MB / 0.5886 GB Notification: Performance of collectPreVariables (initialization): time 4.874e-05/1.779, allocations: 37.7 kB / 1.06 GB, free: 106.6 MB / 0.5886 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002087/1.78, allocations: 375.9 kB / 1.06 GB, free: 106.3 MB / 0.5886 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001162/1.78, allocations: 236.6 kB / 1.061 GB, free: 106 MB / 0.5886 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.078e-05/1.78, allocations: 12 kB / 1.061 GB, free: 106 MB / 0.5886 GB Notification: Performance of setup shared object (initialization): time 8.581e-05/1.78, allocations: 378.8 kB / 1.061 GB, free: 105.6 MB / 0.5886 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003029/1.78, allocations: 209.5 kB / 1.061 GB, free: 105.4 MB / 0.5886 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003346/1.781, allocations: 297.1 kB / 1.062 GB, free: 105.1 MB / 0.5886 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003543/1.781, allocations: 275.7 kB / 1.062 GB, free: 104.8 MB / 0.5886 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.825e-06/1.781, allocations: 4 kB / 1.062 GB, free: 104.8 MB / 0.5886 GB Notification: Performance of matching and sorting (n=86) (initialization): time 0.001117/1.782, allocations: 0.7828 MB / 1.063 GB, free: 104 MB / 0.5886 GB Notification: Performance of prepare postOptimizeDAE: time 3.294e-05/1.782, allocations: 31.73 kB / 1.063 GB, free: 104 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.176e-05/1.782, allocations: 4 kB / 1.063 GB, free: 104 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003364/1.782, allocations: 104.9 kB / 1.063 GB, free: 103.9 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000484/1.783, allocations: 131.8 kB / 1.063 GB, free: 103.8 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001665/1.785, allocations: 1.886 MB / 1.065 GB, free: 101.8 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005303/1.785, allocations: 52.02 kB / 1.065 GB, free: 101.7 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.167e-05/1.785, allocations: 31.98 kB / 1.065 GB, free: 101.7 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 () * 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.0001505/1.785, allocations: 152.7 kB / 1.065 GB, free: 101.5 MB / 0.5886 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.976e-05/1.785, allocations: 71.11 kB / 1.065 GB, free: 101.4 MB / 0.5886 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00133/1.787, allocations: 0.764 MB / 1.066 GB, free: 100.7 MB / 0.5886 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.001e-06/1.787, allocations: 4 kB / 1.066 GB, free: 100.7 MB / 0.5886 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.878e-06/1.787, allocations: 4 kB / 1.066 GB, free: 100.7 MB / 0.5886 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.705e-06/1.787, allocations: 3.984 kB / 1.066 GB, free: 100.7 MB / 0.5886 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002252/1.789, allocations: 1.588 MB / 1.067 GB, free: 99 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.53e-06/1.789, allocations: 0 / 1.067 GB, free: 99 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004664/1.79, allocations: 115.9 kB / 1.067 GB, free: 98.89 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003264/1.79, allocations: 104.7 kB / 1.067 GB, free: 98.78 MB / 0.5886 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.05e-05/1.79, allocations: 23.98 kB / 1.067 GB, free: 98.76 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001699/1.792, allocations: 1.91 MB / 1.069 GB, free: 96.71 MB / 0.5886 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.345e-06/1.792, allocations: 0 / 1.069 GB, free: 96.71 MB / 0.5886 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001606/1.793, allocations: 1.057 MB / 1.07 GB, free: 95.62 MB / 0.5886 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003817/1.794, allocations: 208.2 kB / 1.071 GB, free: 95.4 MB / 0.5886 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.453e-05/1.794, allocations: 16 kB / 1.071 GB, free: 95.38 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004727/1.794, allocations: 63.84 kB / 1.071 GB, free: 95.32 MB / 0.5886 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001538/1.794, allocations: 60.42 kB / 1.071 GB, free: 95.26 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.842e-05/1.795, allocations: 27.97 kB / 1.071 GB, free: 95.23 MB / 0.5886 GB Notification: Performance of sorting global known variables: time 0.0004452/1.795, allocations: 321.6 kB / 1.071 GB, free: 94.93 MB / 0.5886 GB Notification: Performance of sort global known variables: time 1.2e-07/1.795, allocations: 0 / 1.071 GB, free: 94.93 MB / 0.5886 GB Notification: Performance of remove unused functions: time 0.001459/1.796, allocations: 319.8 kB / 1.071 GB, free: 94.61 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) * 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.001002/1.797, allocations: 0.5975 MB / 1.072 GB, free: 94.01 MB / 0.5886 GB Notification: Performance of simCode: created initialization part: time 0.001329/1.799, allocations: 0.7859 MB / 1.073 GB, free: 93.2 MB / 0.5886 GB Notification: Performance of simCode: created event and clocks part: time 4.107e-06/1.799, allocations: 64 / 1.073 GB, free: 93.2 MB / 0.5886 GB Notification: Performance of simCode: created simulation system equations: time 0.0006585/1.799, allocations: 0.4992 MB / 1.073 GB, free: 92.68 MB / 0.5886 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009521/1.8, allocations: 182 kB / 1.073 GB, free: 92.5 MB / 0.5886 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002012/1.802, allocations: 1.219 MB / 1.075 GB, free: 91.25 MB / 0.5886 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003495/1.803, allocations: 0.9772 MB / 1.076 GB, free: 90.25 MB / 0.5886 GB Notification: Performance of simCode: alias equations: time 0.0004533/1.803, allocations: 112.7 kB / 1.076 GB, free: 90.14 MB / 0.5886 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001494/1.803, allocations: 63.41 kB / 1.076 GB, free: 90.07 MB / 0.5886 GB Notification: Performance of SimCode: time 6.51e-07/1.803, allocations: 0 / 1.076 GB, free: 90.07 MB / 0.5886 GB Notification: Performance of Templates: time 0.02176/1.825, allocations: 15.78 MB / 1.091 GB, free: 74.36 MB / 0.5886 GB make -j1 -f ThermofluidStream_OM_adaptions_ThermofluidStream.Examples.WaterHammer.makefile (rm -f ThermofluidStream_OM_adaptions_ThermofluidStream.Examples.WaterHammer.pipe ; mkfifo ThermofluidStream_OM_adaptions_ThermofluidStream.Examples.WaterHammer.pipe ; head -c 1048576 < ThermofluidStream_OM_adaptions_ThermofluidStream.Examples.WaterHammer.pipe >> ../files/ThermofluidStream_OM_adaptions_ThermofluidStream.Examples.WaterHammer.sim & ./ThermofluidStream_OM_adaptions_ThermofluidStream.Examples.WaterHammer -abortSlowSimulation -alarm=1200 -emit_protected -lv LOG_STATS > ThermofluidStream_OM_adaptions_ThermofluidStream.Examples.WaterHammer.pipe 2>&1)