Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_Buildings.Controls.OBC.CDL.Logical.Validation.Nor.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.Nor,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Controls.OBC.CDL.Logical.Validation.Nor") translateModel(Buildings.Controls.OBC.CDL.Logical.Validation.Nor,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Controls.OBC.CDL.Logical.Validation.Nor") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001453/0.001454, allocations: 103.3 kB / 16.38 MB, free: 6.438 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.001639/0.001639, allocations: 192.7 kB / 17.32 MB, free: 5.773 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.596/1.596, allocations: 205.1 MB / 223.2 MB, free: 12.26 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.817/1.817, allocations: 292.3 MB / 0.5496 GB, free: 17.61 MB / 462.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.681e-05/2.701e-05, allocations: 6.219 kB / 0.6729 GB, free: 5.883 MB / 0.545 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Validation.Nor): time 0.001895/0.001939, allocations: 0.6817 MB / 0.6735 GB, free: 5.199 MB / 0.545 GB Notification: Performance of NFInst.instExpressions: time 0.001542/0.003494, allocations: 1.191 MB / 0.6747 GB, free: 3.992 MB / 0.545 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.985e-05/0.003544, allocations: 0 / 0.6747 GB, free: 3.992 MB / 0.545 GB Notification: Performance of NFTyping.typeComponents: time 3.425e-05/0.003585, allocations: 3.938 kB / 0.6747 GB, free: 3.988 MB / 0.545 GB Notification: Performance of NFTyping.typeBindings: time 6.558e-05/0.003669, allocations: 15.86 kB / 0.6747 GB, free: 3.973 MB / 0.545 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006166/0.004292, allocations: 206.9 kB / 0.6749 GB, free: 3.773 MB / 0.545 GB Notification: Performance of NFFlatten.flatten: time 0.0002312/0.00453, allocations: 195.6 kB / 0.6751 GB, free: 3.582 MB / 0.545 GB Notification: Performance of NFFlatten.resolveConnections: time 9.136e-05/0.004628, allocations: 12 kB / 0.6751 GB, free: 3.57 MB / 0.545 GB Notification: Performance of NFEvalConstants.evaluate: time 8.952e-05/0.004725, allocations: 63.95 kB / 0.6752 GB, free: 3.508 MB / 0.545 GB Notification: Performance of NFSimplifyModel.simplify: time 0.00011/0.004841, allocations: 67.78 kB / 0.6752 GB, free: 3.441 MB / 0.545 GB Notification: Performance of NFPackage.collectConstants: time 2.908e-05/0.004876, allocations: 12 kB / 0.6752 GB, free: 3.43 MB / 0.545 GB Notification: Performance of NFFlatten.collectFunctions: time 7.718e-05/0.004958, allocations: 31.98 kB / 0.6753 GB, free: 3.398 MB / 0.545 GB Notification: Performance of combineBinaries: time 0.0001172/0.005082, allocations: 123.1 kB / 0.6754 GB, free: 3.277 MB / 0.545 GB Notification: Performance of replaceArrayConstructors: time 2.424e-05/0.005112, allocations: 43.38 kB / 0.6754 GB, free: 3.234 MB / 0.545 GB Notification: Performance of NFVerifyModel.verify: time 3.689e-05/0.005154, allocations: 19.88 kB / 0.6755 GB, free: 3.215 MB / 0.545 GB Notification: Performance of FrontEnd: time 1.286e-05/0.005172, allocations: 3.938 kB / 0.6755 GB, free: 3.211 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.0005704/0.005747, allocations: 0.4924 MB / 0.6759 GB, free: 2.617 MB / 0.545 GB Notification: Performance of FunctionAlias: time 0.0001123/0.005865, allocations: 75.83 kB / 0.676 GB, free: 2.543 MB / 0.545 GB Notification: Performance of Early Inline: time 0.000517/0.006389, allocations: 479.9 kB / 0.6765 GB, free: 2.047 MB / 0.545 GB Notification: Performance of simplify1: time 1.025e-05/0.006409, allocations: 7.984 kB / 0.6765 GB, free: 2.039 MB / 0.545 GB Notification: Performance of Alias: time 0.0003911/0.006805, allocations: 241.1 kB / 0.6767 GB, free: 1.75 MB / 0.545 GB Notification: Performance of simplify2: time 6.312e-06/0.006821, allocations: 7.984 kB / 0.6767 GB, free: 1.742 MB / 0.545 GB Notification: Performance of Events: time 0.0003815/0.007208, allocations: 303.3 kB / 0.677 GB, free: 1.445 MB / 0.545 GB Notification: Performance of Detect States: time 0.0003117/0.007529, allocations: 283.1 kB / 0.6773 GB, free: 1.156 MB / 0.545 GB Notification: Performance of Partitioning: time 9.818e-05/0.007636, allocations: 40.11 kB / 0.6773 GB, free: 1.109 MB / 0.545 GB Notification: Performance of Causalize: time 0.0002313/0.007874, allocations: 192 kB / 0.6775 GB, free: 0.9141 MB / 0.545 GB Notification: Performance of After Index Reduction Inline: time 0.0004392/0.008321, allocations: 396.2 kB / 0.6779 GB, free: 0.5 MB / 0.545 GB Notification: Performance of Inline: time 0.0005408/0.008871, allocations: 0.5351 MB / 0.6784 GB, free: 15.93 MB / 0.5606 GB Notification: Performance of Partitioning: time 2.463e-05/0.008904, allocations: 24.06 kB / 0.6784 GB, free: 15.9 MB / 0.5606 GB Notification: Performance of Cleanup: time 1.576e-05/0.008926, allocations: 7.984 kB / 0.6784 GB, free: 15.89 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, "Nor.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, "Nor.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, "Nor.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, "Nor.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.001323/0.01025, allocations: 1.25 MB / 0.6796 GB, free: 14.63 MB / 0.5606 GB Notification: Performance of Tearing: time 6.281e-06/0.01027, allocations: 64 / 0.6796 GB, free: 14.63 MB / 0.5606 GB Notification: Performance of Initialization: time 4.11e-07/0.01028, allocations: 0 / 0.6796 GB, free: 14.63 MB / 0.5606 GB Notification: Performance of Tearing: time 3.517e-06/0.01028, allocations: 4 kB / 0.6797 GB, free: 14.63 MB / 0.5606 GB Notification: Performance of Categorize: time 7.083e-06/0.01029, allocations: 4.469 kB / 0.6797 GB, free: 14.62 MB / 0.5606 GB Notification: Performance of Solve: time 9.799e-05/0.0104, allocations: 63.86 kB / 0.6797 GB, free: 14.56 MB / 0.5606 GB Notification: Performance of Jacobian: time 2.955e-06/0.01041, allocations: 288 / 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) {nor1.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.081e-05/0.01045, allocations: 26.98 kB / 0.6797 GB, free: 14.54 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.