Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermofluidStream_dev_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_dev_ThermofluidStream_Examples_WaterHammer",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermofluidStream.Examples.WaterHammer,fileNamePrefix="ThermofluidStream_dev_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.001811/0.001811, allocations: 108 kB / 15.6 MB, free: 132 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.002061/0.002061, allocations: 191.3 kB / 16.53 MB, free: 6.391 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.44/1.44, allocations: 222.9 MB / 240.2 MB, free: 4.395 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo): time 0.7187/0.7187, allocations: 93.7 MB / 384.1 MB, free: 6.973 MB / 318.1 MB Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Dassl" Notification: Performance of FrontEnd - loaded program: time 0.00231/0.002311, allocations: 81.78 kB / 463.5 MB, free: 22.01 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.11/0.1123, allocations: 68.26 MB / 0.5193 GB, free: 6.918 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Examples.WaterHammer): time 0.03474/0.1471, allocations: 30.89 MB / 0.5495 GB, free: 7.902 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.012/0.1591, allocations: 9.727 MB / 0.559 GB, free: 14.15 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006349/0.1598, allocations: 35.75 kB / 0.559 GB, free: 14.11 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001182/0.161, allocations: 0.5162 MB / 0.5595 GB, free: 13.59 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001752/0.1627, allocations: 0.8035 MB / 0.5603 GB, free: 12.79 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001563/0.1643, allocations: 0.7 MB / 0.561 GB, free: 12.09 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.001684/0.166, allocations: 1.478 MB / 0.5624 GB, free: 10.6 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004516/0.1665, allocations: 293.7 kB / 0.5627 GB, free: 10.3 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009172/0.1674, allocations: 0.6108 MB / 0.5633 GB, free: 9.688 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006255/0.168, allocations: 0.5248 MB / 0.5638 GB, free: 9.16 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000136/0.1682, allocations: 80 kB / 0.5639 GB, free: 9.082 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00127/0.1695, allocations: 0.5112 MB / 0.5644 GB, free: 8.57 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000219/0.1697, allocations: 203.1 kB / 0.5646 GB, free: 8.371 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005453/0.1703, allocations: 0.5246 MB / 0.5651 GB, free: 7.844 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001862/0.1721, allocations: 1.351 MB / 0.5664 GB, free: 6.488 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.346e-06/0.1721, allocations: 4 kB / 0.5664 GB, free: 6.484 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.01e-05/0.1722, allocations: 0 / 0.5664 GB, free: 6.484 MB / 446.1 MB Notification: Performance of Transformations before backend: time 1.642e-05/0.1722, allocations: 3.938 kB / 0.5664 GB, free: 6.48 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: 183 * Number of variables: 183 Notification: Performance of Generate backend data structure: time 0.002626/0.1748, allocations: 1.416 MB / 0.5678 GB, free: 5 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.101e-05/0.1749, allocations: 15.97 kB / 0.5678 GB, free: 4.984 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001548/0.175, allocations: 118.7 kB / 0.5679 GB, free: 4.859 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002697/0.1753, allocations: 119.5 kB / 0.568 GB, free: 4.742 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001074/0.1764, allocations: 0.6961 MB / 0.5687 GB, free: 4.004 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.208e-05/0.1765, allocations: 54 kB / 0.5688 GB, free: 3.953 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001276/0.1766, allocations: 87.89 kB / 0.5688 GB, free: 3.867 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001404/0.178, allocations: 0.7915 MB / 0.5696 GB, free: 3.055 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.819e-05/0.178, allocations: 0 / 0.5696 GB, free: 3.055 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.677e-05/0.1781, allocations: 32 kB / 0.5696 GB, free: 3.023 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.091e-05/0.1781, allocations: 20 kB / 0.5697 GB, free: 3.004 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001275/0.1794, allocations: 0.6285 MB / 0.5703 GB, free: 2.379 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004911/0.1843, allocations: 3.741 MB / 0.5739 GB, free: 14.27 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001239/0.1856, allocations: 0.5835 MB / 0.5745 GB, free: 13.68 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00054/0.1861, allocations: 284 kB / 0.5748 GB, free: 13.4 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003018/0.1892, allocations: 2.531 MB / 0.5772 GB, free: 10.5 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007288/0.1899, allocations: 369.9 kB / 0.5776 GB, free: 10.11 MB / 462.1 MB Notification: Performance of pre-optimization done (n=63): time 4.278e-06/0.1899, allocations: 3.984 kB / 0.5776 GB, free: 10.11 MB / 462.1 MB Notification: Performance of matching and sorting (n=65): time 0.004169/0.1941, allocations: 1.943 MB / 0.5795 GB, free: 8.074 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.495e-05/0.1942, allocations: 81.67 kB / 0.5796 GB, free: 7.977 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008355/0.195, allocations: 0.6337 MB / 0.5802 GB, free: 7.332 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 5.963e-05/0.1951, allocations: 41.7 kB / 0.5802 GB, free: 7.285 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003934/0.1955, allocations: 443.8 kB / 0.5807 GB, free: 6.848 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002029/0.1957, allocations: 224.8 kB / 0.5809 GB, free: 6.625 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002016/0.1959, allocations: 114.3 kB / 0.581 GB, free: 6.508 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001645/0.1961, allocations: 338 kB / 0.5813 GB, free: 6.172 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004796/0.1966, allocations: 209.5 kB / 0.5815 GB, free: 5.969 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005852/0.1972, allocations: 335.4 kB / 0.5818 GB, free: 5.598 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001099/0.1983, allocations: 0.5536 MB / 0.5824 GB, free: 5.012 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.134e-06/0.1983, allocations: 7.938 kB / 0.5824 GB, free: 5.004 MB / 462.1 MB Notification: Performance of matching and sorting (n=83) (initialization): time 0.001668/0.2, allocations: 0.803 MB / 0.5832 GB, free: 4.184 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.254e-05/0.2, allocations: 37.62 kB / 0.5832 GB, free: 4.141 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.013e-06/0.2, allocations: 4 kB / 0.5832 GB, free: 4.137 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003906/0.2004, allocations: 104.9 kB / 0.5833 GB, free: 4.031 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005259/0.201, allocations: 127.8 kB / 0.5834 GB, free: 3.906 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00236/0.2034, allocations: 1.981 MB / 0.5854 GB, free: 1.785 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003895/0.2038, allocations: 24.05 kB / 0.5854 GB, free: 1.762 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.456e-05/0.2038, allocations: 31.98 kB / 0.5854 GB, free: 1.73 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 (73): * Single equations (assignments): 71 * 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.0003586/0.2042, allocations: 229.6 kB / 0.5856 GB, free: 1.496 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001454/0.2044, allocations: 86.91 kB / 0.5857 GB, free: 1.41 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001804/0.2062, allocations: 0.8545 MB / 0.5865 GB, free: 0.5312 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.566e-06/0.2062, allocations: 8 kB / 0.5866 GB, free: 0.5234 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.606e-06/0.2062, allocations: 7.984 kB / 0.5866 GB, free: 0.5156 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.823e-06/0.2062, allocations: 0 / 0.5866 GB, free: 0.5156 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1804/0.3866, allocations: 1.611 MB / 0.5881 GB, free: 69.53 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.641e-06/0.3866, allocations: 1.5 kB / 0.5881 GB, free: 69.53 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005019/0.3872, allocations: 115.2 kB / 0.5882 GB, free: 69.53 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00034/0.3875, allocations: 101 kB / 0.5883 GB, free: 69.52 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.945e-05/0.3876, allocations: 21.22 kB / 0.5884 GB, free: 69.52 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001662/0.3892, allocations: 1.977 MB / 0.5903 GB, free: 68.19 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.174e-06/0.3893, allocations: 1.688 kB / 0.5903 GB, free: 68.19 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001854/0.3911, allocations: 1.082 MB / 0.5913 GB, free: 67.73 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002487/0.3914, allocations: 215.2 kB / 0.5916 GB, free: 67.61 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001022/0.3915, allocations: 13.84 kB / 0.5916 GB, free: 67.6 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004225/0.3919, allocations: 34.3 kB / 0.5916 GB, free: 67.59 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001289/0.392, allocations: 56.78 kB / 0.5917 GB, free: 67.57 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.821e-05/0.3921, allocations: 28.03 kB / 0.5917 GB, free: 67.57 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.0005458/0.3927, allocations: 457.5 kB / 0.5921 GB, free: 67.38 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.3927, allocations: 0 / 0.5921 GB, free: 67.38 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.0008168/0.3935, allocations: 273.6 kB / 0.5924 GB, free: 67.34 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.002342/0.3958, allocations: 1.872 MB / 0.5942 GB, free: 66.3 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.001536/0.3974, allocations: 0.7999 MB / 0.595 GB, free: 65.91 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 4.108e-06/0.3974, allocations: 1 kB / 0.595 GB, free: 65.91 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007864/0.3982, allocations: 478.3 kB / 0.5954 GB, free: 65.68 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001155/0.3994, allocations: 242 kB / 0.5957 GB, free: 65.62 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008538/0.4079, allocations: 6.909 MB / 0.6024 GB, free: 61.78 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004484/0.4084, allocations: 1.004 MB / 0.6034 GB, free: 61.05 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.0005425/0.4089, allocations: 145.8 kB / 0.6035 GB, free: 61.01 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003922/0.4093, allocations: 365.6 kB / 0.6039 GB, free: 60.73 MB / 462.1 MB Notification: Performance of SimCode: time 6.62e-07/0.4094, allocations: 0 / 0.6039 GB, free: 60.73 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0524/0.4618, allocations: 22.31 MB / 0.6257 GB, free: 50.96 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.25/10.72, allocations: 6.125 kB / 0.6257 GB, free: 50.96 MB / 462.1 MB (rm -f ThermofluidStream_dev_ThermofluidStream.Examples.WaterHammer.pipe ; mkfifo ThermofluidStream_dev_ThermofluidStream.Examples.WaterHammer.pipe ; head -c 1048576 < ThermofluidStream_dev_ThermofluidStream.Examples.WaterHammer.pipe >> ../files/ThermofluidStream_dev_ThermofluidStream.Examples.WaterHammer.sim & python3 -m fmpy simulate --output-file ThermofluidStream_dev_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_dev_ThermofluidStream_Examples_WaterHammer.fmu > ThermofluidStream_dev_ThermofluidStream.Examples.WaterHammer.pipe 2>&1) diffSimulationResults("ThermofluidStream_dev_ThermofluidStream.Examples.WaterHammer_res.csv","/mnt/ReferenceFiles/ThermofluidStream-main-regression/ReferenceData/ThermofluidStream.Examples.WaterHammer_ref.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ThermofluidStream_dev_ThermofluidStream.Examples.WaterHammer.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches