Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_Buildings.Controls.OBC.CDL.Integers.Sources.Validation.Pulse.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.Integers.Sources.Validation.Pulse,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Controls.OBC.CDL.Integers.Sources.Validation.Pulse") translateModel(Buildings.Controls.OBC.CDL.Integers.Sources.Validation.Pulse,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Controls.OBC.CDL.Integers.Sources.Validation.Pulse") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001184/0.001184, allocations: 104.9 kB / 16.37 MB, free: 6.363 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.001144/0.001144, allocations: 195.1 kB / 17.31 MB, free: 5.91 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.568/1.568, allocations: 205.1 MB / 223.2 MB, free: 12.27 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.817/1.817, allocations: 292.3 MB / 0.5496 GB, free: 17.56 MB / 462.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.826e-05/2.839e-05, allocations: 9.875 kB / 0.6729 GB, free: 5.883 MB / 0.545 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Integers.Sources.Validation.Pulse): time 0.002145/0.002186, allocations: 0.9773 MB / 0.6738 GB, free: 4.902 MB / 0.545 GB Notification: Performance of NFInst.instExpressions: time 0.00176/0.003958, allocations: 1.441 MB / 0.6752 GB, free: 3.445 MB / 0.545 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.03e-05/0.004029, allocations: 4 kB / 0.6752 GB, free: 3.441 MB / 0.545 GB Notification: Performance of NFTyping.typeComponents: time 4.832e-05/0.004083, allocations: 15.75 kB / 0.6752 GB, free: 3.426 MB / 0.545 GB Notification: Performance of NFTyping.typeBindings: time 0.0001253/0.004213, allocations: 51.56 kB / 0.6753 GB, free: 3.375 MB / 0.545 GB Notification: Performance of NFTyping.typeClassSections: time 0.000993/0.005225, allocations: 446.7 kB / 0.6757 GB, free: 2.949 MB / 0.545 GB Notification: Performance of NFFlatten.flatten: time 0.0005352/0.005766, allocations: 0.542 MB / 0.6763 GB, free: 2.406 MB / 0.545 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001733/0.005946, allocations: 41.67 kB / 0.6763 GB, free: 2.363 MB / 0.545 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001793/0.006133, allocations: 183.6 kB / 0.6765 GB, free: 2.184 MB / 0.545 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001973/0.006335, allocations: 163.5 kB / 0.6766 GB, free: 2.023 MB / 0.545 GB Notification: Performance of NFPackage.collectConstants: time 6.392e-05/0.006407, allocations: 55.94 kB / 0.6767 GB, free: 1.969 MB / 0.545 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001203/0.006532, allocations: 63.94 kB / 0.6767 GB, free: 1.906 MB / 0.545 GB Notification: Performance of combineBinaries: time 0.0002936/0.006832, allocations: 412.3 kB / 0.6771 GB, free: 1.5 MB / 0.545 GB Notification: Performance of replaceArrayConstructors: time 9.906e-05/0.006938, allocations: 189.1 kB / 0.6773 GB, free: 1.312 MB / 0.545 GB Notification: Performance of NFVerifyModel.verify: time 6.671e-05/0.007011, allocations: 43.94 kB / 0.6774 GB, free: 1.27 MB / 0.545 GB Notification: Performance of FrontEnd: time 3.301e-05/0.007049, allocations: 11.88 kB / 0.6774 GB, free: 1.258 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: 16 (16) * Number of variables: 16 (16) Notification: Performance of Bindings: time 0.001249/0.008304, allocations: 1.298 MB / 0.6786 GB, free: 15.86 MB / 0.5606 GB Notification: Performance of FunctionAlias: time 0.0002413/0.008551, allocations: 183.6 kB / 0.6788 GB, free: 15.68 MB / 0.5606 GB Notification: Performance of Early Inline: time 0.001373/0.009932, allocations: 1.121 MB / 0.6799 GB, free: 14.53 MB / 0.5606 GB Notification: Performance of simplify1: time 1.898e-05/0.009962, allocations: 19.91 kB / 0.6799 GB, free: 14.51 MB / 0.5606 GB Notification: Performance of Alias: time 0.0009304/0.0109, allocations: 0.6953 MB / 0.6806 GB, free: 13.72 MB / 0.5606 GB Notification: Performance of simplify2: time 1.195e-05/0.01092, allocations: 15.97 kB / 0.6806 GB, free: 13.7 MB / 0.5606 GB Notification: Performance of Events: time 0.0007706/0.01169, allocations: 0.6279 MB / 0.6812 GB, free: 13.07 MB / 0.5606 GB Notification: Performance of Detect States: time 0.000665/0.01237, allocations: 0.623 MB / 0.6818 GB, free: 12.44 MB / 0.5606 GB Notification: Performance of Partitioning: time 0.0001191/0.0125, allocations: 104.5 kB / 0.6819 GB, free: 12.3 MB / 0.5606 GB Notification: Performance of Causalize: time 0.0005567/0.01306, allocations: 0.4896 MB / 0.6824 GB, free: 11.79 MB / 0.5606 GB Notification: Performance of After Index Reduction Inline: time 0.0008308/0.0139, allocations: 0.8796 MB / 0.6833 GB, free: 10.88 MB / 0.5606 GB Notification: Performance of Inline: time 0.001496/0.01542, allocations: 1.458 MB / 0.6847 GB, free: 9.387 MB / 0.5606 GB Notification: Performance of Partitioning: time 5.946e-05/0.01549, allocations: 58.36 kB / 0.6848 GB, free: 9.32 MB / 0.5606 GB Notification: Performance of Cleanup: time 3.415e-05/0.01553, allocations: 31.89 kB / 0.6848 GB, free: 9.289 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) [----] pul.booPul.t0 := if $FUN_4 + pul.booPul.period * integer(time / pul.booPul.period) > 0.0 then 1e-6 * floor(0.5 + 1e6 * ($FUN_4 + pul.booPul.period * integer(time / pul.booPul.period))) else 1e-6 * ceil((-0.5) + 1e6 * ($FUN_4 + 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, "Pulse.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, "Pulse.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}; [ALGO] (3) ($RES_SIM_1) [----] pul2.booPul.t0 := if $FUN_3 + pul2.booPul.period * integer(time / pul2.booPul.period) > 0.0 then 1e-6 * floor(0.5 + 1e6 * ($FUN_3 + pul2.booPul.period * integer(time / pul2.booPul.period))) else 1e-6 * ceil((-0.5) + 1e6 * ($FUN_3 + pul2.booPul.period * integer(time / pul2.booPul.period))); [----] pul2.booPul.t1 := pul2.booPul.t0 + pul2.booPul.width * pul2.booPul.period; [----] if time + pul2.booPul.period < pul2.booPul.t1 then [----] pul2.booPul.t0 := pul2.booPul.t0 - pul2.booPul.period; [----] pul2.booPul.t1 := pul2.booPul.t1 - pul2.booPul.period; [----] end if; [----] if time >= pul2.booPul.t1 then [----] pul2.booPul.t0 := pul2.booPul.t0 + pul2.booPul.period; [----] elseif time < pul2.booPul.t0 then [----] pul2.booPul.t1 := pul2.booPul.t1 - pul2.booPul.period; [----] end if; [----] if pul2.booPul.t0 < pul2.booPul.t1 then [----] assert(pul2.booPul.t0 <= time and time < pul2.booPul.t1, "Pulse.pul2.booPul: Implementation error in initial time calculation: t0 = " + String(pul2.booPul.t0, 6, 0, true) + ", t1 = " + String(pul2.booPul.t1, 6, 0, true) + ", period = " + String(pul2.booPul.period, 6, 0, true) + ", time = " + String(time, 6, 0, true), AssertionLevel.error); [----] pul2.booPul.y := time >= pul2.booPul.t0 and time < pul2.booPul.t1; [----] elseif true then [----] assert(pul2.booPul.t1 <= time and time < pul2.booPul.t0, "Pulse.pul2.booPul: Implementation error in initial time calculation: t0 = " + String(pul2.booPul.t0, 6, 0, true) + ", t1 = " + String(pul2.booPul.t1, 6, 0, true) + ", period = " + String(pul2.booPul.period, 6, 0, true) + ", time = " + String(time, 6, 0, true), AssertionLevel.error); [----] pul2.booPul.y := not (time >= pul2.booPul.t1 and time < pul2.booPul.t0); [----] end if; slice: {2}; [ALGO] (3) ($RES_SIM_2) [----] pul1.booPul.t0 := if $FUN_2 + pul1.booPul.period * integer(time / pul1.booPul.period) > 0.0 then 1e-6 * floor(0.5 + 1e6 * ($FUN_2 + pul1.booPul.period * integer(time / pul1.booPul.period))) else 1e-6 * ceil((-0.5) + 1e6 * ($FUN_2 + 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, "Pulse.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, "Pulse.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_3) [----] pul3.booPul.t0 := if $FUN_1 + pul3.booPul.period * integer(time / pul3.booPul.period) > 0.0 then 1e-6 * floor(0.5 + 1e6 * ($FUN_1 + pul3.booPul.period * integer(time / pul3.booPul.period))) else 1e-6 * ceil((-0.5) + 1e6 * ($FUN_1 + pul3.booPul.period * integer(time / pul3.booPul.period))); [----] pul3.booPul.t1 := pul3.booPul.t0 + pul3.booPul.width * pul3.booPul.period; [----] if time + pul3.booPul.period < pul3.booPul.t1 then [----] pul3.booPul.t0 := pul3.booPul.t0 - pul3.booPul.period; [----] pul3.booPul.t1 := pul3.booPul.t1 - pul3.booPul.period; [----] end if; [----] if time >= pul3.booPul.t1 then [----] pul3.booPul.t0 := pul3.booPul.t0 + pul3.booPul.period; [----] elseif time < pul3.booPul.t0 then [----] pul3.booPul.t1 := pul3.booPul.t1 - pul3.booPul.period; [----] end if; [----] if pul3.booPul.t0 < pul3.booPul.t1 then [----] assert(pul3.booPul.t0 <= time and time < pul3.booPul.t1, "Pulse.pul3.booPul: Implementation error in initial time calculation: t0 = " + String(pul3.booPul.t0, 6, 0, true) + ", t1 = " + String(pul3.booPul.t1, 6, 0, true) + ", period = " + String(pul3.booPul.period, 6, 0, true) + ", time = " + String(time, 6, 0, true), AssertionLevel.error); [----] pul3.booPul.y := time >= pul3.booPul.t0 and time < pul3.booPul.t1; [----] elseif true then [----] assert(pul3.booPul.t1 <= time and time < pul3.booPul.t0, "Pulse.pul3.booPul: Implementation error in initial time calculation: t0 = " + String(pul3.booPul.t0, 6, 0, true) + ", t1 = " + String(pul3.booPul.t1, 6, 0, true) + ", period = " + String(pul3.booPul.period, 6, 0, true) + ", time = " + String(time, 6, 0, true), AssertionLevel.error); [----] pul3.booPul.y := not (time >= pul3.booPul.t1 and time < pul3.booPul.t0); [----] end if; slice: {2}; [SCAL] (1) pul.booPul.width = pul.width ($RES_BND_47) slice: {}; [SCAL] (1) pul2.booPul.width = pul2.width ($RES_BND_42) slice: {}; [SCAL] (1) pul1.booPul.width = pul1.width ($RES_BND_37) slice: {}; [SCAL] (1) pul3.booPul.width = pul3.width ($RES_BND_32) slice: {}; Error: Internal error NBResolveSingularities.balanceInitialization failed because following non-fixable variables could not be solved: [PRMT] (1) protected final parameter Real pul3.booPul.width = pul3.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), [PRMT] (1) protected final parameter Real pul2.booPul.width = pul2.width (fixed = true, min = 1e-60, max = 1.0), [PRMT] (1) protected final parameter Real pul.booPul.width = pul.width (fixed = true, min = 1e-60, max = 1.0) Following equations were created by fixing variables: [SCAL] (1) $PRE.pul.booPul.y = $START.pul.booPul.y ($RES_SRT_75) [SCAL] (1) $PRE.pul2.booPul.y = $START.pul2.booPul.y ($RES_SRT_74) [SCAL] (1) $PRE.pul1.booPul.y = $START.pul1.booPul.y ($RES_SRT_73) [SCAL] (1) $PRE.pul3.booPul.y = $START.pul3.booPul.y ($RES_SRT_72) Use -d=bltdump for more verbose debug output. Error: Internal error NBInitialization.main failed to apply modules!