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.0007732/0.0007732, allocations: 81.05 kB / 9.981 MB, free: 0.707 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001059/0.001832, allocations: 440 kB / 10.41 MB, free: 284 kB / 10.45 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.000712/0.000712, allocations: 157.1 kB / 11.33 MB, free: 2.844 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0009745/0.001686, allocations: 475.6 kB / 11.79 MB, free: 2.375 MB / 13.93 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 0.9524/0.9524, allocations: 177.2 MB / 189.7 MB, free: 5.238 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.08183/1.034, allocations: 53.67 MB / 243.4 MB, free: 15.49 MB / 250.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.4.1/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.4.1/package.mo): time 0.6457/0.6457, allocations: 118.7 MB / 362.9 MB, free: 1.035 MB / 346.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.05847/0.7042, allocations: 35.85 MB / 398.7 MB, free: 13.08 MB / 394.7 MB " [Timeout remaining time 179] Using package ThermofluidStream with version 1.4.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.4.1/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="checkValve.inlet.m_flow|firstOrder.y|pulse.T_start|pulse.count|reservoir.M|reservoir.U_med|source.outlet.m_flow",fileNamePrefix="ThermofluidStream_ThermofluidStream.Examples.WaterHammer") translateModel(ThermofluidStream.Examples.WaterHammer,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="checkValve.inlet.m_flow|firstOrder.y|pulse.T_start|pulse.count|reservoir.M|reservoir.U_med|source.outlet.m_flow",fileNamePrefix="ThermofluidStream_ThermofluidStream.Examples.WaterHammer") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.463e-06/1.463e-06, allocations: 0 / 400 MB, free: 11.8 MB / 394.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.114e-05/1.26e-05, allocations: 10.25 kB / 400 MB, free: 11.79 MB / 394.7 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Examples.WaterHammer): time 0.007029/0.007041, allocations: 9.391 MB / 409.4 MB, free: 2.355 MB / 394.7 MB Notification: Performance of NFInst.instExpressions: time 0.002439/0.00948, allocations: 2.528 MB / 411.9 MB, free: 15.82 MB / 410.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000313/0.009793, allocations: 63.44 kB / 412 MB, free: 15.75 MB / 410.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003278/0.01012, allocations: 225.9 kB / 412.2 MB, free: 15.53 MB / 410.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0007894/0.01091, allocations: 0.694 MB / 412.9 MB, free: 14.83 MB / 410.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006153/0.01153, allocations: 0.4986 MB / 413.4 MB, free: 14.33 MB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 0.001063/0.01259, allocations: 1.684 MB / 415.1 MB, free: 12.64 MB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002508/0.01284, allocations: 204.4 kB / 415.3 MB, free: 12.42 MB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009024/0.01374, allocations: 0.9886 MB / 416.3 MB, free: 11.43 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003978/0.01414, allocations: 438.6 kB / 416.7 MB, free: 11 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 8.425e-05/0.01422, allocations: 76 kB / 416.8 MB, free: 10.93 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003071/0.01453, allocations: 211.7 kB / 417 MB, free: 10.72 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001185/0.01465, allocations: 167.2 kB / 417.1 MB, free: 10.55 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002339/0.01488, allocations: 319.2 kB / 417.4 MB, free: 10.24 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001018/0.0159, allocations: 0.9378 MB / 418.4 MB, free: 9.301 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.388e-05/0.01591, allocations: 0 / 418.4 MB, free: 9.301 MB / 410.7 MB Notification: Performance of FrontEnd: time 7.42e-07/0.01592, allocations: 0 / 418.4 MB, free: 9.301 MB / 410.7 MB Notification: Performance of Transformations before backend: time 1.848e-05/0.01593, allocations: 0 / 418.4 MB, free: 9.301 MB / 410.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 184 * Number of variables: 184 Notification: Performance of Generate backend data structure: time 0.00185/0.01778, allocations: 1.714 MB / 420.1 MB, free: 7.535 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.174e-05/0.01782, allocations: 8.031 kB / 420.1 MB, free: 7.527 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002362/0.01805, allocations: 164.7 kB / 420.3 MB, free: 7.367 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007544/0.01881, allocations: 0.7012 MB / 421 MB, free: 6.621 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.697e-05/0.01884, allocations: 58.36 kB / 421 MB, free: 6.566 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.74e-05/0.01892, allocations: 88.33 kB / 421.1 MB, free: 6.48 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005898/0.01951, allocations: 0.7542 MB / 421.9 MB, free: 5.652 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.413e-05/0.01952, allocations: 4.188 kB / 421.9 MB, free: 5.648 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.934e-05/0.01956, allocations: 31.94 kB / 421.9 MB, free: 5.617 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.192e-05/0.01958, allocations: 24 kB / 421.9 MB, free: 5.594 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002761/0.01985, allocations: 240.6 kB / 422.2 MB, free: 5.359 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00173/0.02158, allocations: 1.667 MB / 423.8 MB, free: 3.652 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004164/0.022, allocations: 394.1 kB / 424.2 MB, free: 3.262 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001249/0.02212, allocations: 134.7 kB / 424.3 MB, free: 3.129 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0008296/0.02295, allocations: 0.6493 MB / 425 MB, free: 2.465 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002862/0.02324, allocations: 421.6 kB / 425.4 MB, free: 1.988 MB / 410.7 MB Notification: Performance of pre-optimization done (n=58): time 1.453e-06/0.02324, allocations: 4 kB / 425.4 MB, free: 1.984 MB / 410.7 MB Notification: Performance of matching and sorting (n=60): time 0.001388/0.02463, allocations: 0.9908 MB / 426.4 MB, free: 0.9609 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.079e-05/0.02467, allocations: 89.55 kB / 426.5 MB, free: 0.8555 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003563/0.02502, allocations: 0.6091 MB / 427.1 MB, free: 240 kB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 3.403e-05/0.02506, allocations: 37.7 kB / 427.1 MB, free: 196 kB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.1741/0.1992, allocations: 360.8 kB / 427.5 MB, free: 13.41 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001679/0.1993, allocations: 224.2 kB / 427.7 MB, free: 13.32 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000118/0.1994, allocations: 116.1 kB / 427.8 MB, free: 13.3 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 3.849e-05/0.1995, allocations: 330.2 kB / 428.1 MB, free: 13 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001199/0.1996, allocations: 94.41 kB / 428.2 MB, free: 12.96 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001429/0.1998, allocations: 331.4 kB / 428.6 MB, free: 12.68 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002616/0.2, allocations: 335.5 kB / 428.9 MB, free: 12.54 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.575e-06/0.2, allocations: 1.75 kB / 428.9 MB, free: 12.54 MB / 410.7 MB Notification: Performance of matching and sorting (n=79) (initialization): time 0.0005369/0.2006, allocations: 469 kB / 429.3 MB, free: 12.42 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.32e-05/0.2006, allocations: 33.05 kB / 429.4 MB, free: 12.39 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.346e-06/0.2006, allocations: 4.797 kB / 429.4 MB, free: 12.39 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002689/0.2009, allocations: 87.55 kB / 429.5 MB, free: 12.38 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003052/0.2012, allocations: 145.1 kB / 429.6 MB, free: 12.38 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008515/0.202, allocations: 1.467 MB / 431.1 MB, free: 11.25 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002864/0.2023, allocations: 25.45 kB / 431.1 MB, free: 11.25 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.861e-05/0.2024, allocations: 21.36 kB / 431.1 MB, free: 11.25 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 12 * 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 (69): * Single equations (assignments): 67 * 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.0001906/0.2025, allocations: 154.4 kB / 431.3 MB, free: 11.12 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.15e-05/0.2026, allocations: 78.42 kB / 431.3 MB, free: 11.12 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005757/0.2032, allocations: 489.1 kB / 431.8 MB, free: 11.03 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.058e-06/0.2032, allocations: 6.031 kB / 431.8 MB, free: 11.03 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.918e-06/0.2032, allocations: 8.094 kB / 431.8 MB, free: 11.02 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.436e-06/0.2032, allocations: 4.312 kB / 431.8 MB, free: 11.02 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009925/0.2042, allocations: 0.7799 MB / 432.6 MB, free: 10.79 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.575e-06/0.2042, allocations: 4.453 kB / 432.6 MB, free: 10.79 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002802/0.2045, allocations: 113.3 kB / 432.7 MB, free: 10.79 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001338/0.2046, allocations: 95.61 kB / 432.8 MB, free: 10.74 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000213/0.2048, allocations: 101.2 kB / 432.9 MB, free: 10.73 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.607e-05/0.2049, allocations: 17.22 kB / 432.9 MB, free: 10.73 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007329/0.2056, allocations: 1.467 MB / 434.4 MB, free: 9.598 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.174e-06/0.2056, allocations: 0.5156 kB / 434.4 MB, free: 9.598 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005526/0.2062, allocations: 0.5525 MB / 435 MB, free: 9.414 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.317e-05/0.2062, allocations: 16.14 kB / 435 MB, free: 9.414 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001856/0.2064, allocations: 31.05 kB / 435 MB, free: 9.41 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.183e-05/0.2065, allocations: 52.03 kB / 435.1 MB, free: 9.41 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.94e-05/0.2065, allocations: 17.56 kB / 435.1 MB, free: 9.41 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0002495/0.2068, allocations: 305.8 kB / 435.4 MB, free: 9.379 MB / 410.7 MB Notification: Performance of sort global known variables: time 5e-08/0.2068, allocations: 0 / 435.4 MB, free: 9.379 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0004337/0.2072, allocations: 232.1 kB / 435.6 MB, free: 9.379 MB / 410.7 MB 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 (49): * Single equations (assignments): 46 * 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.0001965/0.2074, allocations: 141.8 kB / 435.7 MB, free: 9.309 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.0005114/0.2079, allocations: 0.5292 MB / 436.3 MB, free: 9.074 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 1.81e-05/0.2079, allocations: 12.38 kB / 436.3 MB, free: 9.074 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003429/0.2083, allocations: 364.4 kB / 436.6 MB, free: 8.941 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001029/0.2093, allocations: 2.086 MB / 438.7 MB, free: 6.926 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01112/0.2204, allocations: 1.679 MB / 440.4 MB, free: 6.121 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001489/0.2206, allocations: 185.4 kB / 440.6 MB, free: 6.047 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.0003144/0.2209, allocations: 127.5 kB / 440.7 MB, free: 6.02 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004069/0.2213, allocations: 289 kB / 441 MB, free: 5.965 MB / 410.7 MB Notification: Performance of SimCode: time 1.252e-06/0.2213, allocations: 0.7812 kB / 441 MB, free: 5.965 MB / 410.7 MB Notification: Performance of Templates: time 0.01566/0.237, allocations: 14.53 MB / 455.5 MB, free: 12.89 MB / 426.7 MB " [Timeout remaining time 660] make -j1 -f ThermofluidStream_ThermofluidStream.Examples.WaterHammer.makefile [Timeout 660] (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 & ./ThermofluidStream_ThermofluidStream.Examples.WaterHammer -abortSlowSimulation -alarm=240 -emit_protected -ignoreHideResult -lv LOG_STATS > ThermofluidStream_ThermofluidStream.Examples.WaterHammer.pipe 2>&1) [Timeout 240] diffSimulationResults("ThermofluidStream_ThermofluidStream.Examples.WaterHammer_res.mat","/mnt/ReferenceFiles/ThermofluidStream-main-regression/ReferenceData/ThermofluidStream.Examples.WaterHammer_ref.mat","",relTol=0.003,relTolDiffMinMax=0.003,tube=OpenModelica.Scripting.TubeAlgorithm.rectangle) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.7070512091740966]