Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_Buildings.Controls.OBC.CDL.Continuous.Validation.Hysteresis.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 8.1.4-maint.8.1.x/package.mo", uses=false) Using package Buildings with version 8.1.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/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.OBC.CDL.Continuous.Validation.Hysteresis,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Controls.OBC.CDL.Continuous.Validation.Hysteresis") translateModel(Buildings.Controls.OBC.CDL.Continuous.Validation.Hysteresis,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Controls.OBC.CDL.Continuous.Validation.Hysteresis") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001551/0.001551, allocations: 103.3 kB / 16.38 MB, free: 6.391 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.001593/0.001593, allocations: 193.5 kB / 17.32 MB, free: 5.766 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.402/1.402, allocations: 205.1 MB / 223.2 MB, free: 12.25 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo): time 1.729/1.729, allocations: 292.3 MB / 0.5496 GB, free: 17.62 MB / 462.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.38e-05/2.389e-05, allocations: 6.219 kB / 0.6729 GB, free: 5.91 MB / 0.545 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Continuous.Validation.Hysteresis): time 0.002146/0.002185, allocations: 1.041 MB / 0.6739 GB, free: 4.863 MB / 0.545 GB Notification: Performance of NFInst.instExpressions: time 0.001602/0.0038, allocations: 1.316 MB / 0.6752 GB, free: 3.531 MB / 0.545 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.21e-05/0.003873, allocations: 0 / 0.6752 GB, free: 3.531 MB / 0.545 GB Notification: Performance of NFTyping.typeComponents: time 4.043e-05/0.00392, allocations: 15.75 kB / 0.6752 GB, free: 3.516 MB / 0.545 GB Notification: Performance of NFTyping.typeBindings: time 9.835e-05/0.004025, allocations: 27.72 kB / 0.6752 GB, free: 3.488 MB / 0.545 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006496/0.004688, allocations: 275.6 kB / 0.6755 GB, free: 3.227 MB / 0.545 GB Notification: Performance of NFFlatten.flatten: time 0.0003286/0.005025, allocations: 355.3 kB / 0.6758 GB, free: 2.879 MB / 0.545 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001237/0.005155, allocations: 45.67 kB / 0.6759 GB, free: 2.832 MB / 0.545 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001404/0.005302, allocations: 127.7 kB / 0.676 GB, free: 2.707 MB / 0.545 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001302/0.005438, allocations: 123.4 kB / 0.6761 GB, free: 2.586 MB / 0.545 GB Notification: Performance of NFPackage.collectConstants: time 4.448e-05/0.005488, allocations: 32 kB / 0.6761 GB, free: 2.555 MB / 0.545 GB Notification: Performance of NFFlatten.collectFunctions: time 8.089e-05/0.005575, allocations: 47.98 kB / 0.6762 GB, free: 2.508 MB / 0.545 GB Notification: Performance of combineBinaries: time 0.0002238/0.005805, allocations: 320.8 kB / 0.6765 GB, free: 2.191 MB / 0.545 GB Notification: Performance of replaceArrayConstructors: time 8.462e-05/0.005896, allocations: 169.5 kB / 0.6766 GB, free: 2.023 MB / 0.545 GB Notification: Performance of NFVerifyModel.verify: time 4.782e-05/0.00595, allocations: 35.88 kB / 0.6767 GB, free: 1.988 MB / 0.545 GB Notification: Performance of FrontEnd: time 1.985e-05/0.005975, allocations: 7.938 kB / 0.6767 GB, free: 1.98 MB / 0.545 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 19 (19) * Number of variables: 19 (19) Notification: Performance of Bindings: time 0.000924/0.006904, allocations: 1.054 MB / 0.6777 GB, free: 0.8203 MB / 0.545 GB Notification: Performance of FunctionAlias: time 0.0001242/0.007033, allocations: 103.8 kB / 0.6778 GB, free: 0.7188 MB / 0.545 GB Notification: Performance of Early Inline: time 0.0007605/0.007803, allocations: 0.7928 MB / 0.6786 GB, free: 15.89 MB / 0.5606 GB Notification: Performance of simplify1: time 2.62e-05/0.007838, allocations: 27.86 kB / 0.6786 GB, free: 15.87 MB / 0.5606 GB Notification: Performance of Alias: time 0.0006644/0.008508, allocations: 0.5857 MB / 0.6792 GB, free: 15.2 MB / 0.5606 GB Notification: Performance of simplify2: time 3.509e-05/0.008553, allocations: 23.95 kB / 0.6792 GB, free: 15.17 MB / 0.5606 GB Notification: Performance of Events: time 0.0005315/0.009091, allocations: 452.2 kB / 0.6796 GB, free: 14.73 MB / 0.5606 GB Notification: Performance of Detect States: time 0.0004105/0.00951, allocations: 415.8 kB / 0.68 GB, free: 14.31 MB / 0.5606 GB Notification: Performance of Partitioning: time 0.0001714/0.00969, allocations: 172 kB / 0.6802 GB, free: 14.1 MB / 0.5606 GB Notification: Performance of Causalize: time 0.0006813/0.01038, allocations: 0.7133 MB / 0.6809 GB, free: 13.34 MB / 0.5606 GB Notification: Performance of After Index Reduction Inline: time 0.000643/0.01103, allocations: 0.7244 MB / 0.6816 GB, free: 12.59 MB / 0.5606 GB Notification: Performance of Inline: time 0.001046/0.01208, allocations: 1.104 MB / 0.6827 GB, free: 11.46 MB / 0.5606 GB Notification: Performance of Partitioning: time 5.099e-05/0.01215, allocations: 42.38 kB / 0.6827 GB, free: 11.41 MB / 0.5606 GB Notification: Performance of Cleanup: time 2.792e-05/0.01218, allocations: 27.97 kB / 0.6827 GB, free: 11.38 MB / 0.5606 GB Warning: NBResolveSingularities.balanceInitialization reports an overdetermined initialization! Checking for consistency is not yet supported, following equations had to be removed: [ALGO] (3) ($RES_SIM_0) [----] pul1.booPul.t0 := if $FUN_3 + pul1.booPul.period * integer(time / pul1.booPul.period) > 0.0 then 1e-6 * floor(0.5 + 1e6 * ($FUN_3 + pul1.booPul.period * integer(time / pul1.booPul.period))) else 1e-6 * ceil((-0.5) + 1e6 * ($FUN_3 + pul1.booPul.period * integer(time / pul1.booPul.period))); [----] pul1.booPul.t1 := pul1.booPul.t0 + pul1.booPul.width * pul1.booPul.period; [----] if time + pul1.booPul.period < pul1.booPul.t1 then [----] pul1.booPul.t0 := pul1.booPul.t0 - pul1.booPul.period; [----] pul1.booPul.t1 := pul1.booPul.t1 - pul1.booPul.period; [----] end if; [----] if time >= pul1.booPul.t1 then [----] pul1.booPul.t0 := pul1.booPul.t0 + pul1.booPul.period; [----] elseif time < pul1.booPul.t0 then [----] pul1.booPul.t1 := pul1.booPul.t1 - pul1.booPul.period; [----] end if; [----] if pul1.booPul.t0 < pul1.booPul.t1 then [----] assert(pul1.booPul.t0 <= time and time < pul1.booPul.t1, "Hysteresis.pul1.booPul: Implementation error in initial time calculation: t0 = " + String(pul1.booPul.t0, 6, 0, true) + ", t1 = " + String(pul1.booPul.t1, 6, 0, true) + ", period = " + String(pul1.booPul.period, 6, 0, true) + ", time = " + String(time, 6, 0, true), AssertionLevel.error); [----] pul1.booPul.y := time >= pul1.booPul.t0 and time < pul1.booPul.t1; [----] elseif true then [----] assert(pul1.booPul.t1 <= time and time < pul1.booPul.t0, "Hysteresis.pul1.booPul: Implementation error in initial time calculation: t0 = " + String(pul1.booPul.t0, 6, 0, true) + ", t1 = " + String(pul1.booPul.t1, 6, 0, true) + ", period = " + String(pul1.booPul.period, 6, 0, true) + ", time = " + String(time, 6, 0, true), AssertionLevel.error); [----] pul1.booPul.y := not (time >= pul1.booPul.t1 and time < pul1.booPul.t0); [----] end if; slice: {2}; [ALGO] (3) ($RES_SIM_1) [----] pul.booPul.t0 := if $FUN_2 + pul.booPul.period * integer(time / pul.booPul.period) > 0.0 then 1e-6 * floor(0.5 + 1e6 * ($FUN_2 + pul.booPul.period * integer(time / pul.booPul.period))) else 1e-6 * ceil((-0.5) + 1e6 * ($FUN_2 + pul.booPul.period * integer(time / pul.booPul.period))); [----] pul.booPul.t1 := pul.booPul.t0 + pul.booPul.width * pul.booPul.period; [----] if time + pul.booPul.period < pul.booPul.t1 then [----] pul.booPul.t0 := pul.booPul.t0 - pul.booPul.period; [----] pul.booPul.t1 := pul.booPul.t1 - pul.booPul.period; [----] end if; [----] if time >= pul.booPul.t1 then [----] pul.booPul.t0 := pul.booPul.t0 + pul.booPul.period; [----] elseif time < pul.booPul.t0 then [----] pul.booPul.t1 := pul.booPul.t1 - pul.booPul.period; [----] end if; [----] if pul.booPul.t0 < pul.booPul.t1 then [----] assert(pul.booPul.t0 <= time and time < pul.booPul.t1, "Hysteresis.pul.booPul: Implementation error in initial time calculation: t0 = " + String(pul.booPul.t0, 6, 0, true) + ", t1 = " + String(pul.booPul.t1, 6, 0, true) + ", period = " + String(pul.booPul.period, 6, 0, true) + ", time = " + String(time, 6, 0, true), AssertionLevel.error); [----] pul.booPul.y := time >= pul.booPul.t0 and time < pul.booPul.t1; [----] elseif true then [----] assert(pul.booPul.t1 <= time and time < pul.booPul.t0, "Hysteresis.pul.booPul: Implementation error in initial time calculation: t0 = " + String(pul.booPul.t0, 6, 0, true) + ", t1 = " + String(pul.booPul.t1, 6, 0, true) + ", period = " + String(pul.booPul.period, 6, 0, true) + ", time = " + String(time, 6, 0, true), AssertionLevel.error); [----] pul.booPul.y := not (time >= pul.booPul.t1 and time < pul.booPul.t0); [----] end if; slice: {2}; [SCAL] (1) pul1.booPul.width = pul1.width ($RES_BND_50) slice: {}; [SCAL] (1) pul.booPul.width = pul.width ($RES_BND_45) slice: {}; Error: Internal error NBResolveSingularities.balanceInitialization failed because following non-fixable variables could not be solved: [PRMT] (1) protected final parameter Real pul.booPul.width = pul.width (fixed = true, min = 1e-60, max = 1.0), [PRMT] (1) protected final parameter Real pul1.booPul.width = pul1.width (fixed = true, min = 1e-60, max = 1.0) Following equations were created by fixing variables: [SCAL] (1) hysteresis2.u = $START.hysteresis2.u ($RES_SRT_66) [SCAL] (1) hysteresis1.u = $START.hysteresis1.u ($RES_SRT_65) Use -d=bltdump for more verbose debug output. Error: Internal error NBInitialization.main failed to apply modules!