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.001104/0.001104, allocations: 90.52 kB / 15.36 MB, free: 0.7383 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.007328/0.007328, allocations: 171.1 kB / 16.26 MB, free: 6.613 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.387/1.387, allocations: 223.3 MB / 240.3 MB, free: 5.348 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo): time 0.6985/0.6985, allocations: 91.32 MB / 382.7 MB, free: 9.656 MB / 318.1 MB Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Dassl" Notification: Performance of FrontEnd - loaded program: time 0.0004196/0.0004196, allocations: 9.906 kB / 462.7 MB, free: 23.58 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1411/0.1415, allocations: 69.21 MB / 0.5195 GB, free: 9.117 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Examples.WaterHammer): time 0.0321/0.1737, allocations: 30.76 MB / 0.5495 GB, free: 10.23 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.01262/0.1864, allocations: 9.669 MB / 0.5589 GB, free: 0.5391 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.001327/0.1877, allocations: 39.75 kB / 0.559 GB, free: 0.5 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001494/0.1892, allocations: 473.5 kB / 0.5594 GB, free: 36 kB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002383/0.1916, allocations: 0.7223 MB / 0.5601 GB, free: 15.31 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001982/0.1936, allocations: 0.6342 MB / 0.5607 GB, free: 14.68 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.002156/0.1958, allocations: 1.693 MB / 0.5624 GB, free: 12.98 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00043/0.1962, allocations: 262 kB / 0.5626 GB, free: 12.71 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001002/0.1973, allocations: 0.5327 MB / 0.5632 GB, free: 12.18 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006016/0.1979, allocations: 493.4 kB / 0.5636 GB, free: 11.7 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 9.441e-05/0.198, allocations: 36 kB / 0.5637 GB, free: 11.66 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001453/0.1994, allocations: 487.4 kB / 0.5641 GB, free: 11.18 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000177/0.1996, allocations: 151.2 kB / 0.5643 GB, free: 11.04 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005961/0.2002, allocations: 0.491 MB / 0.5648 GB, free: 10.54 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002045/0.2023, allocations: 1.269 MB / 0.566 GB, free: 9.262 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.288e-06/0.2023, allocations: 0 / 0.566 GB, free: 9.262 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.613e-06/0.2023, allocations: 4 kB / 0.566 GB, free: 9.258 MB / 446.1 MB Notification: Performance of Transformations before backend: time 1.671e-05/0.2023, allocations: 0 / 0.566 GB, free: 9.258 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.002552/0.2049, allocations: 1.234 MB / 0.5672 GB, free: 7.965 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.64e-05/0.2049, allocations: 8.031 kB / 0.5672 GB, free: 7.957 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002651/0.2052, allocations: 127.5 kB / 0.5673 GB, free: 7.832 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001098/0.2063, allocations: 0.6768 MB / 0.568 GB, free: 7.113 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.094e-05/0.2064, allocations: 54 kB / 0.5681 GB, free: 7.062 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001216/0.2065, allocations: 76 kB / 0.5681 GB, free: 6.988 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00156/0.2081, allocations: 0.8071 MB / 0.5689 GB, free: 6.16 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.998e-05/0.2081, allocations: 0 / 0.5689 GB, free: 6.16 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.439e-05/0.2082, allocations: 35.98 kB / 0.5689 GB, free: 6.125 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.766e-05/0.2082, allocations: 16 kB / 0.569 GB, free: 6.109 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001246/0.2095, allocations: 0.6519 MB / 0.5696 GB, free: 5.461 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005172/0.2147, allocations: 3.745 MB / 0.5733 GB, free: 1.34 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001299/0.216, allocations: 0.592 MB / 0.5738 GB, free: 0.7422 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005357/0.2166, allocations: 291.9 kB / 0.5741 GB, free: 468 kB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.2732/0.4898, allocations: 2.524 MB / 0.5766 GB, free: 56.06 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007845/0.4906, allocations: 374.3 kB / 0.5769 GB, free: 55.99 MB / 446.1 MB Notification: Performance of pre-optimization done (n=63): time 3.206e-06/0.4906, allocations: 2.812 kB / 0.5769 GB, free: 55.99 MB / 446.1 MB Notification: Performance of matching and sorting (n=65): time 0.004377/0.495, allocations: 1.965 MB / 0.5789 GB, free: 55.39 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.262e-05/0.4951, allocations: 90.47 kB / 0.5789 GB, free: 55.3 MB / 446.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.0009466/0.496, allocations: 0.6364 MB / 0.5796 GB, free: 55.16 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 5.26e-05/0.4961, allocations: 38.58 kB / 0.5796 GB, free: 55.12 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003201/0.4964, allocations: 440.6 kB / 0.58 GB, free: 54.78 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001402/0.4966, allocations: 224.7 kB / 0.5802 GB, free: 54.61 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.72e-05/0.4967, allocations: 58.34 kB / 0.5803 GB, free: 54.57 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 6.496e-05/0.4967, allocations: 333.4 kB / 0.5806 GB, free: 54.26 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004456/0.4972, allocations: 222.5 kB / 0.5808 GB, free: 54.18 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005615/0.4978, allocations: 326.3 kB / 0.5811 GB, free: 54 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001113/0.4989, allocations: 0.5834 MB / 0.5817 GB, free: 53.67 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.236e-06/0.4989, allocations: 0.8125 kB / 0.5817 GB, free: 53.67 MB / 446.1 MB Notification: Performance of matching and sorting (n=84) (initialization): time 0.001608/0.5005, allocations: 0.8201 MB / 0.5825 GB, free: 53.3 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.248e-05/0.5006, allocations: 39.5 kB / 0.5825 GB, free: 53.27 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.103e-05/0.5006, allocations: 3.688 kB / 0.5825 GB, free: 53.27 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003908/0.501, allocations: 107.5 kB / 0.5826 GB, free: 53.24 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005158/0.5015, allocations: 140.3 kB / 0.5828 GB, free: 53.22 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001789/0.5033, allocations: 1.822 MB / 0.5846 GB, free: 51.65 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005181/0.5038, allocations: 57.77 kB / 0.5846 GB, free: 51.63 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.449e-05/0.5039, allocations: 30.48 kB / 0.5846 GB, free: 51.62 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.0003406/0.5043, allocations: 224.5 kB / 0.5849 GB, free: 51.45 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001116/0.5044, allocations: 85.81 kB / 0.5849 GB, free: 51.4 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001559/0.506, allocations: 0.8646 MB / 0.5858 GB, free: 51.01 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.601e-06/0.506, allocations: 11.81 kB / 0.5858 GB, free: 51.01 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.536e-06/0.506, allocations: 0 / 0.5858 GB, free: 51.01 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.714e-06/0.506, allocations: 7.047 kB / 0.5858 GB, free: 51.01 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002325/0.5083, allocations: 1.625 MB / 0.5874 GB, free: 50.18 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.306e-06/0.5084, allocations: 0 / 0.5874 GB, free: 50.18 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004471/0.5088, allocations: 112.7 kB / 0.5875 GB, free: 50.17 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003349/0.5092, allocations: 105.4 kB / 0.5876 GB, free: 50.14 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.771e-05/0.5092, allocations: 20.39 kB / 0.5876 GB, free: 50.13 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001662/0.5109, allocations: 1.829 MB / 0.5894 GB, free: 48.55 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.078e-06/0.5109, allocations: 7.375 kB / 0.5894 GB, free: 48.55 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001766/0.5127, allocations: 1.094 MB / 0.5905 GB, free: 48 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002738/0.513, allocations: 208.6 kB / 0.5907 GB, free: 47.84 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.018e-05/0.5131, allocations: 17.86 kB / 0.5907 GB, free: 47.82 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004724/0.5135, allocations: 54.59 kB / 0.5907 GB, free: 47.82 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001343/0.5137, allocations: 58.53 kB / 0.5908 GB, free: 47.81 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.864e-05/0.5137, allocations: 24.44 kB / 0.5908 GB, free: 47.8 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.0005135/0.5143, allocations: 456.6 kB / 0.5913 GB, free: 47.61 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.393e-06/0.5143, allocations: 0 / 0.5913 GB, free: 47.61 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.0008807/0.5152, allocations: 285.5 kB / 0.5915 GB, free: 47.56 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.0005899/0.5158, allocations: 365.7 kB / 0.5919 GB, free: 47.44 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.001355/0.5171, allocations: 0.7884 MB / 0.5927 GB, free: 47.04 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 2.996e-06/0.5171, allocations: 0 / 0.5927 GB, free: 47.04 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007334/0.5179, allocations: 472.3 kB / 0.5931 GB, free: 46.81 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001248/0.5191, allocations: 223.7 kB / 0.5933 GB, free: 46.73 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003336/0.5225, allocations: 2.299 MB / 0.5956 GB, free: 45.34 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000571/0.5231, allocations: 0.9948 MB / 0.5965 GB, free: 44.63 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.0005805/0.5237, allocations: 146.9 kB / 0.5967 GB, free: 44.58 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001843/0.5238, allocations: 75.86 kB / 0.5967 GB, free: 44.56 MB / 446.1 MB Notification: Performance of SimCode: time 1.092e-06/0.5239, allocations: 0 / 0.5967 GB, free: 44.56 MB / 446.1 MB Notification: Performance of Templates: time 0.02617/0.55, allocations: 13.26 MB / 0.6097 GB, free: 39.09 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/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ThermofluidStream_ThermofluidStream.Examples.WaterHammer.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches