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 (/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.001167/0.001167, allocations: 91.22 kB / 15.06 MB, free: 1.094 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.001891/0.001891, allocations: 172.7 kB / 15.95 MB, free: 204 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.495/1.495, allocations: 223.3 MB / 240 MB, free: 5.445 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo): time 0.8826/0.8826, allocations: 89.63 MB / 380.7 MB, free: 11.43 MB / 318.1 MB Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Dassl" Notification: Performance of FrontEnd - loaded program: time 0.0003922/0.0003922, allocations: 8.156 kB / 460 MB, free: 24.42 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1753/0.1757, allocations: 68.84 MB / 0.5165 GB, free: 11.75 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Examples.WaterHammer): time 0.03299/0.2088, allocations: 28.69 MB / 0.5445 GB, free: 14.97 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.01285/0.2217, allocations: 8.976 MB / 0.5532 GB, free: 5.969 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.001272/0.2231, allocations: 15.94 kB / 0.5533 GB, free: 5.953 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001405/0.2245, allocations: 445.4 kB / 0.5537 GB, free: 5.516 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002435/0.2269, allocations: 0.6908 MB / 0.5544 GB, free: 4.82 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001899/0.2288, allocations: 0.5291 MB / 0.5549 GB, free: 4.293 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.002015/0.2309, allocations: 1.447 MB / 0.5563 GB, free: 2.84 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004458/0.2313, allocations: 242.3 kB / 0.5565 GB, free: 2.586 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009328/0.2323, allocations: 478 kB / 0.557 GB, free: 2.117 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005803/0.2329, allocations: 453.9 kB / 0.5574 GB, free: 1.672 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 8.147e-05/0.2329, allocations: 36 kB / 0.5574 GB, free: 1.637 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001447/0.2344, allocations: 371.7 kB / 0.5578 GB, free: 1.273 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001767/0.2346, allocations: 143.3 kB / 0.5579 GB, free: 1.133 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002359/0.2348, allocations: 205.1 kB / 0.5581 GB, free: 0.9258 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00112/0.236, allocations: 0.8689 MB / 0.559 GB, free: 56 kB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.112e-06/0.236, allocations: 0 / 0.559 GB, free: 56 kB / 430.1 MB Notification: Performance of FrontEnd: time 2.585e-06/0.236, allocations: 0 / 0.559 GB, free: 56 kB / 430.1 MB Notification: Performance of Transformations before backend: time 1.353e-05/0.236, allocations: 0 / 0.559 GB, free: 56 kB / 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.002275/0.2383, allocations: 1.156 MB / 0.5601 GB, free: 14.84 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.399e-05/0.2383, allocations: 12.03 kB / 0.5601 GB, free: 14.82 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002413/0.2386, allocations: 106.8 kB / 0.5602 GB, free: 14.72 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008209/0.2394, allocations: 0.5277 MB / 0.5607 GB, free: 14.15 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.347e-05/0.2395, allocations: 61.98 kB / 0.5608 GB, free: 14.09 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000115/0.2396, allocations: 75.91 kB / 0.5609 GB, free: 14.02 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001449/0.2411, allocations: 0.8032 MB / 0.5616 GB, free: 13.2 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.76e-05/0.2411, allocations: 0 / 0.5616 GB, free: 13.2 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.983e-05/0.2412, allocations: 32 kB / 0.5617 GB, free: 13.16 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.157e-05/0.2412, allocations: 20 kB / 0.5617 GB, free: 13.14 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001181/0.2424, allocations: 0.6402 MB / 0.5623 GB, free: 12.5 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004697/0.2471, allocations: 3.699 MB / 0.5659 GB, free: 8.438 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001141/0.2483, allocations: 0.5957 MB / 0.5665 GB, free: 7.836 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005226/0.2488, allocations: 288 kB / 0.5668 GB, free: 7.555 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002931/0.2517, allocations: 2.539 MB / 0.5693 GB, free: 4.637 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006623/0.2524, allocations: 373.9 kB / 0.5696 GB, free: 4.254 MB / 446.1 MB Notification: Performance of pre-optimization done (n=63): time 2.475e-06/0.2524, allocations: 0 / 0.5696 GB, free: 4.254 MB / 446.1 MB Notification: Performance of matching and sorting (n=65): time 0.003833/0.2563, allocations: 1.932 MB / 0.5715 GB, free: 2.23 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.391e-05/0.2564, allocations: 89.67 kB / 0.5716 GB, free: 2.125 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.0007266/0.2571, allocations: 0.543 MB / 0.5721 GB, free: 1.57 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 5.213e-05/0.2572, allocations: 37.7 kB / 0.5722 GB, free: 1.527 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003103/0.2575, allocations: 391.8 kB / 0.5725 GB, free: 1.141 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.00018/0.2577, allocations: 224.8 kB / 0.5728 GB, free: 0.918 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.115e-05/0.2577, allocations: 8 kB / 0.5728 GB, free: 0.9102 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001801/0.2579, allocations: 386.8 kB / 0.5731 GB, free: 0.5234 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004329/0.2583, allocations: 217.9 kB / 0.5733 GB, free: 320 kB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005167/0.2589, allocations: 324 kB / 0.5736 GB, free: 15.96 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005102/0.2594, allocations: 280.8 kB / 0.5739 GB, free: 15.68 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.84e-06/0.2594, allocations: 4 kB / 0.5739 GB, free: 15.68 MB / 462.1 MB Notification: Performance of matching and sorting (n=84) (initialization): time 0.001503/0.2609, allocations: 0.7994 MB / 0.5747 GB, free: 14.86 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.343e-05/0.261, allocations: 37.69 kB / 0.5747 GB, free: 14.82 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.877e-06/0.261, allocations: 0 / 0.5747 GB, free: 14.82 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003663/0.2614, allocations: 104.9 kB / 0.5748 GB, free: 14.71 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005111/0.2619, allocations: 131.8 kB / 0.575 GB, free: 14.59 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002012/0.2639, allocations: 1.835 MB / 0.5768 GB, free: 12.61 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005495/0.2645, allocations: 52.06 kB / 0.5768 GB, free: 12.56 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.482e-05/0.2646, allocations: 27.98 kB / 0.5768 GB, free: 12.54 MB / 462.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.000385/0.2649, allocations: 209.7 kB / 0.577 GB, free: 12.32 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001145/0.2651, allocations: 75.05 kB / 0.5771 GB, free: 12.25 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001645/0.2667, allocations: 0.8606 MB / 0.5779 GB, free: 11.36 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.232e-06/0.2667, allocations: 7.938 kB / 0.5779 GB, free: 11.36 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.11e-06/0.2668, allocations: 4 kB / 0.578 GB, free: 11.35 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.755e-06/0.2668, allocations: 0 / 0.578 GB, free: 11.35 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002586/0.2694, allocations: 1.59 MB / 0.5795 GB, free: 9.695 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.478e-06/0.2694, allocations: 0 / 0.5795 GB, free: 9.695 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004676/0.2698, allocations: 115.8 kB / 0.5796 GB, free: 9.582 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003304/0.2702, allocations: 108.8 kB / 0.5797 GB, free: 9.473 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.199e-05/0.2703, allocations: 23.98 kB / 0.5797 GB, free: 9.449 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001943/0.2722, allocations: 1.828 MB / 0.5815 GB, free: 7.488 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.054e-06/0.2722, allocations: 0 / 0.5815 GB, free: 7.488 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001892/0.2741, allocations: 1.081 MB / 0.5826 GB, free: 6.379 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003559/0.2745, allocations: 204.2 kB / 0.5828 GB, free: 6.16 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001213/0.2746, allocations: 19.98 kB / 0.5828 GB, free: 6.141 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005238/0.2751, allocations: 55.86 kB / 0.5828 GB, free: 6.086 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001391/0.2753, allocations: 56.44 kB / 0.5829 GB, free: 6.031 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.273e-05/0.2754, allocations: 27.98 kB / 0.5829 GB, free: 6.004 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.0005115/0.2759, allocations: 387.1 kB / 0.5833 GB, free: 5.629 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.2759, allocations: 0 / 0.5833 GB, free: 5.629 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.00102/0.2769, allocations: 284.2 kB / 0.5836 GB, free: 5.352 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.0006024/0.2775, allocations: 347.5 kB / 0.5839 GB, free: 5.004 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.001673/0.2792, allocations: 0.7793 MB / 0.5847 GB, free: 4.195 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 3.466e-06/0.2792, allocations: 3.938 kB / 0.5847 GB, free: 4.191 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009038/0.2801, allocations: 478.1 kB / 0.5851 GB, free: 3.711 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001256/0.2814, allocations: 209.6 kB / 0.5853 GB, free: 3.508 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003613/0.285, allocations: 2.103 MB / 0.5874 GB, free: 1.367 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006826/0.2857, allocations: 0.9697 MB / 0.5883 GB, free: 380 kB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.0006041/0.2864, allocations: 125 kB / 0.5884 GB, free: 252 kB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001925/0.2866, allocations: 67.41 kB / 0.5885 GB, free: 184 kB / 462.1 MB Notification: Performance of SimCode: time 6.91e-07/0.2866, allocations: 0 / 0.5885 GB, free: 184 kB / 462.1 MB Notification: Performance of Templates: time 0.3335/0.6201, allocations: 12.6 MB / 0.6008 GB, free: 70.27 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)