Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_Buildings.Controls.OBC.CDL.Continuous.Validation.PIDWithResetScale.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.PIDWithResetScale,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Controls.OBC.CDL.Continuous.Validation.PIDWithResetScale") translateModel(Buildings.Controls.OBC.CDL.Continuous.Validation.PIDWithResetScale,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Controls.OBC.CDL.Continuous.Validation.PIDWithResetScale") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001284/0.001285, allocations: 106.2 kB / 16.38 MB, free: 6.383 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.0012/0.001201, allocations: 192.1 kB / 17.31 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.581/1.581, 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.919/1.919, allocations: 292.3 MB / 0.5496 GB, free: 17.43 MB / 462.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.965e-05/3.018e-05, allocations: 2.281 kB / 0.6729 GB, free: 5.859 MB / 0.545 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Continuous.Validation.PIDWithResetScale): time 0.003614/0.003661, allocations: 2.168 MB / 0.675 GB, free: 3.68 MB / 0.545 GB Notification: Performance of NFInst.instExpressions: time 0.00283/0.006505, allocations: 1.678 MB / 0.6766 GB, free: 1.984 MB / 0.545 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002621/0.006782, allocations: 11.94 kB / 0.6766 GB, free: 1.973 MB / 0.545 GB Notification: Performance of NFTyping.typeComponents: time 0.0003072/0.007096, allocations: 83.06 kB / 0.6767 GB, free: 1.891 MB / 0.545 GB Notification: Performance of NFTyping.typeBindings: time 0.0003274/0.007431, allocations: 95.06 kB / 0.6768 GB, free: 1.797 MB / 0.545 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008813/0.008348, allocations: 410.5 kB / 0.6772 GB, free: 1.402 MB / 0.545 GB Notification: Performance of NFFlatten.flatten: time 0.0008743/0.009229, allocations: 0.8634 MB / 0.678 GB, free: 0.5352 MB / 0.545 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004967/0.009733, allocations: 342 kB / 0.6784 GB, free: 204 kB / 0.545 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003499/0.01009, allocations: 291 kB / 0.6786 GB, free: 15.91 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003031/0.0104, allocations: 314.4 kB / 0.6789 GB, free: 15.61 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 0.0001031/0.01051, allocations: 84 kB / 0.679 GB, free: 15.52 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001606/0.01068, allocations: 99.92 kB / 0.6791 GB, free: 15.43 MB / 0.5606 GB Notification: Performance of combineBinaries: time 0.0007226/0.01141, allocations: 1.004 MB / 0.6801 GB, free: 14.41 MB / 0.5606 GB Notification: Performance of replaceArrayConstructors: time 0.0003704/0.01179, allocations: 0.6116 MB / 0.6807 GB, free: 13.79 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 0.0001278/0.01192, allocations: 103.6 kB / 0.6808 GB, free: 13.69 MB / 0.5606 GB Notification: Performance of FrontEnd: time 0.0001195/0.01205, allocations: 39.62 kB / 0.6808 GB, free: 13.65 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: 121 (121) * Number of variables: 121 (121) Notification: Performance of Bindings: time 0.00294/0.015, allocations: 3.038 MB / 0.6838 GB, free: 10.48 MB / 0.5606 GB Notification: Performance of FunctionAlias: time 0.0002273/0.01523, allocations: 191.7 kB / 0.684 GB, free: 10.3 MB / 0.5606 GB Notification: Performance of Early Inline: time 0.001878/0.01712, allocations: 1.901 MB / 0.6858 GB, free: 8.363 MB / 0.5606 GB Notification: Performance of simplify1: time 9.75e-05/0.01723, allocations: 99.86 kB / 0.6859 GB, free: 8.266 MB / 0.5606 GB Notification: Performance of Alias: time 0.003228/0.02046, allocations: 2.813 MB / 0.6887 GB, free: 5.09 MB / 0.5606 GB Notification: Performance of simplify2: time 7.487e-05/0.02055, allocations: 67.91 kB / 0.6887 GB, free: 5.023 MB / 0.5606 GB Notification: Performance of Events: time 0.0005369/0.0211, allocations: 430.1 kB / 0.6892 GB, free: 4.602 MB / 0.5606 GB Notification: Performance of Detect States: time 0.0006077/0.02171, allocations: 0.5394 MB / 0.6897 GB, free: 4.051 MB / 0.5606 GB Notification: Performance of Partitioning: time 0.0003715/0.02209, allocations: 333.5 kB / 0.69 GB, free: 3.691 MB / 0.5606 GB Notification: Performance of Causalize: time 0.001831/0.02393, allocations: 1.699 MB / 0.6917 GB, free: 1.977 MB / 0.5606 GB Notification: Performance of After Index Reduction Inline: time 0.001061/0.02501, allocations: 1.069 MB / 0.6927 GB, free: 0.8828 MB / 0.5606 GB Notification: Performance of Inline: time 0.00233/0.02734, allocations: 2.215 MB / 0.6949 GB, free: 14.62 MB / 0.5762 GB Notification: Performance of Partitioning: time 0.0001235/0.02748, allocations: 111.8 kB / 0.695 GB, free: 14.5 MB / 0.5762 GB Notification: Performance of Cleanup: time 0.0002529/0.02774, allocations: 263.5 kB / 0.6952 GB, free: 14.25 MB / 0.5762 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) [----] booPul.t0 := if $FUN_2 + booPul.period * integer(time / booPul.period) > 0.0 then 1e-6 * floor(0.5 + 1e6 * ($FUN_2 + booPul.period * integer(time / booPul.period))) else 1e-6 * ceil((-0.5) + 1e6 * ($FUN_2 + booPul.period * integer(time / booPul.period))); [----] booPul.t1 := booPul.t0 + booPul.width * booPul.period; [----] if time + booPul.period < booPul.t1 then [----] booPul.t0 := booPul.t0 - booPul.period; [----] booPul.t1 := booPul.t1 - booPul.period; [----] end if; [----] if time >= booPul.t1 then [----] booPul.t0 := booPul.t0 + booPul.period; [----] elseif time < booPul.t0 then [----] booPul.t1 := booPul.t1 - booPul.period; [----] end if; [----] if booPul.t0 < booPul.t1 then [----] assert(booPul.t0 <= time and time < booPul.t1, "PIDWithResetScale.booPul: Implementation error in initial time calculation: t0 = " + String(booPul.t0, 6, 0, true) + ", t1 = " + String(booPul.t1, 6, 0, true) + ", period = " + String(booPul.period, 6, 0, true) + ", time = " + String(time, 6, 0, true), AssertionLevel.error); [----] pidSca.trigger := time >= booPul.t0 and time < booPul.t1; [----] elseif true then [----] assert(booPul.t1 <= time and time < booPul.t0, "PIDWithResetScale.booPul: Implementation error in initial time calculation: t0 = " + String(booPul.t0, 6, 0, true) + ", t1 = " + String(booPul.t1, 6, 0, true) + ", period = " + String(booPul.period, 6, 0, true) + ", time = " + String(time, 6, 0, true), AssertionLevel.error); [----] pidSca.trigger := not (time >= booPul.t1 and time < booPul.t0); [----] end if; slice: {1, 2}; [ALGO] (3) ($RES_SIM_1) [----] 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, "PIDWithResetScale.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, "PIDWithResetScale.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_149) 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: [SCAL] (1) $PRE.pidSca.trigger = $START.pidSca.trigger ($RES_SRT_208) Use -d=bltdump for more verbose debug output. Error: Internal error NBInitialization.main failed to apply modules!