Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_Buildings.Controls.OBC.CDL.Integers.Validation.OnCounter.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.Validation.OnCounter,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Controls.OBC.CDL.Integers.Validation.OnCounter") translateModel(Buildings.Controls.OBC.CDL.Integers.Validation.OnCounter,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Controls.OBC.CDL.Integers.Validation.OnCounter") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001401/0.001401, allocations: 104.6 kB / 16.38 MB, free: 6.445 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.001262/0.001263, allocations: 193.7 kB / 17.31 MB, free: 5.789 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.49/1.49, allocations: 205.1 MB / 223.2 MB, free: 12.23 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.851/1.851, allocations: 292.3 MB / 0.5496 GB, free: 17.62 MB / 462.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.002e-05/3.011e-05, allocations: 9.734 kB / 0.6729 GB, free: 5.891 MB / 0.545 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Integers.Validation.OnCounter): time 0.001984/0.002031, allocations: 0.6894 MB / 0.6735 GB, free: 5.199 MB / 0.545 GB Notification: Performance of NFInst.instExpressions: time 0.001795/0.003839, allocations: 1.203 MB / 0.6747 GB, free: 3.98 MB / 0.545 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.017e-05/0.0039, allocations: 0 / 0.6747 GB, free: 3.98 MB / 0.545 GB Notification: Performance of NFTyping.typeComponents: time 3.393e-05/0.003942, allocations: 3.938 kB / 0.6747 GB, free: 3.977 MB / 0.545 GB Notification: Performance of NFTyping.typeBindings: time 8.935e-05/0.004036, allocations: 11.86 kB / 0.6747 GB, free: 3.965 MB / 0.545 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006822/0.004734, allocations: 222.7 kB / 0.6749 GB, free: 3.754 MB / 0.545 GB Notification: Performance of NFFlatten.flatten: time 0.0002798/0.005021, allocations: 195.7 kB / 0.6751 GB, free: 3.562 MB / 0.545 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000146/0.005173, allocations: 8 kB / 0.6751 GB, free: 3.555 MB / 0.545 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001348/0.005314, allocations: 79.81 kB / 0.6752 GB, free: 3.477 MB / 0.545 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001418/0.005462, allocations: 59.84 kB / 0.6753 GB, free: 3.418 MB / 0.545 GB Notification: Performance of NFPackage.collectConstants: time 3.708e-05/0.005506, allocations: 16 kB / 0.6753 GB, free: 3.402 MB / 0.545 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001039/0.005615, allocations: 27.98 kB / 0.6753 GB, free: 3.375 MB / 0.545 GB Notification: Performance of combineBinaries: time 0.0001462/0.00577, allocations: 135 kB / 0.6754 GB, free: 3.242 MB / 0.545 GB Notification: Performance of replaceArrayConstructors: time 3.058e-05/0.005807, allocations: 51.22 kB / 0.6755 GB, free: 3.191 MB / 0.545 GB Notification: Performance of NFVerifyModel.verify: time 4.655e-05/0.00586, allocations: 16 kB / 0.6755 GB, free: 3.176 MB / 0.545 GB Notification: Performance of FrontEnd: time 2.659e-05/0.005891, allocations: 11.92 kB / 0.6755 GB, free: 3.164 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: 5 (5) * Number of variables: 5 (5) Notification: Performance of Bindings: time 0.0006611/0.006558, allocations: 0.5034 MB / 0.676 GB, free: 2.562 MB / 0.545 GB Notification: Performance of FunctionAlias: time 0.0001192/0.006683, allocations: 79.75 kB / 0.6761 GB, free: 2.484 MB / 0.545 GB Notification: Performance of Early Inline: time 0.0006447/0.007335, allocations: 499.9 kB / 0.6766 GB, free: 1.969 MB / 0.545 GB Notification: Performance of simplify1: time 1.201e-05/0.007357, allocations: 7.984 kB / 0.6766 GB, free: 1.961 MB / 0.545 GB Notification: Performance of Alias: time 0.0003767/0.007739, allocations: 253.2 kB / 0.6768 GB, free: 1.66 MB / 0.545 GB Notification: Performance of simplify2: time 9.467e-06/0.007757, allocations: 7.984 kB / 0.6768 GB, free: 1.652 MB / 0.545 GB Notification: Performance of Events: time 0.0004072/0.008169, allocations: 303.3 kB / 0.6771 GB, free: 1.355 MB / 0.545 GB Notification: Performance of Detect States: time 0.0003935/0.008571, allocations: 282.9 kB / 0.6774 GB, free: 1.066 MB / 0.545 GB Notification: Performance of Partitioning: time 7.049e-05/0.008652, allocations: 40.12 kB / 0.6774 GB, free: 1.02 MB / 0.545 GB Notification: Performance of Causalize: time 0.000252/0.00891, allocations: 208 kB / 0.6776 GB, free: 0.8086 MB / 0.545 GB Notification: Performance of After Index Reduction Inline: time 0.0003639/0.009282, allocations: 404.1 kB / 0.678 GB, free: 396 kB / 0.545 GB Notification: Performance of Inline: time 0.0005887/0.009878, allocations: 0.5589 MB / 0.6785 GB, free: 15.79 MB / 0.5606 GB Notification: Performance of Partitioning: time 2.994e-05/0.009917, allocations: 24.05 kB / 0.6786 GB, free: 15.76 MB / 0.5606 GB Notification: Performance of Cleanup: time 1.987e-05/0.009945, allocations: 15.98 kB / 0.6786 GB, free: 15.74 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) [----] reset.t0 := if $FUN_2 + reset.period * integer(time / reset.period) > 0.0 then 1e-6 * floor(0.5 + 1e6 * ($FUN_2 + reset.period * integer(time / reset.period))) else 1e-6 * ceil((-0.5) + 1e6 * ($FUN_2 + reset.period * integer(time / reset.period))); [----] reset.t1 := reset.t0 + reset.width * reset.period; [----] if time + reset.period < reset.t1 then [----] reset.t0 := reset.t0 - reset.period; [----] reset.t1 := reset.t1 - reset.period; [----] end if; [----] if time >= reset.t1 then [----] reset.t0 := reset.t0 + reset.period; [----] elseif time < reset.t0 then [----] reset.t1 := reset.t1 - reset.period; [----] end if; [----] if reset.t0 < reset.t1 then [----] assert(reset.t0 <= time and time < reset.t1, "OnCounter.reset: Implementation error in initial time calculation: t0 = " + String(reset.t0, 6, 0, true) + ", t1 = " + String(reset.t1, 6, 0, true) + ", period = " + String(reset.period, 6, 0, true) + ", time = " + String(time, 6, 0, true), AssertionLevel.error); [----] reset.y := time >= reset.t0 and time < reset.t1; [----] elseif true then [----] assert(reset.t1 <= time and time < reset.t0, "OnCounter.reset: Implementation error in initial time calculation: t0 = " + String(reset.t0, 6, 0, true) + ", t1 = " + String(reset.t1, 6, 0, true) + ", period = " + String(reset.period, 6, 0, true) + ", time = " + String(time, 6, 0, true), AssertionLevel.error); [----] reset.y := not (time >= reset.t1 and time < reset.t0); [----] end if; slice: {1, 2}; [ALGO] (3) ($RES_SIM_1) [----] booPul.t0 := if $FUN_1 + booPul.period * integer(time / booPul.period) > 0.0 then 1e-6 * floor(0.5 + 1e6 * ($FUN_1 + booPul.period * integer(time / booPul.period))) else 1e-6 * ceil((-0.5) + 1e6 * ($FUN_1 + 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, "OnCounter.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); [----] booPul.y := time >= booPul.t0 and time < booPul.t1; [----] elseif true then [----] assert(booPul.t1 <= time and time < booPul.t0, "OnCounter.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); [----] booPul.y := not (time >= booPul.t1 and time < booPul.t0); [----] end if; slice: {1, 2}; Notification: Performance of Causalize: time 0.001452/0.0114, allocations: 1.292 MB / 0.6798 GB, free: 14.43 MB / 0.5606 GB Notification: Performance of Tearing: time 7.705e-06/0.01142, allocations: 8 kB / 0.6799 GB, free: 14.42 MB / 0.5606 GB Notification: Performance of Initialization: time 3.41e-07/0.01143, allocations: 0 / 0.6799 GB, free: 14.42 MB / 0.5606 GB Notification: Performance of Tearing: time 2.214e-06/0.01144, allocations: 0 / 0.6799 GB, free: 14.42 MB / 0.5606 GB Notification: Performance of Categorize: time 1.159e-05/0.01145, allocations: 7.781 kB / 0.6799 GB, free: 14.42 MB / 0.5606 GB Notification: Performance of Solve: time 0.0001223/0.01158, allocations: 55.94 kB / 0.6799 GB, free: 14.36 MB / 0.5606 GB Notification: Performance of Jacobian: time 3.036e-06/0.01159, allocations: 0 / 0.6799 GB, free: 14.36 MB / 0.5606 GB Notification: Partition statistics after passing the back-end: * Number of ODE partitions: ..................... 0 * Number of algebraic partitions: ............... 0 * Number of ODE event partitions: ............... 0 * Number of algebraic event partitions: ......... 1 * Number of clocked partitions: ................. 0 * Number of initial partitions: ................. 1 * Number of initial(lambda=0) partitions: ....... 0 Notification: Variable statistics after passing the back-end: * Number of states: ............................. 0 (0) {} * Number of discrete states: .................... 3 (3) {reset.y, booPul.y, onCounter.y} * Number of clocked states: ..................... 0 (0) {NOT YET AVAILABLE} * Number of discrete variables: ................. 5 (5) {$TEV_28, $TEV_27, $TEV_26, $TEV_25, $TEV_24} * Number of top-level inputs: ................... 0 (0) {} Notification: [Simulation] Strong Component statistics after passing the back-end: * Number of single strong components: ........... 5 (scalar:5, array:0, record:0) * Number of multi strong components: ............ 3 (algorithm:0, when:3, if:0, tuple:0) * Number of for-loop strong components: ......... 0 (generic: 0, entwined:0) * Number of algebraic-loop strong components: ... 0 (linear: 0, nonlinear:0) Notification: [Initialization] Strong Component statistics after passing the back-end: * Number of single strong components: ........... 17 (scalar:17, array:0, record:0) * Number of multi strong components: ............ 0 (algorithm:0, when:0, if:0, tuple:0) * Number of for-loop strong components: ......... 0 (generic: 0, entwined:0) * Number of algebraic-loop strong components: ... 0 (linear: 0, nonlinear:0) Notification: Performance of backend: time 4.926e-05/0.01164, allocations: 40.92 kB / 0.68 GB, free: 14.33 MB / 0.5606 GB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/NBackEnd/Modules/2_Pre/NBEvents.mo:685:7-685:120:writable] Error: Internal error UnorderedMap.getSafe failed because the key did not exist.