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.0009661/0.0009661, allocations: 93.06 kB / 19.65 MB, free: 280 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.000916/0.000916, allocations: 173.3 kB / 23.03 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 0.9531/0.9531, allocations: 177.1 MB / 203.4 MB, free: 5.648 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.7173/0.7173, allocations: 118.6 MB / 378.6 MB, free: 1.492 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.833e-06/1.833e-06, allocations: 0 / 483.6 MB, free: 8.273 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.537e-05/2.72e-05, allocations: 6.297 kB / 483.6 MB, free: 8.27 MB / 410.7 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Examples.WaterHammer): time 0.009399/0.009426, allocations: 9.365 MB / 492.9 MB, free: 1.945 MB / 410.7 MB Notification: Performance of NFInst.instExpressions: time 0.003778/0.0132, allocations: 2.461 MB / 495.4 MB, free: 252 kB / 410.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006164/0.01382, allocations: 57.81 kB / 495.5 MB, free: 216 kB / 410.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0005245/0.01435, allocations: 215.3 kB / 495.7 MB, free: 88 kB / 410.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001607/0.01595, allocations: 0.7009 MB / 496.4 MB, free: 15.61 MB / 426.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001259/0.01721, allocations: 0.5081 MB / 496.9 MB, free: 15.33 MB / 426.7 MB Notification: Performance of NFFlatten.flatten: time 0.002074/0.01928, allocations: 1.686 MB / 498.6 MB, free: 14.45 MB / 426.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003722/0.01966, allocations: 189.7 kB / 498.8 MB, free: 14.35 MB / 426.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001435/0.02109, allocations: 0.9119 MB / 499.7 MB, free: 13.99 MB / 426.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007408/0.02183, allocations: 444 kB / 0.4884 GB, free: 13.85 MB / 426.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001456/0.02198, allocations: 78.25 kB / 0.4885 GB, free: 13.85 MB / 426.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004941/0.02247, allocations: 212.3 kB / 0.4887 GB, free: 13.8 MB / 426.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002128/0.02269, allocations: 213.4 kB / 0.4889 GB, free: 13.66 MB / 426.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0004655/0.02315, allocations: 382.2 kB / 0.4892 GB, free: 13.5 MB / 426.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001432/0.02458, allocations: 0.9965 MB / 0.4902 GB, free: 13.05 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.268e-06/0.02459, allocations: 1.156 kB / 0.4902 GB, free: 13.05 MB / 426.7 MB Notification: Performance of FrontEnd: time 1.203e-06/0.02459, allocations: 4 kB / 0.4902 GB, free: 13.04 MB / 426.7 MB Notification: Performance of Transformations before backend: time 3.285e-05/0.02462, allocations: 0 / 0.4902 GB, free: 13.04 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.002196/0.02682, allocations: 1.516 MB / 0.4917 GB, free: 11.77 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.229e-05/0.02686, allocations: 16.69 kB / 0.4917 GB, free: 11.75 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003476/0.02721, allocations: 211 kB / 0.4919 GB, free: 11.55 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001067/0.02827, allocations: 0.783 MB / 0.4927 GB, free: 10.84 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.564e-05/0.02832, allocations: 58.38 kB / 0.4927 GB, free: 10.78 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.784e-05/0.02842, allocations: 89.5 kB / 0.4928 GB, free: 10.7 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009645/0.02938, allocations: 0.8027 MB / 0.4936 GB, free: 9.945 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.793e-05/0.0294, allocations: 4.125 kB / 0.4936 GB, free: 9.941 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.605e-05/0.02946, allocations: 40.58 kB / 0.4936 GB, free: 9.902 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.235e-05/0.02948, allocations: 16 kB / 0.4936 GB, free: 9.887 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000573/0.03005, allocations: 319.1 kB / 0.494 GB, free: 9.637 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002999/0.03305, allocations: 2.368 MB / 0.4963 GB, free: 7.539 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000683/0.03373, allocations: 448.5 kB / 0.4967 GB, free: 7.141 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002287/0.03396, allocations: 162.1 kB / 0.4968 GB, free: 7.004 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001187/0.03515, allocations: 0.8836 MB / 0.4977 GB, free: 6.223 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004614/0.03561, allocations: 453.4 kB / 0.4981 GB, free: 5.77 MB / 426.7 MB Notification: Performance of pre-optimization done (n=58): time 1.844e-06/0.03561, allocations: 0 / 0.4981 GB, free: 5.77 MB / 426.7 MB Notification: Performance of matching and sorting (n=60): time 0.002097/0.03771, allocations: 1.41 MB / 0.4995 GB, free: 4.418 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.034e-05/0.03777, allocations: 119.9 kB / 0.4996 GB, free: 4.273 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005382/0.03831, allocations: 0.675 MB / 0.5003 GB, free: 3.59 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 4.172e-05/0.03835, allocations: 37.7 kB / 0.5003 GB, free: 3.547 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002821/0.03863, allocations: 0.5227 MB / 0.5008 GB, free: 3.016 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001291/0.03876, allocations: 214.1 kB / 0.501 GB, free: 2.805 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001359/0.0389, allocations: 120 kB / 0.5012 GB, free: 2.68 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001568/0.03905, allocations: 0.5042 MB / 0.5016 GB, free: 2.168 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001743/0.03923, allocations: 122.9 kB / 0.5018 GB, free: 2.039 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002906/0.03952, allocations: 406.6 kB / 0.5022 GB, free: 1.543 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006372/0.04016, allocations: 406.2 kB / 0.5025 GB, free: 1.09 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.325e-06/0.04016, allocations: 0 / 0.5025 GB, free: 1.09 MB / 426.7 MB Notification: Performance of matching and sorting (n=79) (initialization): time 0.0007991/0.04096, allocations: 0.6363 MB / 0.5032 GB, free: 440 kB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.504e-05/0.04099, allocations: 45.72 kB / 0.5032 GB, free: 388 kB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.994e-06/0.041, allocations: 4 kB / 0.5032 GB, free: 384 kB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003042/0.0413, allocations: 95.58 kB / 0.5033 GB, free: 284 kB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002649/0.04157, allocations: 127.8 kB / 0.5034 GB, free: 156 kB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001463/0.04303, allocations: 2.1 MB / 0.5055 GB, free: 13.93 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002001/0.04323, allocations: 23.98 kB / 0.5055 GB, free: 13.9 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.171e-05/0.04327, allocations: 28 kB / 0.5055 GB, free: 13.88 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.0001855/0.04346, allocations: 196.4 kB / 0.5057 GB, free: 13.67 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.874e-05/0.04356, allocations: 111.4 kB / 0.5058 GB, free: 13.56 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007502/0.04431, allocations: 0.6067 MB / 0.5064 GB, free: 12.93 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.008e-06/0.04431, allocations: 8 kB / 0.5064 GB, free: 12.92 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.206e-06/0.04431, allocations: 0 / 0.5064 GB, free: 12.92 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.262e-06/0.04432, allocations: 3.984 kB / 0.5064 GB, free: 12.92 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001289/0.04561, allocations: 1.191 MB / 0.5076 GB, free: 11.66 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.258e-06/0.04561, allocations: 4 kB / 0.5076 GB, free: 11.66 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002335/0.04585, allocations: 95.83 kB / 0.5077 GB, free: 11.57 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002384/0.04609, allocations: 99.62 kB / 0.5078 GB, free: 11.46 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.404e-05/0.04612, allocations: 19.98 kB / 0.5078 GB, free: 11.45 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001676/0.0478, allocations: 2.108 MB / 0.5099 GB, free: 9.215 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.607e-06/0.0478, allocations: 4 kB / 0.5099 GB, free: 9.211 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008272/0.04863, allocations: 0.7824 MB / 0.5106 GB, free: 8.395 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001504/0.04878, allocations: 127.3 kB / 0.5107 GB, free: 8.27 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.831e-05/0.04883, allocations: 16 kB / 0.5108 GB, free: 8.254 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001951/0.04903, allocations: 23.98 kB / 0.5108 GB, free: 8.23 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000109/0.04914, allocations: 48.41 kB / 0.5108 GB, free: 8.184 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.21e-05/0.04917, allocations: 19.98 kB / 0.5108 GB, free: 8.164 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.0003495/0.04952, allocations: 454.9 kB / 0.5113 GB, free: 7.727 MB / 442.7 MB Notification: Performance of sort global known variables: time 8e-08/0.04952, allocations: 3.938 kB / 0.5113 GB, free: 7.723 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.0005395/0.05006, 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.0002777/0.05034, allocations: 167.2 kB / 0.5117 GB, free: 7.328 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.0007587/0.0511, allocations: 0.6385 MB / 0.5123 GB, free: 6.648 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 2.936e-06/0.0511, allocations: 0 / 0.5123 GB, free: 6.648 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003875/0.05149, allocations: 413.9 kB / 0.5127 GB, free: 6.227 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008639/0.05235, allocations: 324 kB / 0.513 GB, free: 5.926 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002761/0.05511, allocations: 1.714 MB / 0.5147 GB, free: 4.152 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001379/0.05525, allocations: 179.6 kB / 0.5148 GB, free: 3.957 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.0003628/0.05561, allocations: 142.2 kB / 0.515 GB, free: 3.812 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001316/0.05574, allocations: 76.47 kB / 0.515 GB, free: 3.738 MB / 442.7 MB Notification: Performance of SimCode: time 1.022e-06/0.05574, allocations: 0 / 0.515 GB, free: 3.738 MB / 442.7 MB Notification: Performance of Templates: time 0.01824/0.07398, allocations: 13.72 MB / 0.5284 GB, free: 6.375 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: 3.9390241750515997]