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: "" <> buildModelFMU(ThermofluidStream.Examples.WaterHammer,fileNamePrefix="ThermofluidStream_OM_adaptions_ThermofluidStream_Examples_WaterHammer",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermofluidStream.Examples.WaterHammer,fileNamePrefix="ThermofluidStream_OM_adaptions_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 3.2.3+maint.om/package.mo): time 0.002188/0.002188, allocations: 184.3 kB / 7.459 MB, free: 2.512 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 0.961/0.961, allocations: 205.2 MB / 213.1 MB, free: 13.84 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.0007803/0.0007803, allocations: 98.19 kB / 261.1 MB, free: 13.54 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.4911/0.4911, allocations: 90.35 MB / 399.4 MB, free: 12.35 MB / 298.7 MB Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Dassl" Notification: Performance of FrontEnd - loaded program: time 0.1084/0.5995, allocations: 72.38 MB / 471.7 MB, free: 3.797 MB / 362.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2244/0.8239, allocations: 66.25 MB / 0.5254 GB, free: 28.82 MB / 394.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4395/1.263, allocations: 355.9 MB / 0.873 GB, free: 12.18 MB / 0.5573 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002453/1.264, allocations: 71.47 kB / 0.873 GB, free: 12.14 MB / 0.5573 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.4649/1.729, allocations: 172.2 MB / 1.041 GB, free: 96.79 MB / 0.573 GB Notification: Performance of prepare preOptimizeDAE: time 3.574e-05/1.729, allocations: 16 kB / 1.041 GB, free: 96.78 MB / 0.573 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002249/1.729, allocations: 102.8 kB / 1.041 GB, free: 96.68 MB / 0.573 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006661/1.73, allocations: 0.5276 MB / 1.042 GB, free: 96.11 MB / 0.573 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.733e-05/1.73, allocations: 24 kB / 1.042 GB, free: 96.08 MB / 0.573 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.463e-05/1.73, allocations: 51.91 kB / 1.042 GB, free: 96.03 MB / 0.573 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0007673/1.731, allocations: 0.5546 MB / 1.042 GB, free: 95.48 MB / 0.573 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000859/1.731, allocations: 0.6581 MB / 1.043 GB, free: 94.8 MB / 0.573 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.629e-05/1.731, allocations: 0 / 1.043 GB, free: 94.8 MB / 0.573 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.362e-05/1.731, allocations: 4 kB / 1.043 GB, free: 94.8 MB / 0.573 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.414e-05/1.731, allocations: 16 kB / 1.043 GB, free: 94.78 MB / 0.573 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003118/1.735, allocations: 3.627 MB / 1.047 GB, free: 90.77 MB / 0.573 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003983/1.735, allocations: 299.9 kB / 1.047 GB, free: 90.47 MB / 0.573 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002897/1.735, allocations: 258.7 kB / 1.047 GB, free: 90.22 MB / 0.573 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001716/1.737, allocations: 2.124 MB / 1.049 GB, free: 87.81 MB / 0.573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003806/1.737, allocations: 338.1 kB / 1.05 GB, free: 87.46 MB / 0.573 GB Notification: Performance of pre-optimization done (n=66): time 1.793e-06/1.737, allocations: 0 / 1.05 GB, free: 87.46 MB / 0.573 GB Notification: Performance of matching and sorting (n=68): time 0.002895/1.74, allocations: 1.386 MB / 1.051 GB, free: 86.02 MB / 0.573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.867e-05/1.74, allocations: 85.77 kB / 1.051 GB, free: 85.92 MB / 0.573 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.0003427/1.741, allocations: 382.1 kB / 1.051 GB, free: 85.54 MB / 0.573 GB Notification: Performance of collectPreVariables (initialization): time 4.086e-05/1.741, allocations: 29.7 kB / 1.051 GB, free: 85.5 MB / 0.573 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001117/1.741, allocations: 295.8 kB / 1.052 GB, free: 85.21 MB / 0.573 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001134/1.741, allocations: 224.6 kB / 1.052 GB, free: 84.98 MB / 0.573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.703e-05/1.741, allocations: 0 / 1.052 GB, free: 84.98 MB / 0.573 GB Notification: Performance of setup shared object (initialization): time 6.981e-05/1.741, allocations: 378.8 kB / 1.052 GB, free: 84.61 MB / 0.573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002625/1.741, allocations: 193.5 kB / 1.052 GB, free: 84.42 MB / 0.573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000287/1.742, allocations: 283.4 kB / 1.053 GB, free: 84.11 MB / 0.573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005661/1.742, allocations: 247 kB / 1.053 GB, free: 83.87 MB / 0.573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.573e-06/1.742, allocations: 0 / 1.053 GB, free: 83.87 MB / 0.573 GB Notification: Performance of matching and sorting (n=86) (initialization): time 0.001229/1.744, allocations: 0.6912 MB / 1.054 GB, free: 83.16 MB / 0.573 GB Notification: Performance of prepare postOptimizeDAE: time 1.132e-05/1.744, allocations: 8 kB / 1.054 GB, free: 83.16 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.764e-06/1.744, allocations: 0 / 1.054 GB, free: 83.16 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003105/1.744, allocations: 108.8 kB / 1.054 GB, free: 83.05 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004773/1.744, allocations: 131.9 kB / 1.054 GB, free: 82.92 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001392/1.746, allocations: 1.772 MB / 1.056 GB, free: 81.03 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003994/1.746, allocations: 43.92 kB / 1.056 GB, free: 80.99 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.327e-05/1.746, allocations: 31.98 kB / 1.056 GB, free: 80.96 MB / 0.573 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.0001047/1.746, allocations: 114.4 kB / 1.056 GB, free: 80.84 MB / 0.573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.225e-05/1.746, allocations: 67.16 kB / 1.056 GB, free: 80.77 MB / 0.573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001473/1.748, allocations: 0.7489 MB / 1.057 GB, free: 80.01 MB / 0.573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.523e-06/1.748, allocations: 8 kB / 1.057 GB, free: 80 MB / 0.573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.538e-06/1.748, allocations: 3.906 kB / 1.057 GB, free: 80 MB / 0.573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.464e-06/1.748, allocations: 4 kB / 1.057 GB, free: 80 MB / 0.573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002008/1.75, allocations: 1.466 MB / 1.058 GB, free: 78.48 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.316e-06/1.75, allocations: 3.906 kB / 1.058 GB, free: 78.48 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004824/1.75, allocations: 123.9 kB / 1.058 GB, free: 78.36 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002718/1.751, allocations: 88.78 kB / 1.058 GB, free: 78.27 MB / 0.573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.82e-05/1.751, allocations: 19.97 kB / 1.058 GB, free: 78.25 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001346/1.752, allocations: 1.775 MB / 1.06 GB, free: 76.35 MB / 0.573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.789e-06/1.752, allocations: 4.094 kB / 1.06 GB, free: 76.35 MB / 0.573 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001481/1.754, allocations: 1.032 MB / 1.061 GB, free: 75.29 MB / 0.573 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.001916/1.756, allocations: 1.74 MB / 1.063 GB, free: 73.52 MB / 0.573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002107/1.756, allocations: 204.3 kB / 1.063 GB, free: 73.3 MB / 0.573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.478e-05/1.756, allocations: 15.98 kB / 1.063 GB, free: 73.28 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004628/1.756, allocations: 55.8 kB / 1.063 GB, free: 73.23 MB / 0.573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.335e-05/1.756, allocations: 44.58 kB / 1.063 GB, free: 73.18 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.814e-05/1.757, allocations: 23.98 kB / 1.063 GB, free: 73.16 MB / 0.573 GB Notification: Performance of sort global known variables: time 0.0002391/1.757, allocations: 290.9 kB / 1.063 GB, free: 72.88 MB / 0.573 GB Notification: Performance of remove unused functions: time 0.001496/1.758, allocations: 395.8 kB / 1.064 GB, free: 72.49 MB / 0.573 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.0007854/1.759, allocations: 0.6234 MB / 1.064 GB, free: 71.87 MB / 0.573 GB Notification: Performance of simCode: created initialization part: time 0.0009897/1.76, allocations: 0.7188 MB / 1.065 GB, free: 71.12 MB / 0.573 GB Notification: Performance of simCode: created event and clocks part: time 2.855e-06/1.76, allocations: 0 / 1.065 GB, free: 71.12 MB / 0.573 GB Notification: Performance of simCode: created simulation system equations: time 0.0006041/1.761, allocations: 458.1 kB / 1.065 GB, free: 70.66 MB / 0.573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008525/1.762, allocations: 164.5 kB / 1.066 GB, free: 70.5 MB / 0.573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00207/1.764, allocations: 1.18 MB / 1.067 GB, free: 69.3 MB / 0.573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005127/1.764, allocations: 1.059 MB / 1.068 GB, free: 68.21 MB / 0.573 GB Notification: Performance of SimCode: time 2.71e-07/1.764, allocations: 0 / 1.068 GB, free: 68.21 MB / 0.573 GB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ThermofluidStream_OM_adaptions_ThermofluidStream.Examples.WaterHammer_res.mat --tempDir=temp_ThermofluidStream_OM_adaptions_ThermofluidStream_Examples_WaterHammer_fmu --startTime=0 --stopTime=25 --timeout=1200 --tolerance=1e-06 ThermofluidStream_OM_adaptions_ThermofluidStream_Examples_WaterHammer.fmu > ThermofluidStream_OM_adaptions_ThermofluidStream.Examples.WaterHammer.pipe 2>&1)