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.00145/0.00145, allocations: 79.42 kB / 19.76 MB, free: 2.031 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.001676/0.001676, allocations: 155.8 kB / 23.01 MB, free: 4.941 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.376/1.376, allocations: 177.2 MB / 203.4 MB, free: 8.969 MB / 190.1 MB " [Timeout remaining time 179] 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.7708/0.7708, allocations: 79.61 MB / 339.4 MB, free: 10.98 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.00241/0.00241, allocations: 87.44 kB / 0.4924 GB, free: 26.02 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1295/0.1319, allocations: 74.58 MB / 0.5652 GB, free: 5.996 MB / 478.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Examples.WaterHammer): time 0.03159/0.1635, allocations: 28.61 MB / 0.5931 GB, free: 9.27 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.01107/0.1745, allocations: 8.921 MB / 0.6018 GB, free: 332 kB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007869/0.1753, allocations: 55.5 kB / 0.6019 GB, free: 276 kB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 0.001286/0.1766, allocations: 472.8 kB / 0.6023 GB, free: 15.8 MB / 0.5137 GB Notification: Performance of NFTyping.typeBindings: time 0.002041/0.1787, allocations: 0.8113 MB / 0.6031 GB, free: 14.99 MB / 0.5137 GB Notification: Performance of NFTyping.typeClassSections: time 0.001665/0.1803, allocations: 0.6938 MB / 0.6038 GB, free: 14.3 MB / 0.5137 GB Notification: Performance of NFFlatten.flatten: time 0.00164/0.182, allocations: 1.509 MB / 0.6053 GB, free: 12.78 MB / 0.5137 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003391/0.1823, allocations: 178.3 kB / 0.6055 GB, free: 12.59 MB / 0.5137 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0009912/0.1833, allocations: 0.6497 MB / 0.6061 GB, free: 11.93 MB / 0.5137 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0006435/0.1839, allocations: 0.4935 MB / 0.6066 GB, free: 11.44 MB / 0.5137 GB Notification: Performance of NFPackage.collectConstants: time 0.0001247/0.1841, allocations: 84 kB / 0.6067 GB, free: 11.36 MB / 0.5137 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001047/0.1851, allocations: 475.6 kB / 0.6071 GB, free: 10.89 MB / 0.5137 GB Notification: Performance of NFScalarize.scalarize: time 0.0002133/0.1853, allocations: 203.1 kB / 0.6073 GB, free: 10.69 MB / 0.5137 GB Notification: Performance of NFVerifyModel.verify: time 0.0004531/0.1858, allocations: 433.8 kB / 0.6077 GB, free: 10.27 MB / 0.5137 GB Notification: Performance of NFConvertDAE.convert: time 0.001792/0.1876, allocations: 1.401 MB / 0.6091 GB, free: 8.859 MB / 0.5137 GB Notification: Performance of FrontEnd - DAE generated: time 4.038e-06/0.1876, allocations: 0 / 0.6091 GB, free: 8.859 MB / 0.5137 GB Notification: Performance of FrontEnd: time 3.537e-06/0.1876, allocations: 3.984 kB / 0.6091 GB, free: 8.855 MB / 0.5137 GB Notification: Performance of Transformations before backend: time 1.232e-05/0.1876, allocations: 0 / 0.6091 GB, free: 8.855 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.002417/0.19, allocations: 1.379 MB / 0.6104 GB, free: 7.438 MB / 0.5137 GB Notification: Performance of prepare preOptimizeDAE: time 3.543e-05/0.19, allocations: 9.469 kB / 0.6104 GB, free: 7.43 MB / 0.5137 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002983/0.1903, allocations: 136.2 kB / 0.6106 GB, free: 7.297 MB / 0.5137 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001127/0.1915, allocations: 0.6756 MB / 0.6112 GB, free: 6.59 MB / 0.5137 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.943e-05/0.1915, allocations: 54 kB / 0.6113 GB, free: 6.535 MB / 0.5137 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001136/0.1916, allocations: 79.98 kB / 0.6114 GB, free: 6.457 MB / 0.5137 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001393/0.193, allocations: 0.9924 MB / 0.6123 GB, free: 5.398 MB / 0.5137 GB Notification: Performance of preOpt findStateOrder (simulation): time 2e-05/0.193, allocations: 0 / 0.6123 GB, free: 5.398 MB / 0.5137 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.988e-05/0.1931, allocations: 32 kB / 0.6124 GB, free: 5.367 MB / 0.5137 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.869e-05/0.1931, allocations: 24 kB / 0.6124 GB, free: 5.344 MB / 0.5137 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001149/0.1943, allocations: 0.6324 MB / 0.613 GB, free: 4.711 MB / 0.5137 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004029/0.1983, allocations: 2.158 MB / 0.6151 GB, free: 2.512 MB / 0.5137 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001239/0.1996, allocations: 0.5453 MB / 0.6156 GB, free: 1.957 MB / 0.5137 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004896/0.2, allocations: 255.4 kB / 0.6159 GB, free: 1.707 MB / 0.5137 GB Notification: Performance of preOpt evalFunc (simulation): time 0.002035/0.2021, allocations: 0.983 MB / 0.6168 GB, free: 0.7031 MB / 0.5137 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007962/0.2029, allocations: 0.5583 MB / 0.6174 GB, free: 84 kB / 0.5137 GB Notification: Performance of pre-optimization done (n=63): time 2.324e-06/0.2029, allocations: 0 / 0.6174 GB, free: 84 kB / 0.5137 GB Notification: Performance of matching and sorting (n=65): time 0.003802/0.2067, allocations: 1.835 MB / 0.6192 GB, free: 14.21 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.767e-05/0.2068, allocations: 115.5 kB / 0.6193 GB, free: 14.07 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006996/0.2075, allocations: 0.6023 MB / 0.6199 GB, free: 13.46 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 4.911e-05/0.2075, allocations: 37.7 kB / 0.6199 GB, free: 13.41 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003614/0.2079, allocations: 456.5 kB / 0.6204 GB, free: 12.96 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001853/0.2081, allocations: 237.9 kB / 0.6206 GB, free: 12.73 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001833/0.2082, allocations: 118.3 kB / 0.6207 GB, free: 12.61 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 0.0001479/0.2084, allocations: 334 kB / 0.621 GB, free: 12.28 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004496/0.2088, allocations: 239.2 kB / 0.6212 GB, free: 12.04 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00057/0.2094, allocations: 409.4 kB / 0.6216 GB, free: 11.58 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001003/0.2104, allocations: 0.5626 MB / 0.6222 GB, free: 10.97 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.094e-06/0.2104, allocations: 0 / 0.6222 GB, free: 10.97 MB / 0.5294 GB Notification: Performance of matching and sorting (n=83) (initialization): time 0.001484/0.2119, allocations: 0.8327 MB / 0.623 GB, free: 10.12 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 4.146e-05/0.2119, allocations: 40.36 kB / 0.623 GB, free: 10.07 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.487e-06/0.2119, allocations: 4 kB / 0.623 GB, free: 10.07 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003633/0.2123, allocations: 100.7 kB / 0.6231 GB, free: 9.969 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004837/0.2128, allocations: 127.8 kB / 0.6233 GB, free: 9.844 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002101/0.2149, allocations: 1.843 MB / 0.6251 GB, free: 7.898 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003746/0.2153, allocations: 27.98 kB / 0.6251 GB, free: 7.871 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.323e-05/0.2153, allocations: 28.05 kB / 0.6251 GB, free: 7.844 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.0003585/0.2157, allocations: 225.6 kB / 0.6253 GB, free: 7.613 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001331/0.2158, allocations: 87.44 kB / 0.6254 GB, free: 7.527 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001604/0.2174, allocations: 0.8249 MB / 0.6262 GB, free: 6.676 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.383e-05/0.2174, allocations: 8 kB / 0.6262 GB, free: 6.668 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.846e-06/0.2174, allocations: 0 / 0.6262 GB, free: 6.668 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.456e-06/0.2174, allocations: 4 kB / 0.6262 GB, free: 6.664 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002356/0.2198, allocations: 1.384 MB / 0.6276 GB, free: 5.23 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.591e-06/0.2198, allocations: 4 kB / 0.6276 GB, free: 5.227 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004392/0.2203, allocations: 103.9 kB / 0.6277 GB, free: 5.125 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003165/0.2206, allocations: 120.7 kB / 0.6278 GB, free: 5.004 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.19e-05/0.2206, allocations: 15.98 kB / 0.6278 GB, free: 4.988 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002032/0.2226, allocations: 1.824 MB / 0.6296 GB, free: 3.059 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.497e-06/0.2226, allocations: 3.938 kB / 0.6296 GB, free: 3.055 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001831/0.2245, allocations: 1.076 MB / 0.6306 GB, free: 1.953 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002623/0.2247, allocations: 131.4 kB / 0.6308 GB, free: 1.824 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.933e-05/0.2248, allocations: 15.95 kB / 0.6308 GB, free: 1.809 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003776/0.2252, allocations: 27.97 kB / 0.6308 GB, free: 1.781 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001319/0.2253, allocations: 56.39 kB / 0.6309 GB, free: 1.727 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.788e-05/0.2254, allocations: 31.92 kB / 0.6309 GB, free: 1.695 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.0005099/0.2259, allocations: 427 kB / 0.6313 GB, free: 1.285 MB / 0.5294 GB Notification: Performance of sort global known variables: time 9e-08/0.2259, allocations: 0 / 0.6313 GB, free: 1.285 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.0008402/0.2267, allocations: 275.7 kB / 0.6316 GB, free: 1.016 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.0005319/0.2273, allocations: 350.9 kB / 0.6319 GB, free: 0.6641 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.001509/0.2288, allocations: 0.7622 MB / 0.6326 GB, free: 15.87 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 3.156e-06/0.2288, allocations: 128 / 0.6326 GB, free: 15.87 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.0008093/0.2296, allocations: 449.2 kB / 0.6331 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.001032/0.2306, allocations: 223.5 kB / 0.6333 GB, free: 15.2 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003089/0.2337, allocations: 1.814 MB / 0.6351 GB, free: 13.35 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004616/0.2342, allocations: 416.3 kB / 0.6355 GB, free: 12.91 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.0004403/0.2346, allocations: 137.6 kB / 0.6356 GB, free: 12.78 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001662/0.2348, allocations: 72.47 kB / 0.6357 GB, free: 12.71 MB / 0.545 GB Notification: Performance of SimCode: time 4.41e-07/0.2348, allocations: 3.938 kB / 0.6357 GB, free: 12.7 MB / 0.545 GB Notification: Performance of Templates: time 0.0255/0.2603, allocations: 13.6 MB / 0.6489 GB, free: 15.3 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 -s ida -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/jenkins1/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: 5.8651252939598635]