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.000995/0.000995, allocations: 73.97 kB / 20.66 MB, free: 3.844 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.001/0.001, allocations: 169.4 kB / 24.06 MB, free: 456 kB / 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.016/1.016, allocations: 177.1 MB / 204.5 MB, free: 5.508 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.7372/0.7372, allocations: 118.7 MB / 379.7 MB, free: 1.352 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 1.694e-06/1.694e-06, allocations: 0 / 484.8 MB, free: 8.109 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.476e-05/2.645e-05, allocations: 2.312 kB / 484.8 MB, free: 8.105 MB / 410.7 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Examples.WaterHammer): time 0.01012/0.01015, allocations: 9.267 MB / 494.1 MB, free: 1.789 MB / 410.7 MB Notification: Performance of NFInst.instExpressions: time 0.003951/0.0141, allocations: 2.463 MB / 496.6 MB, free: 80 kB / 410.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006442/0.01475, allocations: 58.56 kB / 496.6 MB, free: 44 kB / 410.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0005705/0.01532, allocations: 216.6 kB / 496.8 MB, free: 15.91 MB / 426.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001494/0.01681, allocations: 0.7021 MB / 497.5 MB, free: 15.43 MB / 426.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001122/0.01793, allocations: 0.5096 MB / 498 MB, free: 15.16 MB / 426.7 MB Notification: Performance of NFFlatten.flatten: time 0.001876/0.01981, allocations: 1.675 MB / 499.7 MB, free: 14.29 MB / 426.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003217/0.02013, allocations: 184.1 kB / 499.9 MB, free: 14.19 MB / 426.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001341/0.02147, allocations: 0.9161 MB / 0.4891 GB, free: 13.83 MB / 426.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007137/0.02218, allocations: 444.5 kB / 0.4895 GB, free: 13.69 MB / 426.7 MB Notification: Performance of NFPackage.collectConstants: time 0.000148/0.02233, allocations: 77.81 kB / 0.4896 GB, free: 13.69 MB / 426.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004378/0.02277, allocations: 208.4 kB / 0.4898 GB, free: 13.64 MB / 426.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001774/0.02295, allocations: 220.9 kB / 0.49 GB, free: 13.49 MB / 426.7 MB Notification: Performance of NFVerifyModel.verify: time 0.000454/0.0234, allocations: 376 kB / 0.4903 GB, free: 13.35 MB / 426.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001272/0.02467, allocations: 1.003 MB / 0.4913 GB, free: 12.88 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.388e-06/0.02468, allocations: 2 kB / 0.4913 GB, free: 12.88 MB / 426.7 MB Notification: Performance of FrontEnd: time 1.282e-06/0.02468, allocations: 0 / 0.4913 GB, free: 12.88 MB / 426.7 MB Notification: Performance of Transformations before backend: time 1.898e-05/0.0247, allocations: 0 / 0.4913 GB, free: 12.88 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.001962/0.02666, allocations: 1.527 MB / 0.4928 GB, free: 11.61 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.68e-05/0.02669, allocations: 12.03 kB / 0.4928 GB, free: 11.6 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002847/0.02697, allocations: 210.9 kB / 0.493 GB, free: 11.39 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000944/0.02791, allocations: 0.7794 MB / 0.4938 GB, free: 10.69 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.658e-05/0.02795, allocations: 58.38 kB / 0.4938 GB, free: 10.63 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.696e-05/0.02804, allocations: 89.86 kB / 0.4939 GB, free: 10.55 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006983/0.02874, allocations: 0.7515 MB / 0.4947 GB, free: 9.848 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.386e-05/0.02875, allocations: 192 / 0.4947 GB, free: 9.848 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.617e-05/0.0288, allocations: 36.69 kB / 0.4947 GB, free: 9.812 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.216e-05/0.02881, allocations: 24 kB / 0.4947 GB, free: 9.789 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003516/0.02916, allocations: 257.4 kB / 0.495 GB, free: 9.598 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002274/0.03143, allocations: 2.242 MB / 0.4971 GB, free: 7.602 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004788/0.03191, allocations: 429.3 kB / 0.4976 GB, free: 7.227 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001609/0.03207, allocations: 137.7 kB / 0.4977 GB, free: 7.113 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001044/0.03312, allocations: 0.8756 MB / 0.4985 GB, free: 6.34 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003378/0.03346, allocations: 444.6 kB / 0.499 GB, free: 5.895 MB / 426.7 MB Notification: Performance of pre-optimization done (n=58): time 1.673e-06/0.03346, allocations: 0 / 0.499 GB, free: 5.895 MB / 426.7 MB Notification: Performance of matching and sorting (n=60): time 0.001457/0.03491, allocations: 1.038 MB / 0.5 GB, free: 4.918 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.23e-05/0.03496, allocations: 112 kB / 0.5001 GB, free: 4.781 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004173/0.03537, allocations: 0.669 MB / 0.5007 GB, free: 4.102 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 3.978e-05/0.03541, allocations: 41.7 kB / 0.5008 GB, free: 4.055 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002461/0.03566, allocations: 0.5226 MB / 0.5013 GB, free: 3.523 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001125/0.03577, allocations: 218.1 kB / 0.5015 GB, free: 3.309 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001216/0.03589, allocations: 127.9 kB / 0.5016 GB, free: 3.176 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001212/0.03602, allocations: 0.5043 MB / 0.5021 GB, free: 2.664 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001166/0.03613, allocations: 102.9 kB / 0.5022 GB, free: 2.555 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000216/0.03635, allocations: 390.5 kB / 0.5026 GB, free: 2.074 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003069/0.03665, allocations: 362.2 kB / 0.5029 GB, free: 1.664 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.007e-06/0.03666, allocations: 4 kB / 0.5029 GB, free: 1.66 MB / 426.7 MB Notification: Performance of matching and sorting (n=79) (initialization): time 0.0005828/0.03724, allocations: 0.5816 MB / 0.5035 GB, free: 1.055 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.678e-05/0.03727, allocations: 41.69 kB / 0.5035 GB, free: 1.008 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.302e-06/0.03727, allocations: 4 kB / 0.5035 GB, free: 1.004 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002266/0.0375, allocations: 95.53 kB / 0.5036 GB, free: 0.9062 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002434/0.03774, allocations: 123.8 kB / 0.5038 GB, free: 0.7852 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001077/0.03882, allocations: 2.046 MB / 0.5058 GB, free: 14.62 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002184/0.03904, allocations: 27.98 kB / 0.5058 GB, free: 14.59 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.602e-05/0.03908, allocations: 27.92 kB / 0.5058 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.0001686/0.03925, allocations: 200.2 kB / 0.506 GB, free: 14.36 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.401e-05/0.03934, allocations: 115.4 kB / 0.5061 GB, free: 14.25 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006372/0.03998, allocations: 0.5676 MB / 0.5067 GB, free: 13.66 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.859e-06/0.03998, allocations: 11.92 kB / 0.5067 GB, free: 13.64 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.705e-06/0.03998, allocations: 4 kB / 0.5067 GB, free: 13.64 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.631e-06/0.03999, allocations: 7.984 kB / 0.5067 GB, free: 13.63 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001224/0.04121, allocations: 1.028 MB / 0.5077 GB, free: 12.55 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.124e-06/0.04122, allocations: 0 / 0.5077 GB, free: 12.55 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002261/0.04144, allocations: 95.92 kB / 0.5078 GB, free: 12.46 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000215/0.04166, allocations: 103.5 kB / 0.5079 GB, free: 12.35 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.054e-05/0.04169, allocations: 27.98 kB / 0.5079 GB, free: 12.32 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001073/0.04276, allocations: 2.042 MB / 0.5099 GB, free: 10.17 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.32e-07/0.04276, allocations: 4.031 kB / 0.5099 GB, free: 10.16 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006984/0.04346, allocations: 0.7238 MB / 0.5106 GB, free: 9.406 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000152/0.04361, allocations: 123.3 kB / 0.5107 GB, free: 9.285 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.791e-05/0.04367, allocations: 19.94 kB / 0.5107 GB, free: 9.266 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002016/0.04387, allocations: 20.05 kB / 0.5108 GB, free: 9.246 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.92e-05/0.04395, allocations: 68.33 kB / 0.5108 GB, free: 9.18 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.75e-05/0.04398, allocations: 15.98 kB / 0.5108 GB, free: 9.164 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.0002563/0.04423, allocations: 418.8 kB / 0.5112 GB, free: 8.762 MB / 442.7 MB Notification: Performance of sort global known variables: time 5e-08/0.04423, allocations: 0 / 0.5112 GB, free: 8.762 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.000454/0.04469, allocations: 235.9 kB / 0.5115 GB, free: 8.531 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.0001952/0.04488, allocations: 167.2 kB / 0.5116 GB, free: 8.359 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.0005609/0.04544, allocations: 0.5999 MB / 0.5122 GB, free: 7.719 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 1.883e-06/0.04545, allocations: 192 / 0.5122 GB, free: 7.719 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003258/0.04577, allocations: 396.9 kB / 0.5126 GB, free: 7.312 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007815/0.04655, allocations: 314.5 kB / 0.5129 GB, free: 7.008 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00227/0.04882, allocations: 1.714 MB / 0.5146 GB, free: 5.238 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001461/0.04897, allocations: 175.6 kB / 0.5147 GB, free: 5.047 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.0003464/0.04932, allocations: 134.2 kB / 0.5149 GB, free: 4.91 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004561/0.04977, allocations: 342 kB / 0.5152 GB, free: 4.574 MB / 442.7 MB Notification: Performance of SimCode: time 6.81e-07/0.04977, allocations: 0 / 0.5152 GB, free: 4.574 MB / 442.7 MB Notification: Performance of Templates: time 0.01677/0.06654, allocations: 14.16 MB / 0.529 GB, free: 6.785 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: 3.888165783137083]