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.001056/0.001056, allocations: 99.34 kB / 16.02 MB, free: 76 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001204/0.001204, allocations: 185 kB / 16.92 MB, free: 6.75 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.359/1.359, allocations: 223.3 MB / 241 MB, free: 5.367 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo): time 0.6799/0.6799, allocations: 89.65 MB / 381.7 MB, free: 11.34 MB / 318.1 MB Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Dassl" Notification: Performance of FrontEnd - loaded program: time 0.0003692/0.000369, allocations: 9.688 kB / 461.3 MB, free: 24.23 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1347/0.1351, allocations: 68.83 MB / 0.5177 GB, free: 11.42 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Examples.WaterHammer): time 0.03249/0.1676, allocations: 30.34 MB / 0.5473 GB, free: 12.96 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.01212/0.1798, allocations: 9.571 MB / 0.5567 GB, free: 3.363 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.001289/0.1812, allocations: 19.88 kB / 0.5567 GB, free: 3.344 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001582/0.1828, allocations: 469.6 kB / 0.5572 GB, free: 2.883 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002633/0.1854, allocations: 0.6951 MB / 0.5578 GB, free: 2.184 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002097/0.1875, allocations: 0.6306 MB / 0.5584 GB, free: 1.555 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.002534/0.1901, allocations: 1.623 MB / 0.56 GB, free: 15.92 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006044/0.1907, allocations: 257.8 kB / 0.5603 GB, free: 15.66 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001274/0.192, allocations: 493.9 kB / 0.5607 GB, free: 15.18 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009024/0.1929, allocations: 477.6 kB / 0.5612 GB, free: 14.71 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002106/0.1931, allocations: 36 kB / 0.5612 GB, free: 14.67 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001696/0.1948, allocations: 475.5 kB / 0.5617 GB, free: 14.21 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002588/0.1951, allocations: 159.2 kB / 0.5618 GB, free: 14.05 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006748/0.1958, allocations: 463.2 kB / 0.5623 GB, free: 13.59 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001483/0.1973, allocations: 0.904 MB / 0.5632 GB, free: 12.68 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.819e-06/0.1973, allocations: 0 / 0.5632 GB, free: 12.68 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.923e-06/0.1973, allocations: 0 / 0.5632 GB, free: 12.68 MB / 446.1 MB Notification: Performance of Transformations before backend: time 4.35e-05/0.1974, allocations: 0 / 0.5632 GB, free: 12.68 MB / 446.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.002816/0.2002, allocations: 1.144 MB / 0.5643 GB, free: 11.48 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.632e-05/0.2002, allocations: 8.031 kB / 0.5643 GB, free: 11.47 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000376/0.2006, allocations: 107.7 kB / 0.5644 GB, free: 11.37 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009973/0.2016, allocations: 0.548 MB / 0.5649 GB, free: 10.78 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.988e-05/0.2017, allocations: 58.38 kB / 0.565 GB, free: 10.72 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001652/0.2019, allocations: 88.03 kB / 0.5651 GB, free: 10.64 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001587/0.2035, allocations: 0.7993 MB / 0.5659 GB, free: 9.82 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.06e-05/0.2035, allocations: 4 kB / 0.5659 GB, free: 9.816 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.684e-05/0.2036, allocations: 32 kB / 0.5659 GB, free: 9.785 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.157e-05/0.2036, allocations: 24 kB / 0.5659 GB, free: 9.762 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001335/0.205, allocations: 0.648 MB / 0.5665 GB, free: 9.113 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004662/0.2096, allocations: 3.702 MB / 0.5702 GB, free: 5.043 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00117/0.2108, allocations: 0.5919 MB / 0.5707 GB, free: 4.445 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005053/0.2114, allocations: 295.9 kB / 0.571 GB, free: 4.156 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002714/0.2141, allocations: 2.535 MB / 0.5735 GB, free: 1.242 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006688/0.2148, allocations: 373.9 kB / 0.5738 GB, free: 0.8594 MB / 446.1 MB Notification: Performance of pre-optimization done (n=63): time 3.136e-06/0.2148, allocations: 0 / 0.5738 GB, free: 0.8594 MB / 446.1 MB Notification: Performance of matching and sorting (n=65): time 0.2873/0.5021, allocations: 1.932 MB / 0.5757 GB, free: 59.92 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.052e-05/0.5022, allocations: 86.02 kB / 0.5758 GB, free: 59.83 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.001139/0.5034, allocations: 0.5437 MB / 0.5763 GB, free: 59.7 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 9.243e-05/0.5035, allocations: 39.73 kB / 0.5764 GB, free: 59.67 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000474/0.504, allocations: 393.8 kB / 0.5768 GB, free: 59.49 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002525/0.5042, allocations: 223.6 kB / 0.577 GB, free: 59.35 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000161/0.5044, allocations: 64.38 kB / 0.577 GB, free: 59.33 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001897/0.5046, allocations: 378.4 kB / 0.5774 GB, free: 59.02 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006419/0.5052, allocations: 219 kB / 0.5776 GB, free: 59.02 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006877/0.5059, allocations: 331.7 kB / 0.5779 GB, free: 58.92 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001234/0.5072, allocations: 0.5786 MB / 0.5785 GB, free: 58.77 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.626e-06/0.5072, allocations: 7.672 kB / 0.5785 GB, free: 58.76 MB / 446.1 MB Notification: Performance of matching and sorting (n=84) (initialization): time 0.001935/0.5092, allocations: 0.8043 MB / 0.5793 GB, free: 58.41 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.701e-05/0.5092, allocations: 34.31 kB / 0.5793 GB, free: 58.38 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.309e-05/0.5092, allocations: 2.906 kB / 0.5793 GB, free: 58.38 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000468/0.5097, allocations: 100.5 kB / 0.5794 GB, free: 58.35 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005793/0.5103, allocations: 139.2 kB / 0.5795 GB, free: 58.33 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002121/0.5124, allocations: 1.83 MB / 0.5813 GB, free: 56.76 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007175/0.5132, allocations: 59.03 kB / 0.5814 GB, free: 56.74 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001089/0.5133, allocations: 29.61 kB / 0.5814 GB, free: 56.73 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 (pulse.count,$PRE.pulse.count,pulse.T_start,$PRE.pulse.T_start,$whenCondition1) * 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 (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(2,8,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0004955/0.5138, allocations: 207 kB / 0.5816 GB, free: 56.56 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002172/0.514, allocations: 76.64 kB / 0.5817 GB, free: 56.53 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001889/0.5159, allocations: 0.8672 MB / 0.5825 GB, free: 56.13 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.046e-05/0.5159, allocations: 6.156 kB / 0.5825 GB, free: 56.13 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.387e-06/0.516, allocations: 2.688 kB / 0.5825 GB, free: 56.13 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.997e-06/0.516, allocations: 4.375 kB / 0.5825 GB, free: 56.13 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002853/0.5188, allocations: 1.588 MB / 0.5841 GB, free: 55.31 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.683e-06/0.5189, allocations: 2.906 kB / 0.5841 GB, free: 55.31 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004546/0.5193, allocations: 112.1 kB / 0.5842 GB, free: 55.3 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003245/0.5197, allocations: 107.5 kB / 0.5843 GB, free: 55.27 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.657e-05/0.5197, allocations: 24.12 kB / 0.5843 GB, free: 55.27 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001548/0.5213, allocations: 1.833 MB / 0.5861 GB, free: 53.68 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.914e-06/0.5213, allocations: 0 / 0.5861 GB, free: 53.68 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001735/0.523, allocations: 1.083 MB / 0.5872 GB, free: 53.15 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003555/0.5234, allocations: 207.3 kB / 0.5874 GB, free: 52.98 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001317/0.5236, allocations: 17.59 kB / 0.5874 GB, free: 52.97 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005542/0.5241, allocations: 56.52 kB / 0.5875 GB, free: 52.96 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001207/0.5243, allocations: 51.33 kB / 0.5875 GB, free: 52.95 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.597e-05/0.5243, allocations: 28.88 kB / 0.5875 GB, free: 52.95 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.0004449/0.5248, allocations: 394.3 kB / 0.5879 GB, free: 52.77 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.5248, allocations: 2.25 kB / 0.5879 GB, free: 52.77 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.0009918/0.5258, allocations: 274.9 kB / 0.5882 GB, free: 52.73 MB / 446.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 (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(2,8,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0006049/0.5264, allocations: 367.4 kB / 0.5885 GB, free: 52.61 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.00167/0.5281, allocations: 0.7832 MB / 0.5893 GB, free: 52.21 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 6.412e-06/0.5281, allocations: 2.625 kB / 0.5893 GB, free: 52.21 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008349/0.5289, allocations: 467.3 kB / 0.5897 GB, free: 51.98 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001371/0.5303, allocations: 217 kB / 0.5899 GB, free: 51.91 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003316/0.5336, allocations: 2.171 MB / 0.5921 GB, free: 50.58 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005409/0.5342, allocations: 0.9617 MB / 0.593 GB, free: 49.86 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002593/0.5345, allocations: 71.16 kB / 0.5931 GB, free: 49.85 MB / 446.1 MB Notification: Performance of SimCode: time 8.72e-07/0.5345, allocations: 3.094 kB / 0.5931 GB, free: 49.85 MB / 446.1 MB Notification: Performance of Templates: time 0.02714/0.5616, allocations: 15.87 MB / 0.6086 GB, free: 43.02 MB / 446.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) diffSimulationResults("ThermofluidStream_ThermofluidStream.Examples.WaterHammer_res.mat","/mnt/ReferenceFiles/ThermofluidStream-main-regression/ReferenceData/ThermofluidStream.Examples.WaterHammer_ref.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ThermofluidStream_ThermofluidStream.Examples.WaterHammer.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches