Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.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.Switch,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Controls.OBC.CDL.Logical.Validation.Switch") translateModel(Buildings.Controls.OBC.CDL.Logical.Validation.Switch,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Controls.OBC.CDL.Logical.Validation.Switch") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001282/0.001282, allocations: 106.4 kB / 16.38 MB, free: 6.43 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.001302/0.001302, allocations: 189.3 kB / 17.31 MB, free: 5.777 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.448/1.448, allocations: 205.1 MB / 223.2 MB, free: 12.25 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.749/1.749, allocations: 292.3 MB / 0.5496 GB, free: 17.52 MB / 462.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.78e-05/2.816e-05, allocations: 2.281 kB / 0.6729 GB, free: 5.883 MB / 0.545 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Validation.Switch): time 0.00193/0.001976, allocations: 0.7793 MB / 0.6736 GB, free: 5.102 MB / 0.545 GB Notification: Performance of NFInst.instExpressions: time 0.0016/0.003589, allocations: 1.137 MB / 0.6747 GB, free: 3.949 MB / 0.545 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.012e-05/0.00365, allocations: 0 / 0.6747 GB, free: 3.949 MB / 0.545 GB Notification: Performance of NFTyping.typeComponents: time 3.519e-05/0.003693, allocations: 3.938 kB / 0.6747 GB, free: 3.945 MB / 0.545 GB Notification: Performance of NFTyping.typeBindings: time 7.083e-05/0.003778, allocations: 15.86 kB / 0.6748 GB, free: 3.93 MB / 0.545 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004543/0.004238, allocations: 130.8 kB / 0.6749 GB, free: 3.805 MB / 0.545 GB Notification: Performance of NFFlatten.flatten: time 0.0001863/0.004432, allocations: 147.7 kB / 0.675 GB, free: 3.66 MB / 0.545 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001015/0.004539, allocations: 19.98 kB / 0.675 GB, free: 3.641 MB / 0.545 GB Notification: Performance of NFEvalConstants.evaluate: time 8.999e-05/0.004635, allocations: 51.84 kB / 0.6751 GB, free: 3.59 MB / 0.545 GB Notification: Performance of NFSimplifyModel.simplify: time 8.788e-05/0.004728, allocations: 51.8 kB / 0.6751 GB, free: 3.539 MB / 0.545 GB Notification: Performance of NFPackage.collectConstants: time 2.596e-05/0.004759, allocations: 12 kB / 0.6752 GB, free: 3.527 MB / 0.545 GB Notification: Performance of NFFlatten.collectFunctions: time 6.983e-05/0.004834, allocations: 23.98 kB / 0.6752 GB, free: 3.504 MB / 0.545 GB Notification: Performance of combineBinaries: time 0.0001097/0.00495, allocations: 118.9 kB / 0.6753 GB, free: 3.387 MB / 0.545 GB Notification: Performance of replaceArrayConstructors: time 2.902e-05/0.004985, allocations: 59.12 kB / 0.6753 GB, free: 3.328 MB / 0.545 GB Notification: Performance of NFVerifyModel.verify: time 3.213e-05/0.005023, allocations: 15.88 kB / 0.6754 GB, free: 3.312 MB / 0.545 GB Notification: Performance of FrontEnd: time 1.201e-05/0.005039, allocations: 0 / 0.6754 GB, free: 3.312 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.0005712/0.005617, allocations: 487.5 kB / 0.6758 GB, free: 2.734 MB / 0.545 GB Notification: Performance of FunctionAlias: time 9.487e-05/0.005717, allocations: 43.86 kB / 0.6759 GB, free: 2.691 MB / 0.545 GB Notification: Performance of Early Inline: time 0.0004198/0.006144, allocations: 364 kB / 0.6762 GB, free: 2.309 MB / 0.545 GB Notification: Performance of simplify1: time 1.538e-05/0.006169, allocations: 11.98 kB / 0.6762 GB, free: 2.297 MB / 0.545 GB Notification: Performance of Alias: time 0.000352/0.006525, allocations: 245.5 kB / 0.6765 GB, free: 1.996 MB / 0.545 GB Notification: Performance of simplify2: time 1.429e-05/0.006549, allocations: 11.98 kB / 0.6765 GB, free: 1.984 MB / 0.545 GB Notification: Performance of Events: time 0.0002829/0.006837, allocations: 207.5 kB / 0.6767 GB, free: 1.781 MB / 0.545 GB Notification: Performance of Detect States: time 0.000237/0.007083, allocations: 175.4 kB / 0.6768 GB, free: 1.598 MB / 0.545 GB Notification: Performance of Partitioning: time 8.046e-05/0.007171, allocations: 60.03 kB / 0.6769 GB, free: 1.531 MB / 0.545 GB Notification: Performance of Causalize: time 0.0003243/0.007502, allocations: 281 kB / 0.6772 GB, free: 1.25 MB / 0.545 GB Notification: Performance of After Index Reduction Inline: time 0.0002824/0.007794, allocations: 316.3 kB / 0.6775 GB, free: 0.9141 MB / 0.545 GB Notification: Performance of Inline: time 0.0004633/0.008264, allocations: 472.2 kB / 0.6779 GB, free: 428 kB / 0.545 GB Notification: Performance of Partitioning: time 2.172e-05/0.008295, allocations: 20.06 kB / 0.6779 GB, free: 400 kB / 0.545 GB Notification: Performance of Cleanup: time 1.755e-05/0.008318, allocations: 15.98 kB / 0.6779 GB, free: 384 kB / 0.545 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) [----] 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, "Switch.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, "Switch.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.001136/0.009459, allocations: 1.002 MB / 0.6789 GB, free: 15.36 MB / 0.5606 GB Notification: Performance of Tearing: time 1.005e-05/0.00948, allocations: 4 kB / 0.6789 GB, free: 15.35 MB / 0.5606 GB Notification: Performance of Initialization: time 3.51e-07/0.009485, allocations: 0 / 0.6789 GB, free: 15.35 MB / 0.5606 GB Notification: Performance of Tearing: time 1.903e-06/0.009492, allocations: 0 / 0.6789 GB, free: 15.35 MB / 0.5606 GB Notification: Performance of Categorize: time 8.215e-06/0.009504, allocations: 0 / 0.6789 GB, free: 15.35 MB / 0.5606 GB Notification: Performance of Solve: time 0.0001127/0.00962, allocations: 63.81 kB / 0.679 GB, free: 15.29 MB / 0.5606 GB Notification: Performance of Jacobian: time 3.877e-06/0.009631, allocations: 0 / 0.679 GB, free: 15.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: .................... 1 (1) {booPul.y} * Number of clocked states: ..................... 0 (0) {NOT YET AVAILABLE} * Number of discrete variables: ................. 6 (6) {$TEV_17, $TEV_16, $TEV_15, $TEV_14, $TEV_13, $TEV_12} * Number of top-level inputs: ................... 0 (0) {} Notification: [Simulation] Strong Component statistics after passing the back-end: * Number of single strong components: ........... 9 (scalar:9, array:0, record:0) * Number of multi strong components: ............ 1 (algorithm:0, when:1, 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: ........... 14 (scalar:14, 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 6.151e-05/0.009697, allocations: 29 kB / 0.679 GB, free: 15.26 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.