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.001383/0.001383, allocations: 113.8 kB / 16.42 MB, free: 6.016 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.00138/0.00138, allocations: 183.7 kB / 17.35 MB, free: 5.633 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.457/1.457, allocations: 222.9 MB / 241.1 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.723/2.723, allocations: 469.4 MB / 0.7428 GB, free: 3.598 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001558/0.001558, allocations: 60.09 kB / 1.066 GB, free: 13.79 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9076/0.9091, allocations: 159.1 MB / 1.221 GB, free: 2.379 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.DHC.Plants.Combined.Controls.BaseClasses.Validation.StageIndex): time 0.004496/0.9137, allocations: 2.333 MB / 1.223 GB, free: 32 kB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.002405/0.9161, allocations: 1.017 MB / 1.224 GB, free: 15.01 MB / 0.9512 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004376/0.9166, allocations: 11.94 kB / 1.224 GB, free: 15 MB / 0.9512 GB Notification: Performance of NFTyping.typeComponents: time 0.0006935/0.9174, allocations: 211 kB / 1.224 GB, free: 14.79 MB / 0.9512 GB Notification: Performance of NFTyping.typeBindings: time 0.0004167/0.9178, allocations: 127.3 kB / 1.225 GB, free: 14.67 MB / 0.9512 GB Notification: Performance of NFTyping.typeClassSections: time 0.001253/0.9191, allocations: 394.9 kB / 1.225 GB, free: 14.29 MB / 0.9512 GB Notification: Performance of NFFlatten.flatten: time 0.002391/0.9215, allocations: 2.197 MB / 1.227 GB, free: 12.08 MB / 0.9512 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002393/0.9239, allocations: 1.616 MB / 1.229 GB, free: 10.43 MB / 0.9512 GB Notification: Performance of NFEvalConstants.evaluate: time 0.00138/0.9253, allocations: 0.8303 MB / 1.229 GB, free: 9.602 MB / 0.9512 GB Notification: Performance of NFSimplifyModel.simplify: time 0.00125/0.9265, allocations: 0.689 MB / 1.23 GB, free: 8.91 MB / 0.9512 GB Notification: Performance of NFPackage.collectConstants: time 0.0006925/0.9272, allocations: 180 kB / 1.23 GB, free: 8.734 MB / 0.9512 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000841/0.9281, allocations: 231.9 kB / 1.23 GB, free: 8.508 MB / 0.9512 GB Notification: Performance of NFScalarize.scalarize: time 0.00132/0.9294, allocations: 0.7991 MB / 1.231 GB, free: 7.707 MB / 0.9512 GB Notification: Performance of NFVerifyModel.verify: time 0.001637/0.9311, allocations: 0.7896 MB / 1.232 GB, free: 6.914 MB / 0.9512 GB Notification: Performance of NFConvertDAE.convert: time 0.003193/0.9343, allocations: 2.584 MB / 1.235 GB, free: 4.328 MB / 0.9512 GB Notification: Performance of FrontEnd - DAE generated: time 5.51e-06/0.9343, allocations: 0 / 1.235 GB, free: 4.328 MB / 0.9512 GB Notification: Performance of FrontEnd: time 3.697e-06/0.9343, allocations: 7.922 kB / 1.235 GB, free: 4.32 MB / 0.9512 GB Notification: Performance of Transformations before backend: time 9.507e-05/0.9344, allocations: 0 / 1.235 GB, free: 4.32 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.005026/0.9394, allocations: 1.781 MB / 1.236 GB, free: 2.469 MB / 0.9512 GB Notification: Performance of prepare preOptimizeDAE: time 5.608e-05/0.9395, allocations: 12.62 kB / 1.236 GB, free: 2.457 MB / 0.9512 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006962/0.9402, allocations: 151.3 kB / 1.236 GB, free: 2.309 MB / 0.9512 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00223/0.9425, allocations: 0.9907 MB / 1.237 GB, free: 1.277 MB / 0.9512 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001485/0.9426, allocations: 134.6 kB / 1.238 GB, free: 1.145 MB / 0.9512 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004421/0.9431, allocations: 160.4 kB / 1.238 GB, free: 0.9883 MB / 0.9512 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003341/0.9464, allocations: 1.83 MB / 1.239 GB, free: 15.03 MB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.16e-05/0.9465, allocations: 4.125 kB / 1.239 GB, free: 15.03 MB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001484/0.9466, allocations: 59.92 kB / 1.24 GB, free: 14.97 MB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.828e-05/0.9467, allocations: 28 kB / 1.24 GB, free: 14.94 MB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002471/0.9491, allocations: 1.401 MB / 1.241 GB, free: 13.54 MB / 0.9669 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008061/0.9572, allocations: 6.186 MB / 1.247 GB, free: 7.184 MB / 0.9669 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001904/0.9592, allocations: 1.493 MB / 1.248 GB, free: 5.582 MB / 0.9669 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008578/0.96, allocations: 0.667 MB / 1.249 GB, free: 4.883 MB / 0.9669 GB Notification: Performance of preOpt evalFunc (simulation): time 7.225e-05/0.9601, allocations: 20.66 kB / 1.249 GB, free: 4.863 MB / 0.9669 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00143/0.9616, allocations: 1.009 MB / 1.25 GB, free: 3.805 MB / 0.9669 GB Notification: Performance of pre-optimization done (n=109): time 5.17e-06/0.9616, allocations: 0 / 1.25 GB, free: 3.805 MB / 0.9669 GB Notification: Performance of matching and sorting (n=109): time 0.003002/0.9646, allocations: 1.851 MB / 1.252 GB, free: 1.953 MB / 0.9669 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002232/0.9648, allocations: 361.3 kB / 1.252 GB, free: 1.527 MB / 0.9669 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001529/0.9664, allocations: 0.9325 MB / 1.253 GB, free: 0.582 MB / 0.9669 GB Notification: Performance of collectPreVariables (initialization): time 0.0003473/0.9667, allocations: 117.6 kB / 1.253 GB, free: 472 kB / 0.9669 GB Notification: Performance of collectInitialEqns (initialization): time 0.0006379/0.9674, allocations: 0.4935 MB / 1.254 GB, free: 15.96 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003037/0.9677, allocations: 256.9 kB / 1.254 GB, free: 15.7 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007724/0.9685, allocations: 495.7 kB / 1.254 GB, free: 15.21 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.0002133/0.9687, allocations: 418.7 kB / 1.255 GB, free: 14.8 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008735/0.9696, allocations: 0.5621 MB / 1.255 GB, free: 14.23 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001883/0.9715, allocations: 1.569 MB / 1.257 GB, free: 12.36 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001554/0.973, allocations: 1.213 MB / 1.258 GB, free: 10.97 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.418e-05/0.9731, allocations: 4 kB / 1.258 GB, free: 10.97 MB / 0.9825 GB Notification: Performance of matching and sorting (n=179) (initialization): time 0.002555/0.9756, allocations: 1.524 MB / 1.26 GB, free: 9.441 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 3.043e-05/0.9757, allocations: 12.03 kB / 1.26 GB, free: 9.43 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.614e-05/0.9757, allocations: 12 kB / 1.26 GB, free: 9.418 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 4.74e-05/0.9757, allocations: 20 kB / 1.26 GB, free: 9.398 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005477/0.9763, allocations: 151.5 kB / 1.26 GB, free: 9.25 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.258e-05/0.9764, allocations: 27.92 kB / 1.26 GB, free: 9.223 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002039/0.9784, allocations: 227.2 kB / 1.26 GB, free: 9 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001181/0.9785, allocations: 63.98 kB / 1.26 GB, free: 8.938 MB / 0.9825 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.001147/0.9797, allocations: 0.6473 MB / 1.261 GB, free: 8.277 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003128/0.98, allocations: 94.95 kB / 1.261 GB, free: 8.184 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002259/0.9823, allocations: 1.393 MB / 1.262 GB, free: 6.781 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.748e-05/0.9823, allocations: 11.97 kB / 1.262 GB, free: 6.77 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.38e-06/0.9823, allocations: 4 kB / 1.262 GB, free: 6.766 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002676/0.9826, allocations: 172 kB / 1.262 GB, free: 6.578 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002363/0.9828, allocations: 67.89 kB / 1.262 GB, free: 6.512 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003828/0.9832, allocations: 31.97 kB / 1.262 GB, free: 6.48 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003904/0.9836, allocations: 216.7 kB / 1.263 GB, free: 6.27 MB / 0.9825 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.002531/0.9862, allocations: 2.287 MB / 1.265 GB, free: 3.965 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.002361/0.9885, allocations: 2.325 MB / 1.267 GB, free: 1.617 MB / 0.9825 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0009381/0.9895, allocations: 0.73 MB / 1.268 GB, free: 0.8867 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 0.0008153/0.9903, allocations: 0.5809 MB / 1.268 GB, free: 316 kB / 0.9825 GB Notification: Performance of Backend: time 3.1e-07/0.9903, allocations: 0 / 1.268 GB, free: 316 kB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.003085/0.9934, allocations: 0.9949 MB / 1.269 GB, free: 15.31 MB / 0.9981 GB Notification: Performance of SimCode: time 0.003592/0.997, allocations: 2.285 MB / 1.272 GB, free: 12.96 MB / 0.9981 GB Notification: Performance of Templates: time 0.03041/1.027, allocations: 17.6 MB / 1.289 GB, free: 11.45 MB / 1.014 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