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.001548/0.001548, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.002083/0.002083, allocations: 192.6 kB / 16.13 MB, free: 6.699 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.389/1.389, allocations: 222.9 MB / 239.8 MB, free: 4.633 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo): time 0.7157/0.7157, allocations: 91.2 MB / 381.2 MB, free: 9.609 MB / 318.1 MB Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Dassl" Notification: Performance of FrontEnd - loaded program: time 0.001475/0.001475, allocations: 88.16 kB / 459.6 MB, free: 23.37 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1388/0.1403, allocations: 67.69 MB / 0.515 GB, free: 10.68 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Examples.WaterHammer): time 0.03132/0.1717, allocations: 31.54 MB / 0.5458 GB, free: 11.01 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.01172/0.1834, allocations: 9.809 MB / 0.5553 GB, free: 1.172 MB / 430.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/FlowControl/BasicControlValve.mo:19:3-20:118: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:21:3-22:118: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:23:3-24:122:writable] Warning: Parameter m_flow_ref_set has annotation(Evaluate=true) and no binding. Notification: Performance of NFInst.updateImplicitVariability: time 0.001551/0.185, allocations: 39.75 kB / 0.5554 GB, free: 1.133 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001392/0.1864, allocations: 481.5 kB / 0.5558 GB, free: 0.6602 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002155/0.1886, allocations: 0.7146 MB / 0.5565 GB, free: 15.94 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001761/0.1904, allocations: 0.6185 MB / 0.5571 GB, free: 15.32 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.00182/0.1922, allocations: 1.7 MB / 0.5588 GB, free: 13.62 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004059/0.1926, allocations: 274 kB / 0.5591 GB, free: 13.34 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009138/0.1935, allocations: 0.5521 MB / 0.5596 GB, free: 12.79 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005455/0.1941, allocations: 0.5248 MB / 0.5601 GB, free: 12.26 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000108/0.1942, allocations: 52 kB / 0.5602 GB, free: 12.21 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001414/0.1956, allocations: 0.4955 MB / 0.5606 GB, free: 11.71 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001806/0.1958, allocations: 179.2 kB / 0.5608 GB, free: 11.54 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004645/0.1963, allocations: 0.4894 MB / 0.5613 GB, free: 11.05 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00158/0.1979, allocations: 1.293 MB / 0.5626 GB, free: 9.75 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.679e-06/0.1979, allocations: 0 / 0.5626 GB, free: 9.75 MB / 446.1 MB Notification: Performance of FrontEnd: time 9.32e-07/0.1979, allocations: 0 / 0.5626 GB, free: 9.75 MB / 446.1 MB Notification: Performance of Transformations before backend: time 1.244e-05/0.1979, allocations: 0 / 0.5626 GB, free: 9.75 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.002521/0.2005, allocations: 1.417 MB / 0.5639 GB, free: 8.273 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.205e-05/0.2005, allocations: 12.03 kB / 0.564 GB, free: 8.262 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002693/0.2008, allocations: 119.5 kB / 0.5641 GB, free: 8.145 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001034/0.2018, allocations: 0.6846 MB / 0.5647 GB, free: 7.418 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.066e-05/0.2019, allocations: 58 kB / 0.5648 GB, free: 7.363 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001173/0.202, allocations: 83.89 kB / 0.5649 GB, free: 7.281 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001347/0.2034, allocations: 0.7954 MB / 0.5656 GB, free: 6.465 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.684e-05/0.2034, allocations: 0 / 0.5656 GB, free: 6.465 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.095e-05/0.2035, allocations: 35.98 kB / 0.5657 GB, free: 6.43 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.581e-05/0.2035, allocations: 20 kB / 0.5657 GB, free: 6.41 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001174/0.2047, allocations: 0.6363 MB / 0.5663 GB, free: 5.777 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004346/0.209, allocations: 3.722 MB / 0.57 GB, free: 1.68 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001089/0.2101, allocations: 0.5804 MB / 0.5705 GB, free: 1.094 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004886/0.2106, allocations: 291.8 kB / 0.5708 GB, free: 0.8086 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002652/0.2133, allocations: 2.531 MB / 0.5733 GB, free: 13.9 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006709/0.214, allocations: 373.8 kB / 0.5736 GB, free: 13.52 MB / 462.1 MB Notification: Performance of pre-optimization done (n=63): time 2.024e-06/0.214, allocations: 0 / 0.5736 GB, free: 13.52 MB / 462.1 MB Notification: Performance of matching and sorting (n=65): time 0.003945/0.2179, allocations: 1.927 MB / 0.5755 GB, free: 11.5 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.372e-05/0.218, allocations: 89.66 kB / 0.5756 GB, free: 11.39 MB / 462.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/FlowControl/BasicControlValve.mo:23:3-24:122: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:21:3-22:118: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:19:3-20:118: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.0008103/0.2188, allocations: 0.6374 MB / 0.5762 GB, free: 10.74 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 5.839e-05/0.2189, allocations: 45.7 kB / 0.5763 GB, free: 10.69 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003258/0.2192, allocations: 431.9 kB / 0.5767 GB, free: 10.27 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001647/0.2194, allocations: 224.7 kB / 0.5769 GB, free: 10.04 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001902/0.2196, allocations: 126.7 kB / 0.577 GB, free: 9.914 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001242/0.2197, allocations: 337.9 kB / 0.5773 GB, free: 9.578 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004385/0.2202, allocations: 213.9 kB / 0.5775 GB, free: 9.371 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005238/0.2207, allocations: 320 kB / 0.5778 GB, free: 9.023 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009576/0.2217, allocations: 0.5575 MB / 0.5784 GB, free: 8.43 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.327e-06/0.2217, allocations: 0 / 0.5784 GB, free: 8.43 MB / 462.1 MB Notification: Performance of matching and sorting (n=84) (initialization): time 0.001467/0.2232, allocations: 0.8226 MB / 0.5792 GB, free: 7.59 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.959e-05/0.2232, allocations: 36.36 kB / 0.5792 GB, free: 7.551 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.017e-05/0.2233, allocations: 4 kB / 0.5792 GB, free: 7.547 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003835/0.2236, allocations: 96.78 kB / 0.5793 GB, free: 7.449 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004903/0.2241, allocations: 139.8 kB / 0.5795 GB, free: 7.312 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001945/0.2261, allocations: 1.832 MB / 0.5812 GB, free: 5.344 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005323/0.2266, allocations: 55.95 kB / 0.5813 GB, free: 5.289 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.206e-05/0.2267, allocations: 27.98 kB / 0.5813 GB, free: 5.262 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 (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.0003627/0.2271, allocations: 213.7 kB / 0.5815 GB, free: 5.043 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001297/0.2272, allocations: 86.97 kB / 0.5816 GB, free: 4.957 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001707/0.2289, allocations: 0.8658 MB / 0.5825 GB, free: 4.07 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.584e-06/0.229, allocations: 8 kB / 0.5825 GB, free: 4.062 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.049e-06/0.229, allocations: 0 / 0.5825 GB, free: 4.062 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.328e-06/0.229, allocations: 3.984 kB / 0.5825 GB, free: 4.059 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002886/0.2319, allocations: 1.613 MB / 0.584 GB, free: 2.379 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.819e-06/0.2319, allocations: 0 / 0.584 GB, free: 2.379 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004863/0.2324, allocations: 111.8 kB / 0.5841 GB, free: 2.27 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000354/0.2328, allocations: 108.8 kB / 0.5843 GB, free: 2.16 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.767e-05/0.2328, allocations: 19.98 kB / 0.5843 GB, free: 2.141 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0019/0.2347, allocations: 1.827 MB / 0.5861 GB, free: 184 kB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.844e-06/0.2348, allocations: 0 / 0.5861 GB, free: 184 kB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.2629/0.4977, allocations: 1.072 MB / 0.5871 GB, free: 72.82 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003478/0.4981, allocations: 208.2 kB / 0.5873 GB, free: 72.72 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001045/0.4982, allocations: 15.97 kB / 0.5873 GB, free: 72.72 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005167/0.4987, allocations: 55.22 kB / 0.5874 GB, free: 72.72 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001612/0.4989, allocations: 55.52 kB / 0.5874 GB, free: 72.72 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.843e-05/0.499, allocations: 26 kB / 0.5874 GB, free: 72.72 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.0006384/0.4996, allocations: 458.6 kB / 0.5879 GB, free: 72.63 MB / 462.1 MB Notification: Performance of sort global known variables: time 3.11e-07/0.4996, allocations: 0.7812 kB / 0.5879 GB, free: 72.63 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.0008911/0.5005, allocations: 275 kB / 0.5881 GB, free: 72.63 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 (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.0005267/0.501, allocations: 370.5 kB / 0.5885 GB, free: 72.54 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.001688/0.5027, allocations: 0.7659 MB / 0.5892 GB, free: 72.36 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 3.647e-06/0.5028, allocations: 1.344 kB / 0.5892 GB, free: 72.36 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009361/0.5037, allocations: 473.5 kB / 0.5897 GB, free: 72.23 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001204/0.5049, allocations: 219.6 kB / 0.5899 GB, free: 72.17 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003037/0.508, allocations: 2.171 MB / 0.592 GB, free: 70.94 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004712/0.5085, allocations: 0.9961 MB / 0.593 GB, free: 70.22 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.0005225/0.509, allocations: 153 kB / 0.5931 GB, free: 70.18 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001839/0.5092, allocations: 70.23 kB / 0.5932 GB, free: 70.16 MB / 462.1 MB Notification: Performance of SimCode: time 3.31e-07/0.5092, allocations: 0 / 0.5932 GB, free: 70.16 MB / 462.1 MB Notification: Performance of Templates: time 0.02093/0.5301, allocations: 13.37 MB / 0.6063 GB, free: 66.51 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) diffSimulationResults("ThermofluidStream_ThermofluidStream.Examples.WaterHammer_res.mat","/mnt/ReferenceFiles/ThermofluidStream-main-regression/ReferenceData/ThermofluidStream.Examples.WaterHammer_ref.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ThermofluidStream_ThermofluidStream.Examples.WaterHammer.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches