Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_Buildings.Controls.OBC.CDL.Continuous.Validation.PIDScale.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.PIDScale,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Controls.OBC.CDL.Continuous.Validation.PIDScale") translateModel(Buildings.Controls.OBC.CDL.Continuous.Validation.PIDScale,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Controls.OBC.CDL.Continuous.Validation.PIDScale") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001156/0.001156, allocations: 107 kB / 16.37 MB, free: 6.367 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.00125/0.00125, allocations: 191.5 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.502/1.502, 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.814/1.814, allocations: 292.3 MB / 0.5496 GB, free: 17.52 MB / 462.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.467e-05/2.492e-05, allocations: 2.281 kB / 0.6729 GB, free: 5.922 MB / 0.545 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Continuous.Validation.PIDScale): time 0.003256/0.003297, allocations: 2.087 MB / 0.6749 GB, free: 3.824 MB / 0.545 GB Notification: Performance of NFInst.instExpressions: time 0.002259/0.005573, allocations: 1.601 MB / 0.6765 GB, free: 2.207 MB / 0.545 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002149/0.005801, allocations: 8 kB / 0.6765 GB, free: 2.199 MB / 0.545 GB Notification: Performance of NFTyping.typeComponents: time 0.0002637/0.006072, allocations: 83 kB / 0.6765 GB, free: 2.117 MB / 0.545 GB Notification: Performance of NFTyping.typeBindings: time 0.0003026/0.006383, allocations: 87.19 kB / 0.6766 GB, free: 2.031 MB / 0.545 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006371/0.007058, allocations: 315.1 kB / 0.6769 GB, free: 1.727 MB / 0.545 GB Notification: Performance of NFFlatten.flatten: time 0.0007041/0.007772, allocations: 0.7504 MB / 0.6777 GB, free: 0.9727 MB / 0.545 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004151/0.008196, allocations: 317.1 kB / 0.678 GB, free: 0.6602 MB / 0.545 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000226/0.008431, allocations: 259 kB / 0.6782 GB, free: 416 kB / 0.545 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002421/0.008681, allocations: 274.6 kB / 0.6785 GB, free: 140 kB / 0.545 GB Notification: Performance of NFPackage.collectConstants: time 9.603e-05/0.008784, allocations: 76 kB / 0.6785 GB, free: 64 kB / 0.545 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001361/0.008927, allocations: 87.98 kB / 0.6786 GB, free: 15.98 MB / 0.5606 GB Notification: Performance of combineBinaries: time 0.000571/0.009506, allocations: 0.9149 MB / 0.6795 GB, free: 15.05 MB / 0.5606 GB Notification: Performance of replaceArrayConstructors: time 0.0003125/0.009825, allocations: 0.5809 MB / 0.6801 GB, free: 14.46 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 0.0001069/0.009939, allocations: 87.69 kB / 0.6802 GB, free: 14.38 MB / 0.5606 GB Notification: Performance of FrontEnd: time 9.839e-05/0.01004, allocations: 47.55 kB / 0.6802 GB, free: 14.33 MB / 0.5606 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 114 (114) * Number of variables: 114 (114) Notification: Performance of Bindings: time 0.002402/0.01245, allocations: 2.782 MB / 0.6829 GB, free: 11.42 MB / 0.5606 GB Notification: Performance of FunctionAlias: time 0.0001558/0.01261, allocations: 151.8 kB / 0.6831 GB, free: 11.27 MB / 0.5606 GB Notification: Performance of Early Inline: time 0.001461/0.01408, allocations: 1.628 MB / 0.6847 GB, free: 9.609 MB / 0.5606 GB Notification: Performance of simplify1: time 8.919e-05/0.01418, allocations: 99.84 kB / 0.6848 GB, free: 9.512 MB / 0.5606 GB Notification: Performance of Alias: time 0.00275/0.01694, allocations: 2.638 MB / 0.6873 GB, free: 6.516 MB / 0.5606 GB Notification: Performance of simplify2: time 6.122e-05/0.01702, allocations: 59.91 kB / 0.6874 GB, free: 6.457 MB / 0.5606 GB Notification: Performance of Events: time 0.000371/0.01739, allocations: 279.8 kB / 0.6877 GB, free: 6.184 MB / 0.5606 GB Notification: Performance of Detect States: time 0.0004534/0.01786, allocations: 439.2 kB / 0.6881 GB, free: 5.746 MB / 0.5606 GB Notification: Performance of Partitioning: time 0.0003195/0.01819, allocations: 303.4 kB / 0.6884 GB, free: 5.426 MB / 0.5606 GB Notification: Performance of Causalize: time 0.001602/0.0198, allocations: 1.561 MB / 0.6899 GB, free: 3.859 MB / 0.5606 GB Notification: Performance of After Index Reduction Inline: time 0.000857/0.02067, allocations: 0.8825 MB / 0.6908 GB, free: 2.949 MB / 0.5606 GB Notification: Performance of Inline: time 0.002041/0.02272, allocations: 1.972 MB / 0.6927 GB, free: 0.9414 MB / 0.5606 GB Notification: Performance of Partitioning: time 0.0001275/0.02286, allocations: 103.6 kB / 0.6928 GB, free: 0.8281 MB / 0.5606 GB Notification: Performance of Cleanup: time 0.0001968/0.02306, allocations: 211.6 kB / 0.693 GB, free: 0.6211 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) [----] pulse.booPul.t0 := if $FUN_1 + pulse.booPul.period * integer(time / pulse.booPul.period) > 0.0 then 1e-6 * floor(0.5 + 1e6 * ($FUN_1 + pulse.booPul.period * integer(time / pulse.booPul.period))) else 1e-6 * ceil((-0.5) + 1e6 * ($FUN_1 + pulse.booPul.period * integer(time / pulse.booPul.period))); [----] pulse.booPul.t1 := pulse.booPul.t0 + pulse.booPul.width * pulse.booPul.period; [----] if time + pulse.booPul.period < pulse.booPul.t1 then [----] pulse.booPul.t0 := pulse.booPul.t0 - pulse.booPul.period; [----] pulse.booPul.t1 := pulse.booPul.t1 - pulse.booPul.period; [----] end if; [----] if time >= pulse.booPul.t1 then [----] pulse.booPul.t0 := pulse.booPul.t0 + pulse.booPul.period; [----] elseif time < pulse.booPul.t0 then [----] pulse.booPul.t1 := pulse.booPul.t1 - pulse.booPul.period; [----] end if; [----] if pulse.booPul.t0 < pulse.booPul.t1 then [----] assert(pulse.booPul.t0 <= time and time < pulse.booPul.t1, "PIDScale.pulse.booPul: Implementation error in initial time calculation: t0 = " + String(pulse.booPul.t0, 6, 0, true) + ", t1 = " + String(pulse.booPul.t1, 6, 0, true) + ", period = " + String(pulse.booPul.period, 6, 0, true) + ", time = " + String(time, 6, 0, true), AssertionLevel.error); [----] pulse.booPul.y := time >= pulse.booPul.t0 and time < pulse.booPul.t1; [----] elseif true then [----] assert(pulse.booPul.t1 <= time and time < pulse.booPul.t0, "PIDScale.pulse.booPul: Implementation error in initial time calculation: t0 = " + String(pulse.booPul.t0, 6, 0, true) + ", t1 = " + String(pulse.booPul.t1, 6, 0, true) + ", period = " + String(pulse.booPul.period, 6, 0, true) + ", time = " + String(time, 6, 0, true), AssertionLevel.error); [----] pulse.booPul.y := not (time >= pulse.booPul.t1 and time < pulse.booPul.t0); [----] end if; slice: {2}; [SCAL] (1) pulse.booPul.width = pulse.width ($RES_BND_138) slice: {}; Error: Internal error NBResolveSingularities.balanceInitialization failed because following non-fixable variables could not be solved: [PRMT] (1) protected final parameter Real pulse.booPul.width = pulse.width (fixed = true, min = 1e-60, max = 1.0), [DER-] (1) Real $DER.pla2.y Following equations were created by fixing variables: Use -d=bltdump for more verbose debug output. Error: Internal error NBInitialization.main failed to apply modules!