Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_Buildings.Controls.OBC.CDL.Routing.Validation.RealExtractSignal.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.Routing.Validation.RealExtractSignal,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Controls.OBC.CDL.Routing.Validation.RealExtractSignal") translateModel(Buildings.Controls.OBC.CDL.Routing.Validation.RealExtractSignal,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Controls.OBC.CDL.Routing.Validation.RealExtractSignal") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001332/0.001332, allocations: 110 kB / 16.37 MB, free: 5.84 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.001236/0.001236, allocations: 192.9 kB / 17.31 MB, free: 5.492 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.417/1.417, allocations: 205.1 MB / 223.2 MB, free: 12.26 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.744/1.744, allocations: 292.3 MB / 0.5496 GB, free: 17.45 MB / 462.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.44e-05/3.447e-05, allocations: 2.281 kB / 0.6729 GB, free: 5.898 MB / 0.545 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Routing.Validation.RealExtractSignal): time 0.002709/0.002762, allocations: 0.9925 MB / 0.6738 GB, free: 4.906 MB / 0.545 GB Notification: Performance of NFInst.instExpressions: time 0.002297/0.005075, allocations: 1.281 MB / 0.6751 GB, free: 3.609 MB / 0.545 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.221e-05/0.005181, allocations: 4 kB / 0.6751 GB, free: 3.605 MB / 0.545 GB Notification: Performance of NFTyping.typeComponents: time 0.0001436/0.00533, allocations: 15.8 kB / 0.6751 GB, free: 3.59 MB / 0.545 GB Notification: Performance of NFTyping.typeBindings: time 9.925e-05/0.005437, allocations: 35.66 kB / 0.6751 GB, free: 3.555 MB / 0.545 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008205/0.006294, allocations: 266 kB / 0.6754 GB, free: 3.301 MB / 0.545 GB Notification: Performance of NFFlatten.flatten: time 0.0004167/0.006719, allocations: 351.3 kB / 0.6757 GB, free: 2.957 MB / 0.545 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001844/0.006911, allocations: 49.53 kB / 0.6758 GB, free: 2.906 MB / 0.545 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001774/0.007095, allocations: 119.7 kB / 0.6759 GB, free: 2.789 MB / 0.545 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002014/0.007304, allocations: 123.5 kB / 0.676 GB, free: 2.668 MB / 0.545 GB Notification: Performance of NFPackage.collectConstants: time 5.307e-05/0.007368, allocations: 36 kB / 0.676 GB, free: 2.633 MB / 0.545 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001051/0.00748, allocations: 43.98 kB / 0.6761 GB, free: 2.59 MB / 0.545 GB Notification: Performance of combineBinaries: time 0.0002585/0.007746, allocations: 301.1 kB / 0.6764 GB, free: 2.293 MB / 0.545 GB Notification: Performance of replaceArrayConstructors: time 9.243e-05/0.007845, allocations: 149.8 kB / 0.6765 GB, free: 2.145 MB / 0.545 GB Notification: Performance of NFVerifyModel.verify: time 6.504e-05/0.007916, allocations: 31.88 kB / 0.6765 GB, free: 2.113 MB / 0.545 GB Notification: Performance of FrontEnd: time 2.856e-05/0.00795, allocations: 4 kB / 0.6765 GB, free: 2.109 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 (17) * Number of variables: 19 (13) Notification: Performance of Bindings: time 0.001156/0.009111, allocations: 0.9959 MB / 0.6775 GB, free: 1.008 MB / 0.545 GB Notification: Performance of FunctionAlias: time 0.0001505/0.009268, allocations: 103.8 kB / 0.6776 GB, free: 0.9062 MB / 0.545 GB Notification: Performance of Early Inline: time 0.0009424/0.01022, allocations: 0.7653 MB / 0.6784 GB, free: 116 kB / 0.545 GB Notification: Performance of simplify1: time 2.748e-05/0.01026, allocations: 23.97 kB / 0.6784 GB, free: 92 kB / 0.545 GB Notification: Performance of Alias: time 0.0005762/0.01084, allocations: 466.7 kB / 0.6788 GB, free: 15.57 MB / 0.5606 GB Notification: Performance of simplify2: time 2.179e-05/0.01087, allocations: 15.98 kB / 0.6788 GB, free: 15.55 MB / 0.5606 GB Notification: Performance of Events: time 0.0005166/0.01139, allocations: 424.7 kB / 0.6792 GB, free: 15.14 MB / 0.5606 GB Notification: Performance of Detect States: time 0.0004049/0.01181, allocations: 366.5 kB / 0.6796 GB, free: 14.77 MB / 0.5606 GB Notification: Performance of Partitioning: time 0.0001413/0.01196, allocations: 111.5 kB / 0.6797 GB, free: 14.65 MB / 0.5606 GB Notification: Performance of Causalize: time 0.0007369/0.0127, allocations: 0.6502 MB / 0.6803 GB, free: 14 MB / 0.5606 GB Notification: Performance of After Index Reduction Inline: time 0.0005934/0.0133, allocations: 0.6523 MB / 0.681 GB, free: 13.32 MB / 0.5606 GB Notification: Performance of Inline: time 0.001076/0.01439, allocations: 1.079 MB / 0.682 GB, free: 12.21 MB / 0.5606 GB Notification: Performance of Partitioning: time 5.375e-05/0.01446, allocations: 46.31 kB / 0.6821 GB, free: 12.15 MB / 0.5606 GB Notification: Performance of Cleanup: time 3.365e-05/0.0145, allocations: 23.97 kB / 0.6821 GB, free: 12.13 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_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, "RealExtractSignal.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, "RealExtractSignal.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_1 + pul.booPul.period * integer(time / pul.booPul.period) > 0.0 then 1e-6 * floor(0.5 + 1e6 * ($FUN_1 + pul.booPul.period * integer(time / pul.booPul.period))) else 1e-6 * ceil((-0.5) + 1e6 * ($FUN_1 + 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, "RealExtractSignal.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, "RealExtractSignal.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_37) slice: {}; [SCAL] (1) pul.booPul.width = pul.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 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: [ARRY] (5) extSig.u = $START.extSig.u ($RES_SRT_52) Use -d=bltdump for more verbose debug output. Error: Internal error NBInitialization.main failed to apply modules!