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 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.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.001072/0.001072, allocations: 107.4 kB / 16.42 MB, free: 6.488 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.001012/0.001012, allocations: 187.2 kB / 17.35 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.106/1.106, allocations: 222.9 MB / 241 MB, free: 15.08 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.18/2.18, allocations: 472.6 MB / 0.7459 GB, free: 0.5078 MB / 0.6075 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.163e-05/1.164e-05, allocations: 2.281 kB / 1.07 GB, free: 9.68 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.DHC.Networks.Controls.Examples.AgentPump1PipeExample): time 0.003867/0.003887, allocations: 3.724 MB / 1.074 GB, free: 5.934 MB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.002196/0.006094, allocations: 1.73 MB / 1.075 GB, free: 4.195 MB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000225/0.006329, allocations: 15.94 kB / 1.075 GB, free: 4.18 MB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 0.0004776/0.006813, allocations: 270.5 kB / 1.076 GB, free: 3.914 MB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 0.0004076/0.00723, allocations: 258.5 kB / 1.076 GB, free: 3.66 MB / 0.8419 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006483/0.007895, allocations: 456.7 kB / 1.076 GB, free: 3.219 MB / 0.8419 GB Notification: Performance of NFFlatten.flatten: time 0.0007654/0.008668, allocations: 1.028 MB / 1.077 GB, free: 2.191 MB / 0.8419 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003904/0.009066, allocations: 345.1 kB / 1.078 GB, free: 1.848 MB / 0.8419 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002933/0.009366, allocations: 358.5 kB / 1.078 GB, free: 1.496 MB / 0.8419 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002649/0.009638, allocations: 342.3 kB / 1.078 GB, free: 1.16 MB / 0.8419 GB Notification: Performance of NFPackage.collectConstants: time 8.598e-05/0.00973, allocations: 76 kB / 1.078 GB, free: 1.086 MB / 0.8419 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001557/0.009893, allocations: 123.9 kB / 1.078 GB, free: 0.9648 MB / 0.8419 GB Notification: Performance of combineBinaries: time 0.3948/0.4047, allocations: 1.111 MB / 1.08 GB, free: 12.48 MB / 0.8419 GB Notification: Performance of replaceArrayConstructors: time 0.0003577/0.4051, allocations: 0.7327 MB / 1.08 GB, free: 12.36 MB / 0.8419 GB Notification: Performance of NFVerifyModel.verify: time 0.0001623/0.4053, allocations: 119.4 kB / 1.08 GB, free: 12.36 MB / 0.8419 GB Notification: Performance of FrontEnd: time 0.0002164/0.4055, allocations: 42.95 kB / 1.08 GB, free: 12.36 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.002053/0.4076, allocations: 3.181 MB / 1.084 GB, free: 11.18 MB / 0.8419 GB Notification: Performance of FunctionAlias: time 0.0001786/0.4078, allocations: 240.4 kB / 1.084 GB, free: 11.14 MB / 0.8419 GB Notification: Performance of Early Inline: time 0.0009261/0.4087, allocations: 1.355 MB / 1.085 GB, free: 10.85 MB / 0.8419 GB Notification: Performance of simplify1: time 9.733e-05/0.4088, allocations: 93.95 kB / 1.085 GB, free: 10.81 MB / 0.8419 GB Notification: Performance of Alias: time 0.002623/0.4114, allocations: 3.107 MB / 1.088 GB, free: 8.961 MB / 0.8419 GB Notification: Performance of simplify2: time 5.659e-05/0.4115, allocations: 58.89 kB / 1.088 GB, free: 8.941 MB / 0.8419 GB Notification: Performance of Detect States: time 0.0002818/0.4118, allocations: 321.9 kB / 1.089 GB, free: 8.73 MB / 0.8419 GB Notification: Performance of Events: time 0.000235/0.412, allocations: 222.9 kB / 1.089 GB, free: 8.609 MB / 0.8419 GB Notification: Performance of Partitioning: time 0.0003216/0.4124, allocations: 385.6 kB / 1.089 GB, free: 8.367 MB / 0.8419 GB Notification: Performance of Causalize: time 0.001344/0.4137, allocations: 1.379 MB / 1.091 GB, free: 7.836 MB / 0.8419 GB Notification: Performance of After Index Reduction Inline: time 0.000687/0.4144, allocations: 0.9377 MB / 1.091 GB, free: 7.242 MB / 0.8419 GB Notification: Performance of Inline: time 0.004495/0.4189, allocations: 2.687 MB / 1.094 GB, free: 5.703 MB / 0.8419 GB Notification: Performance of Partitioning: time 0.0001542/0.4191, allocations: 157.5 kB / 1.094 GB, free: 5.598 MB / 0.8419 GB Notification: Performance of Cleanup: time 0.0002056/0.4193, allocations: 263.5 kB / 1.094 GB, free: 5.438 MB / 0.8419 GB Notification: Performance of Causalize: time 0.008545/0.4278, allocations: 8.491 MB / 1.103 GB, free: 2.199 MB / 0.8419 GB Notification: Performance of Tearing: time 3.002e-05/0.4279, allocations: 1.156 kB / 1.103 GB, free: 2.199 MB / 0.8419 GB Notification: Performance of Initialization: time 9.62e-07/0.4279, allocations: 0 / 1.103 GB, free: 2.199 MB / 0.8419 GB Notification: Performance of Tearing: time 1.029e-05/0.4279, allocations: 1.219 kB / 1.103 GB, free: 2.199 MB / 0.8419 GB Notification: Performance of Categorize: time 1.777e-05/0.4279, allocations: 6.406 kB / 1.103 GB, free: 2.195 MB / 0.8419 GB Notification: Performance of Solve: time 0.0007352/0.4287, allocations: 436.7 kB / 1.103 GB, free: 2.055 MB / 0.8419 GB Notification: Performance of Jacobian: time 3.296e-06/0.4287, allocations: 0 / 1.103 GB, free: 2.055 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 6.048e-05/0.4287, allocations: 86.84 kB / 1.103 GB, free: 1.984 MB / 0.8419 GB Notification: Performance of SimCode: time 0.003605/0.4323, allocations: 3.686 MB / 1.107 GB, free: 88 kB / 0.8419 GB Notification: Performance of Templates: time 0.01085/0.4432, allocations: 6.444 MB / 1.113 GB, free: 15.57 MB / 0.8575 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