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/package.mo", uses=false) Using package ThermofluidStream with version 1.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0/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.001757/0.001757, 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.001393/0.001394, allocations: 192.2 kB / 16.14 MB, free: 6.637 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.444/1.444, allocations: 222.9 MB / 239.8 MB, free: 4.613 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0/package.mo): time 0.7392/0.7392, allocations: 89.46 MB / 379.4 MB, free: 11.2 MB / 318.1 MB Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Dassl" Notification: Performance of FrontEnd - loaded program: time 0.001526/0.001526, allocations: 85.36 kB / 457.5 MB, free: 23.88 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1303/0.1318, allocations: 67.3 MB / 0.5125 GB, free: 12.91 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Examples.WaterHammer): time 0.03281/0.1647, allocations: 31.11 MB / 0.5429 GB, free: 13.69 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.01407/0.1788, allocations: 9.722 MB / 0.5524 GB, free: 3.934 MB / 430.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0/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/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/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.001333/0.1802, allocations: 19.88 kB / 0.5524 GB, free: 3.914 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001601/0.1818, allocations: 465.6 kB / 0.5528 GB, free: 3.457 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002604/0.1844, allocations: 0.6951 MB / 0.5535 GB, free: 2.758 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00218/0.1866, allocations: 0.626 MB / 0.5541 GB, free: 2.133 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.002522/0.1891, allocations: 1.619 MB / 0.5557 GB, free: 0.5078 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004935/0.1897, allocations: 261.9 kB / 0.556 GB, free: 244 kB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001251/0.1909, allocations: 0.5058 MB / 0.5565 GB, free: 15.73 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000723/0.1917, allocations: 0.5171 MB / 0.557 GB, free: 15.21 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001182/0.1918, allocations: 56 kB / 0.557 GB, free: 15.16 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001686/0.1935, allocations: 491.5 kB / 0.5575 GB, free: 14.68 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002229/0.1937, allocations: 179.2 kB / 0.5577 GB, free: 14.5 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006656/0.1944, allocations: 473.5 kB / 0.5581 GB, free: 14.04 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002193/0.1966, allocations: 1.242 MB / 0.5593 GB, free: 12.79 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.047e-06/0.1966, allocations: 0 / 0.5593 GB, free: 12.79 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.503e-06/0.1966, allocations: 0 / 0.5593 GB, free: 12.79 MB / 446.1 MB Notification: Performance of Transformations before backend: time 1.54e-05/0.1966, allocations: 0 / 0.5593 GB, free: 12.79 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.002675/0.1993, allocations: 1.313 MB / 0.5606 GB, free: 11.42 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.859e-05/0.1994, allocations: 12.03 kB / 0.5606 GB, free: 11.41 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003105/0.1997, allocations: 111.7 kB / 0.5607 GB, free: 11.3 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008255/0.2005, allocations: 0.5441 MB / 0.5613 GB, free: 10.71 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.314e-05/0.2006, allocations: 58.38 kB / 0.5613 GB, free: 10.66 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001189/0.2007, allocations: 80.12 kB / 0.5614 GB, free: 10.58 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00146/0.2022, allocations: 0.8032 MB / 0.5622 GB, free: 9.758 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.923e-05/0.2022, allocations: 7.922 kB / 0.5622 GB, free: 9.75 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.298e-05/0.2023, allocations: 32 kB / 0.5622 GB, free: 9.719 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.619e-05/0.2024, allocations: 16 kB / 0.5622 GB, free: 9.703 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001227/0.2036, allocations: 0.6363 MB / 0.5628 GB, free: 9.066 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004862/0.2085, allocations: 3.687 MB / 0.5664 GB, free: 5.012 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00122/0.2097, allocations: 0.5841 MB / 0.567 GB, free: 4.422 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004855/0.2102, allocations: 287.9 kB / 0.5673 GB, free: 4.141 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002872/0.2131, allocations: 2.527 MB / 0.5698 GB, free: 1.234 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007085/0.2138, allocations: 373.8 kB / 0.5701 GB, free: 0.8516 MB / 446.1 MB Notification: Performance of pre-optimization done (n=63): time 2.394e-06/0.2138, allocations: 0 / 0.5701 GB, free: 0.8516 MB / 446.1 MB Notification: Performance of matching and sorting (n=65): time 0.004026/0.2179, allocations: 1.908 MB / 0.572 GB, free: 14.85 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.772e-05/0.218, allocations: 81.67 kB / 0.5721 GB, free: 14.75 MB / 462.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0/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/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/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.0007111/0.2187, allocations: 0.5448 MB / 0.5726 GB, free: 14.2 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 5.655e-05/0.2187, allocations: 45.7 kB / 0.5726 GB, free: 14.15 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003078/0.2191, allocations: 391.9 kB / 0.573 GB, free: 13.76 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000182/0.2193, allocations: 220.7 kB / 0.5732 GB, free: 13.54 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002017/0.2195, allocations: 126.6 kB / 0.5733 GB, free: 13.41 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001982/0.2197, allocations: 386.8 kB / 0.5737 GB, free: 13.03 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004599/0.2201, allocations: 213.9 kB / 0.5739 GB, free: 12.82 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005461/0.2207, allocations: 316 kB / 0.5742 GB, free: 12.48 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009803/0.2217, allocations: 0.5691 MB / 0.5748 GB, free: 11.88 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.565e-06/0.2217, allocations: 0 / 0.5748 GB, free: 11.88 MB / 462.1 MB Notification: Performance of matching and sorting (n=84) (initialization): time 0.001607/0.2233, allocations: 0.8033 MB / 0.5756 GB, free: 11.05 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.23e-05/0.2234, allocations: 33.7 kB / 0.5756 GB, free: 11.02 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.137e-05/0.2234, allocations: 4 kB / 0.5756 GB, free: 11.01 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004588/0.2238, allocations: 104.8 kB / 0.5757 GB, free: 10.91 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005261/0.2244, allocations: 135.8 kB / 0.5758 GB, free: 10.77 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002123/0.2265, allocations: 1.824 MB / 0.5776 GB, free: 8.812 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000648/0.2272, allocations: 55.95 kB / 0.5777 GB, free: 8.758 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.259e-05/0.2273, allocations: 24.09 kB / 0.5777 GB, free: 8.734 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.0004289/0.2277, allocations: 221.6 kB / 0.5779 GB, free: 8.508 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001393/0.2279, allocations: 75.06 kB / 0.578 GB, free: 8.434 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001802/0.2297, allocations: 0.841 MB / 0.5788 GB, free: 7.57 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.512e-06/0.2297, allocations: 4 kB / 0.5788 GB, free: 7.566 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.751e-06/0.2297, allocations: 4 kB / 0.5788 GB, free: 7.562 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.476e-06/0.2297, allocations: 3.984 kB / 0.5788 GB, free: 7.559 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002677/0.2324, allocations: 1.578 MB / 0.5803 GB, free: 5.914 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.979e-06/0.2324, allocations: 0 / 0.5803 GB, free: 5.914 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004946/0.2329, allocations: 111.9 kB / 0.5804 GB, free: 5.805 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003501/0.2333, allocations: 100.6 kB / 0.5805 GB, free: 5.703 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.124e-05/0.2333, allocations: 28.05 kB / 0.5806 GB, free: 5.676 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002007/0.2354, allocations: 1.835 MB / 0.5824 GB, free: 3.707 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.817e-06/0.2354, allocations: 0 / 0.5824 GB, free: 3.707 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002018/0.2374, allocations: 1.065 MB / 0.5834 GB, free: 2.613 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00035/0.2378, allocations: 200.2 kB / 0.5836 GB, free: 2.398 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.941e-05/0.2379, allocations: 15.94 kB / 0.5836 GB, free: 2.383 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004986/0.2384, allocations: 59.8 kB / 0.5837 GB, free: 2.324 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001363/0.2385, allocations: 52.48 kB / 0.5837 GB, free: 2.273 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.964e-05/0.2386, allocations: 28.11 kB / 0.5837 GB, free: 2.246 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.0005426/0.2391, allocations: 391.1 kB / 0.5841 GB, free: 1.867 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.2391, allocations: 4 kB / 0.5841 GB, free: 1.863 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.001034/0.2402, allocations: 275.9 kB / 0.5844 GB, free: 1.594 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.0007284/0.2409, allocations: 351.1 kB / 0.5847 GB, free: 1.242 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.001768/0.2427, allocations: 0.7715 MB / 0.5855 GB, free: 452 kB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 6.212e-06/0.2427, allocations: 4 kB / 0.5855 GB, free: 448 kB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.2487/0.4915, allocations: 468.8 kB / 0.5859 GB, free: 75.01 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001597/0.4931, allocations: 209.7 kB / 0.5861 GB, free: 75 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003131/0.4962, allocations: 2.015 MB / 0.5881 GB, free: 74.09 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004944/0.4967, allocations: 0.9628 MB / 0.589 GB, free: 73.39 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.0005705/0.4973, allocations: 132.4 kB / 0.5891 GB, free: 73.35 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001911/0.4975, allocations: 65.36 kB / 0.5892 GB, free: 73.34 MB / 462.1 MB Notification: Performance of SimCode: time 8.62e-07/0.4975, allocations: 0 / 0.5892 GB, free: 73.34 MB / 462.1 MB Notification: Performance of Templates: time 0.02163/0.5192, allocations: 13.14 MB / 0.602 GB, free: 70.17 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