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.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.002036/0.002036, 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.002743/0.002743, allocations: 213.2 kB / 22.24 MB, free: 5.258 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.826/1.826, 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 1.2.0/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.2.0/package.mo): time 1.108/1.108, allocations: 94.63 MB / 407.1 MB, free: 8.848 MB / 318.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/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_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: 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.002681/0.002681, allocations: 83.25 kB / 0.5549 GB, free: 38.63 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2102/0.2128, allocations: 73.06 MB / 0.6263 GB, free: 204 kB / 462.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Examples.WaterHammer): time 0.03774/0.2506, allocations: 28.62 MB / 0.6542 GB, free: 3.461 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.0137/0.2643, allocations: 8.917 MB / 0.6629 GB, free: 10.52 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001452/0.2657, allocations: 51.56 kB / 0.663 GB, free: 10.47 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 0.001911/0.2677, allocations: 472.7 kB / 0.6634 GB, free: 10 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 0.003263/0.2709, allocations: 0.8113 MB / 0.6642 GB, free: 9.188 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.002574/0.2735, allocations: 0.6946 MB / 0.6649 GB, free: 8.492 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.003045/0.2765, allocations: 1.498 MB / 0.6664 GB, free: 6.988 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0006035/0.2771, allocations: 186.3 kB / 0.6666 GB, free: 6.789 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002031/0.2792, allocations: 0.6537 MB / 0.6672 GB, free: 6.133 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0008328/0.28, allocations: 493.4 kB / 0.6677 GB, free: 5.648 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 0.000149/0.2802, allocations: 83.94 kB / 0.6677 GB, free: 5.566 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001889/0.282, allocations: 479.5 kB / 0.6682 GB, free: 5.098 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 0.0003426/0.2824, allocations: 211 kB / 0.6684 GB, free: 4.891 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.0006871/0.2831, allocations: 437.8 kB / 0.6688 GB, free: 4.461 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.003029/0.2861, allocations: 1.385 MB / 0.6702 GB, free: 3.07 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 1.181e-05/0.2861, allocations: 4 kB / 0.6702 GB, free: 3.066 MB / 0.4981 GB Notification: Performance of FrontEnd: time 4.008e-06/0.2861, allocations: 0 / 0.6702 GB, free: 3.066 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 1.907e-05/0.2861, allocations: 0 / 0.6702 GB, free: 3.066 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.003773/0.2899, allocations: 1.394 MB / 0.6715 GB, free: 1.629 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 6.614e-05/0.29, allocations: 8.031 kB / 0.6715 GB, free: 1.621 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001734/0.2901, allocations: 122.7 kB / 0.6717 GB, free: 1.492 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004042/0.2906, allocations: 132.2 kB / 0.6718 GB, free: 1.363 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00167/0.2922, allocations: 0.6676 MB / 0.6724 GB, free: 0.668 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.396e-05/0.2923, allocations: 54 kB / 0.6725 GB, free: 0.6172 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001652/0.2925, allocations: 79.95 kB / 0.6726 GB, free: 0.5391 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001926/0.2944, allocations: 0.9923 MB / 0.6735 GB, free: 15.48 MB / 0.5137 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.619e-05/0.2944, allocations: 0 / 0.6735 GB, free: 15.48 MB / 0.5137 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.481e-05/0.2945, allocations: 32 kB / 0.6736 GB, free: 15.45 MB / 0.5137 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.915e-05/0.2945, allocations: 27.92 kB / 0.6736 GB, free: 15.42 MB / 0.5137 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001384/0.2959, allocations: 0.6363 MB / 0.6742 GB, free: 14.78 MB / 0.5137 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004855/0.3008, allocations: 2.259 MB / 0.6764 GB, free: 12.46 MB / 0.5137 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001218/0.302, allocations: 0.5452 MB / 0.677 GB, free: 11.91 MB / 0.5137 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000526/0.3025, allocations: 256.9 kB / 0.6772 GB, free: 11.66 MB / 0.5137 GB Notification: Performance of preOpt evalFunc (simulation): time 0.002471/0.305, allocations: 0.9829 MB / 0.6782 GB, free: 10.66 MB / 0.5137 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000876/0.3059, allocations: 0.5506 MB / 0.6787 GB, free: 10.04 MB / 0.5137 GB Notification: Performance of pre-optimization done (n=63): time 2.334e-06/0.3059, allocations: 0 / 0.6787 GB, free: 10.04 MB / 0.5137 GB Notification: Performance of matching and sorting (n=65): time 0.004748/0.3106, allocations: 1.85 MB / 0.6805 GB, free: 8.152 MB / 0.5137 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001214/0.3107, allocations: 111.5 kB / 0.6806 GB, free: 8.02 MB / 0.5137 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00102/0.3118, allocations: 0.6376 MB / 0.6812 GB, free: 7.375 MB / 0.5137 GB Notification: Performance of collectPreVariables (initialization): time 6.731e-05/0.3118, allocations: 41.69 kB / 0.6813 GB, free: 7.328 MB / 0.5137 GB Notification: Performance of collectInitialEqns (initialization): time 0.000485/0.3123, allocations: 448.6 kB / 0.6817 GB, free: 6.887 MB / 0.5137 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002335/0.3125, allocations: 234 kB / 0.6819 GB, free: 6.656 MB / 0.5137 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002046/0.3127, allocations: 122.3 kB / 0.682 GB, free: 6.531 MB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 0.0001699/0.3129, allocations: 334 kB / 0.6824 GB, free: 6.199 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004642/0.3134, allocations: 231.2 kB / 0.6826 GB, free: 5.969 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006349/0.314, allocations: 413.4 kB / 0.683 GB, free: 5.504 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001095/0.3151, allocations: 0.5742 MB / 0.6835 GB, free: 4.891 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.845e-06/0.3151, allocations: 0 / 0.6835 GB, free: 4.891 MB / 0.5137 GB Notification: Performance of matching and sorting (n=83) (initialization): time 0.001715/0.3168, allocations: 0.8247 MB / 0.6843 GB, free: 4.043 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 6.361e-05/0.3169, allocations: 33.7 kB / 0.6844 GB, free: 4.004 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.629e-05/0.3169, allocations: 4 kB / 0.6844 GB, free: 4 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004446/0.3174, allocations: 101.1 kB / 0.6845 GB, free: 3.898 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005168/0.3179, allocations: 131.8 kB / 0.6846 GB, free: 3.77 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002577/0.3204, allocations: 1.862 MB / 0.6864 GB, free: 1.793 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005767/0.321, allocations: 27.98 kB / 0.6864 GB, free: 1.766 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.902e-05/0.3211, allocations: 27.98 kB / 0.6865 GB, free: 1.738 MB / 0.5137 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.0005222/0.3216, allocations: 225.8 kB / 0.6867 GB, free: 1.508 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001703/0.3218, allocations: 91.38 kB / 0.6868 GB, free: 1.418 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001849/0.3236, allocations: 0.8333 MB / 0.6876 GB, free: 0.5586 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.173e-06/0.3237, allocations: 4 kB / 0.6876 GB, free: 0.5547 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.651e-06/0.3237, allocations: 4 kB / 0.6876 GB, free: 0.5508 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.898e-06/0.3237, allocations: 3.984 kB / 0.6876 GB, free: 0.5469 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002836/0.3265, allocations: 1.466 MB / 0.689 GB, free: 15.02 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.994e-06/0.3265, allocations: 7.938 kB / 0.689 GB, free: 15.01 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004751/0.327, allocations: 111.8 kB / 0.6891 GB, free: 14.9 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003521/0.3273, allocations: 100.7 kB / 0.6892 GB, free: 14.8 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.689e-05/0.3274, allocations: 32.08 kB / 0.6893 GB, free: 14.77 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002328/0.3297, allocations: 1.839 MB / 0.6911 GB, free: 12.81 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.294e-06/0.3297, allocations: 4.344 kB / 0.6911 GB, free: 12.81 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002207/0.3319, allocations: 1.076 MB / 0.6921 GB, free: 11.7 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003769/0.3323, allocations: 131.4 kB / 0.6922 GB, free: 11.57 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001001/0.3324, allocations: 27.81 kB / 0.6923 GB, free: 11.55 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003965/0.3328, allocations: 31.97 kB / 0.6923 GB, free: 11.52 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001525/0.333, allocations: 60.33 kB / 0.6924 GB, free: 11.46 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.761e-05/0.333, allocations: 23.98 kB / 0.6924 GB, free: 11.43 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.0006549/0.3337, allocations: 455 kB / 0.6928 GB, free: 10.99 MB / 0.5294 GB Notification: Performance of sort global known variables: time 1e-07/0.3337, allocations: 0 / 0.6928 GB, free: 10.99 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.0009234/0.3346, allocations: 267.8 kB / 0.6931 GB, free: 10.73 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.00307/0.3377, allocations: 1.855 MB / 0.6949 GB, free: 8.844 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.001766/0.3394, allocations: 0.7697 MB / 0.6956 GB, free: 8.039 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 4.909e-06/0.3394, allocations: 0 / 0.6956 GB, free: 8.039 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.0008776/0.3403, allocations: 445.6 kB / 0.6961 GB, free: 7.586 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001241/0.3416, allocations: 242.3 kB / 0.6963 GB, free: 7.359 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01179/0.3533, allocations: 6.713 MB / 0.7028 GB, free: 424 kB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005624/0.3539, allocations: 416.1 kB / 0.7032 GB, free: 15.97 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.0006729/0.3546, allocations: 149.8 kB / 0.7034 GB, free: 15.82 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005736/0.3552, allocations: 363.3 kB / 0.7037 GB, free: 15.47 MB / 0.545 GB Notification: Performance of SimCode: time 1.092e-06/0.3552, allocations: 0 / 0.7037 GB, free: 15.47 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08151/0.4367, allocations: 24.1 MB / 0.7273 GB, free: 7.707 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 14.31/14.74, allocations: 2.5 kB / 0.7273 GB, free: 7.707 MB / 0.5606 GB " [Timeout remaining time 645] (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/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: 19.82824807241559]