Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_Buildings.Controls.OBC.CDL.Logical.Validation.LogicalSwitch.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.Logical.Validation.LogicalSwitch,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Controls.OBC.CDL.Logical.Validation.LogicalSwitch") translateModel(Buildings.Controls.OBC.CDL.Logical.Validation.LogicalSwitch,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Controls.OBC.CDL.Logical.Validation.LogicalSwitch") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001304/0.001304, allocations: 106.2 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.001754/0.001754, allocations: 192.8 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.478/1.478, allocations: 205.1 MB / 223.2 MB, free: 12.12 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.866/1.866, allocations: 292.3 MB / 0.5496 GB, free: 17.57 MB / 462.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.114e-05/3.129e-05, allocations: 2.281 kB / 0.6729 GB, free: 5.914 MB / 0.545 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Validation.LogicalSwitch): time 0.002894/0.002943, allocations: 0.7212 MB / 0.6736 GB, free: 5.188 MB / 0.545 GB Notification: Performance of NFInst.instExpressions: time 0.002031/0.004993, allocations: 1.258 MB / 0.6748 GB, free: 3.914 MB / 0.545 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.226e-05/0.005071, allocations: 4 kB / 0.6748 GB, free: 3.91 MB / 0.545 GB Notification: Performance of NFTyping.typeComponents: time 3.486e-05/0.005112, allocations: 3.938 kB / 0.6748 GB, free: 3.906 MB / 0.545 GB Notification: Performance of NFTyping.typeBindings: time 7.562e-05/0.005193, allocations: 15.86 kB / 0.6748 GB, free: 3.891 MB / 0.545 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008072/0.00604, allocations: 310.6 kB / 0.6751 GB, free: 3.594 MB / 0.545 GB Notification: Performance of NFFlatten.flatten: time 0.0003408/0.006389, allocations: 291.5 kB / 0.6754 GB, free: 3.309 MB / 0.545 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001249/0.006521, allocations: 8.188 kB / 0.6754 GB, free: 3.297 MB / 0.545 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001259/0.006655, allocations: 103.8 kB / 0.6755 GB, free: 3.195 MB / 0.545 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001435/0.00681, allocations: 99.67 kB / 0.6756 GB, free: 3.098 MB / 0.545 GB Notification: Performance of NFPackage.collectConstants: time 4.701e-05/0.006864, allocations: 24 kB / 0.6756 GB, free: 3.074 MB / 0.545 GB Notification: Performance of NFFlatten.collectFunctions: time 8.862e-05/0.006958, allocations: 35.98 kB / 0.6757 GB, free: 3.039 MB / 0.545 GB Notification: Performance of combineBinaries: time 0.000178/0.007143, allocations: 190.6 kB / 0.6758 GB, free: 2.852 MB / 0.545 GB Notification: Performance of replaceArrayConstructors: time 3.258e-05/0.007181, allocations: 59.11 kB / 0.6759 GB, free: 2.793 MB / 0.545 GB Notification: Performance of NFVerifyModel.verify: time 4.579e-05/0.007233, allocations: 23.94 kB / 0.6759 GB, free: 2.77 MB / 0.545 GB Notification: Performance of FrontEnd: time 1.321e-05/0.007253, allocations: 7.938 kB / 0.6759 GB, free: 2.762 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: 7 (7) * Number of variables: 7 (7) Notification: Performance of Bindings: time 0.0007576/0.008015, allocations: 0.6597 MB / 0.6766 GB, free: 2 MB / 0.545 GB Notification: Performance of FunctionAlias: time 0.0001632/0.008187, allocations: 115.8 kB / 0.6767 GB, free: 1.887 MB / 0.545 GB Notification: Performance of Early Inline: time 0.0007987/0.008993, allocations: 0.6716 MB / 0.6773 GB, free: 1.188 MB / 0.545 GB Notification: Performance of simplify1: time 1.332e-05/0.009016, allocations: 7.984 kB / 0.6773 GB, free: 1.18 MB / 0.545 GB Notification: Performance of Alias: time 0.0004628/0.009485, allocations: 357.3 kB / 0.6777 GB, free: 0.7695 MB / 0.545 GB Notification: Performance of simplify2: time 9.097e-06/0.009504, allocations: 7.984 kB / 0.6777 GB, free: 0.7617 MB / 0.545 GB Notification: Performance of Events: time 0.0005695/0.01008, allocations: 456.7 kB / 0.6781 GB, free: 320 kB / 0.545 GB Notification: Performance of Detect States: time 0.0004534/0.01054, allocations: 392.8 kB / 0.6785 GB, free: 15.92 MB / 0.5606 GB Notification: Performance of Partitioning: time 7.93e-05/0.01063, allocations: 52.05 kB / 0.6785 GB, free: 15.86 MB / 0.5606 GB Notification: Performance of Causalize: time 0.0002984/0.01094, allocations: 260.1 kB / 0.6788 GB, free: 15.6 MB / 0.5606 GB Notification: Performance of After Index Reduction Inline: time 0.0005049/0.01145, allocations: 0.5274 MB / 0.6793 GB, free: 15.04 MB / 0.5606 GB Notification: Performance of Inline: time 0.0007895/0.01225, allocations: 0.7616 MB / 0.6801 GB, free: 14.25 MB / 0.5606 GB Notification: Performance of Partitioning: time 2.894e-05/0.01229, allocations: 24.11 kB / 0.6801 GB, free: 14.21 MB / 0.5606 GB Notification: Performance of Cleanup: time 2.058e-05/0.01231, allocations: 15.98 kB / 0.6801 GB, free: 14.2 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) [----] booPul3.t0 := if $FUN_3 + booPul3.period * integer(time / booPul3.period) > 0.0 then 1e-6 * floor(0.5 + 1e6 * ($FUN_3 + booPul3.period * integer(time / booPul3.period))) else 1e-6 * ceil((-0.5) + 1e6 * ($FUN_3 + booPul3.period * integer(time / booPul3.period))); [----] booPul3.t1 := booPul3.t0 + booPul3.width * booPul3.period; [----] if time + booPul3.period < booPul3.t1 then [----] booPul3.t0 := booPul3.t0 - booPul3.period; [----] booPul3.t1 := booPul3.t1 - booPul3.period; [----] end if; [----] if time >= booPul3.t1 then [----] booPul3.t0 := booPul3.t0 + booPul3.period; [----] elseif time < booPul3.t0 then [----] booPul3.t1 := booPul3.t1 - booPul3.period; [----] end if; [----] if booPul3.t0 < booPul3.t1 then [----] assert(booPul3.t0 <= time and time < booPul3.t1, "LogicalSwitch.booPul3: Implementation error in initial time calculation: t0 = " + String(booPul3.t0, 6, 0, true) + ", t1 = " + String(booPul3.t1, 6, 0, true) + ", period = " + String(booPul3.period, 6, 0, true) + ", time = " + String(time, 6, 0, true), AssertionLevel.error); [----] booPul3.y := time >= booPul3.t0 and time < booPul3.t1; [----] elseif true then [----] assert(booPul3.t1 <= time and time < booPul3.t0, "LogicalSwitch.booPul3: Implementation error in initial time calculation: t0 = " + String(booPul3.t0, 6, 0, true) + ", t1 = " + String(booPul3.t1, 6, 0, true) + ", period = " + String(booPul3.period, 6, 0, true) + ", time = " + String(time, 6, 0, true), AssertionLevel.error); [----] booPul3.y := not (time >= booPul3.t1 and time < booPul3.t0); [----] end if; slice: {1, 2}; [ALGO] (3) ($RES_SIM_1) [----] booPul2.t0 := if $FUN_2 + booPul2.period * integer(time / booPul2.period) > 0.0 then 1e-6 * floor(0.5 + 1e6 * ($FUN_2 + booPul2.period * integer(time / booPul2.period))) else 1e-6 * ceil((-0.5) + 1e6 * ($FUN_2 + booPul2.period * integer(time / booPul2.period))); [----] booPul2.t1 := booPul2.t0 + booPul2.width * booPul2.period; [----] if time + booPul2.period < booPul2.t1 then [----] booPul2.t0 := booPul2.t0 - booPul2.period; [----] booPul2.t1 := booPul2.t1 - booPul2.period; [----] end if; [----] if time >= booPul2.t1 then [----] booPul2.t0 := booPul2.t0 + booPul2.period; [----] elseif time < booPul2.t0 then [----] booPul2.t1 := booPul2.t1 - booPul2.period; [----] end if; [----] if booPul2.t0 < booPul2.t1 then [----] assert(booPul2.t0 <= time and time < booPul2.t1, "LogicalSwitch.booPul2: Implementation error in initial time calculation: t0 = " + String(booPul2.t0, 6, 0, true) + ", t1 = " + String(booPul2.t1, 6, 0, true) + ", period = " + String(booPul2.period, 6, 0, true) + ", time = " + String(time, 6, 0, true), AssertionLevel.error); [----] booPul2.y := time >= booPul2.t0 and time < booPul2.t1; [----] elseif true then [----] assert(booPul2.t1 <= time and time < booPul2.t0, "LogicalSwitch.booPul2: Implementation error in initial time calculation: t0 = " + String(booPul2.t0, 6, 0, true) + ", t1 = " + String(booPul2.t1, 6, 0, true) + ", period = " + String(booPul2.period, 6, 0, true) + ", time = " + String(time, 6, 0, true), AssertionLevel.error); [----] booPul2.y := not (time >= booPul2.t1 and time < booPul2.t0); [----] end if; slice: {1, 2}; [ALGO] (3) ($RES_SIM_2) [----] booPul1.t0 := if $FUN_1 + booPul1.period * integer(time / booPul1.period) > 0.0 then 1e-6 * floor(0.5 + 1e6 * ($FUN_1 + booPul1.period * integer(time / booPul1.period))) else 1e-6 * ceil((-0.5) + 1e6 * ($FUN_1 + booPul1.period * integer(time / booPul1.period))); [----] booPul1.t1 := booPul1.t0 + booPul1.width * booPul1.period; [----] if time + booPul1.period < booPul1.t1 then [----] booPul1.t0 := booPul1.t0 - booPul1.period; [----] booPul1.t1 := booPul1.t1 - booPul1.period; [----] end if; [----] if time >= booPul1.t1 then [----] booPul1.t0 := booPul1.t0 + booPul1.period; [----] elseif time < booPul1.t0 then [----] booPul1.t1 := booPul1.t1 - booPul1.period; [----] end if; [----] if booPul1.t0 < booPul1.t1 then [----] assert(booPul1.t0 <= time and time < booPul1.t1, "LogicalSwitch.booPul1: Implementation error in initial time calculation: t0 = " + String(booPul1.t0, 6, 0, true) + ", t1 = " + String(booPul1.t1, 6, 0, true) + ", period = " + String(booPul1.period, 6, 0, true) + ", time = " + String(time, 6, 0, true), AssertionLevel.error); [----] booPul1.y := time >= booPul1.t0 and time < booPul1.t1; [----] elseif true then [----] assert(booPul1.t1 <= time and time < booPul1.t0, "LogicalSwitch.booPul1: Implementation error in initial time calculation: t0 = " + String(booPul1.t0, 6, 0, true) + ", t1 = " + String(booPul1.t1, 6, 0, true) + ", period = " + String(booPul1.period, 6, 0, true) + ", time = " + String(time, 6, 0, true), AssertionLevel.error); [----] booPul1.y := not (time >= booPul1.t1 and time < booPul1.t0); [----] end if; slice: {1, 2}; Notification: Performance of Causalize: time 0.002109/0.01443, allocations: 1.801 MB / 0.6818 GB, free: 12.38 MB / 0.5606 GB Notification: Performance of Tearing: time 1.074e-05/0.01445, allocations: 3.938 kB / 0.6819 GB, free: 12.37 MB / 0.5606 GB Notification: Performance of Initialization: time 5.41e-07/0.01446, allocations: 0 / 0.6819 GB, free: 12.37 MB / 0.5606 GB Notification: Performance of Tearing: time 1.623e-06/0.01447, allocations: 0 / 0.6819 GB, free: 12.37 MB / 0.5606 GB Notification: Performance of Categorize: time 9.148e-06/0.01448, allocations: 0 / 0.6819 GB, free: 12.37 MB / 0.5606 GB Notification: Performance of Solve: time 0.0001588/0.01464, allocations: 84.47 kB / 0.6819 GB, free: 12.29 MB / 0.5606 GB Notification: Performance of Jacobian: time 4.308e-06/0.01465, allocations: 0 / 0.6819 GB, free: 12.29 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) {booPul3.y, booPul2.y, booPul1.y} * Number of clocked states: ..................... 0 (0) {NOT YET AVAILABLE} * Number of discrete variables: ................. 7 (7) {logicalSwitch.y, $TEV_41, $TEV_40, $TEV_39, $TEV_38, $TEV_37, $TEV_36} * Number of top-level inputs: ................... 0 (0) {} Notification: [Simulation] Strong Component statistics after passing the back-end: * Number of single strong components: ........... 7 (scalar:7, 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: ........... 22 (scalar:22, 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 5.727e-05/0.01472, allocations: 26.58 kB / 0.682 GB, free: 12.28 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.