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.0009463/0.0009463, allocations: 81.17 kB / 19.87 MB, free: 4.621 MB / 18.57 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.000976/0.000976, allocations: 169 kB / 23.27 MB, free: 1.223 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 0.9668/0.9668, allocations: 177.2 MB / 203.7 MB, free: 5.512 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.7117/0.7117, allocations: 118.7 MB / 378.9 MB, free: 1.391 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.335e-06/2.335e-06, allocations: 0 / 484 MB, free: 8.133 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.981e-05/3.214e-05, allocations: 2.312 kB / 484 MB, free: 8.129 MB / 410.7 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Examples.WaterHammer): time 0.01893/0.01896, allocations: 9.265 MB / 493.3 MB, free: 1.812 MB / 410.7 MB Notification: Performance of NFInst.instExpressions: time 0.004424/0.02338, allocations: 2.465 MB / 495.8 MB, free: 104 kB / 410.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001136/0.02452, allocations: 59 kB / 495.8 MB, free: 68 kB / 410.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0006001/0.02512, allocations: 218.5 kB / 496 MB, free: 15.93 MB / 426.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001712/0.02683, allocations: 0.7048 MB / 496.7 MB, free: 15.45 MB / 426.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001369/0.0282, allocations: 0.5061 MB / 497.3 MB, free: 15.18 MB / 426.7 MB Notification: Performance of NFFlatten.flatten: time 0.002259/0.03046, allocations: 1.677 MB / 498.9 MB, free: 14.31 MB / 426.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003969/0.03086, allocations: 189 kB / 499.1 MB, free: 14.21 MB / 426.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001604/0.03246, allocations: 0.9117 MB / 0.4883 GB, free: 13.85 MB / 426.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007364/0.0332, allocations: 447.8 kB / 0.4887 GB, free: 13.71 MB / 426.7 MB Notification: Performance of NFPackage.collectConstants: time 0.000147/0.03334, allocations: 79.25 kB / 0.4888 GB, free: 13.71 MB / 426.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005754/0.03392, allocations: 212.3 kB / 0.489 GB, free: 13.66 MB / 426.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001823/0.0341, allocations: 216.5 kB / 0.4892 GB, free: 13.51 MB / 426.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0004517/0.03455, allocations: 379.7 kB / 0.4896 GB, free: 13.36 MB / 426.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001517/0.03607, allocations: 0.9988 MB / 0.4906 GB, free: 12.9 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.292e-06/0.03608, allocations: 1.891 kB / 0.4906 GB, free: 12.9 MB / 426.7 MB Notification: Performance of FrontEnd: time 1.222e-06/0.03608, allocations: 0 / 0.4906 GB, free: 12.9 MB / 426.7 MB Notification: Performance of Transformations before backend: time 3.475e-05/0.03611, allocations: 0 / 0.4906 GB, free: 12.9 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.002144/0.03826, allocations: 1.528 MB / 0.4921 GB, free: 11.63 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.245e-05/0.0383, allocations: 12.03 kB / 0.4921 GB, free: 11.62 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003305/0.03863, allocations: 210.7 kB / 0.4923 GB, free: 11.41 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001226/0.03986, allocations: 0.7833 MB / 0.493 GB, free: 10.71 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.274e-05/0.03991, allocations: 59.08 kB / 0.4931 GB, free: 10.65 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001026/0.04001, allocations: 85.12 kB / 0.4932 GB, free: 10.57 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009058/0.04092, allocations: 0.7477 MB / 0.4939 GB, free: 9.871 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.739e-05/0.04093, allocations: 4.688 kB / 0.4939 GB, free: 9.867 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.133e-05/0.04099, allocations: 39.94 kB / 0.4939 GB, free: 9.828 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.611e-05/0.041, allocations: 23.94 kB / 0.494 GB, free: 9.805 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004001/0.0414, allocations: 257.1 kB / 0.4942 GB, free: 9.613 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003178/0.04458, allocations: 2.239 MB / 0.4964 GB, free: 7.621 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006339/0.04521, allocations: 426.3 kB / 0.4968 GB, free: 7.246 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001701/0.04538, allocations: 138.1 kB / 0.4969 GB, free: 7.133 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001164/0.04655, allocations: 0.8876 MB / 0.4978 GB, free: 6.348 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004073/0.04696, allocations: 440.9 kB / 0.4982 GB, free: 5.906 MB / 426.7 MB Notification: Performance of pre-optimization done (n=58): time 2.745e-06/0.04696, allocations: 0 / 0.4982 GB, free: 5.906 MB / 426.7 MB Notification: Performance of matching and sorting (n=60): time 0.001614/0.04857, allocations: 1.031 MB / 0.4992 GB, free: 4.934 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.767e-05/0.04863, allocations: 119.2 kB / 0.4993 GB, free: 4.789 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004398/0.04907, allocations: 0.6669 MB / 0.5 GB, free: 4.109 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 4.008e-05/0.04911, allocations: 41.7 kB / 0.5 GB, free: 4.062 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002976/0.04941, allocations: 0.5187 MB / 0.5005 GB, free: 3.535 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001153/0.04952, allocations: 230.1 kB / 0.5008 GB, free: 3.309 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001271/0.04965, allocations: 127.9 kB / 0.5009 GB, free: 3.176 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001353/0.04978, allocations: 0.5003 MB / 0.5014 GB, free: 2.668 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001196/0.0499, allocations: 102.9 kB / 0.5015 GB, free: 2.559 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002311/0.05014, allocations: 382.6 kB / 0.5018 GB, free: 2.086 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003142/0.05045, allocations: 374.1 kB / 0.5022 GB, free: 1.664 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.953e-06/0.05045, allocations: 0 / 0.5022 GB, free: 1.664 MB / 426.7 MB Notification: Performance of matching and sorting (n=79) (initialization): time 0.0005954/0.05105, allocations: 0.5932 MB / 0.5028 GB, free: 1.047 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.845e-05/0.05109, allocations: 33.7 kB / 0.5028 GB, free: 1.008 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.855e-06/0.05109, allocations: 4 kB / 0.5028 GB, free: 1.004 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002682/0.05136, allocations: 91.66 kB / 0.5029 GB, free: 0.9102 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002533/0.05161, allocations: 119.8 kB / 0.503 GB, free: 0.793 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001267/0.05288, allocations: 2.059 MB / 0.505 GB, free: 14.62 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002413/0.05312, allocations: 27.98 kB / 0.505 GB, free: 14.59 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.706e-05/0.05316, allocations: 23.92 kB / 0.5051 GB, free: 14.57 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.000222/0.05338, allocations: 200.4 kB / 0.5053 GB, free: 14.36 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.367e-05/0.05348, allocations: 115.4 kB / 0.5054 GB, free: 14.25 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006416/0.05412, allocations: 0.5675 MB / 0.5059 GB, free: 13.65 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.552e-06/0.05412, allocations: 15.94 kB / 0.5059 GB, free: 13.63 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.297e-06/0.05413, allocations: 0 / 0.5059 GB, free: 13.63 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.921e-06/0.05413, allocations: 3.984 kB / 0.5059 GB, free: 13.63 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001168/0.0553, allocations: 1.028 MB / 0.5069 GB, free: 12.55 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.126e-06/0.0553, allocations: 0 / 0.5069 GB, free: 12.55 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002121/0.05552, allocations: 99.97 kB / 0.507 GB, free: 12.45 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002142/0.05573, allocations: 103.4 kB / 0.5071 GB, free: 12.35 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.994e-05/0.05576, allocations: 23.98 kB / 0.5072 GB, free: 12.32 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001156/0.05692, allocations: 2.054 MB / 0.5092 GB, free: 10.16 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.273e-06/0.05692, allocations: 0 / 0.5092 GB, free: 10.16 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006748/0.05759, allocations: 0.7276 MB / 0.5099 GB, free: 9.395 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000165/0.05776, allocations: 123.3 kB / 0.51 GB, free: 9.273 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.596e-05/0.05781, allocations: 24 kB / 0.51 GB, free: 9.25 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001922/0.05801, allocations: 28.02 kB / 0.51 GB, free: 9.223 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.631e-05/0.05808, allocations: 52.39 kB / 0.5101 GB, free: 9.172 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.872e-05/0.05811, allocations: 19.98 kB / 0.5101 GB, free: 9.152 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.0002592/0.05837, allocations: 418.8 kB / 0.5105 GB, free: 8.75 MB / 442.7 MB Notification: Performance of sort global known variables: time 6.1e-08/0.05837, allocations: 0 / 0.5105 GB, free: 8.75 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.0005825/0.05895, allocations: 235.9 kB / 0.5107 GB, free: 8.52 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.0002159/0.05917, allocations: 159 kB / 0.5109 GB, free: 8.355 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.0005968/0.05976, allocations: 0.6039 MB / 0.5115 GB, free: 7.715 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 2.434e-06/0.05977, allocations: 0 / 0.5115 GB, free: 7.715 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003284/0.0601, allocations: 396.9 kB / 0.5119 GB, free: 7.305 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007633/0.06086, allocations: 314.6 kB / 0.5122 GB, free: 7.004 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002326/0.06318, allocations: 1.706 MB / 0.5138 GB, free: 5.242 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001246/0.06331, allocations: 179.6 kB / 0.514 GB, free: 5.047 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.0003421/0.06365, allocations: 133.8 kB / 0.5141 GB, free: 4.914 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005046/0.06416, allocations: 342 kB / 0.5144 GB, free: 4.578 MB / 442.7 MB Notification: Performance of SimCode: time 1.242e-06/0.06416, allocations: 4 kB / 0.5144 GB, free: 4.574 MB / 442.7 MB Notification: Performance of Templates: time 0.01866/0.08282, allocations: 13.92 MB / 0.528 GB, free: 7.023 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.15102384518832]