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.001122/0.001122, allocations: 92.22 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.0009586/0.0009586, allocations: 169 kB / 23.02 MB, free: 1.551 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.056/1.056, allocations: 177.1 MB / 203.4 MB, free: 5.633 MB / 186.7 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.6998/0.6998, allocations: 118.6 MB / 378.6 MB, free: 1.461 MB / 346.7 MB " [Timeout remaining time 179] Using package ThermofluidStream with version 1.4.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: Performance of FrontEnd - loaded program: time 1.633e-06/1.633e-06, allocations: 0 / 483.6 MB, free: 8.246 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.716e-05/2.879e-05, allocations: 8.484 kB / 483.6 MB, free: 8.242 MB / 410.7 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Examples.WaterHammer): time 0.007833/0.007862, allocations: 9.358 MB / 492.9 MB, free: 1.922 MB / 410.7 MB Notification: Performance of NFInst.instExpressions: time 0.003094/0.01096, allocations: 2.466 MB / 495.4 MB, free: 224 kB / 410.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005571/0.01151, allocations: 59.16 kB / 495.5 MB, free: 188 kB / 410.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0004928/0.01201, allocations: 217.5 kB / 495.7 MB, free: 56 kB / 410.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001385/0.01339, allocations: 0.694 MB / 496.4 MB, free: 15.58 MB / 426.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001068/0.01446, allocations: 0.5058 MB / 496.9 MB, free: 15.31 MB / 426.7 MB Notification: Performance of NFFlatten.flatten: time 0.001778/0.01624, allocations: 1.69 MB / 498.6 MB, free: 14.42 MB / 426.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003455/0.01658, allocations: 186.5 kB / 498.7 MB, free: 14.32 MB / 426.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001485/0.01807, allocations: 0.8968 MB / 499.6 MB, free: 13.97 MB / 426.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007951/0.01886, allocations: 447.8 kB / 0.4884 GB, free: 13.82 MB / 426.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002009/0.01906, allocations: 80.62 kB / 0.4884 GB, free: 13.82 MB / 426.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005979/0.01966, allocations: 205.5 kB / 0.4886 GB, free: 13.79 MB / 426.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002009/0.01986, allocations: 219.1 kB / 0.4888 GB, free: 13.64 MB / 426.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0005371/0.0204, allocations: 383.9 kB / 0.4892 GB, free: 13.48 MB / 426.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001486/0.02189, allocations: 1.004 MB / 0.4902 GB, free: 13.02 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.851e-06/0.02189, allocations: 4 kB / 0.4902 GB, free: 13.02 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.084e-06/0.02189, allocations: 0 / 0.4902 GB, free: 13.02 MB / 426.7 MB Notification: Performance of Transformations before backend: time 4.562e-05/0.02194, allocations: 1.062 kB / 0.4902 GB, free: 13.02 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.002603/0.02454, allocations: 1.519 MB / 0.4917 GB, free: 11.75 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.005e-05/0.02458, allocations: 12.03 kB / 0.4917 GB, free: 11.73 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000624/0.02521, allocations: 211 kB / 0.4919 GB, free: 11.53 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001404/0.02661, allocations: 0.8066 MB / 0.4927 GB, free: 10.8 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.189e-05/0.02666, allocations: 58.38 kB / 0.4927 GB, free: 10.74 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001132/0.02678, allocations: 84.98 kB / 0.4928 GB, free: 10.66 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001284/0.02806, allocations: 0.8031 MB / 0.4936 GB, free: 9.906 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.09e-05/0.02808, allocations: 7.922 kB / 0.4936 GB, free: 9.898 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.337e-05/0.02813, allocations: 32.56 kB / 0.4936 GB, free: 9.867 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.909e-05/0.02815, allocations: 23.88 kB / 0.4937 GB, free: 9.844 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005712/0.02872, allocations: 322.8 kB / 0.494 GB, free: 9.594 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003594/0.03232, allocations: 2.357 MB / 0.4963 GB, free: 7.504 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007219/0.03304, allocations: 447.8 kB / 0.4967 GB, free: 7.105 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002463/0.03329, allocations: 166 kB / 0.4969 GB, free: 6.965 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001351/0.03464, allocations: 0.8798 MB / 0.4977 GB, free: 6.191 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004866/0.03512, allocations: 453.2 kB / 0.4981 GB, free: 5.738 MB / 426.7 MB Notification: Performance of pre-optimization done (n=58): time 2.224e-06/0.03513, allocations: 0 / 0.4981 GB, free: 5.738 MB / 426.7 MB Notification: Performance of matching and sorting (n=60): time 0.002577/0.0377, allocations: 1.417 MB / 0.4995 GB, free: 4.371 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.413e-05/0.03778, allocations: 115.2 kB / 0.4996 GB, free: 4.23 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005874/0.03837, allocations: 0.679 MB / 0.5003 GB, free: 3.535 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 4.2e-05/0.03841, allocations: 37.7 kB / 0.5003 GB, free: 3.492 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003043/0.03871, allocations: 0.5188 MB / 0.5008 GB, free: 2.965 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001268/0.03884, allocations: 218.1 kB / 0.501 GB, free: 2.75 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000129/0.03897, allocations: 128 kB / 0.5012 GB, free: 2.617 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001233/0.03909, allocations: 0.4965 MB / 0.5017 GB, free: 2.113 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001765/0.03927, allocations: 126.9 kB / 0.5018 GB, free: 1.98 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002793/0.03955, allocations: 406.6 kB / 0.5022 GB, free: 1.484 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004216/0.03997, allocations: 410.2 kB / 0.5026 GB, free: 1.027 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.954e-06/0.03997, allocations: 0 / 0.5026 GB, free: 1.027 MB / 426.7 MB Notification: Performance of matching and sorting (n=79) (initialization): time 0.0007616/0.04073, allocations: 0.6401 MB / 0.5032 GB, free: 372 kB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.916e-05/0.04077, allocations: 33.7 kB / 0.5032 GB, free: 332 kB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.807e-06/0.04078, allocations: 0 / 0.5032 GB, free: 332 kB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003268/0.04111, allocations: 99.72 kB / 0.5033 GB, free: 228 kB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002782/0.04138, allocations: 119.8 kB / 0.5034 GB, free: 108 kB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001456/0.04284, allocations: 2.108 MB / 0.5055 GB, free: 13.87 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000288/0.04313, allocations: 24 kB / 0.5055 GB, free: 13.85 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.542e-05/0.04317, allocations: 27.98 kB / 0.5055 GB, free: 13.82 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.0002496/0.04342, allocations: 192.4 kB / 0.5057 GB, free: 13.62 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001044/0.04353, allocations: 115.4 kB / 0.5058 GB, free: 13.51 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009861/0.04451, allocations: 0.6067 MB / 0.5064 GB, free: 12.88 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.741e-06/0.04452, allocations: 11.98 kB / 0.5064 GB, free: 12.87 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.895e-06/0.04452, allocations: 0 / 0.5064 GB, free: 12.87 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.099e-06/0.04453, allocations: 0 / 0.5064 GB, free: 12.87 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001388/0.04592, allocations: 1.184 MB / 0.5076 GB, free: 11.62 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.428e-06/0.04592, allocations: 4 kB / 0.5076 GB, free: 11.62 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002408/0.04616, allocations: 95.88 kB / 0.5077 GB, free: 11.52 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002424/0.0464, allocations: 107.5 kB / 0.5078 GB, free: 11.41 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.314e-05/0.04644, allocations: 23.98 kB / 0.5078 GB, free: 11.39 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001447/0.04788, allocations: 2.1 MB / 0.5099 GB, free: 9.168 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.436e-06/0.04789, allocations: 4 kB / 0.5099 GB, free: 9.164 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009148/0.0488, allocations: 0.7785 MB / 0.5106 GB, free: 8.352 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001906/0.04899, allocations: 123.3 kB / 0.5107 GB, free: 8.23 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.792e-05/0.04905, allocations: 16 kB / 0.5108 GB, free: 8.215 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002036/0.04925, allocations: 19.98 kB / 0.5108 GB, free: 8.195 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001035/0.04936, allocations: 56.45 kB / 0.5108 GB, free: 8.141 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.687e-05/0.04939, allocations: 23.98 kB / 0.5108 GB, free: 8.117 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.0003791/0.04977, allocations: 454.9 kB / 0.5113 GB, free: 7.676 MB / 442.7 MB Notification: Performance of sort global known variables: time 8e-08/0.04977, allocations: 4 kB / 0.5113 GB, free: 7.672 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.000639/0.05041, allocations: 227.9 kB / 0.5115 GB, free: 7.449 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.0002776/0.05069, allocations: 171.2 kB / 0.5117 GB, free: 7.273 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.0008206/0.05151, allocations: 0.6347 MB / 0.5123 GB, free: 6.598 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 6.633e-06/0.05152, allocations: 0 / 0.5123 GB, free: 6.598 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004074/0.05192, allocations: 413.9 kB / 0.5127 GB, free: 6.176 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008661/0.05279, allocations: 327.3 kB / 0.513 GB, free: 5.875 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002977/0.05577, allocations: 1.71 MB / 0.5147 GB, free: 4.105 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001384/0.05591, allocations: 175.6 kB / 0.5148 GB, free: 3.914 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.0004376/0.05634, allocations: 138.2 kB / 0.515 GB, free: 3.773 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000145/0.05649, allocations: 80.47 kB / 0.515 GB, free: 3.695 MB / 442.7 MB Notification: Performance of SimCode: time 2.225e-06/0.05649, allocations: 0 / 0.515 GB, free: 3.695 MB / 442.7 MB Notification: Performance of Templates: time 0.01857/0.07506, allocations: 12.78 MB / 0.5275 GB, free: 7.281 MB / 458.7 MB " [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=240 -emit_protected -lv LOG_STATS > ThermofluidStream_dev_ThermofluidStream.Examples.WaterHammer.pipe 2>&1) [Timeout 240] diffSimulationResults("ThermofluidStream_dev_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.163273276761174]