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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) 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/ThermofluidStream 1.1.0-main/package.mo", uses=false) Using package ThermofluidStream with version 1.1.0 dev (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/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) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+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_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_ThermofluidStream.Examples.WaterHammer") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001176/0.001176, allocations: 99.86 kB / 15.05 MB, free: 1.105 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001322/0.001322, allocations: 177.3 kB / 15.94 MB, free: 228 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.465/1.465, allocations: 223.2 MB / 239.9 MB, free: 5.316 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo): time 0.8238/0.8238, allocations: 89.61 MB / 380.6 MB, free: 11.46 MB / 318.1 MB Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Dassl" Notification: Performance of FrontEnd - loaded program: time 0.0004108/0.0004108, allocations: 17.98 kB / 459.9 MB, free: 24.38 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1726/0.173, allocations: 68.82 MB / 0.5163 GB, free: 11.76 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Examples.WaterHammer): time 0.02882/0.2019, allocations: 26.11 MB / 0.5418 GB, free: 1.574 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.01146/0.2134, allocations: 8.071 MB / 0.5497 GB, free: 9.484 MB / 430.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/FlowControl/BasicControlValve.mo:22:3-23:88:writable] Warning: Parameter Cvs_US has annotation(Evaluate=true) and no binding. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/FlowControl/BasicControlValve.mo:24:3-25:88:writable] Warning: Parameter Cvs_UK has annotation(Evaluate=true) and no binding. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/FlowControl/BasicControlValve.mo:26:3-27:92:writable] Warning: Parameter m_flow_ref_set has annotation(Evaluate=true) and no binding. Notification: Performance of NFInst.updateImplicitVariability: time 0.001503/0.215, allocations: 19.88 kB / 0.5497 GB, free: 9.465 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00151/0.2165, allocations: 453.8 kB / 0.5502 GB, free: 9.02 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002772/0.2193, allocations: 0.7398 MB / 0.5509 GB, free: 8.277 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001864/0.2212, allocations: 0.5529 MB / 0.5514 GB, free: 7.727 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.002021/0.2232, allocations: 0.9086 MB / 0.5523 GB, free: 6.816 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005414/0.2238, allocations: 242.5 kB / 0.5525 GB, free: 6.562 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001051/0.2248, allocations: 450.3 kB / 0.553 GB, free: 6.121 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005362/0.2254, allocations: 398.2 kB / 0.5533 GB, free: 5.73 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 7.944e-05/0.2255, allocations: 39.94 kB / 0.5534 GB, free: 5.691 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001739/0.2272, allocations: 479.6 kB / 0.5538 GB, free: 5.223 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001771/0.2274, allocations: 143.3 kB / 0.554 GB, free: 5.082 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002251/0.2276, allocations: 197.2 kB / 0.5542 GB, free: 4.883 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001121/0.2288, allocations: 0.865 MB / 0.555 GB, free: 4.016 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.437e-06/0.2288, allocations: 0 / 0.555 GB, free: 4.016 MB / 430.1 MB Notification: Performance of FrontEnd: time 2.434e-06/0.2288, allocations: 0 / 0.555 GB, free: 4.016 MB / 430.1 MB Notification: Performance of Transformations before backend: time 1.236e-05/0.2288, allocations: 0 / 0.555 GB, free: 4.016 MB / 430.1 MB 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.002462/0.2313, allocations: 1.152 MB / 0.5561 GB, free: 2.801 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.125e-05/0.2313, allocations: 16.03 kB / 0.5562 GB, free: 2.785 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002558/0.2316, allocations: 110.8 kB / 0.5563 GB, free: 2.676 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008547/0.2324, allocations: 0.5238 MB / 0.5568 GB, free: 2.113 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.553e-05/0.2325, allocations: 58 kB / 0.5568 GB, free: 2.055 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001197/0.2327, allocations: 83.88 kB / 0.5569 GB, free: 1.973 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00134/0.234, allocations: 0.7916 MB / 0.5577 GB, free: 1.164 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.775e-05/0.234, allocations: 0 / 0.5577 GB, free: 1.164 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.221e-05/0.2341, allocations: 32 kB / 0.5577 GB, free: 1.133 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.716e-05/0.2341, allocations: 19.94 kB / 0.5577 GB, free: 1.113 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001173/0.2353, allocations: 0.648 MB / 0.5584 GB, free: 476 kB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004743/0.2401, allocations: 3.749 MB / 0.562 GB, free: 12.35 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001096/0.2412, allocations: 0.5996 MB / 0.5626 GB, free: 11.74 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002808/0.244, allocations: 2.566 MB / 0.5651 GB, free: 8.801 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007128/0.2447, allocations: 373.8 kB / 0.5655 GB, free: 8.414 MB / 446.1 MB Notification: Performance of pre-optimization done (n=63): time 4.208e-06/0.2448, allocations: 3.984 kB / 0.5655 GB, free: 8.41 MB / 446.1 MB Notification: Performance of matching and sorting (n=65): time 0.003793/0.2486, allocations: 1.913 MB / 0.5673 GB, free: 6.406 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.44e-05/0.2486, allocations: 89.67 kB / 0.5674 GB, free: 6.301 MB / 446.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/FlowControl/BasicControlValve.mo:26:3-27: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.1.0-main/FlowControl/BasicControlValve.mo:24:3-25: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.1.0-main/FlowControl/BasicControlValve.mo:22:3-23: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.0006526/0.2493, allocations: 0.5352 MB / 0.568 GB, free: 5.754 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 5.559e-05/0.2494, allocations: 45.64 kB / 0.568 GB, free: 5.703 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003186/0.2497, allocations: 395.8 kB / 0.5684 GB, free: 5.312 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001765/0.2499, allocations: 220.8 kB / 0.5686 GB, free: 5.094 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.59e-05/0.2499, allocations: 16 kB / 0.5686 GB, free: 5.078 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001639/0.2501, allocations: 382.7 kB / 0.569 GB, free: 4.695 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004256/0.2505, allocations: 217.9 kB / 0.5692 GB, free: 4.484 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000593/0.2511, allocations: 324 kB / 0.5695 GB, free: 4.133 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005259/0.2517, allocations: 280.8 kB / 0.5697 GB, free: 3.852 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.224e-06/0.2517, allocations: 4 kB / 0.5698 GB, free: 3.848 MB / 446.1 MB Notification: Performance of matching and sorting (n=84) (initialization): time 0.001438/0.2531, allocations: 0.7956 MB / 0.5705 GB, free: 3.035 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.135e-05/0.2532, allocations: 33.7 kB / 0.5706 GB, free: 2.996 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.458e-06/0.2532, allocations: 4 kB / 0.5706 GB, free: 2.992 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003774/0.2536, allocations: 100.8 kB / 0.5707 GB, free: 2.891 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005031/0.2541, allocations: 139.8 kB / 0.5708 GB, free: 2.754 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002268/0.2564, allocations: 1.863 MB / 0.5726 GB, free: 0.7539 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005738/0.257, allocations: 55.95 kB / 0.5727 GB, free: 0.6992 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.199e-05/0.257, allocations: 31.98 kB / 0.5727 GB, free: 0.668 MB / 446.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * 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 (74): * Single equations (assignments): 72 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * 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.0004283/0.2575, allocations: 205.7 kB / 0.5729 GB, free: 468 kB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.553e-05/0.2576, allocations: 75.06 kB / 0.573 GB, free: 392 kB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00168/0.2593, allocations: 0.857 MB / 0.5738 GB, free: 15.5 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.436e-06/0.2593, allocations: 11.95 kB / 0.5738 GB, free: 15.49 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.647e-06/0.2593, allocations: 0 / 0.5738 GB, free: 15.49 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.726e-06/0.2593, allocations: 3.984 kB / 0.5738 GB, free: 15.49 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002699/0.262, allocations: 1.605 MB / 0.5754 GB, free: 13.82 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.067e-06/0.262, allocations: 0 / 0.5754 GB, free: 13.82 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004733/0.2625, allocations: 120 kB / 0.5755 GB, free: 13.7 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003598/0.2629, allocations: 104.6 kB / 0.5756 GB, free: 13.59 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.61e-05/0.2629, allocations: 19.98 kB / 0.5756 GB, free: 13.57 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002453/0.2654, allocations: 1.863 MB / 0.5774 GB, free: 11.58 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.693e-06/0.2654, allocations: 0.5625 kB / 0.5774 GB, free: 11.58 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002039/0.2674, allocations: 1.109 MB / 0.5785 GB, free: 10.42 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003773/0.2678, allocations: 224.1 kB / 0.5787 GB, free: 10.18 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.222e-05/0.2679, allocations: 12 kB / 0.5787 GB, free: 10.17 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004716/0.2684, allocations: 59.86 kB / 0.5788 GB, free: 10.11 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001364/0.2686, allocations: 56.47 kB / 0.5789 GB, free: 10.05 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.289e-05/0.2686, allocations: 27.92 kB / 0.5789 GB, free: 10.03 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.0005201/0.2692, allocations: 391.1 kB / 0.5793 GB, free: 9.648 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.2692, allocations: 0 / 0.5793 GB, free: 9.648 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.001058/0.2702, allocations: 275.9 kB / 0.5795 GB, free: 9.379 MB / 462.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 5 (flowResistance.inlet.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 (55): * Single equations (assignments): 52 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * 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.0005506/0.2708, allocations: 367.6 kB / 0.5799 GB, free: 9.016 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.001492/0.2723, allocations: 0.7754 MB / 0.5806 GB, free: 8.211 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 2.885e-06/0.2723, allocations: 0 / 0.5806 GB, free: 8.211 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007991/0.2731, allocations: 478.1 kB / 0.5811 GB, free: 7.73 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009965/0.2741, allocations: 204.7 kB / 0.5813 GB, free: 7.535 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003283/0.2774, allocations: 2.095 MB / 0.5833 GB, free: 5.398 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006031/0.278, allocations: 0.9814 MB / 0.5843 GB, free: 4.391 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.0005648/0.2786, allocations: 132.9 kB / 0.5844 GB, free: 4.258 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001639/0.2788, allocations: 59.42 kB / 0.5845 GB, free: 4.199 MB / 462.1 MB Notification: Performance of SimCode: time 9.52e-07/0.2788, allocations: 0 / 0.5845 GB, free: 4.199 MB / 462.1 MB Notification: Performance of Templates: time 0.3477/0.6265, allocations: 12.53 MB / 0.5967 GB, free: 71.03 MB / 462.1 MB make -j1 -f ThermofluidStream_ThermofluidStream.Examples.WaterHammer.makefile (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 & ./ThermofluidStream_ThermofluidStream.Examples.WaterHammer -abortSlowSimulation -alarm=1200 -emit_protected -lv LOG_STATS > ThermofluidStream_ThermofluidStream.Examples.WaterHammer.pipe 2>&1)