Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.DHC.Plants.Combined.Controls.BaseClasses.Validation.StageIndex.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 11.0.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.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.Combined.Controls.BaseClasses.Validation.StageIndex,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sta.u1|sta.u1Up|sta.u1Dow|sta.idxSta",fileNamePrefix="Buildings_latest_Buildings.DHC.Plants.Combined.Controls.BaseClasses.Validation.StageIndex") translateModel(Buildings.DHC.Plants.Combined.Controls.BaseClasses.Validation.StageIndex,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sta.u1|sta.u1Up|sta.u1Dow|sta.idxSta",fileNamePrefix="Buildings_latest_Buildings.DHC.Plants.Combined.Controls.BaseClasses.Validation.StageIndex") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001928/0.001929, allocations: 108.3 kB / 16.42 MB, free: 6.512 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.002562/0.002562, allocations: 189.5 kB / 17.35 MB, free: 5.734 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.546/1.546, allocations: 222.9 MB / 241 MB, free: 15.1 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.743/2.743, allocations: 461.9 MB / 0.7355 GB, free: 11.05 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001526/0.001526, allocations: 59.91 kB / 1.055 GB, free: 7.672 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.05/1.052, allocations: 157.4 MB / 1.208 GB, free: 13.67 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.DHC.Plants.Combined.Controls.BaseClasses.Validation.StageIndex): time 0.003646/1.055, allocations: 2.339 MB / 1.211 GB, free: 11.32 MB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.001811/1.057, allocations: 1.017 MB / 1.212 GB, free: 10.3 MB / 0.9356 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001997/1.057, allocations: 8 kB / 1.212 GB, free: 10.3 MB / 0.9356 GB Notification: Performance of NFTyping.typeComponents: time 0.0005164/1.058, allocations: 211 kB / 1.212 GB, free: 10.09 MB / 0.9356 GB Notification: Performance of NFTyping.typeBindings: time 0.0002265/1.058, allocations: 123.3 kB / 1.212 GB, free: 9.969 MB / 0.9356 GB Notification: Performance of NFTyping.typeClassSections: time 0.0009586/1.059, allocations: 404.8 kB / 1.212 GB, free: 9.578 MB / 0.9356 GB Notification: Performance of NFFlatten.flatten: time 0.002197/1.061, allocations: 2.189 MB / 1.215 GB, free: 7.379 MB / 0.9356 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002515/1.064, allocations: 1.608 MB / 1.216 GB, free: 5.742 MB / 0.9356 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0009186/1.065, allocations: 0.8303 MB / 1.217 GB, free: 4.91 MB / 0.9356 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0009157/1.066, allocations: 0.6929 MB / 1.218 GB, free: 4.215 MB / 0.9356 GB Notification: Performance of NFPackage.collectConstants: time 0.0003626/1.066, allocations: 176 kB / 1.218 GB, free: 4.043 MB / 0.9356 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004991/1.067, allocations: 228 kB / 1.218 GB, free: 3.82 MB / 0.9356 GB Notification: Performance of NFScalarize.scalarize: time 0.0009452/1.068, allocations: 0.799 MB / 1.219 GB, free: 3.02 MB / 0.9356 GB Notification: Performance of NFVerifyModel.verify: time 0.0009442/1.069, allocations: 0.7897 MB / 1.22 GB, free: 2.227 MB / 0.9356 GB Notification: Performance of NFConvertDAE.convert: time 0.002806/1.071, allocations: 2.596 MB / 1.222 GB, free: 15.63 MB / 0.9512 GB Notification: Performance of FrontEnd - DAE generated: time 9.107e-06/1.071, allocations: 7.938 kB / 1.222 GB, free: 15.62 MB / 0.9512 GB Notification: Performance of FrontEnd: time 1.954e-06/1.071, allocations: 0 / 1.222 GB, free: 15.62 MB / 0.9512 GB Notification: Performance of Transformations before backend: time 5.715e-05/1.071, allocations: 0 / 1.222 GB, free: 15.62 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: 284 * Number of variables: 284 Notification: Performance of Generate backend data structure: time 0.003445/1.075, allocations: 1.781 MB / 1.224 GB, free: 13.77 MB / 0.9512 GB Notification: Performance of prepare preOptimizeDAE: time 6.217e-05/1.075, allocations: 8.031 kB / 1.224 GB, free: 13.76 MB / 0.9512 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000394/1.075, allocations: 151.3 kB / 1.224 GB, free: 13.61 MB / 0.9512 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001524/1.077, allocations: 0.9985 MB / 1.225 GB, free: 12.57 MB / 0.9512 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001145/1.077, allocations: 122.6 kB / 1.225 GB, free: 12.45 MB / 0.9512 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000282/1.077, allocations: 156.4 kB / 1.225 GB, free: 12.3 MB / 0.9512 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002721/1.08, allocations: 1.833 MB / 1.227 GB, free: 10.34 MB / 0.9512 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.617e-05/1.08, allocations: 8.125 kB / 1.227 GB, free: 10.33 MB / 0.9512 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001217/1.08, allocations: 55.92 kB / 1.227 GB, free: 10.28 MB / 0.9512 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.584e-05/1.08, allocations: 32 kB / 1.227 GB, free: 10.25 MB / 0.9512 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002034/1.082, allocations: 1.401 MB / 1.228 GB, free: 8.844 MB / 0.9512 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006931/1.089, allocations: 6.19 MB / 1.235 GB, free: 2.48 MB / 0.9512 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001801/1.091, allocations: 1.49 MB / 1.236 GB, free: 0.8867 MB / 0.9512 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008032/1.092, allocations: 0.6593 MB / 1.237 GB, free: 200 kB / 0.9512 GB Notification: Performance of preOpt evalFunc (simulation): time 6.597e-05/1.092, allocations: 28.58 kB / 1.237 GB, free: 172 kB / 0.9512 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001339/1.093, allocations: 0.9974 MB / 1.238 GB, free: 15.12 MB / 0.9669 GB Notification: Performance of pre-optimization done (n=109): time 3.687e-06/1.093, allocations: 0 / 1.238 GB, free: 15.12 MB / 0.9669 GB Notification: Performance of matching and sorting (n=109): time 0.002929/1.096, allocations: 1.859 MB / 1.239 GB, free: 13.26 MB / 0.9669 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000163/1.096, allocations: 353.6 kB / 1.24 GB, free: 12.84 MB / 0.9669 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001218/1.098, allocations: 0.9286 MB / 1.241 GB, free: 11.9 MB / 0.9669 GB Notification: Performance of collectPreVariables (initialization): time 0.0003148/1.098, allocations: 121.6 kB / 1.241 GB, free: 11.78 MB / 0.9669 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004684/1.099, allocations: 0.4974 MB / 1.241 GB, free: 11.27 MB / 0.9669 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002224/1.099, allocations: 257 kB / 1.242 GB, free: 11.02 MB / 0.9669 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006019/1.099, allocations: 491.7 kB / 1.242 GB, free: 10.53 MB / 0.9669 GB Notification: Performance of setup shared object (initialization): time 0.0001836/1.1, allocations: 422.7 kB / 1.242 GB, free: 10.11 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007739/1.1, allocations: 0.5699 MB / 1.243 GB, free: 9.535 MB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00175/1.102, allocations: 1.565 MB / 1.244 GB, free: 7.66 MB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001479/1.104, allocations: 1.209 MB / 1.246 GB, free: 6.285 MB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.918e-06/1.104, allocations: 4 kB / 1.246 GB, free: 6.281 MB / 0.9669 GB Notification: Performance of matching and sorting (n=179) (initialization): time 0.002328/1.106, allocations: 1.531 MB / 1.247 GB, free: 4.742 MB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 2.938e-05/1.106, allocations: 12 kB / 1.247 GB, free: 4.73 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.02e-05/1.106, allocations: 12 kB / 1.247 GB, free: 4.719 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.734e-05/1.106, allocations: 23.98 kB / 1.247 GB, free: 4.695 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005152/1.107, allocations: 143.6 kB / 1.247 GB, free: 4.555 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.183e-05/1.107, allocations: 27.88 kB / 1.247 GB, free: 4.527 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001977/1.109, allocations: 231.4 kB / 1.248 GB, free: 4.301 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001009/1.109, allocations: 67.94 kB / 1.248 GB, free: 4.234 MB / 0.9669 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 54 * Number of states: 0 () * Number of discrete variables: 148 ($PRE.sta.enaLea.enableFire,$PRE.sta.enaLag[1].enableFire,$PRE.sta.enaLag[2].enableFire,$PRE.sta.enaLag[3].enableFire,$PRE.sta.disLag[1].enableFire,$PRE.sta.disLag[2].enableFire,$PRE.sta.disLag[3].enableFire,$PRE.sta.disAll[1].enableFire,$PRE.sta.disAll[2].enableFire,$PRE.sta.disAll[3].enableFire,$whenCondition20,$whenCondition19,$whenCondition18,$whenCondition17,$whenCondition16,$whenCondition15,$whenCondition14,$whenCondition13,booTimTab.intTimTab.idx,$PRE.booTimTab.intTimTab.idx,booTimTab.intTimTab.y[3],$PRE.booTimTab.intTimTab.y[3],booTimTab.intTimTab.y[2],$PRE.booTimTab.intTimTab.y[2],booTimTab.intTimTab.y[1],$PRE.booTimTab.intTimTab.y[1],booTimTab.y[3],booTimTab.y[2],sta.or2.y,sta.edg.y,sta.edg.u,$PRE.sta.edg.u,sta.disAll[3].outPort.occupied,sta.disAll[3].enableFire,sta.disAll[3].localCondition,sta.disAll[2].outPort.occupied,sta.disAll[2].enableFire,sta.disAll[2].localCondition,sta.disAll[1].enableFire,sta.disAll[1].localCondition,sta.disLag[3].outPort.occupied,sta.disLag[3].enableFire,sta.disLag[3].localCondition,sta.disLag[2].outPort.occupied,sta.disLag[2].enableFire,sta.disLag[2].localCondition,sta.disLag[1].outPort.occupied,sta.disLag[1].enableFire,sta.disLag[1].localCondition,sta.rep1.y[3],sta.rep.y[3],sta.tim0.entryTime,$PRE.sta.tim0.entryTime,sta.tim0.passed,$PRE.sta.tim0.passed,sta.tim[3].entryTime,$PRE.sta.tim[3].entryTime,sta.tim[3].passed,$PRE.sta.tim[3].passed,sta.tim[2].entryTime,$PRE.sta.tim[2].entryTime,sta.tim[2].passed,$PRE.sta.tim[2].passed,sta.tim[1].entryTime,$PRE.sta.tim[1].entryTime,sta.tim[1].passed,$PRE.sta.tim[1].passed,sta.enaLag[3].outPort.occupied,sta.enaLag[3].enableFire,sta.enaLag[3].localCondition,sta.enaLag[2].enableFire,sta.enaLag[2].localCondition,sta.enaLag[1].enableFire,sta.enaLag[1].localCondition,sta.stateGraphRoot.activeSteps,sta.enaLea.enableFire,sta.enaLea.localCondition,sta.sta[3].active,sta.sta[3].oldActive,$PRE.sta.sta[3].oldActive,sta.sta[3].newActive,$PRE.sta.sta[3].newActive,sta.sta[3].outPort[3].available,sta.sta[3].outPort[2].available,sta.sta[3].localActive,$PRE.sta.sta[3].localActive,sta.sta[2].active,sta.sta[2].oldActive,$PRE.sta.sta[2].oldActive,sta.sta[2].newActive,$PRE.sta.sta[2].newActive,sta.sta[2].outPort[3].available,sta.sta[2].outPort[2].available,sta.sta[2].localActive,$PRE.sta.sta[2].localActive,sta.sta[1].active,sta.sta[1].oldActive,$PRE.sta.sta[1].oldActive,sta.sta[1].newActive,$PRE.sta.sta[1].newActive,sta.sta[1].outPort[3].available,sta.sta[1].outPort[2].available,sta.sta[1].localActive,$PRE.sta.sta[1].localActive,sta.sta0.active,sta.sta0.oldActive,$PRE.sta.sta0.oldActive,sta.sta0.newActive,$PRE.sta.sta0.newActive,sta.sta0.localActive,$PRE.sta.sta0.localActive,sta.idxSta,$whenCondition3,$whenCondition2,$whenCondition1,$whenCondition6,$whenCondition5,$whenCondition4,$whenCondition9,$whenCondition8,$whenCondition7,$whenCondition12,$whenCondition11,$whenCondition10,sta.preIdxSta,$PRE.sta.idxSta,sta.enaLea.t_start,$PRE.sta.enaLea.t_start,sta.enaLag[1].t_start,$PRE.sta.enaLag[1].t_start,sta.enaLag[2].t_start,$PRE.sta.enaLag[2].t_start,sta.enaLag[3].t_start,$PRE.sta.enaLag[3].t_start,sta.disLag[1].t_start,$PRE.sta.disLag[1].t_start,sta.disLag[2].t_start,$PRE.sta.disLag[2].t_start,sta.disLag[3].t_start,$PRE.sta.disLag[3].t_start,sta.disAll[1].t_start,$PRE.sta.disAll[1].t_start,sta.disAll[2].t_start,$PRE.sta.disAll[2].t_start,sta.disAll[3].t_start,$PRE.sta.disAll[3].t_start,sta.stateGraphRoot.resume,sta.stateGraphRoot.suspend) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (179): * Single equations (assignments): 179 * 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.001068/1.11, allocations: 0.6357 MB / 1.248 GB, free: 3.582 MB / 0.9669 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002243/1.11, allocations: 98.95 kB / 1.248 GB, free: 3.484 MB / 0.9669 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00199/1.112, allocations: 1.393 MB / 1.25 GB, free: 2.086 MB / 0.9669 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.313e-05/1.112, allocations: 7.984 kB / 1.25 GB, free: 2.078 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.384e-06/1.112, allocations: 4 kB / 1.25 GB, free: 2.074 MB / 0.9669 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001724/1.112, allocations: 175.9 kB / 1.25 GB, free: 1.883 MB / 0.9669 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001833/1.112, allocations: 67.89 kB / 1.25 GB, free: 1.816 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003186/1.113, allocations: 39.97 kB / 1.25 GB, free: 1.777 MB / 0.9669 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003456/1.113, allocations: 212.8 kB / 1.25 GB, free: 1.57 MB / 0.9669 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.00228/1.115, allocations: 2.29 MB / 1.252 GB, free: 15.27 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.002174/1.118, allocations: 2.325 MB / 1.255 GB, free: 12.91 MB / 0.9825 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0008515/1.118, allocations: 0.73 MB / 1.255 GB, free: 12.18 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 0.0007483/1.119, allocations: 0.5732 MB / 1.256 GB, free: 11.61 MB / 0.9825 GB Notification: Performance of Backend: time 7.82e-07/1.119, allocations: 0 / 1.256 GB, free: 11.61 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.002933/1.122, allocations: 0.9982 MB / 1.257 GB, free: 10.61 MB / 0.9825 GB Notification: Performance of SimCode: time 0.003167/1.125, allocations: 2.274 MB / 1.259 GB, free: 8.277 MB / 0.9825 GB Notification: Performance of Templates: time 0.03406/1.159, allocations: 17.6 MB / 1.276 GB, free: 6.766 MB / 0.9981 GB make -j1 -f Buildings_latest_Buildings.DHC.Plants.Combined.Controls.BaseClasses.Validation.StageIndex.makefile (rm -f Buildings_latest_Buildings.DHC.Plants.Combined.Controls.BaseClasses.Validation.StageIndex.pipe ; mkfifo Buildings_latest_Buildings.DHC.Plants.Combined.Controls.BaseClasses.Validation.StageIndex.pipe ; head -c 1048576 < Buildings_latest_Buildings.DHC.Plants.Combined.Controls.BaseClasses.Validation.StageIndex.pipe >> ../files/Buildings_latest_Buildings.DHC.Plants.Combined.Controls.BaseClasses.Validation.StageIndex.sim & ./Buildings_latest_Buildings.DHC.Plants.Combined.Controls.BaseClasses.Validation.StageIndex -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.DHC.Plants.Combined.Controls.BaseClasses.Validation.StageIndex.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.DHC.Plants.Combined.Controls.BaseClasses.Validation.StageIndex_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_DHC_Plants_Combined_Controls_BaseClasses_Validation_StageIndex.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.DHC.Plants.Combined.Controls.BaseClasses.Validation.StageIndex.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches