Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_Buildings.Controls.OBC.CDL.Logical.Validation.Or.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.Or,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Controls.OBC.CDL.Logical.Validation.Or") translateModel(Buildings.Controls.OBC.CDL.Logical.Validation.Or,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Controls.OBC.CDL.Logical.Validation.Or") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001493/0.001493, allocations: 103.5 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.001474/0.001474, allocations: 188.1 kB / 17.3 MB, free: 5.914 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.493/1.493, allocations: 205.1 MB / 223.2 MB, free: 12.3 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.759/1.759, allocations: 292.3 MB / 0.5496 GB, free: 17.61 MB / 462.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.759e-05/2.761e-05, allocations: 5.797 kB / 0.6729 GB, free: 5.867 MB / 0.545 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Validation.Or): time 0.001892/0.001936, allocations: 0.6823 MB / 0.6735 GB, free: 5.18 MB / 0.545 GB Notification: Performance of NFInst.instExpressions: time 0.001503/0.00345, allocations: 1.188 MB / 0.6747 GB, free: 3.977 MB / 0.545 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.144e-05/0.003502, allocations: 0 / 0.6747 GB, free: 3.977 MB / 0.545 GB Notification: Performance of NFTyping.typeComponents: time 2.943e-05/0.003538, allocations: 3.938 kB / 0.6747 GB, free: 3.973 MB / 0.545 GB Notification: Performance of NFTyping.typeBindings: time 6.915e-05/0.003621, allocations: 15.84 kB / 0.6747 GB, free: 3.957 MB / 0.545 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006373/0.004265, allocations: 214.2 kB / 0.6749 GB, free: 3.754 MB / 0.545 GB Notification: Performance of NFFlatten.flatten: time 0.000212/0.004485, allocations: 195.7 kB / 0.6751 GB, free: 3.562 MB / 0.545 GB Notification: Performance of NFFlatten.resolveConnections: time 9.436e-05/0.004586, allocations: 12 kB / 0.6751 GB, free: 3.551 MB / 0.545 GB Notification: Performance of NFEvalConstants.evaluate: time 9.362e-05/0.004686, allocations: 63.94 kB / 0.6752 GB, free: 3.488 MB / 0.545 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001095/0.004803, allocations: 67.78 kB / 0.6752 GB, free: 3.422 MB / 0.545 GB Notification: Performance of NFPackage.collectConstants: time 2.85e-05/0.004837, allocations: 12 kB / 0.6752 GB, free: 3.41 MB / 0.545 GB Notification: Performance of NFFlatten.collectFunctions: time 7.562e-05/0.004917, allocations: 31.98 kB / 0.6753 GB, free: 3.379 MB / 0.545 GB Notification: Performance of combineBinaries: time 0.0001209/0.005044, allocations: 123.1 kB / 0.6754 GB, free: 3.258 MB / 0.545 GB Notification: Performance of replaceArrayConstructors: time 2.273e-05/0.005074, allocations: 51.31 kB / 0.6754 GB, free: 3.207 MB / 0.545 GB Notification: Performance of NFVerifyModel.verify: time 3.946e-05/0.005118, allocations: 15.94 kB / 0.6755 GB, free: 3.191 MB / 0.545 GB Notification: Performance of FrontEnd: time 1.08e-05/0.005134, allocations: 0 / 0.6755 GB, free: 3.191 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.0005885/0.005727, allocations: 499.7 kB / 0.6759 GB, free: 2.605 MB / 0.545 GB Notification: Performance of FunctionAlias: time 0.0001193/0.005852, allocations: 71.83 kB / 0.676 GB, free: 2.535 MB / 0.545 GB Notification: Performance of Early Inline: time 0.0005188/0.006378, allocations: 483.9 kB / 0.6765 GB, free: 2.035 MB / 0.545 GB Notification: Performance of simplify1: time 9.768e-06/0.006397, allocations: 7.984 kB / 0.6765 GB, free: 2.027 MB / 0.545 GB Notification: Performance of Alias: time 0.0003665/0.006767, allocations: 241.2 kB / 0.6767 GB, free: 1.738 MB / 0.545 GB Notification: Performance of simplify2: time 9.398e-06/0.006786, allocations: 11.97 kB / 0.6767 GB, free: 1.727 MB / 0.545 GB Notification: Performance of Events: time 0.0003806/0.007173, allocations: 303.3 kB / 0.677 GB, free: 1.43 MB / 0.545 GB Notification: Performance of Detect States: time 0.0003058/0.007487, allocations: 272 kB / 0.6773 GB, free: 1.148 MB / 0.545 GB Notification: Performance of Partitioning: time 5.714e-05/0.007552, allocations: 44.08 kB / 0.6773 GB, free: 1.098 MB / 0.545 GB Notification: Performance of Causalize: time 0.0002233/0.007781, allocations: 192.1 kB / 0.6775 GB, free: 0.9023 MB / 0.545 GB Notification: Performance of After Index Reduction Inline: time 0.0003389/0.008129, allocations: 392.2 kB / 0.6779 GB, free: 0.4922 MB / 0.545 GB Notification: Performance of Inline: time 0.0005266/0.008663, allocations: 0.5354 MB / 0.6784 GB, free: 15.92 MB / 0.5606 GB Notification: Performance of Partitioning: time 2.424e-05/0.008696, allocations: 28.06 kB / 0.6784 GB, free: 15.88 MB / 0.5606 GB Notification: Performance of Cleanup: time 1.446e-05/0.008716, allocations: 7.984 kB / 0.6784 GB, free: 15.88 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) [----] 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, "Or.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, "Or.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_1) [----] 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, "Or.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, "Or.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.001268/0.009988, allocations: 1.243 MB / 0.6796 GB, free: 14.62 MB / 0.5606 GB Notification: Performance of Tearing: time 6.111e-06/0.01, allocations: 0 / 0.6796 GB, free: 14.62 MB / 0.5606 GB Notification: Performance of Initialization: time 3.31e-07/0.01001, allocations: 0 / 0.6796 GB, free: 14.62 MB / 0.5606 GB Notification: Performance of Tearing: time 1.032e-06/0.01002, allocations: 160 / 0.6796 GB, free: 14.62 MB / 0.5606 GB Notification: Performance of Categorize: time 8.056e-06/0.01003, allocations: 8 kB / 0.6796 GB, free: 14.62 MB / 0.5606 GB Notification: Performance of Solve: time 0.0001042/0.01014, allocations: 59.86 kB / 0.6797 GB, free: 14.56 MB / 0.5606 GB Notification: Performance of Jacobian: time 3.296e-06/0.01015, allocations: 0 / 0.6797 GB, free: 14.56 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: .................... 2 (2) {booPul2.y, booPul1.y} * Number of clocked states: ..................... 0 (0) {NOT YET AVAILABLE} * Number of discrete variables: ................. 6 (6) {or1.y, $SEV_6, $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: ........... 6 (scalar:6, array:0, record:0) * Number of multi strong components: ............ 2 (algorithm:0, when:2, 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: ........... 16 (scalar:16, 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.525e-05/0.0102, allocations: 33.77 kB / 0.6797 GB, free: 14.53 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.