Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_Buildings.Controls.OBC.CDL.Logical.Validation.Or3.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.Or3,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Controls.OBC.CDL.Logical.Validation.Or3") translateModel(Buildings.Controls.OBC.CDL.Logical.Validation.Or3,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Controls.OBC.CDL.Logical.Validation.Or3") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001107/0.001107, allocations: 112.9 kB / 16.38 MB, free: 6 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.001157/0.001157, allocations: 187.9 kB / 17.31 MB, free: 5.621 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.481/1.481, allocations: 205.1 MB / 223.2 MB, free: 12.29 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.834/1.834, allocations: 292.3 MB / 0.5496 GB, free: 17.41 MB / 462.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.017e-05/3.025e-05, allocations: 5.938 kB / 0.6729 GB, free: 5.863 MB / 0.545 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Validation.Or3): time 0.001929/0.001974, allocations: 0.7267 MB / 0.6736 GB, free: 5.133 MB / 0.545 GB Notification: Performance of NFInst.instExpressions: time 0.001659/0.003645, allocations: 1.258 MB / 0.6748 GB, free: 3.859 MB / 0.545 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.777e-05/0.003704, allocations: 4 kB / 0.6748 GB, free: 3.855 MB / 0.545 GB Notification: Performance of NFTyping.typeComponents: time 3.4e-05/0.003744, allocations: 7.938 kB / 0.6748 GB, free: 3.848 MB / 0.545 GB Notification: Performance of NFTyping.typeBindings: time 7.81e-05/0.003835, allocations: 15.84 kB / 0.6748 GB, free: 3.832 MB / 0.545 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007791/0.00462, allocations: 305.1 kB / 0.6751 GB, free: 3.543 MB / 0.545 GB Notification: Performance of NFFlatten.flatten: time 0.0003127/0.00494, allocations: 287.5 kB / 0.6754 GB, free: 3.262 MB / 0.545 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001107/0.005057, allocations: 24.16 kB / 0.6754 GB, free: 3.234 MB / 0.545 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001181/0.005181, allocations: 99.86 kB / 0.6755 GB, free: 3.137 MB / 0.545 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001462/0.005332, allocations: 91.73 kB / 0.6756 GB, free: 3.047 MB / 0.545 GB Notification: Performance of NFPackage.collectConstants: time 4.078e-05/0.005379, allocations: 24 kB / 0.6756 GB, free: 3.023 MB / 0.545 GB Notification: Performance of NFFlatten.collectFunctions: time 9.123e-05/0.005476, allocations: 35.98 kB / 0.6757 GB, free: 2.988 MB / 0.545 GB Notification: Performance of combineBinaries: time 0.000179/0.005661, allocations: 186.6 kB / 0.6758 GB, free: 2.805 MB / 0.545 GB Notification: Performance of replaceArrayConstructors: time 3.134e-05/0.005699, allocations: 59.12 kB / 0.6759 GB, free: 2.746 MB / 0.545 GB Notification: Performance of NFVerifyModel.verify: time 4.77e-05/0.005752, allocations: 27.88 kB / 0.6759 GB, free: 2.719 MB / 0.545 GB Notification: Performance of FrontEnd: time 1.647e-05/0.005773, allocations: 4 kB / 0.6759 GB, free: 2.715 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.0007728/0.00655, allocations: 0.6597 MB / 0.6766 GB, free: 1.953 MB / 0.545 GB Notification: Performance of FunctionAlias: time 0.0001467/0.006707, allocations: 119.7 kB / 0.6767 GB, free: 1.836 MB / 0.545 GB Notification: Performance of Early Inline: time 0.0006951/0.007409, allocations: 0.6755 MB / 0.6774 GB, free: 1.133 MB / 0.545 GB Notification: Performance of simplify1: time 1.14e-05/0.007429, allocations: 7.984 kB / 0.6774 GB, free: 1.125 MB / 0.545 GB Notification: Performance of Alias: time 0.0004523/0.007887, allocations: 353.3 kB / 0.6777 GB, free: 0.7188 MB / 0.545 GB Notification: Performance of simplify2: time 8.296e-06/0.007905, allocations: 4 kB / 0.6777 GB, free: 0.7148 MB / 0.545 GB Notification: Performance of Events: time 0.0005607/0.00847, allocations: 460.7 kB / 0.6781 GB, free: 268 kB / 0.545 GB Notification: Performance of Detect States: time 0.0004441/0.008924, allocations: 393 kB / 0.6785 GB, free: 15.86 MB / 0.5606 GB Notification: Performance of Partitioning: time 7.279e-05/0.009008, allocations: 56.05 kB / 0.6786 GB, free: 15.8 MB / 0.5606 GB Notification: Performance of Causalize: time 0.0003021/0.009316, allocations: 267.9 kB / 0.6788 GB, free: 15.53 MB / 0.5606 GB Notification: Performance of After Index Reduction Inline: time 0.0005191/0.009845, allocations: 0.543 MB / 0.6794 GB, free: 14.96 MB / 0.5606 GB Notification: Performance of Inline: time 0.000763/0.01062, allocations: 0.7655 MB / 0.6801 GB, free: 14.16 MB / 0.5606 GB Notification: Performance of Partitioning: time 3.511e-05/0.01066, allocations: 28.31 kB / 0.6801 GB, free: 14.12 MB / 0.5606 GB Notification: Performance of Cleanup: time 1.937e-05/0.01069, allocations: 19.95 kB / 0.6801 GB, free: 14.11 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, "Or3.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, "Or3.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, "Or3.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, "Or3.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, "Or3.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, "Or3.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.001862/0.01256, allocations: 1.829 MB / 0.6819 GB, free: 12.25 MB / 0.5606 GB Notification: Performance of Tearing: time 6.582e-06/0.01257, allocations: 0 / 0.6819 GB, free: 12.25 MB / 0.5606 GB Notification: Performance of Initialization: time 4.11e-07/0.01258, allocations: 0 / 0.6819 GB, free: 12.25 MB / 0.5606 GB Notification: Performance of Tearing: time 1.262e-06/0.01259, allocations: 4 kB / 0.6819 GB, free: 12.25 MB / 0.5606 GB Notification: Performance of Categorize: time 6.693e-06/0.0126, allocations: 0 / 0.6819 GB, free: 12.25 MB / 0.5606 GB Notification: Performance of Solve: time 0.0001327/0.01274, allocations: 88.31 kB / 0.682 GB, free: 12.16 MB / 0.5606 GB Notification: Performance of Jacobian: time 3.397e-06/0.01275, allocations: 4 kB / 0.682 GB, free: 12.16 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: ................. 8 (8) {or1.y, $SEV_9, $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: ........... 8 (scalar:8, 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: ........... 23 (scalar:23, 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 3.274e-05/0.01279, allocations: 23.2 kB / 0.682 GB, free: 12.14 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.