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") [: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.001647/0.001647, allocations: 180.8 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.9457/0.9457, allocations: 205.2 MB / 213.1 MB, free: 13.85 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.0007485/0.0007485, allocations: 97.11 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.4931/0.4931, allocations: 90.35 MB / 399.4 MB, free: 12.29 MB / 298.7 MB Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Dassl" Notification: Performance of FrontEnd - loaded program: time 6.512e-06/6.633e-06, allocations: 4 kB / 471.7 MB, free: 3.816 MB / 362.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2199/0.2199, allocations: 66.25 MB / 0.5253 GB, free: 28.86 MB / 394.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4185/0.6384, allocations: 355.9 MB / 0.8729 GB, free: 12.32 MB / 0.5573 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001684/0.6386, allocations: 73.09 kB / 0.8729 GB, free: 12.29 MB / 0.5573 GB Notification: Performance of FrontEnd: time 0.428/1.067, allocations: 171 MB / 1.04 GB, free: 98.2 MB / 0.573 GB Notification: Performance of Transformations before backend: time 4.662e-05/1.067, allocations: 31.98 kB / 1.04 GB, free: 98.17 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 0.001686/1.068, allocations: 1.176 MB / 1.041 GB, free: 96.94 MB / 0.573 GB Notification: Performance of prepare preOptimizeDAE: time 3.089e-05/1.068, allocations: 8.031 kB / 1.041 GB, free: 96.93 MB / 0.573 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001961/1.069, allocations: 106.8 kB / 1.041 GB, free: 96.83 MB / 0.573 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006438/1.069, allocations: 0.5316 MB / 1.042 GB, free: 96.25 MB / 0.573 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.916e-05/1.069, allocations: 24 kB / 1.042 GB, free: 96.23 MB / 0.573 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.073e-05/1.069, allocations: 47.91 kB / 1.042 GB, free: 96.18 MB / 0.573 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.00076/1.07, allocations: 0.5584 MB / 1.042 GB, free: 95.62 MB / 0.573 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008319/1.071, allocations: 0.6542 MB / 1.043 GB, free: 94.95 MB / 0.573 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.764e-05/1.071, allocations: 0 / 1.043 GB, free: 94.95 MB / 0.573 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.275e-05/1.071, allocations: 7.984 kB / 1.043 GB, free: 94.95 MB / 0.573 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.347e-05/1.071, allocations: 16 kB / 1.043 GB, free: 94.93 MB / 0.573 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003285/1.074, allocations: 3.631 MB / 1.047 GB, free: 90.91 MB / 0.573 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004279/1.075, allocations: 295.9 kB / 1.047 GB, free: 90.62 MB / 0.573 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003025/1.075, allocations: 250.8 kB / 1.047 GB, free: 90.38 MB / 0.573 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001888/1.077, allocations: 2.12 MB / 1.049 GB, free: 87.97 MB / 0.573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003835/1.077, allocations: 346.1 kB / 1.049 GB, free: 87.61 MB / 0.573 GB Notification: Performance of pre-optimization done (n=66): time 2.044e-06/1.077, allocations: 0 / 1.049 GB, free: 87.61 MB / 0.573 GB Notification: Performance of matching and sorting (n=68): time 0.00292/1.08, allocations: 1.386 MB / 1.051 GB, free: 86.17 MB / 0.573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.698e-05/1.08, allocations: 85.77 kB / 1.051 GB, free: 86.07 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.0003478/1.081, allocations: 385.2 kB / 1.051 GB, free: 85.69 MB / 0.573 GB Notification: Performance of collectPreVariables (initialization): time 4.014e-05/1.081, allocations: 25.7 kB / 1.051 GB, free: 85.66 MB / 0.573 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001131/1.081, allocations: 295.8 kB / 1.052 GB, free: 85.36 MB / 0.573 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001074/1.081, allocations: 220.7 kB / 1.052 GB, free: 85.14 MB / 0.573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.799e-05/1.081, allocations: 0 / 1.052 GB, free: 85.14 MB / 0.573 GB Notification: Performance of setup shared object (initialization): time 7.122e-05/1.081, allocations: 378.8 kB / 1.052 GB, free: 84.77 MB / 0.573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002601/1.081, allocations: 197.5 kB / 1.052 GB, free: 84.57 MB / 0.573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000284/1.082, allocations: 295.3 kB / 1.053 GB, free: 84.25 MB / 0.573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005655/1.082, allocations: 239 kB / 1.053 GB, free: 84.02 MB / 0.573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.774e-06/1.082, allocations: 0 / 1.053 GB, free: 84.02 MB / 0.573 GB Notification: Performance of matching and sorting (n=86) (initialization): time 0.001214/1.084, allocations: 0.7029 MB / 1.054 GB, free: 83.3 MB / 0.573 GB Notification: Performance of prepare postOptimizeDAE: time 1.174e-05/1.084, allocations: 4 kB / 1.054 GB, free: 83.3 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.645e-06/1.084, allocations: 4 kB / 1.054 GB, free: 83.3 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003099/1.084, allocations: 92.8 kB / 1.054 GB, free: 83.2 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000473/1.084, allocations: 135.9 kB / 1.054 GB, free: 83.07 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001424/1.086, allocations: 1.768 MB / 1.055 GB, free: 81.19 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000404/1.086, allocations: 43.88 kB / 1.055 GB, free: 81.14 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.062e-05/1.086, allocations: 27.98 kB / 1.056 GB, free: 81.12 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.0001062/1.086, allocations: 118.1 kB / 1.056 GB, free: 81 MB / 0.573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.056e-05/1.086, allocations: 67.16 kB / 1.056 GB, free: 80.93 MB / 0.573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001438/1.088, allocations: 0.7567 MB / 1.056 GB, free: 80.16 MB / 0.573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.502e-06/1.088, allocations: 4 kB / 1.056 GB, free: 80.16 MB / 0.573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.941e-06/1.088, allocations: 11.91 kB / 1.056 GB, free: 80.14 MB / 0.573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.045e-06/1.088, allocations: 7.922 kB / 1.056 GB, free: 80.14 MB / 0.573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002028/1.09, allocations: 1.458 MB / 1.058 GB, free: 78.63 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.477e-06/1.09, allocations: 3.906 kB / 1.058 GB, free: 78.62 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004653/1.09, allocations: 123.8 kB / 1.058 GB, free: 78.5 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002768/1.091, allocations: 96.8 kB / 1.058 GB, free: 78.41 MB / 0.573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.645e-05/1.091, allocations: 19.98 kB / 1.058 GB, free: 78.39 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001315/1.092, allocations: 1.779 MB / 1.06 GB, free: 76.49 MB / 0.573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.014e-06/1.092, allocations: 0 / 1.06 GB, free: 76.49 MB / 0.573 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001458/1.094, allocations: 1.036 MB / 1.061 GB, free: 75.43 MB / 0.573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001892/1.094, allocations: 200.2 kB / 1.061 GB, free: 75.21 MB / 0.573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.148e-05/1.094, allocations: 8 kB / 1.061 GB, free: 75.2 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004532/1.094, allocations: 52.02 kB / 1.061 GB, free: 75.15 MB / 0.573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.403e-05/1.094, allocations: 60.47 kB / 1.061 GB, free: 75.09 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.836e-05/1.095, allocations: 27.98 kB / 1.061 GB, free: 75.07 MB / 0.573 GB Notification: Performance of sort global known variables: time 0.0002157/1.095, allocations: 283 kB / 1.061 GB, free: 74.79 MB / 0.573 GB Notification: Performance of remove unused functions: time 0.0007039/1.095, allocations: 303.8 kB / 1.062 GB, free: 74.5 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.0006351/1.096, allocations: 0.6202 MB / 1.062 GB, free: 73.87 MB / 0.573 GB Notification: Performance of simCode: created initialization part: time 0.0008923/1.097, allocations: 0.7149 MB / 1.063 GB, free: 73.13 MB / 0.573 GB Notification: Performance of simCode: created event and clocks part: time 2.715e-06/1.097, allocations: 0 / 1.063 GB, free: 73.13 MB / 0.573 GB Notification: Performance of simCode: created simulation system equations: time 0.0005716/1.098, allocations: 457.8 kB / 1.063 GB, free: 72.67 MB / 0.573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007577/1.098, allocations: 163.9 kB / 1.064 GB, free: 72.52 MB / 0.573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001839/1.1, allocations: 1.18 MB / 1.065 GB, free: 71.31 MB / 0.573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004568/1.101, allocations: 1.043 MB / 1.066 GB, free: 70.24 MB / 0.573 GB Notification: Performance of SimCode: time 2.71e-07/1.101, allocations: 0 / 1.066 GB, free: 70.24 MB / 0.573 GB Notification: Performance of Templates: time 0.01752/1.118, allocations: 14.14 MB / 1.08 GB, free: 56.19 MB / 0.573 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)