Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.DHC.Plants.Cooling.Controls.Validation.TankStatus.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.001111/0.001111, allocations: 92.2 kB / 20.19 MB, free: 4.363 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.001047/0.001047, allocations: 173 kB / 23.49 MB, free: 1.059 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.022/1.022, allocations: 177.1 MB / 203.8 MB, free: 5.625 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo): time 2.148/2.148, allocations: 429.5 MB / 0.6736 GB, free: 4.039 MB / 0.6355 GB " [Timeout remaining time 177] Using package Buildings with version 14.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/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(Buildings.DHC.Plants.Cooling.Controls.Validation.TankStatus,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|tanSta.TTan.[0-9,]+.|tanSta.THig|tanSta.TLow|tanSta.y.[0-9,]+.",fileNamePrefix="Buildings_latest_Buildings.DHC.Plants.Cooling.Controls.Validation.TankStatus") translateModel(Buildings.DHC.Plants.Cooling.Controls.Validation.TankStatus,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|tanSta.TTan.[0-9,]+.|tanSta.THig|tanSta.TLow|tanSta.y.[0-9,]+.",fileNamePrefix="Buildings_latest_Buildings.DHC.Plants.Cooling.Controls.Validation.TankStatus") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 2.665e-06/2.665e-06, allocations: 1.094 kB / 0.8782 GB, free: 6.652 MB / 0.8386 GB Notification: Performance of FrontEnd - Absyn->SCode: time 4.121e-05/4.387e-05, allocations: 5.625 kB / 0.8782 GB, free: 6.648 MB / 0.8386 GB Notification: Performance of NFInst.instantiate(Buildings.DHC.Plants.Cooling.Controls.Validation.TankStatus): time 0.004489/0.004533, allocations: 2.264 MB / 0.8804 GB, free: 4.391 MB / 0.8386 GB Notification: Performance of NFInst.instExpressions: time 0.002633/0.007166, allocations: 1.392 MB / 0.8817 GB, free: 2.992 MB / 0.8386 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002201/0.007386, allocations: 8.969 kB / 0.8818 GB, free: 2.984 MB / 0.8386 GB Notification: Performance of NFTyping.typeComponents: time 0.0005843/0.00797, allocations: 164.3 kB / 0.8819 GB, free: 2.824 MB / 0.8386 GB Notification: Performance of NFTyping.typeBindings: time 0.0005873/0.008557, allocations: 231.7 kB / 0.8821 GB, free: 2.598 MB / 0.8386 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004748/0.009032, allocations: 188.4 kB / 0.8823 GB, free: 2.414 MB / 0.8386 GB Notification: Performance of NFFlatten.flatten: time 0.0005879/0.00962, allocations: 438.7 kB / 0.8827 GB, free: 1.984 MB / 0.8386 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002447/0.009865, allocations: 57.55 kB / 0.8828 GB, free: 1.926 MB / 0.8386 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003315/0.0102, allocations: 239 kB / 0.883 GB, free: 1.695 MB / 0.8386 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002722/0.01047, allocations: 167.5 kB / 0.8832 GB, free: 1.531 MB / 0.8386 GB Notification: Performance of NFPackage.collectConstants: time 4.91e-05/0.01052, allocations: 24 kB / 0.8832 GB, free: 1.508 MB / 0.8386 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001809/0.0107, allocations: 79.84 kB / 0.8833 GB, free: 1.43 MB / 0.8386 GB Notification: Performance of NFScalarize.scalarize: time 0.0001557/0.01085, allocations: 123.5 kB / 0.8834 GB, free: 1.309 MB / 0.8386 GB Notification: Performance of NFVerifyModel.verify: time 0.0001182/0.01097, allocations: 91.7 kB / 0.8835 GB, free: 1.219 MB / 0.8386 GB Notification: Performance of NFConvertDAE.convert: time 0.0005107/0.01148, allocations: 322.8 kB / 0.8838 GB, free: 0.9023 MB / 0.8386 GB Notification: Performance of FrontEnd - DAE generated: time 3.066e-06/0.01149, allocations: 4 kB / 0.8838 GB, free: 0.8984 MB / 0.8386 GB Notification: Performance of FrontEnd: time 1.703e-06/0.01149, allocations: 0 / 0.8838 GB, free: 0.8984 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 8.286e-06/0.0115, allocations: 4.625 kB / 0.8838 GB, free: 0.8945 MB / 0.8386 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 29 * Number of variables: 29 Notification: Performance of Generate backend data structure: time 0.001107/0.0126, allocations: 0.76 MB / 0.8845 GB, free: 100 kB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 5.392e-05/0.01266, allocations: 8.594 kB / 0.8845 GB, free: 92 kB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001357/0.01279, allocations: 57.75 kB / 0.8846 GB, free: 36 kB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005511/0.01334, allocations: 342.7 kB / 0.8849 GB, free: 15.68 MB / 0.8542 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.947e-05/0.01337, allocations: 9.906 kB / 0.8849 GB, free: 15.67 MB / 0.8542 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.362e-05/0.01341, allocations: 16.38 kB / 0.8849 GB, free: 15.65 MB / 0.8542 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006941/0.0141, allocations: 192.6 kB / 0.8851 GB, free: 15.44 MB / 0.8542 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.19e-05/0.01411, allocations: 11.98 kB / 0.8851 GB, free: 15.43 MB / 0.8542 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.173e-05/0.01414, allocations: 4 kB / 0.8851 GB, free: 15.42 MB / 0.8542 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.307e-05/0.01415, allocations: 4 kB / 0.8852 GB, free: 15.42 MB / 0.8542 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001405/0.01429, allocations: 51.84 kB / 0.8852 GB, free: 15.37 MB / 0.8542 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001055/0.01534, allocations: 0.794 MB / 0.886 GB, free: 14.53 MB / 0.8542 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002228/0.01557, allocations: 106.4 kB / 0.8861 GB, free: 14.4 MB / 0.8542 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.049e-05/0.01564, allocations: 43.36 kB / 0.8861 GB, free: 14.35 MB / 0.8542 GB Notification: Performance of preOpt evalFunc (simulation): time 2.6e-05/0.01566, allocations: 0 / 0.8861 GB, free: 14.35 MB / 0.8542 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001991/0.01586, allocations: 132.3 kB / 0.8862 GB, free: 14.2 MB / 0.8542 GB Notification: Performance of pre-optimization done (n=12): time 1.362e-06/0.01586, allocations: 0 / 0.8862 GB, free: 14.2 MB / 0.8542 GB Notification: Performance of matching and sorting (n=12): time 0.0004221/0.01629, allocations: 177.3 kB / 0.8864 GB, free: 14.02 MB / 0.8542 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.918e-05/0.01635, allocations: 114.8 kB / 0.8865 GB, free: 13.88 MB / 0.8542 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005365/0.01689, allocations: 498.6 kB / 0.887 GB, free: 13.38 MB / 0.8542 GB Notification: Performance of collectPreVariables (initialization): time 3.206e-05/0.01692, allocations: 33.69 kB / 0.887 GB, free: 13.34 MB / 0.8542 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001876/0.01711, allocations: 259.3 kB / 0.8873 GB, free: 13.08 MB / 0.8542 GB Notification: Performance of collectInitialBindings (initialization): time 4.24e-05/0.01715, allocations: 35.78 kB / 0.8873 GB, free: 13.04 MB / 0.8542 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001174/0.01727, allocations: 83.3 kB / 0.8874 GB, free: 12.95 MB / 0.8542 GB Notification: Performance of setup shared object (initialization): time 0.0002067/0.01748, allocations: 0.5352 MB / 0.8879 GB, free: 12.41 MB / 0.8542 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001157/0.01759, allocations: 39.97 kB / 0.888 GB, free: 12.37 MB / 0.8542 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001898/0.01778, allocations: 196.3 kB / 0.8881 GB, free: 12.13 MB / 0.8542 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002034/0.01799, allocations: 129.8 kB / 0.8883 GB, free: 11.98 MB / 0.8542 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.797e-06/0.01799, allocations: 0 / 0.8883 GB, free: 11.98 MB / 0.8542 GB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0004194/0.01841, allocations: 252.1 kB / 0.8885 GB, free: 11.73 MB / 0.8542 GB Notification: Performance of prepare postOptimizeDAE: time 2.198e-05/0.01843, allocations: 8 kB / 0.8885 GB, free: 11.73 MB / 0.8542 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.554e-06/0.01844, allocations: 3.938 kB / 0.8885 GB, free: 11.72 MB / 0.8542 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.048e-05/0.01846, allocations: 4 kB / 0.8885 GB, free: 11.72 MB / 0.8542 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001917/0.01865, allocations: 40.03 kB / 0.8886 GB, free: 11.68 MB / 0.8542 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.253e-05/0.01866, allocations: 7.922 kB / 0.8886 GB, free: 11.67 MB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001466/0.01881, allocations: 35.86 kB / 0.8886 GB, free: 11.64 MB / 0.8542 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.386e-05/0.01884, allocations: 12 kB / 0.8886 GB, free: 11.62 MB / 0.8542 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 15 ($PRE.TTanBot.tab.nextTimeEvent,$whenCondition2,$PRE.TTanTop.tab.nextTimeEvent,$whenCondition1,TTanTop.tab.nextTimeEventScaled,$PRE.TTanTop.tab.nextTimeEventScaled,TTanTop.tab.nextTimeEvent,tanSta.hysCha.y,$PRE.tanSta.hysCha.y,TTanBot.tab.nextTimeEventScaled,$PRE.TTanBot.tab.nextTimeEventScaled,TTanBot.tab.nextTimeEvent,tanSta.hysEmp.y,$PRE.tanSta.hysEmp.y,tanSta.gre.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (35): * Single equations (assignments): 35 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001477/0.01899, allocations: 182.6 kB / 0.8888 GB, free: 11.44 MB / 0.8542 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.012e-05/0.01905, allocations: 43.7 kB / 0.8888 GB, free: 11.39 MB / 0.8542 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003039/0.01936, allocations: 165 kB / 0.889 GB, free: 11.23 MB / 0.8542 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.986e-06/0.01936, allocations: 3.938 kB / 0.889 GB, free: 11.23 MB / 0.8542 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.22e-06/0.01936, allocations: 0 / 0.889 GB, free: 11.23 MB / 0.8542 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.504e-06/0.01937, allocations: 3.984 kB / 0.889 GB, free: 11.22 MB / 0.8542 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003099/0.01968, allocations: 272.4 kB / 0.8893 GB, free: 10.92 MB / 0.8542 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.045e-06/0.01968, allocations: 0 / 0.8893 GB, free: 10.92 MB / 0.8542 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.801e-05/0.01973, allocations: 15.98 kB / 0.8893 GB, free: 10.91 MB / 0.8542 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.999e-06/0.01974, allocations: 7.938 kB / 0.8893 GB, free: 10.9 MB / 0.8542 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.925e-05/0.01976, allocations: 4 kB / 0.8893 GB, free: 10.89 MB / 0.8542 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.635e-06/0.01976, allocations: 0.5 kB / 0.8893 GB, free: 10.89 MB / 0.8542 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.302e-06/0.01976, allocations: 0 / 0.8893 GB, free: 10.89 MB / 0.8542 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002934/0.02005, allocations: 211.7 kB / 0.8895 GB, free: 10.66 MB / 0.8542 GB Notification: Performance of postOpt removeConstants (simulation): time 7.187e-05/0.02013, allocations: 43.7 kB / 0.8895 GB, free: 10.62 MB / 0.8542 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.207e-05/0.02018, allocations: 19.92 kB / 0.8895 GB, free: 10.6 MB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.834e-05/0.02027, allocations: 11.98 kB / 0.8896 GB, free: 10.59 MB / 0.8542 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.663e-05/0.02035, allocations: 19.97 kB / 0.8896 GB, free: 10.57 MB / 0.8542 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.534e-05/0.02037, allocations: 11.98 kB / 0.8896 GB, free: 10.55 MB / 0.8542 GB Notification: Performance of sorting global known variables: time 0.0003142/0.02068, allocations: 303 kB / 0.8899 GB, free: 10.26 MB / 0.8542 GB Notification: Performance of sort global known variables: time 1.01e-07/0.02068, allocations: 0 / 0.8899 GB, free: 10.26 MB / 0.8542 GB Notification: Performance of remove unused functions: time 0.0003515/0.02103, allocations: 71.89 kB / 0.8899 GB, free: 10.19 MB / 0.8542 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 8 ($whenCondition2,tanSta.hysEmp.y,TTanBot.tab.nextTimeEvent,TTanBot.tab.nextTimeEventScaled,$whenCondition1,tanSta.hysCha.y,TTanTop.tab.nextTimeEvent,TTanTop.tab.nextTimeEventScaled) * Number of discrete states: 6 (tanSta.hysCha.y,TTanTop.tab.nextTimeEvent,TTanTop.tab.nextTimeEventScaled,tanSta.hysEmp.y,TTanBot.tab.nextTimeEvent,TTanBot.tab.nextTimeEventScaled) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (14): * Single equations (assignments): 10 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 4 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001211/0.02224, allocations: 410 kB / 0.8903 GB, free: 9.926 MB / 0.8542 GB Notification: Performance of simCode: created initialization part: time 0.0003185/0.02256, allocations: 130.8 kB / 0.8905 GB, free: 9.797 MB / 0.8542 GB Notification: Performance of simCode: created event and clocks part: time 1.823e-06/0.02257, allocations: 4 kB / 0.8905 GB, free: 9.793 MB / 0.8542 GB Notification: Performance of simCode: created simulation system equations: time 9.535e-05/0.02266, allocations: 47.59 kB / 0.8905 GB, free: 9.742 MB / 0.8542 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004561/0.02312, allocations: 101.3 kB / 0.8906 GB, free: 9.648 MB / 0.8542 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001183/0.0243, allocations: 0.5596 MB / 0.8911 GB, free: 9.055 MB / 0.8542 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001029/0.0244, allocations: 108.6 kB / 0.8913 GB, free: 8.93 MB / 0.8542 GB Notification: Performance of simCode: alias equations: time 0.0001312/0.02453, allocations: 47.25 kB / 0.8913 GB, free: 8.883 MB / 0.8542 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.478e-05/0.02463, allocations: 40.48 kB / 0.8913 GB, free: 8.844 MB / 0.8542 GB Notification: Performance of SimCode: time 1.242e-06/0.02463, allocations: 0 / 0.8913 GB, free: 8.844 MB / 0.8542 GB Notification: Performance of Templates: time 0.01061/0.03524, allocations: 5.1 MB / 0.8963 GB, free: 3.816 MB / 0.8542 GB " [Timeout remaining time 300] make -j1 -f Buildings_latest_Buildings.DHC.Plants.Cooling.Controls.Validation.TankStatus.makefile [Timeout 300] (rm -f Buildings_latest_Buildings.DHC.Plants.Cooling.Controls.Validation.TankStatus.pipe ; mkfifo Buildings_latest_Buildings.DHC.Plants.Cooling.Controls.Validation.TankStatus.pipe ; head -c 1048576 < Buildings_latest_Buildings.DHC.Plants.Cooling.Controls.Validation.TankStatus.pipe >> ../files/Buildings_latest_Buildings.DHC.Plants.Cooling.Controls.Validation.TankStatus.sim & ./Buildings_latest_Buildings.DHC.Plants.Cooling.Controls.Validation.TankStatus -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.DHC.Plants.Cooling.Controls.Validation.TankStatus.pipe 2>&1) [Timeout 240] diffSimulationResults("Buildings_latest_Buildings.DHC.Plants.Cooling.Controls.Validation.TankStatus_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_DHC_Plants_Cooling_Controls_Validation_TankStatus.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 5.921468180138618]