Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Templates.Plants.Controls.StagingRotation.Validation.EventSequencing.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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-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.Templates.Plants.Controls.StagingRotation.Validation.EventSequencing,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|seqEveHea.u1Hea|seqEveHea.u1PumHeaWatPri_actual|seqEveHea.u1PumHeaWatSec_actual|seqEveHea.y1|seqEveHea.y1ValHeaWatInlIso|seqEveHea.y1PumHeaWatPri|seqEveHeaCoo.u1Hea|seqEveHeaCoo.u1Coo|seqEveHeaCoo.u1PumHeaWatPri_actual|seqEveHeaCoo.y1|seqEveHeaCoo.y1ValHeaWatInlIso|seqEveHeaCoo.y1ValHeaWatOutIso|seqEveHeaCoo.y1ValChiWatInlIso|seqEveHeaCoo.y1ValChiWatOutIso|seqEveHeaCoo.y1PumHeaWatPri",fileNamePrefix="Buildings_latest_Buildings.Templates.Plants.Controls.StagingRotation.Validation.EventSequencing") translateModel(Buildings.Templates.Plants.Controls.StagingRotation.Validation.EventSequencing,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|seqEveHea.u1Hea|seqEveHea.u1PumHeaWatPri_actual|seqEveHea.u1PumHeaWatSec_actual|seqEveHea.y1|seqEveHea.y1ValHeaWatInlIso|seqEveHea.y1PumHeaWatPri|seqEveHeaCoo.u1Hea|seqEveHeaCoo.u1Coo|seqEveHeaCoo.u1PumHeaWatPri_actual|seqEveHeaCoo.y1|seqEveHeaCoo.y1ValHeaWatInlIso|seqEveHeaCoo.y1ValHeaWatOutIso|seqEveHeaCoo.y1ValChiWatInlIso|seqEveHeaCoo.y1ValChiWatOutIso|seqEveHeaCoo.y1PumHeaWatPri",fileNamePrefix="Buildings_latest_Buildings.Templates.Plants.Controls.StagingRotation.Validation.EventSequencing") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001336/0.001337, allocations: 111.3 kB / 16.42 MB, free: 6.473 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.001348/0.001348, allocations: 187.9 kB / 17.35 MB, free: 5.711 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.335/1.335, allocations: 222.9 MB / 241.1 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.598/2.598, allocations: 472.7 MB / 0.746 GB, free: 420 kB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001386/0.001386, allocations: 75.83 kB / 1.07 GB, free: 9.57 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.692/0.6934, allocations: 159.9 MB / 1.226 GB, free: 13.51 MB / 0.9512 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/Templates/Plants/Controls/StagingRotation/EventSequencing.mo:19:3-23:32:writable] Warning: Parameter seqEveHea.have_pumChiWatPri has no value, and is fixed during initialization (fixed=true), using available start value (start=false) as default value. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/Templates/Plants/Controls/StagingRotation/EventSequencing.mo:28:3-31:32:writable] Warning: Parameter seqEveHea.have_pumChiWatSec has no value, and is fixed during initialization (fixed=true), using available start value (start=false) as default value. Notification: Performance of NFInst.instantiate(Buildings.Templates.Plants.Controls.StagingRotation.Validation.EventSequencing): time 0.003826/0.6973, allocations: 2.346 MB / 1.229 GB, free: 11.16 MB / 0.9512 GB Notification: Performance of NFInst.instExpressions: time 0.002808/0.7001, allocations: 1.997 MB / 1.231 GB, free: 9.148 MB / 0.9512 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004749/0.7006, allocations: 31.81 kB / 1.231 GB, free: 9.117 MB / 0.9512 GB Notification: Performance of NFTyping.typeComponents: time 0.0007836/0.7014, allocations: 333.9 kB / 1.231 GB, free: 8.789 MB / 0.9512 GB Notification: Performance of NFTyping.typeBindings: time 0.0002845/0.7017, allocations: 123.1 kB / 1.231 GB, free: 8.668 MB / 0.9512 GB Notification: Performance of NFTyping.typeClassSections: time 0.0011/0.7028, allocations: 463.2 kB / 1.231 GB, free: 8.215 MB / 0.9512 GB Notification: Performance of NFFlatten.flatten: time 0.001403/0.7042, allocations: 1.426 MB / 1.233 GB, free: 6.785 MB / 0.9512 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0007487/0.7049, allocations: 0.5423 MB / 1.233 GB, free: 6.219 MB / 0.9512 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0005348/0.7055, allocations: 486.8 kB / 1.234 GB, free: 5.742 MB / 0.9512 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0005285/0.706, allocations: 450.1 kB / 1.234 GB, free: 5.301 MB / 0.9512 GB Notification: Performance of NFPackage.collectConstants: time 0.0002439/0.7063, allocations: 108 kB / 1.234 GB, free: 5.195 MB / 0.9512 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002941/0.7066, allocations: 140 kB / 1.235 GB, free: 5.059 MB / 0.9512 GB Notification: Performance of NFScalarize.scalarize: time 0.0004821/0.7071, allocations: 430.9 kB / 1.235 GB, free: 4.637 MB / 0.9512 GB Notification: Performance of NFVerifyModel.verify: time 0.0005573/0.7076, allocations: 0.5052 MB / 1.235 GB, free: 4.129 MB / 0.9512 GB Notification: Performance of NFConvertDAE.convert: time 0.00144/0.7091, allocations: 1.495 MB / 1.237 GB, free: 2.633 MB / 0.9512 GB Notification: Performance of FrontEnd - DAE generated: time 4.509e-06/0.7091, allocations: 0 / 1.237 GB, free: 2.633 MB / 0.9512 GB Notification: Performance of FrontEnd: time 1.232e-06/0.7091, allocations: 8 kB / 1.237 GB, free: 2.625 MB / 0.9512 GB Notification: Performance of Transformations before backend: time 4.378e-05/0.7091, allocations: 0 / 1.237 GB, free: 2.625 MB / 0.9512 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 175 * Number of variables: 175 Notification: Performance of Generate backend data structure: time 0.002541/0.7117, allocations: 1.326 MB / 1.238 GB, free: 1.238 MB / 0.9512 GB Notification: Performance of prepare preOptimizeDAE: time 3.562e-05/0.7117, allocations: 8.031 kB / 1.238 GB, free: 1.23 MB / 0.9512 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002705/0.712, allocations: 132.2 kB / 1.238 GB, free: 1.102 MB / 0.9512 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001237/0.7133, allocations: 0.8293 MB / 1.239 GB, free: 236 kB / 0.9512 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.862e-05/0.7133, allocations: 66.36 kB / 1.239 GB, free: 172 kB / 0.9512 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001621/0.7135, allocations: 96.36 kB / 1.239 GB, free: 76 kB / 0.9512 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001301/0.7148, allocations: 0.7497 MB / 1.24 GB, free: 15.32 MB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.803e-05/0.7148, allocations: 4.125 kB / 1.24 GB, free: 15.32 MB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.507e-05/0.7149, allocations: 39.92 kB / 1.24 GB, free: 15.28 MB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.561e-05/0.7149, allocations: 16 kB / 1.24 GB, free: 15.26 MB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009518/0.7159, allocations: 0.5622 MB / 1.241 GB, free: 14.7 MB / 0.9669 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003813/0.7197, allocations: 2.304 MB / 1.243 GB, free: 12.32 MB / 0.9669 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001075/0.7208, allocations: 0.7506 MB / 1.244 GB, free: 11.55 MB / 0.9669 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004118/0.7212, allocations: 292.7 kB / 1.244 GB, free: 11.27 MB / 0.9669 GB Notification: Performance of preOpt evalFunc (simulation): time 3.271e-05/0.7213, allocations: 8 kB / 1.244 GB, free: 11.26 MB / 0.9669 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007678/0.7221, allocations: 0.5216 MB / 1.244 GB, free: 10.72 MB / 0.9669 GB Notification: Performance of pre-optimization done (n=65): time 2.304e-06/0.7221, allocations: 0 / 1.244 GB, free: 10.72 MB / 0.9669 GB Notification: Performance of matching and sorting (n=65): time 0.001678/0.7237, allocations: 1.069 MB / 1.245 GB, free: 9.648 MB / 0.9669 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.513e-05/0.7238, allocations: 71.95 kB / 1.246 GB, free: 9.566 MB / 0.9669 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007973/0.7246, allocations: 0.7263 MB / 1.246 GB, free: 8.832 MB / 0.9669 GB Notification: Performance of collectPreVariables (initialization): time 9.337e-05/0.7247, allocations: 53.7 kB / 1.246 GB, free: 8.773 MB / 0.9669 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003289/0.7251, allocations: 409.4 kB / 1.247 GB, free: 8.367 MB / 0.9669 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001314/0.7252, allocations: 154.8 kB / 1.247 GB, free: 8.215 MB / 0.9669 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003456/0.7255, allocations: 266.5 kB / 1.247 GB, free: 7.945 MB / 0.9669 GB Notification: Performance of setup shared object (initialization): time 0.0001627/0.7257, allocations: 390.7 kB / 1.247 GB, free: 7.555 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003314/0.7261, allocations: 201.9 kB / 1.248 GB, free: 7.359 MB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008009/0.7269, allocations: 0.673 MB / 1.248 GB, free: 6.539 MB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006161/0.7275, allocations: 489.3 kB / 1.249 GB, free: 5.992 MB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.918e-06/0.7275, allocations: 0 / 1.249 GB, free: 5.992 MB / 0.9669 GB Notification: Performance of matching and sorting (n=91) (initialization): time 0.001003/0.7285, allocations: 0.6505 MB / 1.249 GB, free: 5.336 MB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 1.637e-05/0.7285, allocations: 5.406 kB / 1.249 GB, free: 5.332 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.02e-05/0.7285, allocations: 8.656 kB / 1.249 GB, free: 5.324 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.183e-05/0.7286, allocations: 12 kB / 1.249 GB, free: 5.312 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002424/0.7288, allocations: 71.78 kB / 1.25 GB, free: 5.242 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.974e-05/0.7288, allocations: 15.92 kB / 1.25 GB, free: 5.227 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009693/0.7298, allocations: 121.8 kB / 1.25 GB, free: 5.109 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.565e-05/0.7299, allocations: 31.94 kB / 1.25 GB, free: 5.078 MB / 0.9669 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 22 * Number of states: 0 () * Number of discrete variables: 80 (zerOrdHol.firstTrigger,$PRE.zerOrdHol.firstTrigger,zerOrdHol1.firstTrigger,$PRE.zerOrdHol1.firstTrigger,$whenCondition17,$whenCondition16,$whenCondition15,$whenCondition14,$whenCondition13,$whenCondition12,zerOrdHol1.sampleTrigger,$whenCondition1,zerOrdHol.sampleTrigger,$whenCondition11,greThr1.y,zerOrdHol1.ySample,$PRE.zerOrdHol1.ySample,seqEveHeaCoo.latPumHeaWatPri.y,seqEveHeaCoo.latValChiWatIso.y,seqEveHeaCoo.latValHeaWatIso.y,seqEveHeaCoo.timHp.entryTime,$PRE.seqEveHeaCoo.timHp.entryTime,seqEveHeaCoo.timHp.passed,$PRE.seqEveHeaCoo.timHp.passed,seqEveHeaCoo.off.y,seqEveHeaCoo.rou1.y[1],seqEveHeaCoo.y1AndCoo,seqEveHeaCoo.y1AndHea,seqEveHeaCoo.cooValPum.y,seqEveHeaCoo.heaValPum.y,seqEveHeaCoo.timVal.entryTime,$PRE.seqEveHeaCoo.timVal.entryTime,seqEveHeaCoo.timVal.passed,$PRE.seqEveHeaCoo.timVal.passed,seqEveHeaCoo.y1,greThr.y,zerOrdHol.ySample,$PRE.zerOrdHol.ySample,u1.intTimTab.idx,$PRE.u1.intTimTab.idx,u1.intTimTab.y[2],$PRE.u1.intTimTab.y[2],u1.intTimTab.y[1],$PRE.u1.intTimTab.y[1],u1.y[2],u1.y[1],seqEveHea.latPumHeaWatPri.y,seqEveHea.latValHeaWatIso.y,seqEveHea.timHp.entryTime,$PRE.seqEveHea.timHp.entryTime,seqEveHea.timHp.passed,$PRE.seqEveHea.timHp.passed,seqEveHea.y1AndHea,seqEveHea.heaValPum.uTemp[2],seqEveHea.timVal.entryTime,$PRE.seqEveHea.timVal.entryTime,seqEveHea.timVal.passed,$PRE.seqEveHea.timVal.passed,seqEveHea.y1,$whenCondition2,$whenCondition3,$whenCondition4,$whenCondition5,$whenCondition8,$whenCondition7,$whenCondition6,$whenCondition10,$whenCondition9,$whenCondition18,$whenCondition20,$whenCondition19,$whenCondition21,seqEveHeaCoo.u1PumChiWatPri_internal.ph.y,seqEveHeaCoo.u1PumHeaWatSec_internal.ph.y,seqEveHeaCoo.u1PumChiWatSec_internal.ph.y,seqEveHea.u1Coo_internal.ph.y,seqEveHea.u1PumChiWatPri_internal.ph.y,seqEveHea.u1PumChiWatSec_internal.ph.y,seqEveHea.cooValPum.y,seqEveHea.enaAndCoo.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (91): * Single equations (assignments): 91 * 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.0003938/0.7303, allocations: 322.1 kB / 1.25 GB, free: 4.758 MB / 0.9669 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001015/0.7304, allocations: 83.52 kB / 1.25 GB, free: 4.676 MB / 0.9669 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001287/0.7305, allocations: 82.66 kB / 1.25 GB, free: 4.594 MB / 0.9669 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.963e-06/0.7305, allocations: 3.984 kB / 1.25 GB, free: 4.59 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.054e-06/0.7305, allocations: 0 / 1.25 GB, free: 4.59 MB / 0.9669 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000122/0.7307, allocations: 148.6 kB / 1.25 GB, free: 4.426 MB / 0.9669 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.781e-05/0.7308, allocations: 23.92 kB / 1.25 GB, free: 4.402 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002621/0.731, allocations: 39.95 kB / 1.25 GB, free: 4.363 MB / 0.9669 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000157/0.7312, allocations: 72.47 kB / 1.25 GB, free: 4.289 MB / 0.9669 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.001284/0.7325, allocations: 0.8775 MB / 1.251 GB, free: 3.406 MB / 0.9669 GB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.00122/0.7337, allocations: 1.002 MB / 1.252 GB, free: 2.387 MB / 0.9669 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0004776/0.7342, allocations: 384.3 kB / 1.253 GB, free: 2.008 MB / 0.9669 GB Notification: Performance of sorting global known variables: time 0.0005076/0.7347, allocations: 467 kB / 1.253 GB, free: 1.555 MB / 0.9669 GB Notification: Performance of Backend: time 5.41e-07/0.7347, allocations: 0 / 1.253 GB, free: 1.555 MB / 0.9669 GB Notification: Performance of simCode: created initialization part: time 0.0009854/0.7357, allocations: 466.1 kB / 1.253 GB, free: 1.098 MB / 0.9669 GB Notification: Performance of SimCode: time 0.001939/0.7377, allocations: 1.698 MB / 1.255 GB, free: 15.34 MB / 0.9825 GB Notification: Performance of Templates: time 0.01696/0.7547, allocations: 9.589 MB / 1.265 GB, free: 5.816 MB / 0.9825 GB make -j1 -f Buildings_latest_Buildings.Templates.Plants.Controls.StagingRotation.Validation.EventSequencing.makefile (rm -f Buildings_latest_Buildings.Templates.Plants.Controls.StagingRotation.Validation.EventSequencing.pipe ; mkfifo Buildings_latest_Buildings.Templates.Plants.Controls.StagingRotation.Validation.EventSequencing.pipe ; head -c 1048576 < Buildings_latest_Buildings.Templates.Plants.Controls.StagingRotation.Validation.EventSequencing.pipe >> ../files/Buildings_latest_Buildings.Templates.Plants.Controls.StagingRotation.Validation.EventSequencing.sim & ./Buildings_latest_Buildings.Templates.Plants.Controls.StagingRotation.Validation.EventSequencing -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Templates.Plants.Controls.StagingRotation.Validation.EventSequencing.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Templates.Plants.Controls.StagingRotation.Validation.EventSequencing_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Templates_Plants_Controls_StagingRotation_Validation_EventSequencing.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Templates.Plants.Controls.StagingRotation.Validation.EventSequencing.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches