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.001464/0.001464, allocations: 99.64 kB / 18.94 MB, free: 2.551 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.00171/0.00171, allocations: 212.3 kB / 22.25 MB, free: 4.859 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.486/1.486, allocations: 230.6 MB / 256 MB, free: 7.797 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.7947/0.7947, allocations: 100.9 MB / 413.3 MB, free: 2.883 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.002498/0.002498, allocations: 85.59 kB / 0.5641 GB, free: 35.43 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1266/0.1291, allocations: 74.62 MB / 0.6369 GB, free: 6.379 MB / 478.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Examples.WaterHammer): time 0.03245/0.1616, allocations: 28.61 MB / 0.6649 GB, free: 9.652 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.01167/0.1732, allocations: 8.91 MB / 0.6736 GB, free: 0.7188 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001072/0.1743, allocations: 51.5 kB / 0.6736 GB, free: 0.668 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 0.001339/0.1756, allocations: 476.8 kB / 0.6741 GB, free: 204 kB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 0.002139/0.1778, allocations: 0.8114 MB / 0.6749 GB, free: 15.38 MB / 0.5137 GB Notification: Performance of NFTyping.typeClassSections: time 0.001824/0.1796, allocations: 0.7012 MB / 0.6756 GB, free: 14.68 MB / 0.5137 GB Notification: Performance of NFFlatten.flatten: time 0.001799/0.1814, allocations: 1.509 MB / 0.677 GB, free: 13.17 MB / 0.5137 GB Notification: Performance of NFFlatten.resolveConnections: time 0.00036/0.1818, allocations: 174.3 kB / 0.6772 GB, free: 12.98 MB / 0.5137 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001088/0.1828, allocations: 0.6497 MB / 0.6778 GB, free: 12.33 MB / 0.5137 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0006703/0.1835, allocations: 0.4935 MB / 0.6783 GB, free: 11.83 MB / 0.5137 GB Notification: Performance of NFPackage.collectConstants: time 0.0001326/0.1836, allocations: 83.94 kB / 0.6784 GB, free: 11.75 MB / 0.5137 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001143/0.1848, allocations: 479.5 kB / 0.6788 GB, free: 11.28 MB / 0.5137 GB Notification: Performance of NFScalarize.scalarize: time 0.000201/0.185, allocations: 207 kB / 0.679 GB, free: 11.08 MB / 0.5137 GB Notification: Performance of NFVerifyModel.verify: time 0.0004318/0.1854, allocations: 433.8 kB / 0.6795 GB, free: 10.65 MB / 0.5137 GB Notification: Performance of NFConvertDAE.convert: time 0.002027/0.1874, allocations: 1.397 MB / 0.6808 GB, free: 9.25 MB / 0.5137 GB Notification: Performance of FrontEnd - DAE generated: time 3.437e-06/0.1874, allocations: 0 / 0.6808 GB, free: 9.25 MB / 0.5137 GB Notification: Performance of FrontEnd: time 1.493e-06/0.1875, allocations: 0 / 0.6808 GB, free: 9.25 MB / 0.5137 GB Notification: Performance of Transformations before backend: time 1.178e-05/0.1875, allocations: 0 / 0.6808 GB, free: 9.25 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.00244/0.1899, allocations: 1.387 MB / 0.6822 GB, free: 7.824 MB / 0.5137 GB Notification: Performance of prepare preOptimizeDAE: time 3.761e-05/0.1899, allocations: 9.469 kB / 0.6822 GB, free: 7.816 MB / 0.5137 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001438/0.1901, allocations: 122.7 kB / 0.6823 GB, free: 7.688 MB / 0.5137 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002976/0.1904, allocations: 136.2 kB / 0.6824 GB, free: 7.555 MB / 0.5137 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001249/0.1916, allocations: 0.6714 MB / 0.6831 GB, free: 6.852 MB / 0.5137 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.951e-05/0.1917, allocations: 58 kB / 0.6831 GB, free: 6.793 MB / 0.5137 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001171/0.1918, allocations: 72 kB / 0.6832 GB, free: 6.723 MB / 0.5137 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001474/0.1933, allocations: 1 MB / 0.6842 GB, free: 5.656 MB / 0.5137 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.113e-05/0.1933, allocations: 8 kB / 0.6842 GB, free: 5.648 MB / 0.5137 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.933e-05/0.1934, allocations: 28 kB / 0.6842 GB, free: 5.621 MB / 0.5137 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.795e-05/0.1934, allocations: 20 kB / 0.6842 GB, free: 5.602 MB / 0.5137 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001167/0.1946, allocations: 0.6285 MB / 0.6849 GB, free: 4.973 MB / 0.5137 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003854/0.1984, allocations: 2.252 MB / 0.6871 GB, free: 2.668 MB / 0.5137 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001119/0.1995, allocations: 0.5452 MB / 0.6876 GB, free: 2.109 MB / 0.5137 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004798/0.2, allocations: 256.5 kB / 0.6878 GB, free: 1.859 MB / 0.5137 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001973/0.202, allocations: 0.9909 MB / 0.6888 GB, free: 0.8477 MB / 0.5137 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007767/0.2028, allocations: 0.5467 MB / 0.6893 GB, free: 240 kB / 0.5137 GB Notification: Performance of pre-optimization done (n=63): time 2.094e-06/0.2028, allocations: 0 / 0.6893 GB, free: 240 kB / 0.5137 GB Notification: Performance of matching and sorting (n=65): time 0.003839/0.2066, allocations: 1.842 MB / 0.6911 GB, free: 14.36 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.083e-05/0.2067, allocations: 111.5 kB / 0.6912 GB, free: 14.23 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007613/0.2075, allocations: 0.6414 MB / 0.6919 GB, free: 13.57 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 5.407e-05/0.2075, allocations: 37.7 kB / 0.6919 GB, free: 13.53 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.000353/0.2079, allocations: 452.6 kB / 0.6923 GB, free: 13.08 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001846/0.208, allocations: 234 kB / 0.6926 GB, free: 12.85 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001794/0.2082, allocations: 118.3 kB / 0.6927 GB, free: 12.73 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 0.0001579/0.2084, allocations: 337.9 kB / 0.693 GB, free: 12.39 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004572/0.2088, allocations: 243.2 kB / 0.6932 GB, free: 12.15 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005832/0.2094, allocations: 409.4 kB / 0.6936 GB, free: 11.69 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009832/0.2104, allocations: 0.5664 MB / 0.6942 GB, free: 11.08 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.294e-06/0.2104, allocations: 3.938 kB / 0.6942 GB, free: 11.08 MB / 0.5294 GB Notification: Performance of matching and sorting (n=83) (initialization): time 0.001502/0.2119, allocations: 0.8287 MB / 0.695 GB, free: 10.23 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 4.194e-05/0.212, allocations: 38.58 kB / 0.695 GB, free: 10.18 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.258e-06/0.212, allocations: 4 kB / 0.695 GB, free: 10.18 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003708/0.2123, allocations: 97 kB / 0.6951 GB, free: 10.08 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004974/0.2128, allocations: 135.8 kB / 0.6952 GB, free: 9.949 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002196/0.215, allocations: 1.858 MB / 0.6971 GB, free: 7.977 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004116/0.2154, allocations: 28.02 kB / 0.6971 GB, free: 7.949 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.31e-05/0.2155, allocations: 28 kB / 0.6971 GB, free: 7.922 MB / 0.5294 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 11 * 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.0003524/0.2159, allocations: 217.7 kB / 0.6973 GB, free: 7.699 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000132/0.216, allocations: 91.38 kB / 0.6974 GB, free: 7.609 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00167/0.2177, allocations: 0.8294 MB / 0.6982 GB, free: 6.754 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.953e-06/0.2177, allocations: 4 kB / 0.6982 GB, free: 6.75 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.921e-06/0.2177, allocations: 4 kB / 0.6982 GB, free: 6.746 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.917e-06/0.2177, allocations: 3.984 kB / 0.6982 GB, free: 6.742 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002674/0.2204, allocations: 1.478 MB / 0.6997 GB, free: 5.203 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.858e-06/0.2204, allocations: 0 / 0.6997 GB, free: 5.203 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004735/0.2208, allocations: 115.7 kB / 0.6998 GB, free: 5.09 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003482/0.2212, allocations: 104.8 kB / 0.6999 GB, free: 4.984 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.757e-05/0.2212, allocations: 19.98 kB / 0.6999 GB, free: 4.965 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002081/0.2233, allocations: 1.855 MB / 0.7017 GB, free: 2.996 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.793e-06/0.2233, allocations: 0 / 0.7017 GB, free: 2.996 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001895/0.2252, allocations: 1.08 MB / 0.7028 GB, free: 1.887 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003205/0.2255, allocations: 131.4 kB / 0.7029 GB, free: 1.758 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001139/0.2256, allocations: 23.94 kB / 0.7029 GB, free: 1.734 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004092/0.2261, allocations: 27.97 kB / 0.7029 GB, free: 1.707 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001193/0.2262, allocations: 56.39 kB / 0.703 GB, free: 1.652 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.442e-05/0.2262, allocations: 23.98 kB / 0.703 GB, free: 1.629 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.0005736/0.2268, allocations: 455 kB / 0.7035 GB, free: 1.191 MB / 0.5294 GB Notification: Performance of sort global known variables: time 1e-07/0.2268, allocations: 4 kB / 0.7035 GB, free: 1.188 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.0007962/0.2276, allocations: 275.7 kB / 0.7037 GB, free: 0.918 MB / 0.5294 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 (54): * Single equations (assignments): 51 * 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.002696/0.2303, allocations: 1.862 MB / 0.7055 GB, free: 15.02 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.00152/0.2318, allocations: 0.7614 MB / 0.7063 GB, free: 14.22 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 6.342e-06/0.2318, allocations: 8.531 kB / 0.7063 GB, free: 14.21 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.0008193/0.2326, allocations: 445.2 kB / 0.7067 GB, free: 13.77 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001121/0.2338, allocations: 239.9 kB / 0.7069 GB, free: 13.54 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01044/0.2442, allocations: 6.705 MB / 0.7135 GB, free: 6.594 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004523/0.2447, allocations: 416.3 kB / 0.7139 GB, free: 6.152 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.0005328/0.2452, allocations: 141.8 kB / 0.714 GB, free: 6.012 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004932/0.2457, allocations: 367.3 kB / 0.7144 GB, free: 5.652 MB / 0.545 GB Notification: Performance of SimCode: time 8.72e-07/0.2457, allocations: 3.938 kB / 0.7144 GB, free: 5.648 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06636/0.312, allocations: 24.11 MB / 0.7379 GB, free: 13.88 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate platform static: time 12.4/12.71, allocations: 5.172 kB / 0.7379 GB, free: 13.88 MB / 0.5762 GB " [Timeout remaining time 647] (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: 16.722980289254338]