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.3.1-OM_adaptions/package.mo", uses=false) Using package ThermofluidStream with version 0.3.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 0.3.1-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.001002/0.001002, allocations: 176.1 kB / 16.12 MB, free: 5.668 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.388/1.388, allocations: 205.4 MB / 222.3 MB, free: 9.035 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.0008616/0.0008616, allocations: 84.88 kB / 270.6 MB, free: 8.27 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 0.3.1-OM_adaptions/package.mo): time 0.6907/0.6907, allocations: 89.62 MB / 408.5 MB, free: 4.473 MB / 298.7 MB Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Dassl" Notification: Performance of FrontEnd - loaded program: time 0.0004174/0.0004175, allocations: 8.219 kB / 485.2 MB, free: 7.637 MB / 378.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.301/0.3014, allocations: 66.01 MB / 0.5383 GB, free: 34.51 MB / 394.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.6427/0.9442, allocations: 356.6 MB / 0.8866 GB, free: 4.414 MB / 0.573 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002579/0.9445, allocations: 86.7 kB / 0.8867 GB, free: 4.375 MB / 0.573 GB Notification: Performance of FrontEnd - DAE generated: time 0.5738/1.518, allocations: 170.5 MB / 1.053 GB, free: 103 MB / 0.5886 GB Notification: Performance of FrontEnd: time 2.705e-06/1.518, allocations: 3.938 kB / 1.053 GB, free: 103 MB / 0.5886 GB Notification: Performance of Transformations before backend: time 8.172e-05/1.518, allocations: 23.98 kB / 1.053 GB, free: 103 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.002566/1.521, allocations: 1.235 MB / 1.054 GB, free: 101.7 MB / 0.5886 GB Notification: Performance of prepare preOptimizeDAE: time 3.439e-05/1.521, allocations: 16.03 kB / 1.054 GB, free: 101.7 MB / 0.5886 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000396/1.521, allocations: 111.7 kB / 1.054 GB, free: 101.6 MB / 0.5886 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008743/1.522, allocations: 0.548 MB / 1.055 GB, free: 101 MB / 0.5886 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.34e-05/1.522, allocations: 59.31 kB / 1.055 GB, free: 100.9 MB / 0.5886 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001393/1.523, allocations: 75.98 kB / 1.055 GB, free: 100.9 MB / 0.5886 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001252/1.524, allocations: 0.7985 MB / 1.056 GB, free: 100 MB / 0.5886 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.427e-05/1.524, allocations: 7.875 kB / 1.056 GB, free: 100 MB / 0.5886 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.714e-05/1.524, allocations: 32 kB / 1.056 GB, free: 100 MB / 0.5886 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.512e-05/1.524, allocations: 20 kB / 1.056 GB, free: 99.99 MB / 0.5886 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001067/1.525, allocations: 0.6364 MB / 1.057 GB, free: 99.35 MB / 0.5886 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003763/1.529, allocations: 3.725 MB / 1.06 GB, free: 95.24 MB / 0.5886 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009735/1.53, allocations: 0.6397 MB / 1.061 GB, free: 94.59 MB / 0.5886 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004085/1.53, allocations: 298.4 kB / 1.061 GB, free: 94.3 MB / 0.5886 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001925/1.532, allocations: 2.119 MB / 1.063 GB, free: 91.89 MB / 0.5886 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005552/1.533, allocations: 389.8 kB / 1.064 GB, free: 91.49 MB / 0.5886 GB Notification: Performance of pre-optimization done (n=66): time 3.516e-06/1.533, allocations: 0 / 1.064 GB, free: 91.49 MB / 0.5886 GB Notification: Performance of matching and sorting (n=68): time 0.003441/1.536, allocations: 1.991 MB / 1.066 GB, free: 89.41 MB / 0.5886 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.537e-05/1.536, allocations: 85.67 kB / 1.066 GB, free: 89.3 MB / 0.5886 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 0.3.1-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.3.1-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.3.1-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.0005587/1.537, allocations: 487 kB / 1.066 GB, free: 88.82 MB / 0.5886 GB Notification: Performance of collectPreVariables (initialization): time 5.103e-05/1.537, allocations: 41.64 kB / 1.066 GB, free: 88.77 MB / 0.5886 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002097/1.537, allocations: 375.9 kB / 1.066 GB, free: 88.4 MB / 0.5886 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001267/1.537, allocations: 228.7 kB / 1.067 GB, free: 88.17 MB / 0.5886 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.917e-05/1.537, allocations: 16 kB / 1.067 GB, free: 88.16 MB / 0.5886 GB Notification: Performance of setup shared object (initialization): time 9.008e-05/1.537, allocations: 378.7 kB / 1.067 GB, free: 87.78 MB / 0.5886 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003965/1.538, allocations: 237.9 kB / 1.067 GB, free: 87.55 MB / 0.5886 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004194/1.538, allocations: 331.1 kB / 1.068 GB, free: 87.2 MB / 0.5886 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008183/1.539, allocations: 0.5918 MB / 1.068 GB, free: 86.57 MB / 0.5886 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.496e-06/1.539, allocations: 0 / 1.068 GB, free: 86.57 MB / 0.5886 GB Notification: Performance of matching and sorting (n=86) (initialization): time 0.001306/1.54, allocations: 0.8268 MB / 1.069 GB, free: 85.73 MB / 0.5886 GB Notification: Performance of prepare postOptimizeDAE: time 3.467e-05/1.54, allocations: 33.7 kB / 1.069 GB, free: 85.69 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.047e-06/1.54, allocations: 0 / 1.069 GB, free: 85.69 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003227/1.541, allocations: 104.7 kB / 1.069 GB, free: 85.58 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004706/1.541, allocations: 139.9 kB / 1.069 GB, free: 85.45 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001724/1.543, allocations: 1.886 MB / 1.071 GB, free: 83.42 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005206/1.543, allocations: 59.98 kB / 1.071 GB, free: 83.36 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.398e-05/1.544, allocations: 32.08 kB / 1.071 GB, free: 83.33 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.0003482/1.544, allocations: 209.6 kB / 1.071 GB, free: 83.12 MB / 0.5886 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.706e-05/1.544, allocations: 75.14 kB / 1.071 GB, free: 83.04 MB / 0.5886 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001446/1.545, allocations: 0.811 MB / 1.072 GB, free: 82.22 MB / 0.5886 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.442e-06/1.545, allocations: 8 kB / 1.072 GB, free: 82.21 MB / 0.5886 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.97e-06/1.545, allocations: 7.938 kB / 1.072 GB, free: 82.21 MB / 0.5886 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.103e-06/1.546, allocations: 0 / 1.072 GB, free: 82.21 MB / 0.5886 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002245/1.548, allocations: 1.608 MB / 1.074 GB, free: 80.54 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.719e-06/1.548, allocations: 0 / 1.074 GB, free: 80.54 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004339/1.548, allocations: 123.8 kB / 1.074 GB, free: 80.41 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.000286/1.549, allocations: 100.7 kB / 1.074 GB, free: 80.31 MB / 0.5886 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.913e-05/1.549, allocations: 27.97 kB / 1.074 GB, free: 80.29 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001484/1.55, allocations: 1.914 MB / 1.076 GB, free: 78.24 MB / 0.5886 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.574e-06/1.55, allocations: 4.031 kB / 1.076 GB, free: 78.23 MB / 0.5886 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001559/1.552, allocations: 1.121 MB / 1.077 GB, free: 77.09 MB / 0.5886 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002671/1.552, allocations: 192.3 kB / 1.077 GB, free: 76.88 MB / 0.5886 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.646e-05/1.552, allocations: 27.94 kB / 1.077 GB, free: 76.86 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004118/1.552, allocations: 55.86 kB / 1.077 GB, free: 76.8 MB / 0.5886 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001214/1.553, allocations: 60.47 kB / 1.077 GB, free: 76.74 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.307e-05/1.553, allocations: 28.11 kB / 1.077 GB, free: 76.71 MB / 0.5886 GB Notification: Performance of sorting global known variables: time 0.0003257/1.553, allocations: 326.9 kB / 1.078 GB, free: 76.39 MB / 0.5886 GB Notification: Performance of sort global known variables: time 5.21e-07/1.553, allocations: 0 / 1.078 GB, free: 76.39 MB / 0.5886 GB Notification: Performance of remove unused functions: time 0.0008839/1.554, allocations: 319.8 kB / 1.078 GB, free: 76.08 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.0006869/1.555, allocations: 0.6 MB / 1.079 GB, free: 75.48 MB / 0.5886 GB Notification: Performance of simCode: created initialization part: time 0.001264/1.556, allocations: 0.8512 MB / 1.079 GB, free: 74.6 MB / 0.5886 GB Notification: Performance of simCode: created event and clocks part: time 3.216e-06/1.556, allocations: 4 kB / 1.079 GB, free: 74.59 MB / 0.5886 GB Notification: Performance of simCode: created simulation system equations: time 0.0006671/1.557, allocations: 0.5153 MB / 1.08 GB, free: 74.06 MB / 0.5886 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009268/1.557, allocations: 188.4 kB / 1.08 GB, free: 73.88 MB / 0.5886 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002321/1.56, allocations: 2.066 MB / 1.082 GB, free: 71.78 MB / 0.5886 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000317/1.56, allocations: 0.9578 MB / 1.083 GB, free: 70.79 MB / 0.5886 GB Notification: Performance of simCode: alias equations: time 0.0004465/1.561, allocations: 116.6 kB / 1.083 GB, free: 70.68 MB / 0.5886 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001315/1.561, allocations: 67.36 kB / 1.083 GB, free: 70.61 MB / 0.5886 GB Notification: Performance of SimCode: time 3.1e-07/1.561, allocations: 0 / 1.083 GB, free: 70.61 MB / 0.5886 GB Notification: Performance of Templates: time 0.01995/1.581, allocations: 15.21 MB / 1.098 GB, free: 55.5 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)