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.002017/0.002017, allocations: 95.64 kB / 18.95 MB, free: 2.691 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.002706/0.002706, allocations: 213.2 kB / 22.24 MB, free: 5.242 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.447/1.447, allocations: 230.6 MB / 256 MB, free: 7.793 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.7858/0.7858, allocations: 100.9 MB / 413.3 MB, free: 2.859 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: translateModel(ThermofluidStream.Examples.WaterHammer,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="Time|checkValve.inlet.m_flow|firstOrder.y|pulse.T_start|pulse.count|reservoir.M|reservoir.U_med|source.outlet.m_flow",fileNamePrefix="ThermofluidStream_dev_ThermofluidStream.Examples.WaterHammer") translateModel(ThermofluidStream.Examples.WaterHammer,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="Time|checkValve.inlet.m_flow|firstOrder.y|pulse.T_start|pulse.count|reservoir.M|reservoir.U_med|source.outlet.m_flow",fileNamePrefix="ThermofluidStream_dev_ThermofluidStream.Examples.WaterHammer") [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.002475/0.002475, allocations: 84.78 kB / 0.5645 GB, free: 35.46 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1351/0.1375, allocations: 74.61 MB / 0.6374 GB, free: 5.992 MB / 478.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Examples.WaterHammer): time 0.03398/0.1715, allocations: 28.62 MB / 0.6654 GB, free: 9.254 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.01233/0.1838, allocations: 8.91 MB / 0.6741 GB, free: 328 kB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009563/0.1848, allocations: 59.44 kB / 0.6741 GB, free: 268 kB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 0.00137/0.1862, allocations: 476.9 kB / 0.6746 GB, free: 15.79 MB / 0.5137 GB Notification: Performance of NFTyping.typeBindings: time 0.002176/0.1883, allocations: 0.8035 MB / 0.6754 GB, free: 14.98 MB / 0.5137 GB Notification: Performance of NFTyping.typeClassSections: time 0.001902/0.1902, allocations: 0.699 MB / 0.676 GB, free: 14.28 MB / 0.5137 GB Notification: Performance of NFFlatten.flatten: time 0.001885/0.1921, allocations: 1.512 MB / 0.6775 GB, free: 12.77 MB / 0.5137 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000397/0.1925, allocations: 174.3 kB / 0.6777 GB, free: 12.58 MB / 0.5137 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001228/0.1938, allocations: 0.6497 MB / 0.6783 GB, free: 11.93 MB / 0.5137 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0009228/0.1947, allocations: 0.4896 MB / 0.6788 GB, free: 11.44 MB / 0.5137 GB Notification: Performance of NFPackage.collectConstants: time 0.0001427/0.1948, allocations: 80 kB / 0.6789 GB, free: 11.36 MB / 0.5137 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001439/0.1963, allocations: 483.5 kB / 0.6793 GB, free: 10.89 MB / 0.5137 GB Notification: Performance of NFScalarize.scalarize: time 0.0002567/0.1965, allocations: 203.1 kB / 0.6795 GB, free: 10.69 MB / 0.5137 GB Notification: Performance of NFVerifyModel.verify: time 0.0005846/0.1971, allocations: 433.8 kB / 0.6799 GB, free: 10.26 MB / 0.5137 GB Notification: Performance of NFConvertDAE.convert: time 0.00248/0.1996, allocations: 1.397 MB / 0.6813 GB, free: 8.859 MB / 0.5137 GB Notification: Performance of FrontEnd - DAE generated: time 4.689e-06/0.1996, allocations: 0 / 0.6813 GB, free: 8.859 MB / 0.5137 GB Notification: Performance of FrontEnd: time 4.228e-06/0.1996, allocations: 3.984 kB / 0.6813 GB, free: 8.855 MB / 0.5137 GB Notification: Performance of Transformations before backend: time 1.564e-05/0.1996, allocations: 4 kB / 0.6813 GB, free: 8.852 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.002581/0.2022, allocations: 1.379 MB / 0.6827 GB, free: 7.434 MB / 0.5137 GB Notification: Performance of prepare preOptimizeDAE: time 4.489e-05/0.2022, allocations: 9.469 kB / 0.6827 GB, free: 7.426 MB / 0.5137 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003406/0.2026, allocations: 136.2 kB / 0.6828 GB, free: 7.293 MB / 0.5137 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001263/0.2038, allocations: 0.6755 MB / 0.6835 GB, free: 6.586 MB / 0.5137 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.511e-05/0.2039, allocations: 58 kB / 0.6835 GB, free: 6.527 MB / 0.5137 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000125/0.204, allocations: 79.98 kB / 0.6836 GB, free: 6.449 MB / 0.5137 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001516/0.2055, allocations: 0.9885 MB / 0.6846 GB, free: 5.395 MB / 0.5137 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.081e-05/0.2056, allocations: 0 / 0.6846 GB, free: 5.395 MB / 0.5137 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.088e-05/0.2056, allocations: 32 kB / 0.6846 GB, free: 5.363 MB / 0.5137 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.958e-05/0.2057, allocations: 16 kB / 0.6846 GB, free: 5.348 MB / 0.5137 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001288/0.2069, allocations: 0.6402 MB / 0.6852 GB, free: 4.707 MB / 0.5137 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004086/0.211, allocations: 2.155 MB / 0.6873 GB, free: 2.512 MB / 0.5137 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001133/0.2122, allocations: 0.5414 MB / 0.6879 GB, free: 1.957 MB / 0.5137 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004816/0.2126, allocations: 258.7 kB / 0.6881 GB, free: 1.703 MB / 0.5137 GB Notification: Performance of preOpt evalFunc (simulation): time 0.002116/0.2148, allocations: 0.9791 MB / 0.6891 GB, free: 0.7031 MB / 0.5137 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000901/0.2157, allocations: 0.5504 MB / 0.6896 GB, free: 88 kB / 0.5137 GB Notification: Performance of pre-optimization done (n=63): time 2.575e-06/0.2157, allocations: 7.938 kB / 0.6896 GB, free: 80 kB / 0.5137 GB Notification: Performance of matching and sorting (n=65): time 0.004413/0.2201, allocations: 1.839 MB / 0.6914 GB, free: 14.2 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001012/0.2202, allocations: 115.5 kB / 0.6915 GB, free: 14.07 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008293/0.221, allocations: 0.5984 MB / 0.6921 GB, free: 13.46 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 6.086e-05/0.2211, allocations: 37.7 kB / 0.6921 GB, free: 13.41 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004351/0.2215, allocations: 464.4 kB / 0.6926 GB, free: 12.96 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002167/0.2217, allocations: 234 kB / 0.6928 GB, free: 12.73 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001901/0.2219, allocations: 118.3 kB / 0.6929 GB, free: 12.61 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 0.0001719/0.2221, allocations: 334 kB / 0.6932 GB, free: 12.27 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004774/0.2226, allocations: 239.2 kB / 0.6935 GB, free: 12.03 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006838/0.2232, allocations: 405.4 kB / 0.6938 GB, free: 11.58 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001106/0.2243, allocations: 0.5665 MB / 0.6944 GB, free: 10.97 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.334e-06/0.2244, allocations: 0 / 0.6944 GB, free: 10.97 MB / 0.5294 GB Notification: Performance of matching and sorting (n=83) (initialization): time 0.001547/0.2259, allocations: 0.8285 MB / 0.6952 GB, free: 10.12 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 4.728e-05/0.2259, allocations: 37.7 kB / 0.6952 GB, free: 10.07 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.005e-06/0.226, allocations: 4.312 kB / 0.6952 GB, free: 10.07 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003741/0.2263, allocations: 108.7 kB / 0.6953 GB, free: 9.961 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004933/0.2268, allocations: 127.8 kB / 0.6955 GB, free: 9.836 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002349/0.2292, allocations: 1.831 MB / 0.6973 GB, free: 7.902 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004378/0.2296, allocations: 28.02 kB / 0.6973 GB, free: 7.875 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.702e-05/0.2297, allocations: 27.98 kB / 0.6973 GB, free: 7.848 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.0004691/0.2301, allocations: 225.7 kB / 0.6975 GB, free: 7.617 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001342/0.2303, allocations: 91.44 kB / 0.6976 GB, free: 7.527 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00172/0.232, allocations: 0.8249 MB / 0.6984 GB, free: 6.676 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.017e-05/0.232, allocations: 8 kB / 0.6984 GB, free: 6.668 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.436e-06/0.232, allocations: 0 / 0.6984 GB, free: 6.668 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.933e-06/0.232, allocations: 0 / 0.6984 GB, free: 6.668 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002647/0.2347, allocations: 1.392 MB / 0.6998 GB, free: 5.227 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.858e-06/0.2347, allocations: 0 / 0.6998 GB, free: 5.227 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004957/0.2352, allocations: 103.9 kB / 0.6999 GB, free: 5.125 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003223/0.2355, allocations: 116.7 kB / 0.7 GB, free: 5.008 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.381e-05/0.2355, allocations: 23.92 kB / 0.7 GB, free: 4.984 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002129/0.2377, allocations: 1.82 MB / 0.7018 GB, free: 3.062 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.827e-06/0.2377, allocations: 7.938 kB / 0.7018 GB, free: 3.055 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002147/0.2398, allocations: 1.072 MB / 0.7029 GB, free: 1.953 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003277/0.2401, allocations: 127.5 kB / 0.703 GB, free: 1.828 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.063e-05/0.2402, allocations: 23.95 kB / 0.703 GB, free: 1.805 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003744/0.2406, allocations: 27.97 kB / 0.703 GB, free: 1.777 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001328/0.2407, allocations: 56.39 kB / 0.7031 GB, free: 1.723 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.603e-05/0.2408, allocations: 31.92 kB / 0.7031 GB, free: 1.691 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.0005585/0.2414, allocations: 427 kB / 0.7035 GB, free: 1.281 MB / 0.5294 GB Notification: Performance of sort global known variables: time 9e-08/0.2414, allocations: 0 / 0.7035 GB, free: 1.281 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.0008825/0.2422, allocations: 275.7 kB / 0.7038 GB, free: 1.012 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.0005484/0.2428, allocations: 346.9 kB / 0.7041 GB, free: 0.6641 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.001617/0.2444, allocations: 0.7692 MB / 0.7049 GB, free: 15.87 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 4.579e-06/0.2444, allocations: 0 / 0.7049 GB, free: 15.87 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.000856/0.2453, allocations: 450 kB / 0.7053 GB, free: 15.41 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001117/0.2464, allocations: 220.2 kB / 0.7055 GB, free: 15.21 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003403/0.2498, allocations: 1.825 MB / 0.7073 GB, free: 13.34 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004479/0.2502, allocations: 416.2 kB / 0.7077 GB, free: 12.91 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.0004679/0.2507, allocations: 137.6 kB / 0.7078 GB, free: 12.77 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001825/0.2509, allocations: 75.41 kB / 0.7079 GB, free: 12.7 MB / 0.545 GB Notification: Performance of SimCode: time 7.02e-07/0.2509, allocations: 3.938 kB / 0.7079 GB, free: 12.69 MB / 0.545 GB Notification: Performance of Templates: time 0.02837/0.2793, allocations: 14.94 MB / 0.7225 GB, free: 13.97 MB / 0.5606 GB " [Timeout remaining time 660] make -j1 -f ThermofluidStream_dev_ThermofluidStream.Examples.WaterHammer.makefile [Timeout 660] (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 & ./ThermofluidStream_dev_ThermofluidStream.Examples.WaterHammer -abortSlowSimulation -alarm=1200 -emit_protected -lv LOG_STATS > ThermofluidStream_dev_ThermofluidStream.Examples.WaterHammer.pipe 2>&1) [Timeout 1200] diffSimulationResults("ThermofluidStream_dev_ThermofluidStream.Examples.WaterHammer_res.mat","/mnt/ReferenceFiles/ThermofluidStream-main-regression/ReferenceData/ThermofluidStream.Examples.WaterHammer_ref.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ThermofluidStream_dev_ThermofluidStream.Examples.WaterHammer.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 6.094908855855465]