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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00176/0.00176, allocations: 110.6 kB / 16.46 MB, free: 6.035 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001919/0.001919, allocations: 192.5 kB / 19.41 MB, free: 3.539 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.5/1.5, allocations: 225.6 MB / 247.8 MB, free: 13.93 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.2.0-main/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.2.0-main/package.mo): time 0.8341/0.8341, allocations: 94.6 MB / 397.3 MB, free: 296 kB / 302.1 MB " [Timeout remaining time 179] Using package ThermofluidStream with version 1.2.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.2.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"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002383/0.002383, allocations: 86 kB / 0.5416 GB, free: 42.51 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1708/0.1732, allocations: 71.86 MB / 0.6118 GB, free: 10.21 MB / 462.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Examples.WaterHammer): time 0.03652/0.2097, allocations: 31.17 MB / 0.6422 GB, free: 10.92 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.01364/0.2234, allocations: 9.758 MB / 0.6517 GB, free: 1.129 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001182/0.2246, allocations: 39.75 kB / 0.6518 GB, free: 1.09 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001522/0.2261, allocations: 0.5239 MB / 0.6523 GB, free: 0.5625 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003448/0.2295, allocations: 0.823 MB / 0.6531 GB, free: 15.73 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.002815/0.2323, allocations: 0.7036 MB / 0.6538 GB, free: 15.03 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.002657/0.235, allocations: 1.49 MB / 0.6552 GB, free: 13.54 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004289/0.2354, allocations: 185.8 kB / 0.6554 GB, free: 13.35 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001271/0.2367, allocations: 0.6342 MB / 0.656 GB, free: 12.71 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0007902/0.2375, allocations: 0.5365 MB / 0.6565 GB, free: 12.17 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 0.0001315/0.2376, allocations: 76 kB / 0.6566 GB, free: 12.1 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.00187/0.2395, allocations: 0.519 MB / 0.6571 GB, free: 11.58 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 0.0002667/0.2398, allocations: 215.1 kB / 0.6573 GB, free: 11.37 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.000603/0.2404, allocations: 0.5167 MB / 0.6578 GB, free: 10.85 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.002507/0.2429, allocations: 1.405 MB / 0.6592 GB, free: 9.438 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 4.879e-06/0.2429, allocations: 0 / 0.6592 GB, free: 9.438 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.653e-06/0.2429, allocations: 0 / 0.6592 GB, free: 9.438 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 1.277e-05/0.2429, allocations: 0 / 0.6592 GB, free: 9.438 MB / 0.4981 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.003061/0.2459, allocations: 1.45 MB / 0.6606 GB, free: 7.926 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 5.44e-05/0.246, allocations: 12.03 kB / 0.6606 GB, free: 7.914 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001651/0.2462, allocations: 118.7 kB / 0.6607 GB, free: 7.789 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000307/0.2465, allocations: 132.1 kB / 0.6609 GB, free: 7.66 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001492/0.248, allocations: 0.7553 MB / 0.6616 GB, free: 6.863 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.408e-05/0.248, allocations: 54 kB / 0.6617 GB, free: 6.812 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001588/0.2482, allocations: 83.95 kB / 0.6617 GB, free: 6.73 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00151/0.2497, allocations: 0.7915 MB / 0.6625 GB, free: 5.918 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.235e-05/0.2497, allocations: 4 kB / 0.6625 GB, free: 5.914 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.391e-05/0.2498, allocations: 32 kB / 0.6625 GB, free: 5.883 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.095e-05/0.2498, allocations: 16 kB / 0.6626 GB, free: 5.867 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001289/0.2511, allocations: 0.6246 MB / 0.6632 GB, free: 5.246 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005466/0.2566, allocations: 3.723 MB / 0.6668 GB, free: 1.152 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001179/0.2578, allocations: 0.5489 MB / 0.6673 GB, free: 0.5938 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005033/0.2583, allocations: 250.4 kB / 0.6676 GB, free: 356 kB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.003135/0.2614, allocations: 2.539 MB / 0.6701 GB, free: 13.43 MB / 0.5137 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007094/0.2621, allocations: 369.8 kB / 0.6704 GB, free: 13.05 MB / 0.5137 GB Notification: Performance of pre-optimization done (n=63): time 1.953e-06/0.2621, allocations: 0 / 0.6704 GB, free: 13.05 MB / 0.5137 GB Notification: Performance of matching and sorting (n=65): time 0.004111/0.2662, allocations: 1.945 MB / 0.6723 GB, free: 11.02 MB / 0.5137 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.233e-05/0.2663, allocations: 93.59 kB / 0.6724 GB, free: 10.91 MB / 0.5137 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008096/0.2671, allocations: 0.6337 MB / 0.673 GB, free: 10.26 MB / 0.5137 GB Notification: Performance of collectPreVariables (initialization): time 5.546e-05/0.2672, allocations: 45.7 kB / 0.6731 GB, free: 10.21 MB / 0.5137 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003838/0.2676, allocations: 444.6 kB / 0.6735 GB, free: 9.773 MB / 0.5137 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001976/0.2677, allocations: 234 kB / 0.6737 GB, free: 9.543 MB / 0.5137 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001916/0.2679, allocations: 126.3 kB / 0.6738 GB, free: 9.41 MB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 0.0001662/0.2681, allocations: 326 kB / 0.6741 GB, free: 9.086 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004396/0.2685, allocations: 213.5 kB / 0.6743 GB, free: 8.879 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005488/0.2691, allocations: 331.3 kB / 0.6747 GB, free: 8.52 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001028/0.2701, allocations: 0.5614 MB / 0.6752 GB, free: 7.922 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.124e-06/0.2701, allocations: 0 / 0.6752 GB, free: 7.922 MB / 0.5137 GB Notification: Performance of matching and sorting (n=83) (initialization): time 0.001542/0.2717, allocations: 0.7996 MB / 0.676 GB, free: 7.105 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 4.728e-05/0.2717, allocations: 29.98 kB / 0.676 GB, free: 7.07 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.518e-06/0.2717, allocations: 11.94 kB / 0.676 GB, free: 7.059 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003918/0.2721, allocations: 96.78 kB / 0.6761 GB, free: 6.961 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005286/0.2726, allocations: 139.8 kB / 0.6763 GB, free: 6.824 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002295/0.2749, allocations: 1.973 MB / 0.6782 GB, free: 4.707 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004191/0.2754, allocations: 28.02 kB / 0.6782 GB, free: 4.68 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.558e-05/0.2754, allocations: 27.98 kB / 0.6782 GB, free: 4.652 MB / 0.5137 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.0004047/0.2758, allocations: 229.6 kB / 0.6785 GB, free: 4.418 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001381/0.276, allocations: 95.44 kB / 0.6785 GB, free: 4.324 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001727/0.2777, allocations: 0.8426 MB / 0.6794 GB, free: 3.461 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.818e-06/0.2777, allocations: 8 kB / 0.6794 GB, free: 3.453 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.476e-06/0.2777, allocations: 0 / 0.6794 GB, free: 3.453 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.787e-06/0.2777, allocations: 3.984 kB / 0.6794 GB, free: 3.449 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002788/0.2805, allocations: 1.617 MB / 0.681 GB, free: 1.762 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.478e-06/0.2805, allocations: 0 / 0.681 GB, free: 1.762 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004885/0.281, allocations: 103.9 kB / 0.6811 GB, free: 1.66 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003498/0.2813, allocations: 120.7 kB / 0.6812 GB, free: 1.539 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.082e-05/0.2814, allocations: 19.98 kB / 0.6812 GB, free: 1.52 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002344/0.2837, allocations: 1.973 MB / 0.6831 GB, free: 15.39 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.973e-06/0.2837, allocations: 0 / 0.6831 GB, free: 15.39 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002117/0.2859, allocations: 1.09 MB / 0.6842 GB, free: 14.28 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003999/0.2863, allocations: 208.5 kB / 0.6844 GB, free: 14.06 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001074/0.2864, allocations: 15.98 kB / 0.6844 GB, free: 14.04 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004153/0.2868, allocations: 27.92 kB / 0.6844 GB, free: 14.02 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001767/0.287, allocations: 56.48 kB / 0.6845 GB, free: 13.96 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.281e-05/0.287, allocations: 27.98 kB / 0.6845 GB, free: 13.93 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.0006318/0.2877, allocations: 459 kB / 0.6849 GB, free: 13.49 MB / 0.5294 GB Notification: Performance of sort global known variables: time 1.01e-07/0.2877, allocations: 0 / 0.6849 GB, free: 13.49 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.0009042/0.2886, allocations: 275.7 kB / 0.6852 GB, free: 13.22 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 (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.00291/0.2915, allocations: 1.887 MB / 0.687 GB, free: 11.3 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.001743/0.2932, allocations: 0.7402 MB / 0.6878 GB, free: 10.54 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 3.987e-06/0.2932, allocations: 0.5625 kB / 0.6878 GB, free: 10.54 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.0008553/0.2941, allocations: 453.5 kB / 0.6882 GB, free: 10.08 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001158/0.2952, allocations: 225.9 kB / 0.6884 GB, free: 9.863 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01106/0.3063, allocations: 6.62 MB / 0.6949 GB, free: 3.031 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007826/0.3071, allocations: 0.9972 MB / 0.6959 GB, free: 2.008 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.0006378/0.3077, allocations: 145.9 kB / 0.696 GB, free: 1.863 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005484/0.3083, allocations: 363.3 kB / 0.6963 GB, free: 1.508 MB / 0.5294 GB Notification: Performance of SimCode: time 1.072e-06/0.3083, allocations: 0 / 0.6963 GB, free: 1.508 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06723/0.3755, allocations: 22.79 MB / 0.7186 GB, free: 10.94 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 13.11/13.48, allocations: 11.12 kB / 0.7186 GB, free: 10.93 MB / 0.5606 GB " [Timeout remaining time 646] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ThermofluidStream_ThermofluidStream.Examples.WaterHammer_res.mat --tempDir=temp_ThermofluidStream_ThermofluidStream_Examples_WaterHammer_fmu --startTime=0 --stopTime=25 --stepSize=0.025 --timeout=1200 --tolerance=1e-06 ThermofluidStream_ThermofluidStream_Examples_WaterHammer.fmu > ThermofluidStream_ThermofluidStream.Examples.WaterHammer.pipe 2>&1) [Timeout 1260.0] diffSimulationResults("ThermofluidStream_ThermofluidStream.Examples.WaterHammer_res.mat","/mnt/ReferenceFiles/ThermofluidStream-main-regression/ReferenceData/ThermofluidStream.Examples.WaterHammer_ref.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/ThermofluidStream_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_ThermofluidStream.Examples.WaterHammer_res.mat. Warning: Get data of variable pulse.T_start from file ThermofluidStream_ThermofluidStream.Examples.WaterHammer_res.mat failed! Error: Could not read variable pulse.count in file ThermofluidStream_ThermofluidStream.Examples.WaterHammer_res.mat. Warning: Get data of variable pulse.count from file ThermofluidStream_ThermofluidStream.Examples.WaterHammer_res.mat failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 17.46991539001465]