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.001465/0.001465, allocations: 97.06 kB / 19.65 MB, free: 276 kB / 13.93 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.001498/0.001498, allocations: 173 kB / 23.02 MB, free: 1.547 MB / 18.57 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.025/1.025, allocations: 177.1 MB / 203.4 MB, free: 5.625 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.4.0/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.4.0/package.mo): time 0.6978/0.6978, allocations: 118.7 MB / 378.6 MB, free: 1.496 MB / 346.7 MB " [Timeout remaining time 179] Using package ThermofluidStream with version 1.4.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.4.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: 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_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_ThermofluidStream.Examples.WaterHammer") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.154e-06/2.154e-06, allocations: 0 / 483.6 MB, free: 8.281 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.94e-05/3.155e-05, allocations: 3.656 kB / 483.6 MB, free: 8.277 MB / 410.7 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Examples.WaterHammer): time 0.01227/0.01231, allocations: 9.358 MB / 492.9 MB, free: 1.957 MB / 410.7 MB Notification: Performance of NFInst.instExpressions: time 0.003424/0.01573, allocations: 2.475 MB / 495.4 MB, free: 252 kB / 410.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004407/0.01617, allocations: 58.59 kB / 495.5 MB, free: 216 kB / 410.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0005089/0.01668, allocations: 218.6 kB / 495.7 MB, free: 84 kB / 410.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001347/0.01803, allocations: 0.6958 MB / 496.4 MB, free: 15.6 MB / 426.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001056/0.01908, allocations: 0.5011 MB / 496.9 MB, free: 15.34 MB / 426.7 MB Notification: Performance of NFFlatten.flatten: time 0.001748/0.02083, allocations: 1.687 MB / 498.6 MB, free: 14.46 MB / 426.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003079/0.02114, allocations: 180.1 kB / 498.7 MB, free: 14.36 MB / 426.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001265/0.0224, allocations: 0.9211 MB / 499.7 MB, free: 14 MB / 426.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006011/0.023, allocations: 446.1 kB / 0.4884 GB, free: 13.85 MB / 426.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001203/0.02312, allocations: 79.53 kB / 0.4885 GB, free: 13.85 MB / 426.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004327/0.02356, allocations: 203.8 kB / 0.4887 GB, free: 13.81 MB / 426.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002043/0.02376, allocations: 218.2 kB / 0.4889 GB, free: 13.66 MB / 426.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0004133/0.02417, allocations: 373.3 kB / 0.4892 GB, free: 13.52 MB / 426.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001257/0.02543, allocations: 1.005 MB / 0.4902 GB, free: 13.05 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.648e-06/0.02544, allocations: 0 / 0.4902 GB, free: 13.05 MB / 426.7 MB Notification: Performance of FrontEnd: time 1.803e-06/0.02544, allocations: 0 / 0.4902 GB, free: 13.05 MB / 426.7 MB Notification: Performance of Transformations before backend: time 1.268e-05/0.02545, allocations: 0.6562 kB / 0.4902 GB, free: 13.05 MB / 426.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.002047/0.0275, allocations: 1.52 MB / 0.4917 GB, free: 11.79 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.536e-05/0.02754, allocations: 8.031 kB / 0.4917 GB, free: 11.78 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003217/0.02786, allocations: 215 kB / 0.4919 GB, free: 11.57 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001018/0.02888, allocations: 0.7797 MB / 0.4927 GB, free: 10.87 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.585e-05/0.02893, allocations: 58.38 kB / 0.4927 GB, free: 10.81 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001024/0.02903, allocations: 93.53 kB / 0.4928 GB, free: 10.72 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000987/0.03002, allocations: 0.8069 MB / 0.4936 GB, free: 9.965 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.59e-05/0.03003, allocations: 192 / 0.4936 GB, free: 9.965 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.063e-05/0.03008, allocations: 35.94 kB / 0.4936 GB, free: 9.93 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.919e-05/0.0301, allocations: 19.98 kB / 0.4936 GB, free: 9.91 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005326/0.03064, allocations: 319.1 kB / 0.4939 GB, free: 9.66 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002752/0.03339, allocations: 2.372 MB / 0.4963 GB, free: 7.559 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006574/0.03405, allocations: 445.9 kB / 0.4967 GB, free: 7.164 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002297/0.03428, allocations: 161.8 kB / 0.4968 GB, free: 7.027 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001202/0.03548, allocations: 0.8837 MB / 0.4977 GB, free: 6.246 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004847/0.03596, allocations: 461.1 kB / 0.4981 GB, free: 5.785 MB / 426.7 MB Notification: Performance of pre-optimization done (n=58): time 2.545e-06/0.03596, allocations: 0 / 0.4981 GB, free: 5.785 MB / 426.7 MB Notification: Performance of matching and sorting (n=60): time 0.002174/0.03814, allocations: 1.412 MB / 0.4995 GB, free: 4.418 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.283e-05/0.0382, allocations: 111.3 kB / 0.4996 GB, free: 4.281 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005295/0.03873, allocations: 0.679 MB / 0.5003 GB, free: 3.586 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 4.075e-05/0.03877, allocations: 45.7 kB / 0.5003 GB, free: 3.535 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002631/0.03904, allocations: 0.5149 MB / 0.5008 GB, free: 3.012 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001195/0.03916, allocations: 222 kB / 0.5011 GB, free: 2.793 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001277/0.03928, allocations: 124 kB / 0.5012 GB, free: 2.664 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001305/0.03941, allocations: 0.4965 MB / 0.5017 GB, free: 2.16 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001711/0.03958, allocations: 123 kB / 0.5018 GB, free: 2.031 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002858/0.03987, allocations: 402.6 kB / 0.5022 GB, free: 1.539 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004109/0.04028, allocations: 414.2 kB / 0.5026 GB, free: 1.078 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.094e-06/0.04028, allocations: 3.938 kB / 0.5026 GB, free: 1.074 MB / 426.7 MB Notification: Performance of matching and sorting (n=79) (initialization): time 0.000707/0.04099, allocations: 0.6361 MB / 0.5032 GB, free: 424 kB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.727e-05/0.04103, allocations: 33.7 kB / 0.5032 GB, free: 384 kB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.424e-06/0.04103, allocations: 4 kB / 0.5032 GB, free: 380 kB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003065/0.04134, allocations: 103.8 kB / 0.5033 GB, free: 272 kB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000259/0.0416, allocations: 123.8 kB / 0.5034 GB, free: 148 kB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00145/0.04305, allocations: 2.096 MB / 0.5055 GB, free: 13.92 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001933/0.04324, allocations: 32.02 kB / 0.5055 GB, free: 13.89 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.191e-05/0.04329, allocations: 24 kB / 0.5055 GB, free: 13.87 MB / 442.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.0001758/0.04346, allocations: 200.4 kB / 0.5057 GB, free: 13.66 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.292e-05/0.04355, allocations: 115.4 kB / 0.5058 GB, free: 13.55 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007481/0.0443, allocations: 0.6066 MB / 0.5064 GB, free: 12.91 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.58e-06/0.04431, allocations: 8 kB / 0.5064 GB, free: 12.91 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.377e-06/0.04431, allocations: 0 / 0.5064 GB, free: 12.91 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.252e-06/0.04432, allocations: 0 / 0.5064 GB, free: 12.91 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001238/0.04556, allocations: 1.184 MB / 0.5076 GB, free: 11.66 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.086e-06/0.04556, allocations: 4.094 kB / 0.5076 GB, free: 11.66 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002282/0.04579, allocations: 99.88 kB / 0.5077 GB, free: 11.56 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002362/0.04602, allocations: 107.5 kB / 0.5078 GB, free: 11.45 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.266e-05/0.04606, allocations: 19.98 kB / 0.5078 GB, free: 11.43 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001203/0.04726, allocations: 2.108 MB / 0.5099 GB, free: 9.203 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.373e-06/0.04726, allocations: 0 / 0.5099 GB, free: 9.203 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007856/0.04805, allocations: 0.7746 MB / 0.5106 GB, free: 8.395 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001486/0.04819, allocations: 123.3 kB / 0.5107 GB, free: 8.273 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.522e-05/0.04825, allocations: 24.02 kB / 0.5108 GB, free: 8.25 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001854/0.04843, allocations: 27.92 kB / 0.5108 GB, free: 8.223 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.294e-05/0.04853, allocations: 44.41 kB / 0.5108 GB, free: 8.18 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.494e-05/0.04856, allocations: 27.98 kB / 0.5109 GB, free: 8.152 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.000342/0.0489, allocations: 446.9 kB / 0.5113 GB, free: 7.723 MB / 442.7 MB Notification: Performance of sort global known variables: time 7e-08/0.0489, allocations: 0 / 0.5113 GB, free: 7.723 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.0004762/0.04938, allocations: 227.9 kB / 0.5115 GB, free: 7.5 MB / 442.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.0002709/0.04965, allocations: 171.2 kB / 0.5117 GB, free: 7.324 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.0007584/0.05041, allocations: 0.6429 MB / 0.5123 GB, free: 6.641 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 2.515e-06/0.05041, allocations: 0 / 0.5123 GB, free: 6.641 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005165/0.05093, allocations: 420.9 kB / 0.5127 GB, free: 6.211 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008371/0.05177, allocations: 314.8 kB / 0.513 GB, free: 5.91 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002385/0.05415, allocations: 1.706 MB / 0.5147 GB, free: 4.145 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001188/0.05427, allocations: 187.6 kB / 0.5148 GB, free: 3.941 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.0002877/0.05456, allocations: 130.2 kB / 0.515 GB, free: 3.809 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001201/0.05468, allocations: 72.47 kB / 0.515 GB, free: 3.738 MB / 442.7 MB Notification: Performance of SimCode: time 1.072e-06/0.05468, allocations: 0 / 0.515 GB, free: 3.738 MB / 442.7 MB Notification: Performance of Templates: time 0.01749/0.07217, allocations: 13.72 MB / 0.5284 GB, free: 6.379 MB / 458.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 -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,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 4.217672222293913]