Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_Buildings.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) [Timeout 180]
"Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001918/0.001918, allocations: 105.8 kB / 18.84 MB, free: 3.043 MB / 14.72 MB
"
[Timeout remaining time 180]
loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180]
"Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002597/0.002597, allocations: 190.2 kB / 22.1 MB, free: 5.152 MB / 14.72 MB
"
[Timeout remaining time 180]
loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180]
"Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.463/1.463, allocations: 225.6 MB / 250.8 MB, free: 13.07 MB / 206.1 MB
"
[Timeout remaining time 178]
loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.1-maint.12.x/package.mo", uses=false) [Timeout 180]
"Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.1-maint.12.x/package.mo): time 3.149/3.149, allocations: 495.8 MB / 0.783 GB, free: 33.45 MB / 0.6231 GB
"
[Timeout remaining time 177]
Using package Buildings with version 12.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.1-maint.12.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.DHC.Plants.Cooling.Controls.Validation.TankStatus,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|tanSta.TTan.1.|tanSta.TTan.2.|tanSta.THig|tanSta.TLow|tanSta.y.1.|tanSta.y.2.",fileNamePrefix="Buildings_12_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.1.|tanSta.TTan.2.|tanSta.THig|tanSta.TLow|tanSta.y.1.|tanSta.y.2.",fileNamePrefix="Buildings_12_Buildings.DHC.Plants.Cooling.Controls.Validation.TankStatus") [Timeout 300]
"Notification: Performance of FrontEnd - loaded program: time 0.002023/0.002023, allocations: 70.31 kB / 1.137 GB, free: 33.81 MB / 0.9044 GB
Notification: Performance of FrontEnd - Absyn->SCode: time 0.3773/0.3793, allocations: 173.6 MB / 1.307 GB, free: 1.898 MB / 0.9981 GB
Notification: Performance of NFInst.instantiate(Buildings.DHC.Plants.Cooling.Controls.Validation.TankStatus): time 0.004132/0.3834, allocations: 2.251 MB / 1.309 GB, free: 15.64 MB / 1.014 GB
Notification: Performance of NFInst.instExpressions: time 0.002546/0.386, allocations: 1.305 MB / 1.31 GB, free: 14.32 MB / 1.014 GB
Notification: Performance of NFInst.updateImplicitVariability: time 0.0002256/0.3862, allocations: 11.88 kB / 1.31 GB, free: 14.31 MB / 1.014 GB
Notification: Performance of NFTyping.typeComponents: time 0.0006559/0.3869, allocations: 163.3 kB / 1.31 GB, free: 14.15 MB / 1.014 GB
Notification: Performance of NFTyping.typeBindings: time 0.0005914/0.3875, allocations: 171.2 kB / 1.311 GB, free: 13.98 MB / 1.014 GB
Notification: Performance of NFTyping.typeClassSections: time 0.0007831/0.3882, allocations: 254.1 kB / 1.311 GB, free: 13.74 MB / 1.014 GB
Notification: Performance of NFFlatten.flatten: time 0.0007581/0.389, allocations: 414.8 kB / 1.311 GB, free: 13.33 MB / 1.014 GB
Notification: Performance of NFFlatten.resolveConnections: time 0.0002761/0.3893, allocations: 69.25 kB / 1.311 GB, free: 13.26 MB / 1.014 GB
Notification: Performance of NFEvalConstants.evaluate: time 0.0004147/0.3897, allocations: 187.3 kB / 1.311 GB, free: 13.08 MB / 1.014 GB
Notification: Performance of NFSimplifyModel.simplify: time 0.0004003/0.3901, allocations: 191.2 kB / 1.312 GB, free: 12.89 MB / 1.014 GB
Notification: Performance of NFPackage.collectConstants: time 7.898e-05/0.3902, allocations: 24 kB / 1.312 GB, free: 12.87 MB / 1.014 GB
Notification: Performance of NFFlatten.collectFunctions: time 0.0002433/0.3904, allocations: 75.98 kB / 1.312 GB, free: 12.79 MB / 1.014 GB
Notification: Performance of NFScalarize.scalarize: time 0.0001988/0.3906, allocations: 119.6 kB / 1.312 GB, free: 12.68 MB / 1.014 GB
Notification: Performance of NFVerifyModel.verify: time 0.0002441/0.3909, allocations: 159 kB / 1.312 GB, free: 12.52 MB / 1.014 GB
Notification: Performance of NFConvertDAE.convert: time 0.0009452/0.3918, allocations: 493.8 kB / 1.312 GB, free: 12.04 MB / 1.014 GB
Notification: Performance of FrontEnd - DAE generated: time 6.252e-06/0.3918, allocations: 0 / 1.312 GB, free: 12.04 MB / 1.014 GB
Notification: Performance of FrontEnd: time 1.924e-06/0.3918, allocations: 0 / 1.312 GB, free: 12.04 MB / 1.014 GB
Notification: Performance of Transformations before backend: time 8.156e-06/0.3918, allocations: 4 kB / 1.312 GB, free: 12.03 MB / 1.014 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.001707/0.3935, allocations: 0.6517 MB / 1.313 GB, free: 11.35 MB / 1.014 GB
Notification: Performance of prepare preOptimizeDAE: time 5.991e-05/0.3936, allocations: 12.03 kB / 1.313 GB, free: 11.34 MB / 1.014 GB
Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001111/0.3937, allocations: 52.64 kB / 1.313 GB, free: 11.29 MB / 1.014 GB
Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006307/0.3943, allocations: 344.8 kB / 1.313 GB, free: 10.92 MB / 1.014 GB
Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.244e-05/0.3943, allocations: 8.375 kB / 1.313 GB, free: 10.91 MB / 1.014 GB
Notification: Performance of preOpt expandDerOperator (simulation): time 4.143e-05/0.3944, allocations: 23.88 kB / 1.313 GB, free: 10.89 MB / 1.014 GB
Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003771/0.3948, allocations: 172.2 kB / 1.314 GB, free: 10.71 MB / 1.014 GB
Notification: Performance of preOpt findStateOrder (simulation): time 1.135e-05/0.3948, allocations: 4 kB / 1.314 GB, free: 10.7 MB / 1.014 GB
Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.425e-05/0.3948, allocations: 8 kB / 1.314 GB, free: 10.7 MB / 1.014 GB
Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.335e-05/0.3948, allocations: 4 kB / 1.314 GB, free: 10.69 MB / 1.014 GB
Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002254/0.395, allocations: 87.89 kB / 1.314 GB, free: 10.61 MB / 1.014 GB
Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001268/0.3963, allocations: 0.7572 MB / 1.315 GB, free: 9.797 MB / 1.014 GB
Notification: Performance of preOpt comSubExp (simulation): time 0.0004351/0.3967, allocations: 129.4 kB / 1.315 GB, free: 9.652 MB / 1.014 GB
Notification: Performance of preOpt resolveLoops (simulation): time 0.0001803/0.3969, allocations: 53.7 kB / 1.315 GB, free: 9.594 MB / 1.014 GB
Notification: Performance of preOpt evalFunc (simulation): time 4.356e-05/0.397, allocations: 0 / 1.315 GB, free: 9.594 MB / 1.014 GB
Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003737/0.3973, allocations: 125 kB / 1.315 GB, free: 9.453 MB / 1.014 GB
Notification: Performance of pre-optimization done (n=12): time 1.754e-06/0.3973, allocations: 0 / 1.315 GB, free: 9.453 MB / 1.014 GB
Notification: Performance of matching and sorting (n=12): time 0.0008486/0.3982, allocations: 221.3 kB / 1.315 GB, free: 9.23 MB / 1.014 GB
Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001114/0.3983, allocations: 110.8 kB / 1.315 GB, free: 9.098 MB / 1.014 GB
Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009215/0.3992, allocations: 0.5799 MB / 1.316 GB, free: 8.512 MB / 1.014 GB
Notification: Performance of collectPreVariables (initialization): time 4.841e-05/0.3993, allocations: 29.7 kB / 1.316 GB, free: 8.477 MB / 1.014 GB
Notification: Performance of collectInitialEqns (initialization): time 0.0002632/0.3995, allocations: 200.5 kB / 1.316 GB, free: 8.277 MB / 1.014 GB
Notification: Performance of collectInitialBindings (initialization): time 6.094e-05/0.3996, allocations: 35.73 kB / 1.316 GB, free: 8.242 MB / 1.014 GB
Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001874/0.3998, allocations: 77.64 kB / 1.316 GB, free: 8.16 MB / 1.014 GB
Notification: Performance of setup shared object (initialization): time 0.0002466/0.4, allocations: 354.7 kB / 1.316 GB, free: 7.805 MB / 1.014 GB
Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003574/0.4004, allocations: 111.8 kB / 1.316 GB, free: 7.695 MB / 1.014 GB
Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002748/0.4007, allocations: 160.2 kB / 1.317 GB, free: 7.52 MB / 1.014 GB
Notification: Performance of analyzeInitialSystem (initialization): time 0.0004106/0.4011, allocations: 198.4 kB / 1.317 GB, free: 7.312 MB / 1.014 GB
Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.296e-06/0.4011, allocations: 0 / 1.317 GB, free: 7.312 MB / 1.014 GB
Notification: Performance of matching and sorting (n=35) (initialization): time 0.0008702/0.4019, allocations: 344.1 kB / 1.317 GB, free: 6.973 MB / 1.014 GB
Notification: Performance of prepare postOptimizeDAE: time 2.322e-05/0.402, allocations: 9.875 kB / 1.317 GB, free: 6.965 MB / 1.014 GB
Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.368e-06/0.402, allocations: 4 kB / 1.317 GB, free: 6.961 MB / 1.014 GB
Notification: Performance of postOpt tearingSystem (initialization): time 2.302e-05/0.402, allocations: 4 kB / 1.317 GB, free: 6.957 MB / 1.014 GB
Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002849/0.4023, allocations: 47.91 kB / 1.317 GB, free: 6.91 MB / 1.014 GB
Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.027e-06/0.4023, allocations: 4.094 kB / 1.317 GB, free: 6.906 MB / 1.014 GB
Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003166/0.4026, allocations: 39.86 kB / 1.317 GB, free: 6.867 MB / 1.014 GB
Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.645e-05/0.4027, allocations: 15.94 kB / 1.317 GB, free: 6.852 MB / 1.014 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.0002995/0.403, allocations: 195.4 kB / 1.317 GB, free: 6.652 MB / 1.014 GB
Notification: Performance of postOpt lateInlineFunction (simulation): time 9.017e-05/0.403, allocations: 43.7 kB / 1.317 GB, free: 6.609 MB / 1.014 GB
Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006306/0.4037, allocations: 197.1 kB / 1.318 GB, free: 6.406 MB / 1.014 GB
Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.953e-06/0.4037, allocations: 7.938 kB / 1.318 GB, free: 6.398 MB / 1.014 GB
Notification: Performance of postOpt constantLinearSystem (simulation): time 4.98e-06/0.4037, allocations: 0 / 1.318 GB, free: 6.398 MB / 1.014 GB
Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.28e-06/0.4037, allocations: 0 / 1.318 GB, free: 6.398 MB / 1.014 GB
Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004459/0.4041, allocations: 300.5 kB / 1.318 GB, free: 6.062 MB / 1.014 GB
Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.092e-05/0.4042, allocations: 4 kB / 1.318 GB, free: 6.059 MB / 1.014 GB
Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.319e-05/0.4042, allocations: 7.984 kB / 1.318 GB, free: 6.051 MB / 1.014 GB
Notification: Performance of postOpt tearingSystem (simulation): time 2.905e-06/0.4042, allocations: 0 / 1.318 GB, free: 6.051 MB / 1.014 GB
Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.886e-05/0.4042, allocations: 8 kB / 1.318 GB, free: 6.043 MB / 1.014 GB
Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.474e-06/0.4042, allocations: 0 / 1.318 GB, free: 6.043 MB / 1.014 GB
Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.321e-06/0.4042, allocations: 7.938 kB / 1.318 GB, free: 6.035 MB / 1.014 GB
Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006064/0.4048, allocations: 213.6 kB / 1.318 GB, free: 5.805 MB / 1.014 GB
Notification: Performance of postOpt removeConstants (simulation): time 0.0001259/0.405, allocations: 47.69 kB / 1.318 GB, free: 5.758 MB / 1.014 GB
Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.382e-05/0.405, allocations: 4 kB / 1.318 GB, free: 5.754 MB / 1.014 GB
Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002024/0.4052, allocations: 23.97 kB / 1.318 GB, free: 5.73 MB / 1.014 GB
Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001/0.4053, allocations: 19.97 kB / 1.318 GB, free: 5.711 MB / 1.014 GB
Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.337e-05/0.4054, allocations: 12.12 kB / 1.318 GB, free: 5.699 MB / 1.014 GB
Notification: Performance of sorting global known variables: time 0.0006081/0.406, allocations: 363.1 kB / 1.319 GB, free: 5.348 MB / 1.014 GB
Notification: Performance of sort global known variables: time 1.4e-07/0.406, allocations: 3.938 kB / 1.319 GB, free: 5.344 MB / 1.014 GB
Notification: Performance of remove unused functions: time 0.0004938/0.4065, allocations: 63.89 kB / 1.319 GB, free: 5.281 MB / 1.014 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 (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.001743/0.4082, allocations: 431.9 kB / 1.319 GB, free: 5.016 MB / 1.014 GB
Notification: Performance of simCode: created initialization part: time 0.0005064/0.4087, allocations: 187.9 kB / 1.319 GB, free: 4.832 MB / 1.014 GB
Notification: Performance of simCode: created event and clocks part: time 2.335e-06/0.4087, allocations: 0 / 1.319 GB, free: 4.832 MB / 1.014 GB
Notification: Performance of simCode: created simulation system equations: time 0.0001502/0.4089, allocations: 55.91 kB / 1.319 GB, free: 4.777 MB / 1.014 GB
Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005263/0.4094, allocations: 92 kB / 1.319 GB, free: 4.695 MB / 1.014 GB
Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001129/0.4105, allocations: 0.6148 MB / 1.32 GB, free: 4.043 MB / 1.014 GB
Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005071/0.411, allocations: 0.8069 MB / 1.321 GB, free: 3.211 MB / 1.014 GB
Notification: Performance of simCode: alias equations: time 0.0001482/0.4112, allocations: 58.92 kB / 1.321 GB, free: 3.156 MB / 1.014 GB
Notification: Performance of simCode: all other stuff during SimCode phase: time 9.891e-05/0.4113, allocations: 39.36 kB / 1.321 GB, free: 3.121 MB / 1.014 GB
Notification: Performance of SimCode: time 4.21e-07/0.4113, allocations: 0 / 1.321 GB, free: 3.121 MB / 1.014 GB
Notification: Performance of Templates: time 0.01107/0.4224, allocations: 4.762 MB / 1.326 GB, free: 14.4 MB / 1.029 GB
"
[Timeout remaining time 300]
make -j1 -f Buildings_12_Buildings.DHC.Plants.Cooling.Controls.Validation.TankStatus.makefile [Timeout 300]
(rm -f Buildings_12_Buildings.DHC.Plants.Cooling.Controls.Validation.TankStatus.pipe ; mkfifo Buildings_12_Buildings.DHC.Plants.Cooling.Controls.Validation.TankStatus.pipe ; head -c 1048576 < Buildings_12_Buildings.DHC.Plants.Cooling.Controls.Validation.TankStatus.pipe >> ../files/Buildings_12_Buildings.DHC.Plants.Cooling.Controls.Validation.TankStatus.sim & ./Buildings_12_Buildings.DHC.Plants.Cooling.Controls.Validation.TankStatus  -abortSlowSimulation -alarm=400  -emit_protected -lv LOG_STATS > Buildings_12_Buildings.DHC.Plants.Cooling.Controls.Validation.TankStatus.pipe 2>&1) [Timeout 400]
diffSimulationResults("Buildings_12_Buildings.DHC.Plants.Cooling.Controls.Validation.TankStatus_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_DHC_Plants_Cooling_Controls_Validation_TankStatus.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_Buildings.DHC.Plants.Cooling.Controls.Validation.TankStatus.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300]
""
[Timeout remaining time 300]
Reference file matches
[Calling sys.exit(0), Time elapsed: 9.181208139285445]