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.0097/0.0097, allocations: 168.9 kB / 15.11 MB, free: 5.973 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.951/1.951, allocations: 205.4 MB / 221.3 MB, free: 13.82 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.0009665/0.0009661, allocations: 98.86 kB / 269.6 MB, free: 13.34 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 0.4.0-OM_adaptions/package.mo): time 1.053/1.053, allocations: 90.6 MB / 408.4 MB, free: 14.97 MB / 298.7 MB Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Dassl" Notification: Performance of FrontEnd - loaded program: time 0.0003702/0.0003703, allocations: 8 kB / 485.2 MB, free: 2.078 MB / 362.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5815/0.5819, allocations: 66.28 MB / 0.5386 GB, free: 45.55 MB / 426.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.849/1.431, allocations: 356.7 MB / 0.8869 GB, free: 54.35 MB / 0.5573 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003277/1.431, allocations: 83.52 kB / 0.887 GB, free: 54.31 MB / 0.5573 GB Notification: Performance of FrontEnd - DAE generated: time 0.7731/2.205, allocations: 171.6 MB / 1.055 GB, free: 155.2 MB / 0.5886 GB Notification: Performance of FrontEnd: time 3.737e-06/2.205, allocations: 0 / 1.055 GB, free: 155.2 MB / 0.5886 GB Notification: Performance of Transformations before backend: time 7.997e-05/2.205, allocations: 29.36 kB / 1.055 GB, free: 155.2 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.002653/2.207, allocations: 1.241 MB / 1.056 GB, free: 154.2 MB / 0.5886 GB Notification: Performance of prepare preOptimizeDAE: time 4.865e-05/2.207, allocations: 9.656 kB / 1.056 GB, free: 154.2 MB / 0.5886 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003079/2.208, allocations: 107.3 kB / 1.056 GB, free: 154.2 MB / 0.5886 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009063/2.209, allocations: 0.5358 MB / 1.057 GB, free: 153.8 MB / 0.5886 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.9e-05/2.209, allocations: 61.92 kB / 1.057 GB, free: 153.7 MB / 0.5886 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001117/2.209, allocations: 86.81 kB / 1.057 GB, free: 153.7 MB / 0.5886 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001358/2.21, allocations: 0.784 MB / 1.057 GB, free: 153.2 MB / 0.5886 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.331e-05/2.21, allocations: 0 / 1.057 GB, free: 153.2 MB / 0.5886 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.549e-05/2.21, allocations: 31.69 kB / 1.057 GB, free: 153.2 MB / 0.5886 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.228e-05/2.21, allocations: 20.31 kB / 1.057 GB, free: 153.2 MB / 0.5886 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001111/2.212, allocations: 0.6476 MB / 1.058 GB, free: 152.9 MB / 0.5886 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004325/2.216, allocations: 3.75 MB / 1.062 GB, free: 149.5 MB / 0.5886 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001125/2.217, allocations: 0.647 MB / 1.062 GB, free: 149.1 MB / 0.5886 GB Notification: Performance of preOpt evalFunc (simulation): time 0.002277/2.219, allocations: 2.151 MB / 1.064 GB, free: 147 MB / 0.5886 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000656/2.22, allocations: 383.2 kB / 1.065 GB, free: 146.7 MB / 0.5886 GB Notification: Performance of pre-optimization done (n=66): time 3.246e-06/2.22, allocations: 0 / 1.065 GB, free: 146.7 MB / 0.5886 GB Notification: Performance of matching and sorting (n=68): time 0.003916/2.224, allocations: 2.055 MB / 1.067 GB, free: 145.3 MB / 0.5886 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.532e-05/2.224, allocations: 85.08 kB / 1.067 GB, free: 145.2 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.0005545/2.225, allocations: 428.3 kB / 1.067 GB, free: 145 MB / 0.5886 GB Notification: Performance of collectPreVariables (initialization): time 8.355e-05/2.225, allocations: 36.98 kB / 1.067 GB, free: 145 MB / 0.5886 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002744/2.225, allocations: 377.4 kB / 1.068 GB, free: 144.6 MB / 0.5886 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001513/2.225, allocations: 236.3 kB / 1.068 GB, free: 144.4 MB / 0.5886 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.162e-05/2.225, allocations: 11.94 kB / 1.068 GB, free: 144.4 MB / 0.5886 GB Notification: Performance of setup shared object (initialization): time 0.0001227/2.225, allocations: 377.4 kB / 1.068 GB, free: 144.1 MB / 0.5886 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004157/2.226, allocations: 230.3 kB / 1.069 GB, free: 143.9 MB / 0.5886 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005011/2.226, allocations: 344.3 kB / 1.069 GB, free: 143.7 MB / 0.5886 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004914/2.227, allocations: 286.8 kB / 1.069 GB, free: 143.5 MB / 0.5886 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.525e-06/2.227, allocations: 0 / 1.069 GB, free: 143.5 MB / 0.5886 GB Notification: Performance of matching and sorting (n=86) (initialization): time 0.001505/2.228, allocations: 0.8291 MB / 1.07 GB, free: 143.1 MB / 0.5886 GB Notification: Performance of prepare postOptimizeDAE: time 5.299e-05/2.228, allocations: 37.31 kB / 1.07 GB, free: 143.1 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.009e-05/2.228, allocations: 0 / 1.07 GB, free: 143.1 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004095/2.229, allocations: 104.3 kB / 1.07 GB, free: 143 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005271/2.229, allocations: 127.9 kB / 1.07 GB, free: 143 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002105/2.231, allocations: 1.933 MB / 1.072 GB, free: 141.2 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005844/2.232, allocations: 44.03 kB / 1.072 GB, free: 141.2 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.709e-05/2.232, allocations: 31.67 kB / 1.072 GB, free: 141.2 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.0004553/2.233, allocations: 215.6 kB / 1.072 GB, free: 141 MB / 0.5886 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001245/2.233, allocations: 69.42 kB / 1.072 GB, free: 141 MB / 0.5886 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00159/2.234, allocations: 0.8213 MB / 1.073 GB, free: 140.5 MB / 0.5886 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.193e-06/2.234, allocations: 11.31 kB / 1.073 GB, free: 140.5 MB / 0.5886 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.741e-06/2.234, allocations: 7.969 kB / 1.073 GB, free: 140.5 MB / 0.5886 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.086e-05/2.234, allocations: 3.984 kB / 1.073 GB, free: 140.5 MB / 0.5886 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00263/2.237, allocations: 1.624 MB / 1.075 GB, free: 139.4 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.039e-06/2.237, allocations: 0 / 1.075 GB, free: 139.4 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004777/2.237, allocations: 114 kB / 1.075 GB, free: 139.4 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003299/2.238, allocations: 102.3 kB / 1.075 GB, free: 139.3 MB / 0.5886 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.665e-05/2.238, allocations: 23.52 kB / 1.075 GB, free: 139.3 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00187/2.24, allocations: 1.951 MB / 1.077 GB, free: 137.5 MB / 0.5886 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.557e-06/2.24, allocations: 3.953 kB / 1.077 GB, free: 137.5 MB / 0.5886 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001899/2.242, allocations: 1.138 MB / 1.078 GB, free: 136.9 MB / 0.5886 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003783/2.242, allocations: 205 kB / 1.078 GB, free: 136.7 MB / 0.5886 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.35e-05/2.242, allocations: 18.12 kB / 1.078 GB, free: 136.7 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000492/2.243, allocations: 61.36 kB / 1.078 GB, free: 136.6 MB / 0.5886 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001307/2.243, allocations: 53.72 kB / 1.078 GB, free: 136.6 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.888e-05/2.243, allocations: 29.8 kB / 1.078 GB, free: 136.6 MB / 0.5886 GB Notification: Performance of sorting global known variables: time 0.0004615/2.243, allocations: 336.8 kB / 1.079 GB, free: 136.4 MB / 0.5886 GB Notification: Performance of sort global known variables: time 1.71e-07/2.243, allocations: 0 / 1.079 GB, free: 136.4 MB / 0.5886 GB Notification: Performance of remove unused functions: time 0.001327/2.245, allocations: 306.5 kB / 1.079 GB, free: 136.3 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.001117/2.246, allocations: 0.6129 MB / 1.08 GB, free: 136 MB / 0.5886 GB Notification: Performance of simCode: created initialization part: time 0.001681/2.247, allocations: 0.8446 MB / 1.081 GB, free: 135.5 MB / 0.5886 GB Notification: Performance of simCode: created event and clocks part: time 3.386e-06/2.248, allocations: 0 / 1.081 GB, free: 135.5 MB / 0.5886 GB Notification: Performance of simCode: created simulation system equations: time 0.0008529/2.248, allocations: 0.5139 MB / 1.081 GB, free: 135.1 MB / 0.5886 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001011/2.249, allocations: 172.8 kB / 1.081 GB, free: 135.1 MB / 0.5886 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003179/2.253, allocations: 2.061 MB / 1.083 GB, free: 133.6 MB / 0.5886 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005806/2.253, allocations: 0.9732 MB / 1.084 GB, free: 132.8 MB / 0.5886 GB Notification: Performance of simCode: alias equations: time 0.0005997/2.254, allocations: 126.8 kB / 1.084 GB, free: 132.7 MB / 0.5886 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001843/2.254, allocations: 62.28 kB / 1.084 GB, free: 132.7 MB / 0.5886 GB Notification: Performance of SimCode: time 9.11e-07/2.254, allocations: 0 / 1.084 GB, free: 132.7 MB / 0.5886 GB Notification: Performance of Templates: time 0.02544/2.279, allocations: 15.02 MB / 1.099 GB, free: 119.4 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)