Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.DHC.Networks.Controls.Examples.AgentPump1PipeExample.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.Networks.Controls.Examples.AgentPump1PipeExample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|AgentPump.TSouIn|AgentPump.TSouOut|AgentPump.TSou|AgentPump.TSupDis|AgentPump.TRetDis|AgentPump.y",fileNamePrefix="Buildings_latest_Buildings.DHC.Networks.Controls.Examples.AgentPump1PipeExample") translateModel(Buildings.DHC.Networks.Controls.Examples.AgentPump1PipeExample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|AgentPump.TSouIn|AgentPump.TSouOut|AgentPump.TSou|AgentPump.TSupDis|AgentPump.TRetDis|AgentPump.y",fileNamePrefix="Buildings_latest_Buildings.DHC.Networks.Controls.Examples.AgentPump1PipeExample") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001104/0.001104, allocations: 111.8 kB / 16.43 MB, free: 6.461 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.001129/0.001129, allocations: 188.2 kB / 17.36 MB, free: 5.73 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.118/1.118, allocations: 222.9 MB / 241.1 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.152/2.152, allocations: 461.9 MB / 0.7354 GB, free: 11.12 MB / 0.6075 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.575e-05/1.577e-05, allocations: 2.281 kB / 1.055 GB, free: 7.785 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.DHC.Networks.Controls.Examples.AgentPump1PipeExample): time 0.004024/0.004047, allocations: 3.738 MB / 1.058 GB, free: 4.027 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.002253/0.006311, allocations: 1.718 MB / 1.06 GB, free: 2.301 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000231/0.006552, allocations: 15.94 kB / 1.06 GB, free: 2.285 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 0.0004859/0.007044, allocations: 278.5 kB / 1.06 GB, free: 2.012 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 0.0004188/0.007484, allocations: 250.5 kB / 1.06 GB, free: 1.766 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006671/0.008161, allocations: 450.6 kB / 1.061 GB, free: 1.328 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.0007546/0.008923, allocations: 1.02 MB / 1.062 GB, free: 312 kB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003942/0.009325, allocations: 353.1 kB / 1.062 GB, free: 15.96 MB / 0.8419 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002978/0.009631, allocations: 354.5 kB / 1.063 GB, free: 15.61 MB / 0.8419 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002769/0.009916, allocations: 350.3 kB / 1.063 GB, free: 15.27 MB / 0.8419 GB Notification: Performance of NFPackage.collectConstants: time 8.689e-05/0.01001, allocations: 72 kB / 1.063 GB, free: 15.2 MB / 0.8419 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000154/0.01017, allocations: 116 kB / 1.063 GB, free: 15.08 MB / 0.8419 GB Notification: Performance of combineBinaries: time 0.0005759/0.01075, allocations: 1.123 MB / 1.064 GB, free: 13.95 MB / 0.8419 GB Notification: Performance of replaceArrayConstructors: time 0.0003135/0.01107, allocations: 0.7233 MB / 1.065 GB, free: 13.21 MB / 0.8419 GB Notification: Performance of NFVerifyModel.verify: time 8.973e-05/0.01117, allocations: 123.5 kB / 1.065 GB, free: 13.09 MB / 0.8419 GB Notification: Performance of FrontEnd: time 8.613e-05/0.01126, allocations: 47.61 kB / 1.065 GB, free: 13.04 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: 110 (110) * Number of variables: 110 (110) Notification: Performance of Bindings: time 0.002251/0.01351, allocations: 3.189 MB / 1.068 GB, free: 9.711 MB / 0.8419 GB Notification: Performance of FunctionAlias: time 0.0001899/0.01371, allocations: 240.6 kB / 1.068 GB, free: 9.473 MB / 0.8419 GB Notification: Performance of Early Inline: time 0.001025/0.01474, allocations: 1.346 MB / 1.07 GB, free: 8.098 MB / 0.8419 GB Notification: Performance of simplify1: time 8.117e-05/0.01483, allocations: 87.86 kB / 1.07 GB, free: 8.012 MB / 0.8419 GB Notification: Performance of Alias: time 0.00287/0.0177, allocations: 3.121 MB / 1.073 GB, free: 4.57 MB / 0.8419 GB Notification: Performance of simplify2: time 4.895e-05/0.01776, allocations: 55.91 kB / 1.073 GB, free: 4.516 MB / 0.8419 GB Notification: Performance of Events: time 0.0002618/0.01803, allocations: 239.1 kB / 1.073 GB, free: 4.285 MB / 0.8419 GB Notification: Performance of Detect States: time 0.0003318/0.01837, allocations: 375.5 kB / 1.073 GB, free: 3.906 MB / 0.8419 GB Notification: Performance of Partitioning: time 0.0003316/0.01871, allocations: 386 kB / 1.074 GB, free: 3.492 MB / 0.8419 GB Notification: Performance of Causalize: time 0.001325/0.02004, allocations: 1.343 MB / 1.075 GB, free: 2.109 MB / 0.8419 GB Notification: Performance of After Index Reduction Inline: time 0.0007161/0.02076, allocations: 0.946 MB / 1.076 GB, free: 1.141 MB / 0.8419 GB Notification: Performance of Inline: time 0.3988/0.4196, allocations: 2.472 MB / 1.078 GB, free: 22.27 MB / 0.8419 GB Notification: Performance of Partitioning: time 0.000237/0.4198, allocations: 156.3 kB / 1.079 GB, free: 22.23 MB / 0.8419 GB Notification: Performance of Cleanup: time 0.0002059/0.42, allocations: 262.2 kB / 1.079 GB, free: 22.21 MB / 0.8419 GB Notification: Performance of Causalize: time 0.01339/0.4334, allocations: 8.473 MB / 1.087 GB, free: 20.4 MB / 0.8419 GB Notification: Performance of Tearing: time 1.621e-05/0.4335, allocations: 3.969 kB / 1.087 GB, free: 20.4 MB / 0.8419 GB Notification: Performance of Initialization: time 1.082e-06/0.4335, allocations: 0.625 kB / 1.087 GB, free: 20.4 MB / 0.8419 GB Notification: Performance of Tearing: time 5.1e-06/0.4335, allocations: 2.406 kB / 1.087 GB, free: 20.4 MB / 0.8419 GB Notification: Performance of Categorize: time 1.643e-05/0.4335, allocations: 4.938 kB / 1.087 GB, free: 20.4 MB / 0.8419 GB Notification: Performance of Solve: time 0.0006647/0.4342, allocations: 448.7 kB / 1.088 GB, free: 20.34 MB / 0.8419 GB Notification: Performance of Jacobian: time 2.966e-06/0.4342, allocations: 2.906 kB / 1.088 GB, free: 20.34 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: ............... 0 * Number of algebraic event partitions: ......... 5 * 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: ............................. 0 (0) {} * Number of discrete states: .................... 6 (6) {TretDis.nextTimeEvent, TretDis.nextTimeEventScaled, TSouOut.nextTimeEventScaled, TSouOut.nextTimeEvent, TSouIn.nextTimeEventScaled, TSouIn.nextTimeEvent} * Number of clocked states: ..................... 0 (0) {NOT YET AVAILABLE} * Number of discrete variables: ................. 23 (23) {AgentPump.swi.u2, AgentPump.hys.y, AgentPump.hys1.y, $SEV_13, $SEV_12, $SEV_11, $SEV_10, $SEV_9, $SEV_8, $SEV_7, $SEV_6, $SEV_5, $SEV_4, $SEV_3, $SEV_2, $SEV_1, $SEV_0, $TEV_5, $TEV_4, $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: ........... 53 (scalar:53, array:0, 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: ........... 146 (scalar:140, array:3, 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: ........... 146 (scalar:140, array:3, 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.721e-05/0.4342, allocations: 65.12 kB / 1.088 GB, free: 20.32 MB / 0.8419 GB Notification: Performance of SimCode: time 0.003371/0.4376, allocations: 3.643 MB / 1.091 GB, free: 18.84 MB / 0.8419 GB Notification: Performance of Templates: time 0.01065/0.4483, allocations: 6.458 MB / 1.098 GB, free: 18.34 MB / 0.8419 GB make -j1 -f Buildings_latest_Buildings.DHC.Networks.Controls.Examples.AgentPump1PipeExample.makefile (rm -f Buildings_latest_Buildings.DHC.Networks.Controls.Examples.AgentPump1PipeExample.pipe ; mkfifo Buildings_latest_Buildings.DHC.Networks.Controls.Examples.AgentPump1PipeExample.pipe ; head -c 1048576 < Buildings_latest_Buildings.DHC.Networks.Controls.Examples.AgentPump1PipeExample.pipe >> ../files/Buildings_latest_Buildings.DHC.Networks.Controls.Examples.AgentPump1PipeExample.sim & ./Buildings_latest_Buildings.DHC.Networks.Controls.Examples.AgentPump1PipeExample -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.DHC.Networks.Controls.Examples.AgentPump1PipeExample.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.DHC.Networks.Controls.Examples.AgentPump1PipeExample_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_DHC_Networks_Controls_Examples_AgentPump1PipeExample.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.DHC.Networks.Controls.Examples.AgentPump1PipeExample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:time,AgentPump.TSouIn,AgentPump.TSouOut,AgentPump.TSou,AgentPump.TSupDis,AgentPump.TRetDis,AgentPump.y Variables in the result:AgentPump.NetDemBool.h,AgentPump.NetDemBool.have_hysteresis,AgentPump.NetDemBool.lesHys.h,AgentPump.NetDemBool.lesHys.pre_y_start,AgentPump.NetDemBool.lesHys.u2,AgentPump.NetDemBool.pre_y_start,AgentPump.NetDemBool.u2,AgentPump.TRetDis,AgentPump.TSou,AgentPump.TSouIn,AgentPump.TSouOut,AgentPump.TSupDis,AgentPump.Td,AgentPump.Ti,AgentPump.Tsou_negshift.p,AgentPump.Tsou_negshift.u,AgentPump.Tsou_negshift.y,AgentPump.Tsou_posshift.p,AgentPump.Tsou_posshift.u,AgentPump.Tsou_posshift.y,AgentPump.Zero.k,AgentPump.Zero.y,AgentPump.conPIDCoo.Izero.k,AgentPump.conPIDCoo.Izero.y,AgentPump.conPIDCoo.Nd,AgentPump.conPIDCoo.Ni,AgentPump.conPIDCoo.P.k,AgentPump.conPIDCoo.Td,AgentPump.conPIDCoo.Ti,AgentPump.conPIDCoo.addPD.u2,AgentPump.conPIDCoo.addPID.u2,AgentPump.conPIDCoo.assMesYMinMax.u,AgentPump.conPIDCoo.cheYMinMax.k,AgentPump.conPIDCoo.cheYMinMax.y,AgentPump.conPIDCoo.controlError.u1,AgentPump.conPIDCoo.controllerType,AgentPump.conPIDCoo.k,AgentPump.conPIDCoo.lim.uMax,AgentPump.conPIDCoo.lim.uMin,AgentPump.conPIDCoo.r,AgentPump.conPIDCoo.revAct,AgentPump.conPIDCoo.reverseActing,AgentPump.conPIDCoo.uMea_revAct.k,AgentPump.conPIDCoo.uMea_revAct.u,AgentPump.conPIDCoo.uS_revAct.k,AgentPump.conPIDCoo.uS_revAct.u,AgentPump.conPIDCoo.u_s,AgentPump.conPIDCoo.xi_start,AgentPump.conPIDCoo.yMax,AgentPump.conPIDCoo.yMin,AgentPump.conPIDCoo.yd_start,AgentPump.conPIDHea.Izero.k,AgentPump.conPIDHea.Izero.y,AgentPump.conPIDHea.Nd,AgentPump.conPIDHea.Ni,AgentPump.conPIDHea.P.k,AgentPump.conPIDHea.Td,AgentPump.conPIDHea.Ti,AgentPump.conPIDHea.addPD.u2,AgentPump.conPIDHea.addPID.u2,AgentPump.conPIDHea.assMesYMinMax.u,AgentPump.conPIDHea.cheYMinMax.k,AgentPump.conPIDHea.cheYMinMax.y,AgentPump.conPIDHea.controlError.u1,AgentPump.conPIDHea.controllerType,AgentPump.conPIDHea.k,AgentPump.conPIDHea.lim.uMax,AgentPump.conPIDHea.lim.uMin,AgentPump.conPIDHea.r,AgentPump.conPIDHea.revAct,AgentPump.conPIDHea.reverseActing,AgentPump.conPIDHea.uMea_revAct.k,AgentPump.conPIDHea.uS_revAct.k,AgentPump.conPIDHea.uS_revAct.u,AgentPump.conPIDHea.u_s,AgentPump.conPIDHea.xi_start,AgentPump.conPIDHea.yMax,AgentPump.conPIDHea.yMin,AgentPump.conPIDHea.yd_start,AgentPump.controllerType,AgentPump.dTSouSup.u1,AgentPump.dTSouSupCoo.p,AgentPump.dTSouSupHea.p,AgentPump.dToff,AgentPump.gai1.k,AgentPump.h,AgentPump.hys.pre_y_start,AgentPump.hys.uHigh,AgentPump.hys.uLow,AgentPump.hys1.pre_y_start,AgentPump.hys1.uHigh,AgentPump.hys1.uLow,AgentPump.k,AgentPump.swi.y,AgentPump.swi1.u3,AgentPump.swi2.u3,AgentPump.uHighCoo,AgentPump.uHighHea,AgentPump.uLowCoo,AgentPump.uLowHea,AgentPump.y,AgentPump.yPumMax,AgentPump.yPumMin,TSou,TSouIn.columns[1],TSouIn.extrapolation,TSouIn.nout,TSouIn.offset[1],TSouIn.p_offset[1],TSouIn.shiftTime,TSouIn.smoothness,TSouIn.startTime,TSouIn.t_max,TSouIn.t_maxScaled,TSouIn.t_min,TSouIn.t_minScaled,TSouIn.tableOnFile,TSouIn.table[1,1],TSouIn.table[1,2],TSouIn.table[2,1],TSouIn.table[2,2],TSouIn.table[3,1],TSouIn.table[3,2],TSouIn.table[4,1],TSouIn.table[4,2],TSouIn.timeEvents,TSouIn.timeScale,TSouIn.timeScaled,TSouIn.verboseExtrapolation,TSouIn.verboseRead,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,TretDis.columns[1],TretDis.extrapolation,TretDis.nout,TretDis.offset[1],TretDis.p_offset[1],TretDis.shiftTime,TretDis.smoothness,TretDis.startTime,TretDis.t_max,TretDis.t_maxScaled,TretDis.t_min,TretDis.t_minScaled,TretDis.tableOnFile,TretDis.table[1,1],TretDis.table[1,2],TretDis.table[2,1],TretDis.table[2,2],TretDis.table[3,1],TretDis.table[3,2],TretDis.table[4,1],TretDis.table[4,2],TretDis.timeEvents,TretDis.timeScale,TretDis.timeScaled,TretDis.verboseExtrapolation,TretDis.verboseRead,TsupDis.k,TsupDis.y,con2.k,con2.y,time