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.001592/0.001592, allocations: 99.64 kB / 18.95 MB, free: 2.668 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.001449/0.001449, allocations: 215.1 kB / 22.24 MB, free: 5.262 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.465/1.465, allocations: 230.6 MB / 256 MB, free: 7.801 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.831/0.831, allocations: 100.9 MB / 413.3 MB, free: 2.887 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.002576/0.002576, allocations: 89.12 kB / 0.5641 GB, free: 35.64 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1716/0.1742, allocations: 74.61 MB / 0.6369 GB, free: 6.496 MB / 478.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Examples.WaterHammer): time 0.03644/0.2106, allocations: 28.63 MB / 0.6649 GB, free: 9.762 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.01311/0.2237, allocations: 8.906 MB / 0.6736 GB, free: 0.832 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001164/0.2249, allocations: 55.5 kB / 0.6736 GB, free: 0.7773 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 0.001369/0.2262, allocations: 476.8 kB / 0.6741 GB, free: 316 kB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 0.002459/0.2287, allocations: 0.8035 MB / 0.6749 GB, free: 15.5 MB / 0.5137 GB Notification: Performance of NFTyping.typeClassSections: time 0.002003/0.2307, allocations: 0.6969 MB / 0.6755 GB, free: 14.8 MB / 0.5137 GB Notification: Performance of NFFlatten.flatten: time 0.002352/0.2331, allocations: 1.509 MB / 0.677 GB, free: 13.29 MB / 0.5137 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004299/0.2335, allocations: 178.3 kB / 0.6772 GB, free: 13.1 MB / 0.5137 GB Notification: Performance of NFEvalConstants.evaluate: time 0.00132/0.2348, allocations: 0.6536 MB / 0.6778 GB, free: 12.44 MB / 0.5137 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0007486/0.2356, allocations: 0.4896 MB / 0.6783 GB, free: 11.95 MB / 0.5137 GB Notification: Performance of NFPackage.collectConstants: time 0.0001425/0.2357, allocations: 80 kB / 0.6784 GB, free: 11.87 MB / 0.5137 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001426/0.2371, allocations: 475.5 kB / 0.6788 GB, free: 11.41 MB / 0.5137 GB Notification: Performance of NFScalarize.scalarize: time 0.0002223/0.2373, allocations: 211.1 kB / 0.679 GB, free: 11.2 MB / 0.5137 GB Notification: Performance of NFVerifyModel.verify: time 0.0004812/0.2378, allocations: 425.9 kB / 0.6794 GB, free: 10.78 MB / 0.5137 GB Notification: Performance of NFConvertDAE.convert: time 0.00228/0.2401, allocations: 1.405 MB / 0.6808 GB, free: 9.371 MB / 0.5137 GB Notification: Performance of FrontEnd - DAE generated: time 4.849e-06/0.2401, allocations: 4 kB / 0.6808 GB, free: 9.367 MB / 0.5137 GB Notification: Performance of FrontEnd: time 1.984e-06/0.2401, allocations: 0 / 0.6808 GB, free: 9.367 MB / 0.5137 GB Notification: Performance of Transformations before backend: time 1.92e-05/0.2401, allocations: 0 / 0.6808 GB, free: 9.367 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.00281/0.2429, allocations: 1.383 MB / 0.6822 GB, free: 7.945 MB / 0.5137 GB Notification: Performance of prepare preOptimizeDAE: time 4.457e-05/0.243, allocations: 9.469 kB / 0.6822 GB, free: 7.938 MB / 0.5137 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001656/0.2432, allocations: 126.7 kB / 0.6823 GB, free: 7.805 MB / 0.5137 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003653/0.2435, allocations: 132.2 kB / 0.6824 GB, free: 7.676 MB / 0.5137 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001376/0.2449, allocations: 0.6754 MB / 0.6831 GB, free: 6.969 MB / 0.5137 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.573e-05/0.245, allocations: 54 kB / 0.6831 GB, free: 6.914 MB / 0.5137 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001164/0.2451, allocations: 76 kB / 0.6832 GB, free: 6.84 MB / 0.5137 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001457/0.2465, allocations: 0.9963 MB / 0.6842 GB, free: 5.777 MB / 0.5137 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.413e-05/0.2466, allocations: 7.875 kB / 0.6842 GB, free: 5.77 MB / 0.5137 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.77e-05/0.2466, allocations: 28 kB / 0.6842 GB, free: 5.742 MB / 0.5137 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.812e-05/0.2466, allocations: 20 kB / 0.6842 GB, free: 5.723 MB / 0.5137 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001206/0.2478, allocations: 0.6286 MB / 0.6849 GB, free: 5.094 MB / 0.5137 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003963/0.2518, allocations: 2.267 MB / 0.6871 GB, free: 2.773 MB / 0.5137 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001103/0.2529, allocations: 0.5386 MB / 0.6876 GB, free: 2.223 MB / 0.5137 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004876/0.2534, allocations: 254.7 kB / 0.6878 GB, free: 1.973 MB / 0.5137 GB Notification: Performance of preOpt evalFunc (simulation): time 0.002102/0.2555, allocations: 0.9908 MB / 0.6888 GB, free: 0.9609 MB / 0.5137 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007968/0.2563, allocations: 0.5428 MB / 0.6893 GB, free: 360 kB / 0.5137 GB Notification: Performance of pre-optimization done (n=63): time 2.154e-06/0.2563, allocations: 0 / 0.6893 GB, free: 360 kB / 0.5137 GB Notification: Performance of matching and sorting (n=65): time 0.003982/0.2603, allocations: 1.842 MB / 0.6911 GB, free: 14.48 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.928e-05/0.2604, allocations: 119.5 kB / 0.6912 GB, free: 14.34 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008074/0.2612, allocations: 0.6337 MB / 0.6919 GB, free: 13.69 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 5.65e-05/0.2612, allocations: 37.7 kB / 0.6919 GB, free: 13.65 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003704/0.2616, allocations: 452.6 kB / 0.6923 GB, free: 13.2 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001887/0.2618, allocations: 234 kB / 0.6926 GB, free: 12.97 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001833/0.262, allocations: 126.3 kB / 0.6927 GB, free: 12.84 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 0.000145/0.2621, allocations: 334 kB / 0.693 GB, free: 12.51 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000454/0.2626, allocations: 243.2 kB / 0.6932 GB, free: 12.26 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005906/0.2632, allocations: 401.4 kB / 0.6936 GB, free: 11.81 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001001/0.2642, allocations: 0.5703 MB / 0.6942 GB, free: 11.2 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.545e-06/0.2642, allocations: 0 / 0.6942 GB, free: 11.2 MB / 0.5294 GB Notification: Performance of matching and sorting (n=83) (initialization): time 0.001524/0.2657, allocations: 0.8248 MB / 0.695 GB, free: 10.35 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 4.157e-05/0.2657, allocations: 37.7 kB / 0.695 GB, free: 10.31 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.198e-05/0.2657, allocations: 4 kB / 0.695 GB, free: 10.3 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003666/0.2661, allocations: 101 kB / 0.6951 GB, free: 10.2 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004952/0.2666, allocations: 135.8 kB / 0.6952 GB, free: 10.07 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002215/0.2688, allocations: 1.862 MB / 0.6971 GB, free: 8.094 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004654/0.2693, allocations: 27.98 kB / 0.6971 GB, free: 8.066 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.742e-05/0.2694, allocations: 28 kB / 0.6971 GB, free: 8.039 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.0004208/0.2698, allocations: 217.8 kB / 0.6973 GB, free: 7.816 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001445/0.2699, allocations: 95.38 kB / 0.6974 GB, free: 7.723 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001727/0.2716, allocations: 0.8255 MB / 0.6982 GB, free: 6.871 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.692e-06/0.2717, allocations: 8 kB / 0.6982 GB, free: 6.863 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.641e-06/0.2717, allocations: 4 kB / 0.6982 GB, free: 6.859 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.666e-06/0.2717, allocations: 3.984 kB / 0.6982 GB, free: 6.855 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002632/0.2743, allocations: 1.478 MB / 0.6997 GB, free: 5.316 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.751e-06/0.2743, allocations: 4 kB / 0.6997 GB, free: 5.312 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004466/0.2748, allocations: 111.8 kB / 0.6998 GB, free: 5.203 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003364/0.2751, allocations: 104.7 kB / 0.6999 GB, free: 5.098 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.897e-05/0.2751, allocations: 20.08 kB / 0.6999 GB, free: 5.078 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002218/0.2774, allocations: 1.847 MB / 0.7017 GB, free: 3.117 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.904e-06/0.2774, allocations: 0 / 0.7017 GB, free: 3.117 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001951/0.2793, allocations: 1.08 MB / 0.7028 GB, free: 2.008 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003315/0.2797, allocations: 131.4 kB / 0.7029 GB, free: 1.879 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.805e-05/0.2797, allocations: 23.92 kB / 0.7029 GB, free: 1.855 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003958/0.2801, allocations: 35.97 kB / 0.7029 GB, free: 1.82 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001281/0.2803, allocations: 56.39 kB / 0.703 GB, free: 1.766 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.93e-05/0.2803, allocations: 19.98 kB / 0.703 GB, free: 1.746 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.0005871/0.2809, allocations: 459 kB / 0.7035 GB, free: 1.305 MB / 0.5294 GB Notification: Performance of sort global known variables: time 1e-07/0.2809, allocations: 0 / 0.7035 GB, free: 1.305 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.0008916/0.2818, allocations: 271.7 kB / 0.7037 GB, free: 1.039 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.002716/0.2845, allocations: 1.866 MB / 0.7055 GB, free: 15.14 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.001574/0.2861, allocations: 0.7696 MB / 0.7063 GB, free: 14.33 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 6.943e-06/0.2861, allocations: 3.906 kB / 0.7063 GB, free: 14.33 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.0008752/0.287, allocations: 441.6 kB / 0.7067 GB, free: 13.88 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001251/0.2882, allocations: 251.9 kB / 0.7069 GB, free: 13.64 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01085/0.2991, allocations: 6.701 MB / 0.7135 GB, free: 6.707 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000478/0.2996, allocations: 416.3 kB / 0.7139 GB, free: 6.266 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.0005953/0.3001, allocations: 153.8 kB / 0.714 GB, free: 6.113 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004781/0.3006, allocations: 367.3 kB / 0.7144 GB, free: 5.754 MB / 0.545 GB Notification: Performance of SimCode: time 1.113e-06/0.3006, allocations: 0 / 0.7144 GB, free: 5.754 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06275/0.3634, allocations: 24.09 MB / 0.7379 GB, free: 14 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate platform static: time 12.26/12.62, allocations: 7.984 kB / 0.7379 GB, free: 14 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 & 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) [Timeout 1260.0] 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) [Timeout 660] "Error: Could not read variable Time in file ThermofluidStream_dev_ThermofluidStream.Examples.WaterHammer_res.csv. Warning: Get data of variable Time from file ThermofluidStream_dev_ThermofluidStream.Examples.WaterHammer_res.csv failed! Error: Could not read variable pulse.T_start in file ThermofluidStream_dev_ThermofluidStream.Examples.WaterHammer_res.csv. Warning: Get data of variable pulse.T_start from file ThermofluidStream_dev_ThermofluidStream.Examples.WaterHammer_res.csv failed! Error: Could not read variable pulse.count in file ThermofluidStream_dev_ThermofluidStream.Examples.WaterHammer_res.csv. Warning: Get data of variable pulse.count from file ThermofluidStream_dev_ThermofluidStream.Examples.WaterHammer_res.csv failed! Error: Could not read variable source.outlet.m_flow in file ThermofluidStream_dev_ThermofluidStream.Examples.WaterHammer_res.csv. Warning: Get data of variable source.outlet.m_flow from file ThermofluidStream_dev_ThermofluidStream.Examples.WaterHammer_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 16.918231488671154]