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.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.001583/0.001583, allocations: 102 kB / 18.93 MB, free: 2.957 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.002196/0.002196, allocations: 196.9 kB / 22.23 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.465/1.465, allocations: 225.6 MB / 251 MB, free: 13.04 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.1-master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.1-master/package.mo): time 3.226/3.226, allocations: 0.4893 GB / 0.7884 GB, free: 33.18 MB / 0.6231 GB " [Timeout remaining time 176] Using package Buildings with version 12.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.1-master/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_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.1.|tanSta.TTan.2.|tanSta.THig|tanSta.TLow|tanSta.y.1.|tanSta.y.2.",fileNamePrefix="Buildings_latest_Buildings.DHC.Plants.Cooling.Controls.Validation.TankStatus") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 0.001998/0.001998, allocations: 61.28 kB / 1.145 GB, free: 30.63 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4087/0.4107, allocations: 174.9 MB / 1.316 GB, free: 9.723 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.DHC.Plants.Cooling.Controls.Validation.TankStatus): time 0.004227/0.4149, allocations: 2.244 MB / 1.318 GB, free: 7.469 MB / 1.014 GB Notification: Performance of NFInst.instExpressions: time 0.002355/0.4173, allocations: 1.302 MB / 1.319 GB, free: 6.16 MB / 1.014 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000181/0.4175, allocations: 11.88 kB / 1.319 GB, free: 6.148 MB / 1.014 GB Notification: Performance of NFTyping.typeComponents: time 0.0005214/0.418, allocations: 171.3 kB / 1.32 GB, free: 5.98 MB / 1.014 GB Notification: Performance of NFTyping.typeBindings: time 0.0003896/0.4184, allocations: 175.2 kB / 1.32 GB, free: 5.809 MB / 1.014 GB Notification: Performance of NFTyping.typeClassSections: time 0.000606/0.419, allocations: 250.4 kB / 1.32 GB, free: 5.566 MB / 1.014 GB Notification: Performance of NFFlatten.flatten: time 0.00053/0.4195, allocations: 406.9 kB / 1.32 GB, free: 5.168 MB / 1.014 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001957/0.4197, allocations: 73.23 kB / 1.321 GB, free: 5.09 MB / 1.014 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002832/0.42, allocations: 195.2 kB / 1.321 GB, free: 4.898 MB / 1.014 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002395/0.4202, allocations: 187.3 kB / 1.321 GB, free: 4.715 MB / 1.014 GB Notification: Performance of NFPackage.collectConstants: time 4.946e-05/0.4203, allocations: 24 kB / 1.321 GB, free: 4.691 MB / 1.014 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001653/0.4204, allocations: 75.91 kB / 1.321 GB, free: 4.617 MB / 1.014 GB Notification: Performance of NFScalarize.scalarize: time 0.0001372/0.4206, allocations: 115.6 kB / 1.321 GB, free: 4.504 MB / 1.014 GB Notification: Performance of NFVerifyModel.verify: time 0.0001644/0.4207, allocations: 163 kB / 1.321 GB, free: 4.344 MB / 1.014 GB Notification: Performance of NFConvertDAE.convert: time 0.0006079/0.4214, allocations: 493.9 kB / 1.322 GB, free: 3.859 MB / 1.014 GB Notification: Performance of FrontEnd - DAE generated: time 4.198e-06/0.4214, allocations: 0 / 1.322 GB, free: 3.859 MB / 1.014 GB Notification: Performance of FrontEnd: time 1.322e-06/0.4214, allocations: 0 / 1.322 GB, free: 3.859 MB / 1.014 GB Notification: Performance of Transformations before backend: time 7.414e-06/0.4214, allocations: 4 kB / 1.322 GB, free: 3.855 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.001144/0.4225, allocations: 0.6479 MB / 1.322 GB, free: 3.176 MB / 1.014 GB Notification: Performance of prepare preOptimizeDAE: time 4.09e-05/0.4226, allocations: 8.031 kB / 1.322 GB, free: 3.168 MB / 1.014 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.603e-05/0.4226, allocations: 44.66 kB / 1.322 GB, free: 3.125 MB / 1.014 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005755/0.4232, allocations: 352.7 kB / 1.323 GB, free: 2.762 MB / 1.014 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.271e-05/0.4232, allocations: 16.38 kB / 1.323 GB, free: 2.746 MB / 1.014 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.181e-05/0.4233, allocations: 19.92 kB / 1.323 GB, free: 2.727 MB / 1.014 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003503/0.4236, allocations: 184 kB / 1.323 GB, free: 2.531 MB / 1.014 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.106e-05/0.4236, allocations: 0 / 1.323 GB, free: 2.531 MB / 1.014 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.944e-05/0.4237, allocations: 4 kB / 1.323 GB, free: 2.527 MB / 1.014 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.454e-06/0.4237, allocations: 4 kB / 1.323 GB, free: 2.523 MB / 1.014 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002041/0.4239, allocations: 87.89 kB / 1.323 GB, free: 2.438 MB / 1.014 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00115/0.425, allocations: 0.7496 MB / 1.324 GB, free: 1.637 MB / 1.014 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003245/0.4253, allocations: 129.4 kB / 1.324 GB, free: 1.492 MB / 1.014 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001111/0.4255, allocations: 45.69 kB / 1.324 GB, free: 1.441 MB / 1.014 GB Notification: Performance of preOpt evalFunc (simulation): time 2.847e-05/0.4255, allocations: 7.938 kB / 1.324 GB, free: 1.434 MB / 1.014 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002656/0.4257, allocations: 137 kB / 1.324 GB, free: 1.281 MB / 1.014 GB Notification: Performance of pre-optimization done (n=12): time 1.182e-06/0.4257, allocations: 0 / 1.324 GB, free: 1.281 MB / 1.014 GB Notification: Performance of matching and sorting (n=12): time 0.0005407/0.4263, allocations: 221.3 kB / 1.324 GB, free: 1.059 MB / 1.014 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.033e-05/0.4264, allocations: 106.8 kB / 1.324 GB, free: 0.9297 MB / 1.014 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006818/0.4271, allocations: 0.5721 MB / 1.325 GB, free: 356 kB / 1.014 GB Notification: Performance of collectPreVariables (initialization): time 3.607e-05/0.4271, allocations: 37.64 kB / 1.325 GB, free: 312 kB / 1.014 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001807/0.4273, allocations: 200.5 kB / 1.325 GB, free: 108 kB / 1.014 GB Notification: Performance of collectInitialBindings (initialization): time 4.248e-05/0.4273, allocations: 35.73 kB / 1.325 GB, free: 72 kB / 1.014 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001309/0.4274, allocations: 77.7 kB / 1.325 GB, free: 15.98 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0001663/0.4276, allocations: 354.7 kB / 1.326 GB, free: 15.63 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002007/0.4278, allocations: 111.8 kB / 1.326 GB, free: 15.52 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002509/0.4281, allocations: 170 kB / 1.326 GB, free: 15.33 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003265/0.4284, allocations: 191.2 kB / 1.326 GB, free: 15.13 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.725e-06/0.4284, allocations: 0 / 1.326 GB, free: 15.13 MB / 1.029 GB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0005729/0.429, allocations: 345.2 kB / 1.326 GB, free: 14.79 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 1.705e-05/0.429, allocations: 4 kB / 1.326 GB, free: 14.79 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.52e-06/0.429, allocations: 3.938 kB / 1.326 GB, free: 14.78 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.73e-05/0.429, allocations: 4 kB / 1.326 GB, free: 14.78 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001944/0.4292, allocations: 39.98 kB / 1.326 GB, free: 14.74 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.477e-05/0.4292, allocations: 11.92 kB / 1.326 GB, free: 14.73 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002131/0.4294, allocations: 39.86 kB / 1.326 GB, free: 14.69 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.117e-05/0.4295, allocations: 8 kB / 1.327 GB, free: 14.68 MB / 1.029 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.0002131/0.4297, allocations: 200.2 kB / 1.327 GB, free: 14.48 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.018e-05/0.4297, allocations: 43.72 kB / 1.327 GB, free: 14.43 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004127/0.4301, allocations: 184.9 kB / 1.327 GB, free: 14.24 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.21e-06/0.4301, allocations: 4 kB / 1.327 GB, free: 14.24 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.042e-06/0.4302, allocations: 3.984 kB / 1.327 GB, free: 14.23 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.035e-06/0.4302, allocations: 0 / 1.327 GB, free: 14.23 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003233/0.4305, allocations: 309 kB / 1.327 GB, free: 13.89 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.292e-06/0.4305, allocations: 4 kB / 1.327 GB, free: 13.89 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.668e-05/0.4305, allocations: 11.98 kB / 1.327 GB, free: 13.88 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.581e-06/0.4305, allocations: 4.031 kB / 1.327 GB, free: 13.88 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.445e-05/0.4305, allocations: 8 kB / 1.327 GB, free: 13.87 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.613e-06/0.4305, allocations: 0 / 1.327 GB, free: 13.87 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.72e-07/0.4305, allocations: 0 / 1.327 GB, free: 13.87 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003778/0.4309, allocations: 217.5 kB / 1.327 GB, free: 13.63 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 9.736e-05/0.431, allocations: 55.64 kB / 1.328 GB, free: 13.58 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.163e-05/0.4311, allocations: 8 kB / 1.328 GB, free: 13.57 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001316/0.4312, allocations: 15.98 kB / 1.328 GB, free: 13.55 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.937e-05/0.4313, allocations: 23.95 kB / 1.328 GB, free: 13.53 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.536e-05/0.4313, allocations: 8 kB / 1.328 GB, free: 13.52 MB / 1.029 GB Notification: Performance of sorting global known variables: time 0.0004193/0.4317, allocations: 359.1 kB / 1.328 GB, free: 13.17 MB / 1.029 GB Notification: Performance of sort global known variables: time 7e-08/0.4317, allocations: 0 / 1.328 GB, free: 13.17 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.0003166/0.432, allocations: 63.94 kB / 1.328 GB, free: 13.11 MB / 1.029 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.001547/0.4336, allocations: 425.8 kB / 1.328 GB, free: 12.85 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.0004678/0.434, allocations: 195.7 kB / 1.329 GB, free: 12.66 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 2.575e-06/0.434, allocations: 0 / 1.329 GB, free: 12.66 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 0.0001444/0.4342, allocations: 51.91 kB / 1.329 GB, free: 12.61 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005037/0.4347, allocations: 111.8 kB / 1.329 GB, free: 12.51 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001072/0.4358, allocations: 0.6107 MB / 1.329 GB, free: 11.86 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004593/0.4362, allocations: 0.8029 MB / 1.33 GB, free: 11.03 MB / 1.029 GB Notification: Performance of simCode: alias equations: time 0.0001429/0.4364, allocations: 54.92 kB / 1.33 GB, free: 10.98 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.972e-05/0.4365, allocations: 39.42 kB / 1.33 GB, free: 10.95 MB / 1.029 GB Notification: Performance of SimCode: time 4.31e-07/0.4365, allocations: 4 kB / 1.33 GB, free: 10.94 MB / 1.029 GB Notification: Performance of Templates: time 0.01005/0.4465, allocations: 4.752 MB / 1.335 GB, free: 6.223 MB / 1.029 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=800 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.DHC.Plants.Cooling.Controls.Validation.TankStatus.pipe 2>&1) [Timeout 800] 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_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.472611535340548]