Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_Buildings.Experimental.DHC.Plants.Cooling.Controls.Validation.TankStatus.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Buildings.Experimental.DHC.Plants.Cooling.Controls.Validation.TankStatus,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|tanSta.TTan.1.|tanSta.TTan.2.|tanSta.THig|tanSta.TLow|tanSta.y.1.|tanSta.y.2.",fileNamePrefix="Buildings_10_Buildings.Experimental.DHC.Plants.Cooling.Controls.Validation.TankStatus") translateModel(Buildings.Experimental.DHC.Plants.Cooling.Controls.Validation.TankStatus,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|tanSta.TTan.1.|tanSta.TTan.2.|tanSta.THig|tanSta.TLow|tanSta.y.1.|tanSta.y.2.",fileNamePrefix="Buildings_10_Buildings.Experimental.DHC.Plants.Cooling.Controls.Validation.TankStatus") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001479/0.001479, allocations: 111.3 kB / 15.23 MB, free: 0.6562 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001859/0.00186, allocations: 193.3 kB / 16.13 MB, free: 6.656 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.339/1.339, allocations: 222.9 MB / 239.8 MB, free: 4.574 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.62/2.62, allocations: 437 MB / 0.7099 GB, free: 5.324 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.002565/0.002565, allocations: 67.89 kB / 0.8686 GB, free: 5.152 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6917/0.6943, allocations: 151.6 MB / 1.017 GB, free: 2.758 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Experimental.DHC.Plants.Cooling.Controls.Validation.TankStatus): time 0.003417/0.6977, allocations: 2.299 MB / 1.019 GB, free: 452 kB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.001896/0.6996, allocations: 1.263 MB / 1.02 GB, free: 15.17 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001511/0.6998, allocations: 7.938 kB / 1.02 GB, free: 15.16 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 0.0004322/0.7003, allocations: 163.5 kB / 1.02 GB, free: 15 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 0.0002953/0.7006, allocations: 151.5 kB / 1.02 GB, free: 14.85 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005042/0.7011, allocations: 212.5 kB / 1.021 GB, free: 14.64 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.0004168/0.7015, allocations: 390.8 kB / 1.021 GB, free: 14.26 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002257/0.7018, allocations: 101.2 kB / 1.021 GB, free: 14.16 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002458/0.702, allocations: 155.1 kB / 1.021 GB, free: 14.01 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002372/0.7023, allocations: 167.3 kB / 1.021 GB, free: 13.84 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 4.621e-05/0.7023, allocations: 8 kB / 1.021 GB, free: 13.84 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001842/0.7025, allocations: 67.89 kB / 1.021 GB, free: 13.77 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 0.0001203/0.7026, allocations: 95.67 kB / 1.022 GB, free: 13.68 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 0.000159/0.7028, allocations: 154.9 kB / 1.022 GB, free: 13.52 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0004825/0.7033, allocations: 476.4 kB / 1.022 GB, free: 13.06 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 6.783e-06/0.7033, allocations: 3.984 kB / 1.022 GB, free: 13.05 MB / 0.7794 GB Notification: Performance of FrontEnd: time 9.12e-07/0.7033, allocations: 4 kB / 1.022 GB, free: 13.05 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 1.473e-05/0.7033, allocations: 0 / 1.022 GB, free: 13.05 MB / 0.7794 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.001192/0.7045, allocations: 0.708 MB / 1.023 GB, free: 12.29 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 4.024e-05/0.7046, allocations: 11.98 kB / 1.023 GB, free: 12.28 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001038/0.7047, allocations: 44.38 kB / 1.023 GB, free: 12.24 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005518/0.7052, allocations: 406.2 kB / 1.023 GB, free: 11.8 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.111e-05/0.7053, allocations: 16.38 kB / 1.023 GB, free: 11.79 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.255e-05/0.7053, allocations: 15.94 kB / 1.023 GB, free: 11.77 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003318/0.7057, allocations: 176.1 kB / 1.023 GB, free: 11.58 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.976e-06/0.7057, allocations: 0 / 1.023 GB, free: 11.58 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.249e-05/0.7057, allocations: 4 kB / 1.024 GB, free: 11.58 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.717e-06/0.7057, allocations: 4 kB / 1.024 GB, free: 11.57 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002158/0.7059, allocations: 91.89 kB / 1.024 GB, free: 11.48 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001115/0.7071, allocations: 0.7932 MB / 1.024 GB, free: 10.63 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003217/0.7074, allocations: 145.4 kB / 1.025 GB, free: 10.47 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001082/0.7075, allocations: 49.7 kB / 1.025 GB, free: 10.42 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 2.535e-05/0.7076, allocations: 0 / 1.025 GB, free: 10.42 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002347/0.7078, allocations: 125 kB / 1.025 GB, free: 10.28 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=12): time 1.283e-06/0.7078, allocations: 0 / 1.025 GB, free: 10.28 MB / 0.7794 GB Notification: Performance of matching and sorting (n=12): time 0.0005431/0.7084, allocations: 217.1 kB / 1.025 GB, free: 10.06 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.242e-05/0.7084, allocations: 106.8 kB / 1.025 GB, free: 9.93 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006332/0.7091, allocations: 0.5837 MB / 1.026 GB, free: 9.34 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 3.486e-05/0.7091, allocations: 33.69 kB / 1.026 GB, free: 9.301 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001576/0.7093, allocations: 200.4 kB / 1.026 GB, free: 9.102 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 3.815e-05/0.7093, allocations: 35.64 kB / 1.026 GB, free: 9.066 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001137/0.7094, allocations: 73.59 kB / 1.026 GB, free: 8.988 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001263/0.7096, allocations: 354.7 kB / 1.026 GB, free: 8.633 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002171/0.7098, allocations: 108 kB / 1.026 GB, free: 8.527 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002322/0.71, allocations: 159.1 kB / 1.026 GB, free: 8.352 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000316/0.7104, allocations: 195 kB / 1.027 GB, free: 8.148 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.498e-06/0.7104, allocations: 0 / 1.027 GB, free: 8.148 MB / 0.7794 GB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0006449/0.711, allocations: 338.3 kB / 1.027 GB, free: 7.812 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 2.548e-05/0.7111, allocations: 11.94 kB / 1.027 GB, free: 7.801 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.929e-06/0.7111, allocations: 0 / 1.027 GB, free: 7.801 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.435e-05/0.7111, allocations: 4 kB / 1.027 GB, free: 7.797 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002272/0.7113, allocations: 51.91 kB / 1.027 GB, free: 7.746 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.149e-05/0.7114, allocations: 0 / 1.027 GB, free: 7.746 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002814/0.7117, allocations: 43.91 kB / 1.027 GB, free: 7.703 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.105e-05/0.7117, allocations: 12 kB / 1.027 GB, free: 7.691 MB / 0.7794 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.0002805/0.712, allocations: 204 kB / 1.027 GB, free: 7.484 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.306e-05/0.7121, allocations: 39.44 kB / 1.027 GB, free: 7.445 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001124/0.7122, allocations: 39.48 kB / 1.027 GB, free: 7.406 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.513e-06/0.7122, allocations: 7.938 kB / 1.027 GB, free: 7.398 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.197e-06/0.7122, allocations: 4 kB / 1.027 GB, free: 7.395 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.767e-06/0.7122, allocations: 0 / 1.027 GB, free: 7.395 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004011/0.7127, allocations: 333.9 kB / 1.028 GB, free: 7.02 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.777e-06/0.7127, allocations: 0 / 1.028 GB, free: 7.02 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.296e-05/0.7127, allocations: 8 kB / 1.028 GB, free: 7.012 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.476e-06/0.7127, allocations: 0 / 1.028 GB, free: 7.012 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.239e-05/0.7128, allocations: 11.98 kB / 1.028 GB, free: 7 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.098e-06/0.7128, allocations: 0 / 1.028 GB, free: 7 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.424e-06/0.7128, allocations: 3.938 kB / 1.028 GB, free: 6.996 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004336/0.7132, allocations: 213.4 kB / 1.028 GB, free: 6.766 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001382/0.7134, allocations: 124.6 kB / 1.028 GB, free: 6.625 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.849e-05/0.7134, allocations: 4 kB / 1.028 GB, free: 6.621 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000175/0.7136, allocations: 15.98 kB / 1.028 GB, free: 6.605 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001251/0.7138, allocations: 23.97 kB / 1.028 GB, free: 6.582 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.207e-05/0.7138, allocations: 7.984 kB / 1.028 GB, free: 6.574 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 0.0004971/0.7143, allocations: 359.1 kB / 1.028 GB, free: 6.227 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.3e-07/0.7143, allocations: 3.938 kB / 1.028 GB, free: 6.223 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0004092/0.7147, allocations: 67.89 kB / 1.029 GB, free: 6.156 MB / 0.7794 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 (TTanTop.tab.nextTimeEventScaled,tanSta.hysCha.y,TTanTop.tab.nextTimeEvent,TTanBot.tab.nextTimeEventScaled,tanSta.hysEmp.y,TTanBot.tab.nextTimeEvent) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (12): * Single equations (assignments): 8 * 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.001305/0.716, allocations: 425.5 kB / 1.029 GB, free: 5.891 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0005312/0.7166, allocations: 198.6 kB / 1.029 GB, free: 5.699 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 2.995e-06/0.7166, allocations: 192 / 1.029 GB, free: 5.699 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.0001779/0.7168, allocations: 71.89 kB / 1.029 GB, free: 5.629 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006406/0.7174, allocations: 98.41 kB / 1.029 GB, free: 5.539 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001352/0.7188, allocations: 0.6912 MB / 1.03 GB, free: 4.824 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000521/0.7193, allocations: 0.8109 MB / 1.031 GB, free: 3.988 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 0.0002058/0.7195, allocations: 54.94 kB / 1.031 GB, free: 3.93 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001052/0.7197, allocations: 27.44 kB / 1.031 GB, free: 3.902 MB / 0.7794 GB Notification: Performance of SimCode: time 2.01e-07/0.7197, allocations: 0 / 1.031 GB, free: 3.902 MB / 0.7794 GB Notification: Performance of Templates: time 0.01194/0.7316, allocations: 4.461 MB / 1.035 GB, free: 15.48 MB / 0.795 GB make -j1 -f Buildings_10_Buildings.Experimental.DHC.Plants.Cooling.Controls.Validation.TankStatus.makefile (rm -f Buildings_10_Buildings.Experimental.DHC.Plants.Cooling.Controls.Validation.TankStatus.pipe ; mkfifo Buildings_10_Buildings.Experimental.DHC.Plants.Cooling.Controls.Validation.TankStatus.pipe ; head -c 1048576 < Buildings_10_Buildings.Experimental.DHC.Plants.Cooling.Controls.Validation.TankStatus.pipe >> ../files/Buildings_10_Buildings.Experimental.DHC.Plants.Cooling.Controls.Validation.TankStatus.sim & ./Buildings_10_Buildings.Experimental.DHC.Plants.Cooling.Controls.Validation.TankStatus -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Experimental.DHC.Plants.Cooling.Controls.Validation.TankStatus.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Experimental.DHC.Plants.Cooling.Controls.Validation.TankStatus_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Experimental_DHC_Plants_Cooling_Controls_Validation_TankStatus.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Experimental.DHC.Plants.Cooling.Controls.Validation.TankStatus.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches