Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_1.6_Buildings.Controls.SetPoints.Examples.OccupancySchedule.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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 1.6.0+build.1/package.mo", uses=false) Using package Buildings with version 1.6 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 1.6.0+build.1/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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.Controls.SetPoints.Examples.OccupancySchedule,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_1.6_Buildings.Controls.SetPoints.Examples.OccupancySchedule") translateModel(Buildings.Controls.SetPoints.Examples.OccupancySchedule,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_1.6_Buildings.Controls.SetPoints.Examples.OccupancySchedule") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00114/0.00114, allocations: 110.3 kB / 16.42 MB, free: 6.508 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.001155/0.001155, allocations: 191.1 kB / 17.36 MB, free: 5.75 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.309/1.309, allocations: 205.1 MB / 223.2 MB, free: 12.23 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 1.6.0+build.1/package.mo): time 0.4224/0.4224, allocations: 95.47 MB / 366.1 MB, free: 12.17 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.945e-05/1.946e-05, allocations: 2.281 kB / 0.5042 GB, free: 11.96 MB / 398.1 MB Notification: Performance of NFInst.instantiate(Buildings.Controls.SetPoints.Examples.OccupancySchedule): time 0.002072/0.0021, allocations: 1.435 MB / 0.5056 GB, free: 10.5 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.000643/0.002756, allocations: 395 kB / 0.506 GB, free: 10.12 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.543e-05/0.002802, allocations: 0 / 0.506 GB, free: 10.12 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 6.849e-05/0.002876, allocations: 11.86 kB / 0.506 GB, free: 10.11 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001535/0.003043, allocations: 23.84 kB / 0.506 GB, free: 10.08 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00053/0.00358, allocations: 238.7 kB / 0.5062 GB, free: 9.855 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003432/0.003932, allocations: 375.5 kB / 0.5066 GB, free: 9.488 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.378e-05/0.003983, allocations: 4.234 kB / 0.5066 GB, free: 9.48 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001598/0.004148, allocations: 139.8 kB / 0.5067 GB, free: 9.344 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001496/0.004304, allocations: 111.7 kB / 0.5068 GB, free: 9.234 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 4.443e-05/0.004355, allocations: 28 kB / 0.5069 GB, free: 9.207 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001023/0.004463, allocations: 51.98 kB / 0.5069 GB, free: 9.156 MB / 398.1 MB Notification: Performance of combineBinaries: time 0.0002019/0.004672, allocations: 246.2 kB / 0.5071 GB, free: 8.914 MB / 398.1 MB Notification: Performance of replaceArrayConstructors: time 3.697e-05/0.004716, allocations: 82.77 kB / 0.5072 GB, free: 8.832 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 5.554e-05/0.004777, allocations: 31.94 kB / 0.5073 GB, free: 8.801 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.448e-05/0.004795, allocations: 7.938 kB / 0.5073 GB, free: 8.793 MB / 398.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 20 (4) * Number of variables: 20 (20) Notification: Performance of Bindings: time 0.0008872/0.005687, allocations: 0.87 MB / 0.5081 GB, free: 7.82 MB / 398.1 MB Notification: Performance of FunctionAlias: time 0.0002189/0.005914, allocations: 183.2 kB / 0.5083 GB, free: 7.645 MB / 398.1 MB Notification: Performance of Early Inline: time 0.0007496/0.006671, allocations: 0.8052 MB / 0.5091 GB, free: 6.809 MB / 398.1 MB Notification: Performance of simplify1: time 1.184e-05/0.00669, allocations: 3.984 kB / 0.5091 GB, free: 6.805 MB / 398.1 MB Notification: Performance of Alias: time 0.0001142/0.00681, allocations: 109.7 kB / 0.5092 GB, free: 6.66 MB / 398.1 MB Notification: Performance of simplify2: time 9.488e-06/0.006825, allocations: 11.97 kB / 0.5092 GB, free: 6.648 MB / 398.1 MB Notification: Performance of Events: time 0.0003859/0.007215, allocations: 240.1 kB / 0.5094 GB, free: 6.414 MB / 398.1 MB Notification: Performance of Detect States: time 0.0004959/0.007719, allocations: 0.4918 MB / 0.5099 GB, free: 5.906 MB / 398.1 MB Notification: Performance of Partitioning: time 0.000198/0.007926, allocations: 176.4 kB / 0.5101 GB, free: 5.703 MB / 398.1 MB Error: Internal error NBResolveSingularities.noIndexReduction failed. (4|4) Unmatched Variables *************************** [DISC] (1) protected Integer occSchDay.nexStoInd slice: {} [ALGB] (1) Real occSchDay.tNexNonOcc slice: {} [DISC] (1) protected Integer occSchDay.nexStaInd slice: {} [ALGB] (1) Real occSchDay.tNexOcc slice: {} (1|4) Unmatched Equations *************************** [ALGO] (9) ($RES_SIM_3) [----] when time >= $PRE.occSchDay.tOcc then [----] occSchDay.nexStaInd := occSchDay.nexStaInd + 2; [----] occSchDay.occupied := not occSchDay.occupied; [----] if occSchDay.nexStaInd > 2 then [----] occSchDay.nexStaInd := if occSchDay.firstEntryOccupied then 1 else 2; [----] occSchDay.iPerSta := occSchDay.iPerSta + 1; [----] end if; [----] occSchDay.tOcc := occSchDay.occupancy[occSchDay.nexStaInd] + occSchDay.iPerSta * occSchDay.period; [----] end when; [----] when time >= $PRE.occSchDay.tNonOcc then [----] occSchDay.nexStoInd := occSchDay.nexStoInd + 2; [----] occSchDay.occupied := not occSchDay.occupied; [----] if occSchDay.nexStoInd > 2 then [----] occSchDay.nexStoInd := if occSchDay.firstEntryOccupied then 2 else 1; [----] occSchDay.iPerSto := occSchDay.iPerSto + 1; [----] end if; [----] occSchDay.tNonOcc := occSchDay.occupancy[occSchDay.nexStoInd] + occSchDay.iPerSto * occSchDay.period; [----] end when; [----] occSchDay.tNexOcc := occSchDay.tOcc - time; [----] occSchDay.tNexNonOcc := occSchDay.tNonOcc - time; [----] assert(occSchDay.tNexOcc > (-0.001) and occSchDay.tNexOcc < (occSchDay.period + 0.001), "tNexOcc must be non-zero and smaller than period. Received tNexOcc = " + String(occSchDay.tNexOcc, 6, 0, true), AssertionLevel.error); [----] assert(occSchDay.tNexNonOcc > (-0.001) and occSchDay.tNexOcc < (occSchDay.period + 0.001), "tNexNonOcc must be non-zero and smaller than period. Received tNexNonOcc = " + String(occSchDay.tNexNonOcc, 6, 0, true), AssertionLevel.error); slice: {5, 6, 7, 8}