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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001369/0.001369, allocations: 110.4 kB / 18.94 MB, free: 2.949 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.00166/0.00166, allocations: 220.5 kB / 22.26 MB, free: 5.125 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.374/1.374, allocations: 230.6 MB / 256 MB, free: 7.98 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream main/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream main/package.mo): time 0.7359/0.7359, allocations: 100.3 MB / 412.7 MB, free: 3.668 MB / 318.1 MB " [Timeout remaining time 179] Using package ThermofluidStream with version 1.2.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream main/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.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"}) [Timeout 660] "Notification: ThermofluidStream requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: ThermofluidStream requested package Complex of version 4.0.0. Complex 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002371/0.002371, allocations: 86 kB / 0.5632 GB, free: 35.94 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1289/0.1313, allocations: 74.47 MB / 0.636 GB, free: 7.668 MB / 478.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Examples.WaterHammer): time 0.03278/0.1641, allocations: 31.57 MB / 0.6668 GB, free: 7.977 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.01209/0.1761, allocations: 9.82 MB / 0.6764 GB, free: 14.13 MB / 0.5137 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001137/0.1773, allocations: 51.5 kB / 0.6764 GB, free: 14.08 MB / 0.5137 GB Notification: Performance of NFTyping.typeComponents: time 0.001794/0.1791, allocations: 0.5279 MB / 0.6769 GB, free: 13.55 MB / 0.5137 GB Notification: Performance of NFTyping.typeBindings: time 0.002734/0.1818, allocations: 0.8191 MB / 0.6777 GB, free: 12.72 MB / 0.5137 GB Notification: Performance of NFTyping.typeClassSections: time 0.002102/0.1839, allocations: 0.707 MB / 0.6784 GB, free: 12.02 MB / 0.5137 GB Notification: Performance of NFFlatten.flatten: time 0.002558/0.1865, allocations: 1.505 MB / 0.6799 GB, free: 10.5 MB / 0.5137 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000472/0.1869, allocations: 190.2 kB / 0.6801 GB, free: 10.3 MB / 0.5137 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001451/0.1884, allocations: 0.6537 MB / 0.6807 GB, free: 9.645 MB / 0.5137 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001067/0.1895, allocations: 0.5365 MB / 0.6813 GB, free: 9.105 MB / 0.5137 GB Notification: Performance of NFPackage.collectConstants: time 0.000211/0.1897, allocations: 79.98 kB / 0.6813 GB, free: 9.027 MB / 0.5137 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001477/0.1912, allocations: 0.5229 MB / 0.6818 GB, free: 8.504 MB / 0.5137 GB Notification: Performance of NFScalarize.scalarize: time 0.0002748/0.1914, allocations: 211.1 kB / 0.682 GB, free: 8.297 MB / 0.5137 GB Notification: Performance of NFVerifyModel.verify: time 0.0005405/0.192, allocations: 0.5168 MB / 0.6825 GB, free: 7.777 MB / 0.5137 GB Notification: Performance of NFConvertDAE.convert: time 0.002166/0.1941, allocations: 1.405 MB / 0.6839 GB, free: 6.367 MB / 0.5137 GB Notification: Performance of FrontEnd - DAE generated: time 4.198e-06/0.1941, allocations: 4 kB / 0.6839 GB, free: 6.363 MB / 0.5137 GB Notification: Performance of FrontEnd: time 1.453e-06/0.1941, allocations: 0 / 0.6839 GB, free: 6.363 MB / 0.5137 GB Notification: Performance of Transformations before backend: time 1.419e-05/0.1942, allocations: 0 / 0.6839 GB, free: 6.363 MB / 0.5137 GB 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.002553/0.1967, allocations: 1.387 MB / 0.6853 GB, free: 4.938 MB / 0.5137 GB Notification: Performance of prepare preOptimizeDAE: time 3.532e-05/0.1967, allocations: 8.031 kB / 0.6853 GB, free: 4.93 MB / 0.5137 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001317/0.1969, allocations: 118.7 kB / 0.6854 GB, free: 4.805 MB / 0.5137 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002502/0.1971, allocations: 128.2 kB / 0.6855 GB, free: 4.68 MB / 0.5137 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001176/0.1983, allocations: 0.6715 MB / 0.6862 GB, free: 3.977 MB / 0.5137 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.86e-05/0.1984, allocations: 58 kB / 0.6862 GB, free: 3.918 MB / 0.5137 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001221/0.1985, allocations: 80 kB / 0.6863 GB, free: 3.84 MB / 0.5137 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00132/0.1998, allocations: 0.7954 MB / 0.6871 GB, free: 3.027 MB / 0.5137 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.36e-05/0.1998, allocations: 7.938 kB / 0.6871 GB, free: 3.02 MB / 0.5137 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.139e-05/0.1999, allocations: 32 kB / 0.6871 GB, free: 2.988 MB / 0.5137 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.915e-05/0.1999, allocations: 16 kB / 0.6871 GB, free: 2.973 MB / 0.5137 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001144/0.201, allocations: 0.6441 MB / 0.6878 GB, free: 2.328 MB / 0.5137 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004417/0.2055, allocations: 3.647 MB / 0.6913 GB, free: 14.33 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001089/0.2066, allocations: 0.5502 MB / 0.6919 GB, free: 13.77 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004602/0.207, allocations: 260.4 kB / 0.6921 GB, free: 13.52 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001971/0.209, allocations: 1.092 MB / 0.6932 GB, free: 12.4 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006952/0.2097, allocations: 375.2 kB / 0.6935 GB, free: 12.02 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=63): time 1.744e-06/0.2097, allocations: 0 / 0.6935 GB, free: 12.02 MB / 0.5294 GB Notification: Performance of matching and sorting (n=65): time 0.003667/0.2133, allocations: 1.736 MB / 0.6952 GB, free: 10.25 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.308e-05/0.2134, allocations: 85.77 kB / 0.6953 GB, free: 10.15 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008066/0.2142, allocations: 0.6337 MB / 0.6959 GB, free: 9.504 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 5.693e-05/0.2143, allocations: 41.7 kB / 0.696 GB, free: 9.457 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003519/0.2146, allocations: 440.6 kB / 0.6964 GB, free: 9.02 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001923/0.2148, allocations: 234 kB / 0.6966 GB, free: 8.789 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001756/0.215, allocations: 122.3 kB / 0.6967 GB, free: 8.66 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 0.00016/0.2152, allocations: 334 kB / 0.697 GB, free: 8.328 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004475/0.2156, allocations: 209.5 kB / 0.6972 GB, free: 8.125 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000532/0.2162, allocations: 327.4 kB / 0.6976 GB, free: 7.77 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009741/0.2171, allocations: 0.5617 MB / 0.6981 GB, free: 7.168 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.865e-06/0.2171, allocations: 0 / 0.6981 GB, free: 7.168 MB / 0.5294 GB Notification: Performance of matching and sorting (n=83) (initialization): time 0.001498/0.2186, allocations: 0.8074 MB / 0.6989 GB, free: 6.344 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 6.36e-05/0.2187, allocations: 37.7 kB / 0.6989 GB, free: 6.301 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.138e-05/0.2187, allocations: 0 / 0.6989 GB, free: 6.301 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003748/0.2191, allocations: 100.9 kB / 0.699 GB, free: 6.199 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004842/0.2196, allocations: 131.8 kB / 0.6992 GB, free: 6.07 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002175/0.2217, allocations: 1.879 MB / 0.701 GB, free: 4.078 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003783/0.2221, allocations: 27.98 kB / 0.701 GB, free: 4.051 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.265e-05/0.2222, allocations: 31.98 kB / 0.701 GB, free: 4.02 MB / 0.5294 GB 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.0003499/0.2225, allocations: 218.8 kB / 0.7013 GB, free: 3.797 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001291/0.2227, allocations: 95.33 kB / 0.7013 GB, free: 3.703 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001717/0.2244, allocations: 0.8568 MB / 0.7022 GB, free: 2.824 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.222e-05/0.2244, allocations: 8 kB / 0.7022 GB, free: 2.816 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.412e-06/0.2244, allocations: 8 kB / 0.7022 GB, free: 2.809 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.188e-05/0.2244, allocations: 7.969 kB / 0.7022 GB, free: 2.801 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002675/0.2271, allocations: 1.568 MB / 0.7037 GB, free: 1.168 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.612e-06/0.2271, allocations: 4 kB / 0.7037 GB, free: 1.164 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004569/0.2275, allocations: 107.9 kB / 0.7038 GB, free: 1.059 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003287/0.2279, allocations: 112.7 kB / 0.704 GB, free: 0.9453 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.389e-05/0.2279, allocations: 19.98 kB / 0.704 GB, free: 0.9258 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002101/0.23, allocations: 1.866 MB / 0.7058 GB, free: 14.95 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.723e-06/0.23, allocations: 288 / 0.7058 GB, free: 14.95 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001905/0.2319, allocations: 1.085 MB / 0.7069 GB, free: 13.83 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002938/0.2322, allocations: 143.4 kB / 0.707 GB, free: 13.69 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001017/0.2323, allocations: 15.94 kB / 0.707 GB, free: 13.68 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004084/0.2327, allocations: 35.91 kB / 0.707 GB, free: 13.64 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001222/0.2329, allocations: 56.39 kB / 0.7071 GB, free: 13.59 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.831e-05/0.2329, allocations: 19.98 kB / 0.7071 GB, free: 13.57 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.0005605/0.2335, allocations: 463 kB / 0.7076 GB, free: 13.12 MB / 0.545 GB Notification: Performance of sort global known variables: time 9e-08/0.2335, allocations: 0 / 0.7076 GB, free: 13.12 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.0008164/0.2343, allocations: 279.7 kB / 0.7078 GB, free: 12.85 MB / 0.545 GB 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.002659/0.2369, allocations: 1.886 MB / 0.7097 GB, free: 10.91 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.001455/0.2384, allocations: 0.7402 MB / 0.7104 GB, free: 10.15 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 3.086e-06/0.2384, allocations: 0 / 0.7104 GB, free: 10.15 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.0008226/0.2392, allocations: 454 kB / 0.7108 GB, free: 9.695 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001091/0.2403, allocations: 243.1 kB / 0.7111 GB, free: 9.461 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0102/0.2505, allocations: 6.611 MB / 0.7175 GB, free: 2.645 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007308/0.2513, allocations: 1.005 MB / 0.7185 GB, free: 1.613 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.0004947/0.2517, allocations: 149.8 kB / 0.7186 GB, free: 1.465 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004709/0.2522, allocations: 367.3 kB / 0.719 GB, free: 1.105 MB / 0.545 GB Notification: Performance of SimCode: time 5.91e-07/0.2522, allocations: 4 kB / 0.719 GB, free: 1.102 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06499/0.3172, allocations: 23.25 MB / 0.7417 GB, free: 10.07 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate platform static: time 14.64/14.96, allocations: 7.922 kB / 0.7417 GB, free: 10.07 MB / 0.5762 GB " [Timeout remaining time 645] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ThermofluidStream_dev_ThermofluidStream.Examples.WaterHammer_res.mat --tempDir=temp_ThermofluidStream_dev_ThermofluidStream_Examples_WaterHammer_fmu --startTime=0 --stopTime=25 --stepSize=0.025 --timeout=1200 --tolerance=1e-06 ThermofluidStream_dev_ThermofluidStream_Examples_WaterHammer.fmu > ThermofluidStream_dev_ThermofluidStream.Examples.WaterHammer.pipe 2>&1) [Timeout 1260.0] diffSimulationResults("ThermofluidStream_dev_ThermofluidStream.Examples.WaterHammer_res.mat","/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) [Timeout 660] "Error: Could not read variable pulse.T_start in file ThermofluidStream_dev_ThermofluidStream.Examples.WaterHammer_res.mat. Warning: Get data of variable pulse.T_start from file ThermofluidStream_dev_ThermofluidStream.Examples.WaterHammer_res.mat failed! Error: Could not read variable pulse.count in file ThermofluidStream_dev_ThermofluidStream.Examples.WaterHammer_res.mat. Warning: Get data of variable pulse.count from file ThermofluidStream_dev_ThermofluidStream.Examples.WaterHammer_res.mat failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 18.87693282822147]