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.00109/0.00109, allocations: 100.1 kB / 15.88 MB, free: 12 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.001147/0.001147, allocations: 199.4 kB / 16.79 MB, free: 6.828 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.309/1.309, allocations: 222.9 MB / 240.5 MB, free: 4.531 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo): time 0.6821/0.6821, allocations: 89.52 MB / 380.1 MB, free: 11.24 MB / 318.1 MB Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Dassl" Notification: Performance of FrontEnd - loaded program: time 0.001528/0.001528, allocations: 80.89 kB / 458.2 MB, free: 23.93 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1179/0.1194, allocations: 67.31 MB / 0.5132 GB, free: 12.92 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Examples.WaterHammer): time 0.028/0.1475, allocations: 31.11 MB / 0.5436 GB, free: 13.69 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.01112/0.1586, allocations: 9.707 MB / 0.5531 GB, free: 3.949 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.0009842/0.1597, allocations: 19.88 kB / 0.5531 GB, free: 3.93 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001239/0.1609, allocations: 469.5 kB / 0.5535 GB, free: 3.469 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001877/0.1628, allocations: 0.6874 MB / 0.5542 GB, free: 2.777 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001602/0.1644, allocations: 0.629 MB / 0.5548 GB, free: 2.148 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.001571/0.166, allocations: 1.619 MB / 0.5564 GB, free: 0.5234 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003683/0.1664, allocations: 269.9 kB / 0.5567 GB, free: 252 kB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008467/0.1672, allocations: 0.5096 MB / 0.5572 GB, free: 15.73 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005055/0.1677, allocations: 0.5094 MB / 0.5577 GB, free: 15.22 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 9.765e-05/0.1679, allocations: 55.94 kB / 0.5577 GB, free: 15.17 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00134/0.1692, allocations: 0.4917 MB / 0.5582 GB, free: 14.68 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001695/0.1694, allocations: 163.2 kB / 0.5583 GB, free: 14.52 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004337/0.1698, allocations: 477.5 kB / 0.5588 GB, free: 14.05 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001038/0.1709, allocations: 0.916 MB / 0.5597 GB, free: 13.13 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.901e-06/0.1709, allocations: 4 kB / 0.5597 GB, free: 13.12 MB / 446.1 MB Notification: Performance of FrontEnd: time 9.31e-07/0.1709, allocations: 0 / 0.5597 GB, free: 13.12 MB / 446.1 MB Notification: Performance of Transformations before backend: time 1.326e-05/0.1709, allocations: 0 / 0.5597 GB, free: 13.12 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.002423/0.1733, allocations: 1.312 MB / 0.561 GB, free: 11.75 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.951e-05/0.1734, allocations: 12.03 kB / 0.561 GB, free: 11.74 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002608/0.1737, allocations: 111.7 kB / 0.5611 GB, free: 11.63 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007356/0.1744, allocations: 0.5402 MB / 0.5616 GB, free: 11.05 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.313e-05/0.1745, allocations: 62.38 kB / 0.5617 GB, free: 10.99 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001094/0.1746, allocations: 80.11 kB / 0.5618 GB, free: 10.91 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001328/0.1759, allocations: 0.7955 MB / 0.5625 GB, free: 10.1 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.789e-05/0.176, allocations: 0 / 0.5625 GB, free: 10.1 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.383e-05/0.176, allocations: 32 kB / 0.5626 GB, free: 10.07 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.427e-05/0.1761, allocations: 16 kB / 0.5626 GB, free: 10.05 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001155/0.1772, allocations: 0.6441 MB / 0.5632 GB, free: 9.41 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004162/0.1814, allocations: 3.691 MB / 0.5668 GB, free: 5.352 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001083/0.1825, allocations: 0.588 MB / 0.5674 GB, free: 4.758 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004751/0.183, allocations: 287.9 kB / 0.5677 GB, free: 4.477 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002502/0.1855, allocations: 2.527 MB / 0.5701 GB, free: 1.57 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006609/0.1862, allocations: 373.7 kB / 0.5705 GB, free: 1.188 MB / 446.1 MB Notification: Performance of pre-optimization done (n=63): time 2.325e-06/0.1862, allocations: 3.938 kB / 0.5705 GB, free: 1.184 MB / 446.1 MB Notification: Performance of matching and sorting (n=65): time 0.003794/0.19, allocations: 1.904 MB / 0.5724 GB, free: 15.19 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.343e-05/0.1901, allocations: 89.61 kB / 0.5724 GB, free: 15.08 MB / 462.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.0006212/0.1907, allocations: 0.5412 MB / 0.573 GB, free: 14.53 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 5.114e-05/0.1908, allocations: 37.7 kB / 0.573 GB, free: 14.49 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002624/0.191, allocations: 395.9 kB / 0.5734 GB, free: 14.1 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001582/0.1912, allocations: 232.7 kB / 0.5736 GB, free: 13.87 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001802/0.1914, allocations: 118.7 kB / 0.5737 GB, free: 13.75 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001428/0.1915, allocations: 378.8 kB / 0.5741 GB, free: 13.37 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004356/0.192, allocations: 213.9 kB / 0.5743 GB, free: 13.16 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005023/0.1925, allocations: 324 kB / 0.5746 GB, free: 12.81 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009629/0.1935, allocations: 0.5614 MB / 0.5751 GB, free: 12.21 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.555e-06/0.1935, allocations: 0 / 0.5751 GB, free: 12.21 MB / 462.1 MB Notification: Performance of matching and sorting (n=84) (initialization): time 0.001485/0.195, allocations: 0.7994 MB / 0.5759 GB, free: 11.4 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.953e-05/0.195, allocations: 41.77 kB / 0.576 GB, free: 11.35 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.528e-06/0.195, allocations: 4 kB / 0.576 GB, free: 11.35 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003936/0.1954, allocations: 100.7 kB / 0.5761 GB, free: 11.25 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004948/0.1959, allocations: 131.9 kB / 0.5762 GB, free: 11.12 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001837/0.1978, allocations: 1.836 MB / 0.578 GB, free: 9.145 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005166/0.1983, allocations: 55.95 kB / 0.578 GB, free: 9.09 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.127e-05/0.1984, allocations: 24 kB / 0.5781 GB, free: 9.066 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.0003295/0.1987, allocations: 205.7 kB / 0.5782 GB, free: 8.855 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001112/0.1989, allocations: 79.06 kB / 0.5783 GB, free: 8.777 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001575/0.2004, allocations: 0.8489 MB / 0.5792 GB, free: 7.906 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.201e-06/0.2005, allocations: 4 kB / 0.5792 GB, free: 7.902 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.398e-06/0.2005, allocations: 4 kB / 0.5792 GB, free: 7.898 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.506e-06/0.2005, allocations: 3.984 kB / 0.5792 GB, free: 7.895 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0024/0.2029, allocations: 1.578 MB / 0.5807 GB, free: 6.25 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.657e-06/0.2029, allocations: 0 / 0.5807 GB, free: 6.25 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004684/0.2034, allocations: 115.9 kB / 0.5808 GB, free: 6.137 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003232/0.2037, allocations: 104.7 kB / 0.5809 GB, free: 6.031 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.663e-05/0.2038, allocations: 23.98 kB / 0.5809 GB, free: 6.008 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001759/0.2055, allocations: 1.824 MB / 0.5827 GB, free: 4.051 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.603e-06/0.2055, allocations: 0 / 0.5827 GB, free: 4.051 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001784/0.2073, allocations: 1.077 MB / 0.5838 GB, free: 2.945 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002939/0.2076, allocations: 192.2 kB / 0.584 GB, free: 2.738 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001046/0.2078, allocations: 23.98 kB / 0.584 GB, free: 2.715 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004819/0.2082, allocations: 55.8 kB / 0.584 GB, free: 2.66 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001316/0.2084, allocations: 56.42 kB / 0.5841 GB, free: 2.605 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.549e-05/0.2084, allocations: 23.98 kB / 0.5841 GB, free: 2.582 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.0004349/0.2089, allocations: 395.1 kB / 0.5845 GB, free: 2.199 MB / 462.1 MB Notification: Performance of sort global known variables: time 2.31e-07/0.2089, allocations: 0 / 0.5845 GB, free: 2.199 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.0008302/0.2097, allocations: 275.9 kB / 0.5847 GB, free: 1.93 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.0005261/0.2103, allocations: 366.3 kB / 0.5851 GB, free: 1.566 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.00139/0.2117, allocations: 0.7636 MB / 0.5858 GB, free: 0.7734 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 3.868e-06/0.2117, allocations: 0.5625 kB / 0.5858 GB, free: 0.7734 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007712/0.2125, allocations: 465.7 kB / 0.5863 GB, free: 312 kB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001109/0.2136, allocations: 213 kB / 0.5865 GB, free: 100 kB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2342/0.4478, allocations: 2.046 MB / 0.5885 GB, free: 74.44 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006968/0.4486, allocations: 0.9636 MB / 0.5894 GB, free: 73.73 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003404/0.4489, allocations: 74.94 kB / 0.5895 GB, free: 73.73 MB / 462.1 MB Notification: Performance of SimCode: time 8.71e-07/0.4489, allocations: 0 / 0.5895 GB, free: 73.73 MB / 462.1 MB Notification: Performance of Templates: time 0.02156/0.4705, allocations: 15.96 MB / 0.6051 GB, free: 68.87 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/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ThermofluidStream_ThermofluidStream.Examples.WaterHammer.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches