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.0009346/0.0009346, allocations: 97.78 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.001158/0.001158, allocations: 187.3 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.366/1.366, allocations: 223.3 MB / 241 MB, free: 5.328 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo): time 0.6512/0.6512, allocations: 89.63 MB / 381.7 MB, free: 11.35 MB / 318.1 MB Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Dassl" Notification: Performance of FrontEnd - loaded program: time 0.0003805/0.0003804, allocations: 9.406 kB / 461.3 MB, free: 24.29 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1132/0.1136, allocations: 68.83 MB / 0.5177 GB, free: 11.4 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Examples.WaterHammer): time 0.02763/0.1413, allocations: 30.34 MB / 0.5473 GB, free: 12.95 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.01076/0.1521, allocations: 9.571 MB / 0.5567 GB, free: 3.352 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.0009811/0.1531, allocations: 19.88 kB / 0.5567 GB, free: 3.332 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00128/0.1544, allocations: 469.5 kB / 0.5572 GB, free: 2.871 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002261/0.1567, allocations: 0.6991 MB / 0.5578 GB, free: 2.168 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001734/0.1584, allocations: 0.6227 MB / 0.5584 GB, free: 1.547 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.001977/0.1604, allocations: 1.619 MB / 0.56 GB, free: 15.92 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004237/0.1608, allocations: 257.9 kB / 0.5603 GB, free: 15.66 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009947/0.1618, allocations: 493.9 kB / 0.5607 GB, free: 15.17 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005813/0.1624, allocations: 477.6 kB / 0.5612 GB, free: 14.7 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 9.737e-05/0.1625, allocations: 39.94 kB / 0.5612 GB, free: 14.66 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001344/0.1639, allocations: 483.4 kB / 0.5617 GB, free: 14.19 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001599/0.1641, allocations: 147.2 kB / 0.5618 GB, free: 14.05 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004528/0.1645, allocations: 479.2 kB / 0.5623 GB, free: 13.57 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001158/0.1657, allocations: 0.8884 MB / 0.5632 GB, free: 12.68 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.408e-06/0.1657, allocations: 0 / 0.5632 GB, free: 12.68 MB / 446.1 MB Notification: Performance of FrontEnd: time 2.204e-06/0.1657, allocations: 0 / 0.5632 GB, free: 12.68 MB / 446.1 MB Notification: Performance of Transformations before backend: time 1.018e-05/0.1657, 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.002159/0.1679, allocations: 1.152 MB / 0.5643 GB, free: 11.47 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.944e-05/0.1679, allocations: 8.031 kB / 0.5643 GB, free: 11.46 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002436/0.1682, allocations: 111.7 kB / 0.5644 GB, free: 11.35 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007558/0.1689, allocations: 0.5403 MB / 0.5649 GB, free: 10.77 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.109e-05/0.169, allocations: 62.38 kB / 0.565 GB, free: 10.71 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001307/0.1692, allocations: 92 kB / 0.5651 GB, free: 10.62 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00134/0.1705, allocations: 0.8032 MB / 0.5659 GB, free: 9.801 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.757e-05/0.1705, allocations: 0 / 0.5659 GB, free: 9.801 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.541e-05/0.1706, allocations: 32 kB / 0.5659 GB, free: 9.77 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.811e-05/0.1706, allocations: 20 kB / 0.5659 GB, free: 9.75 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001147/0.1718, allocations: 0.6441 MB / 0.5665 GB, free: 9.105 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004405/0.1762, allocations: 3.706 MB / 0.5702 GB, free: 5.031 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001126/0.1774, allocations: 0.592 MB / 0.5707 GB, free: 4.434 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004747/0.1779, allocations: 295.8 kB / 0.571 GB, free: 4.145 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002639/0.1805, allocations: 2.539 MB / 0.5735 GB, free: 1.227 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006329/0.1812, allocations: 377.9 kB / 0.5739 GB, free: 0.8398 MB / 446.1 MB Notification: Performance of pre-optimization done (n=63): time 3.556e-06/0.1812, allocations: 3.984 kB / 0.5739 GB, free: 0.8359 MB / 446.1 MB Notification: Performance of matching and sorting (n=65): time 0.2407/0.4219, allocations: 1.925 MB / 0.5757 GB, free: 59.89 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.887e-05/0.422, allocations: 87.25 kB / 0.5758 GB, free: 59.8 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.0008242/0.4228, allocations: 0.5421 MB / 0.5764 GB, free: 59.67 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 7.636e-05/0.4229, allocations: 40.48 kB / 0.5764 GB, free: 59.64 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003372/0.4232, allocations: 394.3 kB / 0.5768 GB, free: 59.46 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001846/0.4234, allocations: 224.1 kB / 0.577 GB, free: 59.32 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.659e-05/0.4235, allocations: 60.33 kB / 0.577 GB, free: 59.3 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001277/0.4236, allocations: 385.1 kB / 0.5774 GB, free: 58.99 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005275/0.4242, allocations: 219.7 kB / 0.5776 GB, free: 58.98 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000563/0.4248, allocations: 330.8 kB / 0.5779 GB, free: 58.89 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001056/0.4258, allocations: 0.5766 MB / 0.5785 GB, free: 58.74 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.33e-06/0.4258, allocations: 4.875 kB / 0.5785 GB, free: 58.74 MB / 446.1 MB Notification: Performance of matching and sorting (n=84) (initialization): time 0.001654/0.4275, allocations: 0.8068 MB / 0.5793 GB, free: 58.39 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.113e-05/0.4276, allocations: 34.66 kB / 0.5793 GB, free: 58.36 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.069e-05/0.4276, allocations: 7.656 kB / 0.5793 GB, free: 58.36 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004009/0.428, allocations: 96.64 kB / 0.5794 GB, free: 58.33 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000521/0.4285, allocations: 136 kB / 0.5796 GB, free: 58.31 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001804/0.4303, allocations: 1.832 MB / 0.5813 GB, free: 56.74 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005853/0.4309, allocations: 59.91 kB / 0.5814 GB, free: 56.72 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.847e-05/0.431, allocations: 27.67 kB / 0.5814 GB, free: 56.72 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.0003335/0.4313, allocations: 210.5 kB / 0.5816 GB, free: 56.54 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.756e-05/0.4314, allocations: 70.66 kB / 0.5817 GB, free: 56.51 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001707/0.4332, allocations: 0.8566 MB / 0.5825 GB, free: 56.12 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.106e-05/0.4332, allocations: 17.55 kB / 0.5825 GB, free: 56.12 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.17e-06/0.4332, allocations: 1.938 kB / 0.5825 GB, free: 56.12 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.207e-06/0.4332, allocations: 4.25 kB / 0.5825 GB, free: 56.12 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002486/0.4357, allocations: 1.586 MB / 0.5841 GB, free: 55.3 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.819e-06/0.4357, allocations: 0 / 0.5841 GB, free: 55.3 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004299/0.4362, allocations: 118.9 kB / 0.5842 GB, free: 55.29 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002986/0.4365, allocations: 100.5 kB / 0.5843 GB, free: 55.26 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.202e-05/0.4365, allocations: 21.97 kB / 0.5843 GB, free: 55.25 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001437/0.438, allocations: 1.836 MB / 0.5861 GB, free: 53.67 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.076e-06/0.438, allocations: 0.875 kB / 0.5861 GB, free: 53.67 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001692/0.4397, allocations: 1.08 MB / 0.5872 GB, free: 53.14 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000339/0.44, allocations: 209.6 kB / 0.5874 GB, free: 52.97 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.659e-05/0.4401, allocations: 11.88 kB / 0.5874 GB, free: 52.96 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004617/0.4406, allocations: 57.77 kB / 0.5874 GB, free: 52.95 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001083/0.4407, allocations: 51.52 kB / 0.5875 GB, free: 52.95 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.934e-05/0.4408, allocations: 30.33 kB / 0.5875 GB, free: 52.94 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.0003953/0.4412, allocations: 393.2 kB / 0.5879 GB, free: 52.76 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.4412, allocations: 3 kB / 0.5879 GB, free: 52.76 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.0008451/0.442, allocations: 281.7 kB / 0.5882 GB, free: 52.71 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.0004923/0.4425, allocations: 369.7 kB / 0.5885 GB, free: 52.59 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.001365/0.4439, allocations: 0.7823 MB / 0.5893 GB, free: 52.2 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 3.106e-06/0.4439, allocations: 0 / 0.5893 GB, free: 52.2 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007157/0.4446, allocations: 473.3 kB / 0.5897 GB, free: 51.96 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001213/0.4459, allocations: 211.3 kB / 0.5899 GB, free: 51.89 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00288/0.4488, allocations: 2.179 MB / 0.5921 GB, free: 50.55 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004496/0.4492, allocations: 0.9616 MB / 0.593 GB, free: 49.84 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002425/0.4495, allocations: 74.94 kB / 0.5931 GB, free: 49.82 MB / 446.1 MB Notification: Performance of SimCode: time 6.61e-07/0.4495, allocations: 0 / 0.5931 GB, free: 49.82 MB / 446.1 MB Notification: Performance of Templates: time 0.02172/0.4712, allocations: 15.86 MB / 0.6086 GB, free: 43 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