Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.DHC.Networks.Controls.Examples.MainPump1PipeExample.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.DHC.Networks.Controls.Examples.MainPump1PipeExample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|conPum.TMix.1.|conPum.TSouIn.1.|conPum.TSouOut.1.|conPum.TMin_lower.y|conPum.TMax_upper.y|conPum.QCoo_flow.1.|conPum.y",fileNamePrefix="Buildings_latest_Buildings.DHC.Networks.Controls.Examples.MainPump1PipeExample") translateModel(Buildings.DHC.Networks.Controls.Examples.MainPump1PipeExample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|conPum.TMix.1.|conPum.TSouIn.1.|conPum.TSouOut.1.|conPum.TMin_lower.y|conPum.TMax_upper.y|conPum.QCoo_flow.1.|conPum.y",fileNamePrefix="Buildings_latest_Buildings.DHC.Networks.Controls.Examples.MainPump1PipeExample") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001356/0.001356, allocations: 104.2 kB / 16.42 MB, free: 6.484 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.001313/0.001313, allocations: 192.3 kB / 17.36 MB, free: 5.703 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.122/1.122, allocations: 222.9 MB / 241.1 MB, free: 14.95 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.206/2.206, allocations: 472.6 MB / 0.7459 GB, free: 0.5312 MB / 0.6075 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.185e-05/1.187e-05, allocations: 2.281 kB / 1.07 GB, free: 9.707 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.DHC.Networks.Controls.Examples.MainPump1PipeExample): time 0.003786/0.003806, allocations: 3.584 MB / 1.074 GB, free: 6.102 MB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.002159/0.005976, allocations: 1.641 MB / 1.075 GB, free: 4.453 MB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002254/0.006212, allocations: 19.94 kB / 1.075 GB, free: 4.434 MB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 0.0004728/0.006691, allocations: 274.4 kB / 1.075 GB, free: 4.164 MB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 0.0004346/0.007135, allocations: 262.5 kB / 1.076 GB, free: 3.906 MB / 0.8419 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006779/0.007822, allocations: 463.4 kB / 1.076 GB, free: 3.457 MB / 0.8419 GB Notification: Performance of NFFlatten.flatten: time 0.0007835/0.008613, allocations: 1.043 MB / 1.077 GB, free: 2.41 MB / 0.8419 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004671/0.009089, allocations: 430.6 kB / 1.078 GB, free: 1.969 MB / 0.8419 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002964/0.009393, allocations: 378.5 kB / 1.078 GB, free: 1.598 MB / 0.8419 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002979/0.009698, allocations: 378.1 kB / 1.078 GB, free: 1.227 MB / 0.8419 GB Notification: Performance of NFPackage.collectConstants: time 9.176e-05/0.009797, allocations: 87.94 kB / 1.078 GB, free: 1.141 MB / 0.8419 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001615/0.009964, allocations: 128 kB / 1.078 GB, free: 1.016 MB / 0.8419 GB Notification: Performance of combineBinaries: time 0.386/0.396, allocations: 1.232 MB / 1.08 GB, free: 12.57 MB / 0.8419 GB Notification: Performance of replaceArrayConstructors: time 0.0003909/0.3964, allocations: 0.7952 MB / 1.08 GB, free: 12.38 MB / 0.8419 GB Notification: Performance of NFVerifyModel.verify: time 0.0001864/0.3966, allocations: 125.7 kB / 1.081 GB, free: 12.38 MB / 0.8419 GB Notification: Performance of FrontEnd: time 0.0002466/0.3969, allocations: 48.42 kB / 1.081 GB, free: 12.38 MB / 0.8419 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 137 (137) * Number of variables: 137 (137) Notification: Performance of Bindings: time 0.002299/0.3992, allocations: 3.628 MB / 1.084 GB, free: 11.02 MB / 0.8419 GB Notification: Performance of FunctionAlias: time 0.0001373/0.3993, allocations: 157.1 kB / 1.084 GB, free: 11.01 MB / 0.8419 GB Notification: Performance of Early Inline: time 0.001066/0.4004, allocations: 1.554 MB / 1.086 GB, free: 10.43 MB / 0.8419 GB Notification: Performance of simplify1: time 0.0001092/0.4005, allocations: 111.8 kB / 1.086 GB, free: 10.38 MB / 0.8419 GB Notification: Performance of Alias: time 0.002814/0.4033, allocations: 3.397 MB / 1.089 GB, free: 8.312 MB / 0.8419 GB Notification: Performance of simplify2: time 6.307e-05/0.4034, allocations: 72.94 kB / 1.089 GB, free: 8.289 MB / 0.8419 GB Notification: Performance of Detect States: time 0.0004051/0.4038, allocations: 362.4 kB / 1.09 GB, free: 8.047 MB / 0.8419 GB Notification: Performance of Events: time 0.00019/0.404, allocations: 187.8 kB / 1.09 GB, free: 7.945 MB / 0.8419 GB Notification: Performance of Partitioning: time 0.0003904/0.4044, allocations: 484.1 kB / 1.09 GB, free: 7.672 MB / 0.8419 GB Notification: Performance of Causalize: time 0.001852/0.4062, allocations: 1.899 MB / 1.092 GB, free: 6.945 MB / 0.8419 GB Notification: Performance of After Index Reduction Inline: time 0.0008226/0.4071, allocations: 1.045 MB / 1.093 GB, free: 6.281 MB / 0.8419 GB Notification: Performance of Inline: time 0.00448/0.4116, allocations: 2.85 MB / 1.096 GB, free: 4.605 MB / 0.8419 GB Notification: Performance of Partitioning: time 0.000147/0.4117, allocations: 159.7 kB / 1.096 GB, free: 4.504 MB / 0.8419 GB Notification: Performance of Cleanup: time 0.0002183/0.4119, allocations: 284 kB / 1.096 GB, free: 4.328 MB / 0.8419 GB Notification: Performance of Causalize: time 0.008235/0.4202, allocations: 8.312 MB / 1.104 GB, free: 1.164 MB / 0.8419 GB Notification: Performance of Tearing: time 2.333e-05/0.4202, allocations: 7.938 kB / 1.104 GB, free: 1.156 MB / 0.8419 GB Notification: Performance of Initialization: time 5.41e-07/0.4202, allocations: 1.125 kB / 1.104 GB, free: 1.156 MB / 0.8419 GB Notification: Performance of Tearing: time 7.354e-06/0.4202, allocations: 1.031 kB / 1.105 GB, free: 1.156 MB / 0.8419 GB Notification: Performance of Categorize: time 1.35e-05/0.4203, allocations: 3.188 kB / 1.105 GB, free: 1.156 MB / 0.8419 GB Notification: Performance of Solve: time 0.0007127/0.421, allocations: 458 kB / 1.105 GB, free: 1.008 MB / 0.8419 GB Notification: Performance of Jacobian: time 0.0006334/0.4216, allocations: 0.7751 MB / 1.106 GB, free: 0.5508 MB / 0.8419 GB Notification: Partition statistics after passing the back-end: * Number of ODE partitions: ..................... 0 * Number of algebraic partitions: ............... 0 * Number of ODE event partitions: ............... 1 * Number of algebraic event partitions: ......... 3 * Number of clocked partitions: ................. 0 * Number of initial partitions: ................. 1 * Number of initial(lambda=0) partitions: ....... 1 Notification: Variable statistics after passing the back-end: * Number of states: ............................. 1 (1) {conPum.conShi.addPID.u2} * Number of discrete states: .................... 6 (6) {QCoo_flow.nextTimeEvent, QCoo_flow.nextTimeEventScaled, TSouOut.nextTimeEventScaled, TSouOut.nextTimeEvent, TMixandTSouIn.nextTimeEventScaled, TMixandTSouIn.nextTimeEvent} * Number of clocked states: ..................... 0 (0) {NOT YET AVAILABLE} * Number of discrete variables: ................. 16 (16) {conPum.and2.u1, conPum.and2.y, $SEV_9, $SEV_8, $SEV_7, $SEV_6, $SEV_5, $SEV_4, $SEV_3, $SEV_2, $SEV_1, $SEV_0, $TEV_3, $TEV_2, $TEV_1, $TEV_0} * Number of top-level inputs: ................... 0 (0) {} Notification: [Simulation] Strong Component statistics after passing the back-end: * Number of single strong components: ........... 69 (scalar:63, array:6, record:0) * Number of multi strong components: ............ 6 (algorithm:0, when:6, if:0, tuple:0) * Number of for-loop strong components: ......... 0 (generic: 0, entwined:0) * Number of algebraic-loop strong components: ... 0 (linear: 0, nonlinear:0) Notification: [Initialization] Strong Component statistics after passing the back-end: * Number of single strong components: ........... 149 (scalar:138, array:8, record:3) * Number of multi strong components: ............ 6 (algorithm:6, when:0, if:0, tuple:0) * Number of for-loop strong components: ......... 0 (generic: 0, entwined:0) * Number of algebraic-loop strong components: ... 0 (linear: 0, nonlinear:0) Notification: [Initialization (lambda=0)] Strong Component statistics after passing the back-end: * Number of single strong components: ........... 149 (scalar:138, array:8, record:3) * Number of multi strong components: ............ 6 (algorithm:6, when:0, if:0, tuple:0) * Number of for-loop strong components: ......... 0 (generic: 0, entwined:0) * Number of algebraic-loop strong components: ... 0 (linear: 0, nonlinear:0) Notification: Performance of backend: time 5.574e-05/0.4217, allocations: 76.12 kB / 1.106 GB, free: 496 kB / 0.8419 GB Notification: Performance of SimCode: time 0.004039/0.4257, allocations: 4.182 MB / 1.11 GB, free: 14.39 MB / 0.8575 GB Notification: Performance of Templates: time 0.01091/0.4366, allocations: 6.653 MB / 1.116 GB, free: 13.88 MB / 0.8575 GB make -j1 -f Buildings_latest_Buildings.DHC.Networks.Controls.Examples.MainPump1PipeExample.makefile (rm -f Buildings_latest_Buildings.DHC.Networks.Controls.Examples.MainPump1PipeExample.pipe ; mkfifo Buildings_latest_Buildings.DHC.Networks.Controls.Examples.MainPump1PipeExample.pipe ; head -c 1048576 < Buildings_latest_Buildings.DHC.Networks.Controls.Examples.MainPump1PipeExample.pipe >> ../files/Buildings_latest_Buildings.DHC.Networks.Controls.Examples.MainPump1PipeExample.sim & ./Buildings_latest_Buildings.DHC.Networks.Controls.Examples.MainPump1PipeExample -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.DHC.Networks.Controls.Examples.MainPump1PipeExample.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.DHC.Networks.Controls.Examples.MainPump1PipeExample_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_DHC_Networks_Controls_Examples_MainPump1PipeExample.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.DHC.Networks.Controls.Examples.MainPump1PipeExample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:time,conPum.TMix[1],conPum.TSouIn[1],conPum.TSouOut[1],conPum.TMin_lower.y,conPum.TMax_upper.y,conPum.QCoo_flow[1],conPum.y Variables in the result:QCoo_flow.columns[1],QCoo_flow.extrapolation,QCoo_flow.nout,QCoo_flow.offset[1],QCoo_flow.p_offset[1],QCoo_flow.shiftTime,QCoo_flow.smoothness,QCoo_flow.startTime,QCoo_flow.t_max,QCoo_flow.t_maxScaled,QCoo_flow.t_min,QCoo_flow.t_minScaled,QCoo_flow.tableOnFile,QCoo_flow.table[1,1],QCoo_flow.table[1,2],QCoo_flow.table[2,1],QCoo_flow.table[2,2],QCoo_flow.table[3,1],QCoo_flow.table[3,2],QCoo_flow.table[4,1],QCoo_flow.table[4,2],QCoo_flow.timeEvents,QCoo_flow.timeScale,QCoo_flow.timeScaled,QCoo_flow.verboseExtrapolation,QCoo_flow.verboseRead,TMixandTSouIn.columns[1],TMixandTSouIn.extrapolation,TMixandTSouIn.nout,TMixandTSouIn.offset[1],TMixandTSouIn.p_offset[1],TMixandTSouIn.shiftTime,TMixandTSouIn.smoothness,TMixandTSouIn.startTime,TMixandTSouIn.t_max,TMixandTSouIn.t_maxScaled,TMixandTSouIn.t_min,TMixandTSouIn.t_minScaled,TMixandTSouIn.tableOnFile,TMixandTSouIn.table[1,1],TMixandTSouIn.table[1,2],TMixandTSouIn.table[2,1],TMixandTSouIn.table[2,2],TMixandTSouIn.table[3,1],TMixandTSouIn.table[3,2],TMixandTSouIn.table[4,1],TMixandTSouIn.table[4,2],TMixandTSouIn.timeEvents,TMixandTSouIn.timeScale,TMixandTSouIn.timeScaled,TMixandTSouIn.verboseExtrapolation,TMixandTSouIn.verboseRead,TSou,TSouOut.columns[1],TSouOut.extrapolation,TSouOut.nout,TSouOut.offset[1],TSouOut.p_offset[1],TSouOut.shiftTime,TSouOut.smoothness,TSouOut.startTime,TSouOut.t_max,TSouOut.t_maxScaled,TSouOut.t_min,TSouOut.t_minScaled,TSouOut.tableOnFile,TSouOut.table[1,1],TSouOut.table[1,2],TSouOut.table[2,1],TSouOut.table[2,2],TSouOut.table[3,1],TSouOut.table[3,2],TSouOut.table[4,1],TSouOut.table[4,2],TSouOut.timeEvents,TSouOut.timeScale,TSouOut.timeScaled,TSouOut.verboseExtrapolation,TSouOut.verboseRead,conPum.PpumCooThr,conPum.QCoo_flow[1],conPum.TMax,conPum.TMax_lower.p,conPum.TMax_lower.u,conPum.TMax_nominal.k,conPum.TMax_nominal.y,conPum.TMax_upper.u1,conPum.TMax_upper.y,conPum.TMin,conPum.TMin_lower.u1,conPum.TMin_lower.y,conPum.TMin_nominal.k,conPum.TMin_nominal.y,conPum.TMin_upper.p,conPum.TMin_upper.u,conPum.TMix[1],conPum.TSouIn[1],conPum.TSouOut[1],conPum.Ti,conPum.and2.u2,conPum.booleanExpression.y,conPum.conShi.I.k,conPum.conShi.I.trigger,conPum.conShi.I.y_reset_in,conPum.conShi.I.y_start,conPum.conShi.Nd,conPum.conShi.Ni,conPum.conShi.P.k,conPum.conShi.Td,conPum.conShi.Ti,conPum.conShi.addPD.u2,conPum.conShi.antWinGai.k,conPum.conShi.assMesYMinMax.u,conPum.conShi.cheYMinMax.k,conPum.conShi.cheYMinMax.y,conPum.conShi.con.k,conPum.conShi.con.y,conPum.conShi.con1.k,conPum.conShi.con1.y,conPum.conShi.controlError.u1,conPum.conShi.controllerType,conPum.conShi.k,conPum.conShi.lim.uMax,conPum.conShi.lim.uMin,conPum.conShi.r,conPum.conShi.revAct,conPum.conShi.reverseActing,conPum.conShi.uMea_revAct.k,conPum.conShi.uS_revAct.k,conPum.conShi.uS_revAct.u,conPum.conShi.u_s,conPum.conShi.xi_start,conPum.conShi.yMax,conPum.conShi.yMin,conPum.conShi.yd_start,conPum.dTSlo,conPum.dTSou_nominal[1],conPum.dTSou_nor.k,conPum.delta,conPum.gai.k,conPum.gai1.k,conPum.gai2.k,conPum.greThr.greHys.h,conPum.greThr.greHys.pre_y_start,conPum.greThr.greHys.t,conPum.greThr.h,conPum.greThr.have_hysteresis,conPum.greThr.pre_y_start,conPum.greThr.t,conPum.hysPpumCoo,conPum.k,conPum.lowCur.f1,conPum.lowCur.f2,conPum.lowCur.limitAbove,conPum.lowCur.limitBelow,conPum.mulSum.k[1],conPum.mulSum1.k[1],conPum.nBui,conPum.nMix,conPum.nSou,conPum.offTMax,conPum.offTMaxExp.k,conPum.offTMaxExp.y,conPum.one.k,conPum.one.y,conPum.sNeg.u1,conPum.sPos.u1,conPum.swi2.u1,conPum.swi2.u3,conPum.uppCur.f1,conPum.uppCur.f2,conPum.uppCur.limitAbove,conPum.uppCur.limitBelow,conPum.use_constantHeaTemShift,conPum.use_temperatureShift,conPum.y,conPum.yMin.k,conPum.yMin.y,conPum.yPumMin,conPum.ySetPum.y,conPum.zer.k,conPum.zer.y,time