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: "" <> buildModelFMU(ThermofluidStream.Examples.WaterHammer,fileNamePrefix="ThermofluidStream_ThermofluidStream_Examples_WaterHammer",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermofluidStream.Examples.WaterHammer,fileNamePrefix="ThermofluidStream_ThermofluidStream_Examples_WaterHammer",fmuType="me",version="2.0",platforms={"static"}) [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.007682/0.007682, allocations: 181.4 kB / 7.459 MB, free: 2.496 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.825/2.825, allocations: 221.4 MB / 229.3 MB, free: 3.387 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.001568/0.001568, allocations: 101.3 kB / 280.1 MB, free: 1.316 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ObsoleteModelica4 4.0.0+maint.om/package.mo): time 0.02681/0.02681, allocations: 1.574 MB / 332.5 MB, free: 12.95 MB / 282.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.0.0-main/package.mo): time 1.191/1.191, allocations: 90.04 MB / 473.6 MB, free: 7.254 MB / 314.7 MB Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Dassl" Notification: Performance of FrontEnd - loaded program: time 0.5538/1.745, allocations: 76.2 MB / 0.537 GB, free: 14.21 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2841/2.029, allocations: 69.36 MB / 0.6047 GB, free: 8.738 MB / 394.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 2.045/4.075, allocations: 356 MB / 0.9523 GB, free: 73.94 MB / 0.573 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002923/4.075, allocations: 75.58 kB / 0.9524 GB, free: 73.91 MB / 0.573 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 1.257/5.332, allocations: 175.9 MB / 1.124 GB, free: 167.9 MB / 0.6042 GB Notification: Performance of prepare preOptimizeDAE: time 0.0001348/5.333, allocations: 9.828 kB / 1.124 GB, free: 167.9 MB / 0.6042 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001476/5.334, allocations: 106 kB / 1.124 GB, free: 167.9 MB / 0.6042 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002361/5.337, allocations: 0.5382 MB / 1.125 GB, free: 167.5 MB / 0.6042 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001032/5.337, allocations: 27.53 kB / 1.125 GB, free: 167.5 MB / 0.6042 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002323/5.337, allocations: 51.28 kB / 1.125 GB, free: 167.5 MB / 0.6042 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002306/5.339, allocations: 0.5513 MB / 1.125 GB, free: 167.3 MB / 0.6042 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002323/5.342, allocations: 0.6566 MB / 1.126 GB, free: 167 MB / 0.6042 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.131e-05/5.342, allocations: 3.938 kB / 1.126 GB, free: 167 MB / 0.6042 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000115/5.342, allocations: 1.156 kB / 1.126 GB, free: 167 MB / 0.6042 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.281e-05/5.342, allocations: 18.92 kB / 1.126 GB, free: 167 MB / 0.6042 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009952/5.352, allocations: 3.63 MB / 1.13 GB, free: 164.2 MB / 0.6042 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008794/5.353, allocations: 302.8 kB / 1.13 GB, free: 164 MB / 0.6042 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007062/5.354, allocations: 254.7 kB / 1.13 GB, free: 163.9 MB / 0.6042 GB Notification: Performance of preOpt evalFunc (simulation): time 0.005245/5.359, allocations: 2.117 MB / 1.132 GB, free: 162 MB / 0.6042 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001068/5.36, allocations: 340.5 kB / 1.133 GB, free: 161.8 MB / 0.6042 GB Notification: Performance of pre-optimization done (n=66): time 5.611e-06/5.36, allocations: 0 / 1.133 GB, free: 161.8 MB / 0.6042 GB Notification: Performance of matching and sorting (n=68): time 0.008016/5.368, allocations: 1.387 MB / 1.134 GB, free: 161.1 MB / 0.6042 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.18e-05/5.368, allocations: 88.52 kB / 1.134 GB, free: 161 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.0011/5.369, allocations: 374.8 kB / 1.134 GB, free: 160.8 MB / 0.6042 GB Notification: Performance of collectPreVariables (initialization): time 0.0001266/5.369, allocations: 27.8 kB / 1.134 GB, free: 160.8 MB / 0.6042 GB Notification: Performance of collectInitialEqns (initialization): time 0.000401/5.37, allocations: 297.9 kB / 1.135 GB, free: 160.6 MB / 0.6042 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003313/5.37, allocations: 225.2 kB / 1.135 GB, free: 160.4 MB / 0.6042 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.86e-05/5.37, allocations: 1.219 kB / 1.135 GB, free: 160.4 MB / 0.6042 GB Notification: Performance of setup shared object (initialization): time 0.0002872/5.371, allocations: 378.1 kB / 1.135 GB, free: 160.1 MB / 0.6042 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006321/5.371, allocations: 199.1 kB / 1.135 GB, free: 160 MB / 0.6042 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007699/5.372, allocations: 286 kB / 1.136 GB, free: 159.8 MB / 0.6042 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001598/5.374, allocations: 239.7 kB / 1.136 GB, free: 159.7 MB / 0.6042 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.964e-06/5.374, allocations: 0 / 1.136 GB, free: 159.7 MB / 0.6042 GB Notification: Performance of matching and sorting (n=86) (initialization): time 0.003661/5.377, allocations: 0.6928 MB / 1.137 GB, free: 159.4 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 3.264e-05/5.377, allocations: 8.062 kB / 1.137 GB, free: 159.4 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.043e-05/5.377, allocations: 2.625 kB / 1.137 GB, free: 159.4 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007973/5.378, allocations: 105.4 kB / 1.137 GB, free: 159.4 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001284/5.38, allocations: 133.8 kB / 1.137 GB, free: 159.4 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003889/5.383, allocations: 1.774 MB / 1.139 GB, free: 157.9 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001492/5.385, allocations: 40.92 kB / 1.139 GB, free: 157.9 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001745/5.385, allocations: 31.47 kB / 1.139 GB, free: 157.9 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 () * 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.0003197/5.386, allocations: 121.4 kB / 1.139 GB, free: 157.8 MB / 0.6042 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000233/5.386, allocations: 66.09 kB / 1.139 GB, free: 157.8 MB / 0.6042 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00386/5.39, allocations: 0.7514 MB / 1.14 GB, free: 157.4 MB / 0.6042 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.37e-05/5.39, allocations: 6.531 kB / 1.14 GB, free: 157.4 MB / 0.6042 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.7e-05/5.39, allocations: 2.125 kB / 1.14 GB, free: 157.4 MB / 0.6042 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.723e-05/5.39, allocations: 10.11 kB / 1.14 GB, free: 157.4 MB / 0.6042 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00556/5.395, allocations: 1.461 MB / 1.141 GB, free: 156.4 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.628e-06/5.395, allocations: 1.656 kB / 1.141 GB, free: 156.4 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009108/5.396, allocations: 118.2 kB / 1.141 GB, free: 156.4 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006364/5.397, allocations: 100 kB / 1.141 GB, free: 156.3 MB / 0.6042 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.349e-05/5.397, allocations: 23.97 kB / 1.141 GB, free: 156.3 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00293/5.4, allocations: 1.776 MB / 1.143 GB, free: 154.7 MB / 0.6042 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.569e-06/5.4, allocations: 3.094 kB / 1.143 GB, free: 154.7 MB / 0.6042 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.003948/5.404, allocations: 1.032 MB / 1.144 GB, free: 154.1 MB / 0.6042 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.005948/5.41, allocations: 1.733 MB / 1.146 GB, free: 153 MB / 0.6042 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0007572/5.411, allocations: 203 kB / 1.146 GB, free: 152.8 MB / 0.6042 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000208/5.411, allocations: 15.05 kB / 1.146 GB, free: 152.8 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009816/5.412, allocations: 53.23 kB / 1.146 GB, free: 152.8 MB / 0.6042 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002128/5.412, allocations: 47.3 kB / 1.146 GB, free: 152.8 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001231/5.412, allocations: 28.25 kB / 1.146 GB, free: 152.7 MB / 0.6042 GB Notification: Performance of sort global known variables: time 0.0006953/5.413, allocations: 283.3 kB / 1.146 GB, free: 152.6 MB / 0.6042 GB Notification: Performance of remove unused functions: time 0.004233/5.417, allocations: 399 kB / 1.147 GB, free: 152.4 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) * Top-level inputs: 0 Notification: Strong component statistics for simulation (61): * Single equations (assignments): 57 * 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.001901/5.419, allocations: 0.621 MB / 1.147 GB, free: 152.2 MB / 0.6042 GB Notification: Performance of simCode: created initialization part: time 0.002455/5.422, allocations: 0.7209 MB / 1.148 GB, free: 151.8 MB / 0.6042 GB Notification: Performance of simCode: created event and clocks part: time 7.665e-06/5.422, allocations: 1.188 kB / 1.148 GB, free: 151.8 MB / 0.6042 GB Notification: Performance of simCode: created simulation system equations: time 0.001453/5.423, allocations: 461.5 kB / 1.148 GB, free: 151.5 MB / 0.6042 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001972/5.425, allocations: 147.8 kB / 1.149 GB, free: 151.4 MB / 0.6042 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005181/5.43, allocations: 1.179 MB / 1.15 GB, free: 150.8 MB / 0.6042 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001408/5.432, allocations: 1.058 MB / 1.151 GB, free: 149.9 MB / 0.6042 GB Notification: Performance of SimCode: time 1.643e-06/5.432, allocations: 0 / 1.151 GB, free: 149.9 MB / 0.6042 GB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ThermofluidStream_ThermofluidStream.Examples.WaterHammer_res.mat --tempDir=temp_ThermofluidStream_ThermofluidStream_Examples_WaterHammer_fmu --startTime=0 --stopTime=25 --timeout=1200 --tolerance=1e-06 ThermofluidStream_ThermofluidStream_Examples_WaterHammer.fmu > ThermofluidStream_ThermofluidStream.Examples.WaterHammer.pipe 2>&1)