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: "" <> buildModelFMU(ThermofluidStream.Examples.WaterHammer,fileNamePrefix="ThermofluidStream_ThermofluidStream_Examples_WaterHammer",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermofluidStream.Examples.WaterHammer,fileNamePrefix="ThermofluidStream_ThermofluidStream_Examples_WaterHammer",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001581/0.001581, allocations: 108 kB / 15.61 MB, free: 152 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.001886/0.001886, allocations: 195.4 kB / 16.53 MB, free: 6.664 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.408/1.408, allocations: 222.9 MB / 240.2 MB, free: 4.383 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo): time 0.6794/0.6794, allocations: 91.2 MB / 381.6 MB, free: 9.406 MB / 318.1 MB Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Dassl" Notification: Performance of FrontEnd - loaded program: time 0.001493/0.001493, allocations: 80.88 kB / 460.4 MB, free: 23.06 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.129/0.1305, allocations: 67.7 MB / 0.5157 GB, free: 10.1 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Examples.WaterHammer): time 0.03125/0.1618, allocations: 30.88 MB / 0.5459 GB, free: 11.09 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.01106/0.1729, allocations: 9.695 MB / 0.5554 GB, free: 1.363 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.00147/0.1745, allocations: 35.75 kB / 0.5554 GB, free: 1.328 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001422/0.1759, allocations: 0.5278 MB / 0.5559 GB, free: 0.7969 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002229/0.1781, allocations: 0.7957 MB / 0.5567 GB, free: 15.99 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001912/0.1801, allocations: 0.6871 MB / 0.5574 GB, free: 15.3 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.001637/0.1817, allocations: 1.451 MB / 0.5588 GB, free: 13.85 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004633/0.1822, allocations: 297.7 kB / 0.5591 GB, free: 13.55 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009406/0.1831, allocations: 0.5952 MB / 0.5596 GB, free: 12.96 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005688/0.1837, allocations: 0.5365 MB / 0.5602 GB, free: 12.42 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001201/0.1838, allocations: 80 kB / 0.5602 GB, free: 12.34 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001332/0.1852, allocations: 0.5112 MB / 0.5607 GB, free: 11.83 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001905/0.1854, allocations: 199.2 kB / 0.5609 GB, free: 11.63 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004814/0.1859, allocations: 0.5168 MB / 0.5614 GB, free: 11.11 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001742/0.1876, allocations: 1.355 MB / 0.5628 GB, free: 9.754 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.348e-06/0.1876, allocations: 0 / 0.5628 GB, free: 9.754 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.332e-06/0.1877, allocations: 0 / 0.5628 GB, free: 9.754 MB / 446.1 MB Notification: Performance of Transformations before backend: time 1.268e-05/0.1877, allocations: 4 kB / 0.5628 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.002329/0.19, allocations: 1.405 MB / 0.5641 GB, free: 8.285 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.508e-05/0.1901, allocations: 12.03 kB / 0.5641 GB, free: 8.273 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001293/0.1902, allocations: 114.7 kB / 0.5643 GB, free: 8.152 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002506/0.1904, allocations: 123.5 kB / 0.5644 GB, free: 8.031 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009106/0.1914, allocations: 0.6843 MB / 0.565 GB, free: 7.305 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.606e-05/0.1914, allocations: 62 kB / 0.5651 GB, free: 7.246 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001107/0.1915, allocations: 83.91 kB / 0.5652 GB, free: 7.164 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001228/0.1928, allocations: 0.7916 MB / 0.566 GB, free: 6.352 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.729e-05/0.1928, allocations: 3.938 kB / 0.566 GB, free: 6.348 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.717e-05/0.1929, allocations: 32 kB / 0.566 GB, free: 6.316 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.6e-05/0.1929, allocations: 20 kB / 0.566 GB, free: 6.297 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00112/0.194, allocations: 0.6402 MB / 0.5666 GB, free: 5.66 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004028/0.1981, allocations: 3.745 MB / 0.5703 GB, free: 1.543 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001084/0.1992, allocations: 0.5891 MB / 0.5709 GB, free: 0.9492 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004714/0.1997, allocations: 284 kB / 0.5711 GB, free: 0.6719 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002639/0.2023, allocations: 2.527 MB / 0.5736 GB, free: 13.77 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006429/0.203, allocations: 369.9 kB / 0.574 GB, free: 13.39 MB / 462.1 MB Notification: Performance of pre-optimization done (n=63): time 2.725e-06/0.203, allocations: 3.938 kB / 0.574 GB, free: 13.38 MB / 462.1 MB Notification: Performance of matching and sorting (n=65): time 0.003711/0.2067, allocations: 1.935 MB / 0.5758 GB, free: 11.36 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.838e-05/0.2068, allocations: 89.67 kB / 0.5759 GB, free: 11.25 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.0007758/0.2075, allocations: 0.6335 MB / 0.5766 GB, free: 10.61 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 5.085e-05/0.2076, allocations: 37.7 kB / 0.5766 GB, free: 10.56 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003205/0.2079, allocations: 447.9 kB / 0.577 GB, free: 10.12 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001639/0.2081, allocations: 224.7 kB / 0.5772 GB, free: 9.898 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001877/0.2083, allocations: 126.6 kB / 0.5774 GB, free: 9.766 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001434/0.2085, allocations: 330 kB / 0.5777 GB, free: 9.438 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004793/0.2089, allocations: 213.9 kB / 0.5779 GB, free: 9.23 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006025/0.2096, allocations: 324 kB / 0.5782 GB, free: 8.875 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009869/0.2106, allocations: 0.5691 MB / 0.5787 GB, free: 8.266 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.937e-06/0.2106, allocations: 3.938 kB / 0.5787 GB, free: 8.262 MB / 462.1 MB Notification: Performance of matching and sorting (n=84) (initialization): time 0.001483/0.2121, allocations: 0.803 MB / 0.5795 GB, free: 7.441 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.004e-05/0.2121, allocations: 36.2 kB / 0.5796 GB, free: 7.402 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.054e-05/0.2121, allocations: 4.266 kB / 0.5796 GB, free: 7.398 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003719/0.2125, allocations: 100.7 kB / 0.5797 GB, free: 7.297 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000501/0.213, allocations: 139.8 kB / 0.5798 GB, free: 7.16 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002102/0.2151, allocations: 1.981 MB / 0.5817 GB, free: 5.039 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004457/0.2156, allocations: 19.98 kB / 0.5817 GB, free: 5.02 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.596e-05/0.2157, allocations: 32.27 kB / 0.5818 GB, free: 4.988 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.0004183/0.2161, allocations: 225.6 kB / 0.582 GB, free: 4.758 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000136/0.2163, allocations: 90.89 kB / 0.5821 GB, free: 4.668 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001628/0.2179, allocations: 0.854 MB / 0.5829 GB, free: 3.789 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.872e-06/0.2179, allocations: 4 kB / 0.5829 GB, free: 3.785 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.29e-06/0.2179, allocations: 4 kB / 0.5829 GB, free: 3.781 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.007e-05/0.2179, allocations: 3.984 kB / 0.5829 GB, free: 3.777 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002455/0.2204, allocations: 1.609 MB / 0.5845 GB, free: 2.098 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.553e-06/0.2204, allocations: 11.92 kB / 0.5845 GB, free: 2.086 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005244/0.2209, allocations: 115.8 kB / 0.5846 GB, free: 1.973 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003946/0.2214, allocations: 104.8 kB / 0.5847 GB, free: 1.867 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.299e-05/0.2214, allocations: 23.98 kB / 0.5847 GB, free: 1.844 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2706/0.4921, allocations: 1.97 MB / 0.5867 GB, free: 71.59 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.775e-06/0.4921, allocations: 0.9062 kB / 0.5867 GB, free: 71.59 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002223/0.4943, allocations: 1.08 MB / 0.5877 GB, free: 71.43 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003518/0.4947, allocations: 209.3 kB / 0.5879 GB, free: 71.34 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001103/0.4948, allocations: 13.98 kB / 0.5879 GB, free: 71.34 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004253/0.4953, allocations: 26.02 kB / 0.588 GB, free: 71.34 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001506/0.4954, allocations: 54.86 kB / 0.588 GB, free: 71.34 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.634e-05/0.4955, allocations: 31.94 kB / 0.588 GB, free: 71.34 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.0006988/0.4962, allocations: 454.5 kB / 0.5885 GB, free: 71.25 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.9e-07/0.4962, allocations: 1 kB / 0.5885 GB, free: 71.25 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.0009999/0.4972, allocations: 281.1 kB / 0.5887 GB, free: 71.25 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.002673/0.4999, allocations: 1.882 MB / 0.5906 GB, free: 70.48 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.001876/0.5018, allocations: 0.7952 MB / 0.5914 GB, free: 70.11 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 3.667e-06/0.5018, allocations: 0 / 0.5914 GB, free: 70.11 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000901/0.5027, allocations: 477 kB / 0.5918 GB, free: 69.89 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001123/0.5038, allocations: 235.7 kB / 0.592 GB, free: 69.83 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009152/0.513, allocations: 6.904 MB / 0.5988 GB, free: 66.05 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004808/0.5135, allocations: 0.9934 MB / 0.5997 GB, free: 65.33 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.0006474/0.5142, allocations: 156.8 kB / 0.5999 GB, free: 65.28 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003662/0.5146, allocations: 364 kB / 0.6002 GB, free: 65.01 MB / 462.1 MB Notification: Performance of SimCode: time 8.62e-07/0.5146, allocations: 0 / 0.6002 GB, free: 65.01 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05315/0.5677, allocations: 22.23 MB / 0.622 GB, free: 56.14 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.711/10.28, allocations: 11.78 kB / 0.622 GB, free: 56.12 MB / 462.1 MB (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 & python3 -m fmpy simulate --output-file ThermofluidStream_ThermofluidStream.Examples.WaterHammer_res.csv --start-time 0 --stop-time 25 --timeout 1200 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.025 ThermofluidStream_ThermofluidStream_Examples_WaterHammer.fmu > ThermofluidStream_ThermofluidStream.Examples.WaterHammer.pipe 2>&1) diffSimulationResults("ThermofluidStream_ThermofluidStream.Examples.WaterHammer_res.csv","/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