Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler.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.Discrete.Examples.TriggeredSampler,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler") translateModel(Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001147/0.001147, allocations: 107.2 kB / 16.38 MB, free: 5.98 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.001063/0.001063, allocations: 188 kB / 17.31 MB, free: 5.59 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.492/1.492, allocations: 205.1 MB / 223.2 MB, free: 12.24 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.827/1.827, allocations: 292.3 MB / 0.5496 GB, free: 17.41 MB / 462.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.242e-05/3.252e-05, allocations: 9.594 kB / 0.6729 GB, free: 5.891 MB / 0.545 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler): time 0.002009/0.002058, allocations: 0.7673 MB / 0.6736 GB, free: 5.121 MB / 0.545 GB Notification: Performance of NFInst.instExpressions: time 0.001496/0.003566, allocations: 1.156 MB / 0.6747 GB, free: 3.949 MB / 0.545 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.615e-05/0.003634, allocations: 8 kB / 0.6748 GB, free: 3.941 MB / 0.545 GB Notification: Performance of NFTyping.typeComponents: time 3.29e-05/0.003673, allocations: 7.875 kB / 0.6748 GB, free: 3.934 MB / 0.545 GB Notification: Performance of NFTyping.typeBindings: time 6.689e-05/0.003745, allocations: 3.938 kB / 0.6748 GB, free: 3.93 MB / 0.545 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005332/0.004295, allocations: 143.4 kB / 0.6749 GB, free: 3.793 MB / 0.545 GB Notification: Performance of NFFlatten.flatten: time 0.0001731/0.004476, allocations: 135.8 kB / 0.675 GB, free: 3.66 MB / 0.545 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001161/0.004598, allocations: 16.19 kB / 0.675 GB, free: 3.641 MB / 0.545 GB Notification: Performance of NFEvalConstants.evaluate: time 9.825e-05/0.004703, allocations: 55.83 kB / 0.6751 GB, free: 3.586 MB / 0.545 GB Notification: Performance of NFSimplifyModel.simplify: time 9.76e-05/0.004809, allocations: 51.81 kB / 0.6752 GB, free: 3.535 MB / 0.545 GB Notification: Performance of NFPackage.collectConstants: time 2.458e-05/0.004841, allocations: 12 kB / 0.6752 GB, free: 3.523 MB / 0.545 GB Notification: Performance of NFFlatten.collectFunctions: time 7.558e-05/0.004922, allocations: 27.98 kB / 0.6752 GB, free: 3.496 MB / 0.545 GB Notification: Performance of combineBinaries: time 0.0001333/0.005061, allocations: 122.8 kB / 0.6753 GB, free: 3.375 MB / 0.545 GB Notification: Performance of replaceArrayConstructors: time 3.876e-05/0.005106, allocations: 67.03 kB / 0.6754 GB, free: 3.309 MB / 0.545 GB Notification: Performance of NFVerifyModel.verify: time 3.882e-05/0.00515, allocations: 11.94 kB / 0.6754 GB, free: 3.297 MB / 0.545 GB Notification: Performance of FrontEnd: time 1.555e-05/0.00517, allocations: 0 / 0.6754 GB, free: 3.297 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: 10 (10) * Number of variables: 10 (10) Notification: Performance of Bindings: time 0.000591/0.005768, allocations: 0.4995 MB / 0.6759 GB, free: 2.695 MB / 0.545 GB Notification: Performance of FunctionAlias: time 9.232e-05/0.005865, allocations: 51.86 kB / 0.6759 GB, free: 2.645 MB / 0.545 GB Notification: Performance of Early Inline: time 0.0004018/0.006274, allocations: 360.1 kB / 0.6763 GB, free: 2.266 MB / 0.545 GB Notification: Performance of simplify1: time 1.503e-05/0.0063, allocations: 15.97 kB / 0.6763 GB, free: 2.25 MB / 0.545 GB Notification: Performance of Alias: time 0.0004181/0.006723, allocations: 289.4 kB / 0.6766 GB, free: 1.906 MB / 0.545 GB Notification: Performance of simplify2: time 1.27e-05/0.006747, allocations: 19.97 kB / 0.6766 GB, free: 1.887 MB / 0.545 GB Notification: Performance of Events: time 0.000268/0.00702, allocations: 167.9 kB / 0.6767 GB, free: 1.723 MB / 0.545 GB Notification: Performance of Detect States: time 0.000253/0.007282, allocations: 192 kB / 0.6769 GB, free: 1.52 MB / 0.545 GB Notification: Performance of Partitioning: time 7.458e-05/0.007365, allocations: 48.05 kB / 0.677 GB, free: 1.465 MB / 0.545 GB Notification: Performance of Causalize: time 0.000286/0.007657, allocations: 247.9 kB / 0.6772 GB, free: 1.215 MB / 0.545 GB Notification: Performance of After Index Reduction Inline: time 0.0002613/0.007927, allocations: 292.2 kB / 0.6775 GB, free: 0.9023 MB / 0.545 GB Notification: Performance of Inline: time 0.0004233/0.008359, allocations: 436.1 kB / 0.6779 GB, free: 452 kB / 0.545 GB Notification: Performance of Partitioning: time 2.432e-05/0.008392, allocations: 24.06 kB / 0.6779 GB, free: 420 kB / 0.545 GB Notification: Performance of Cleanup: time 1.722e-05/0.008414, allocations: 11.92 kB / 0.6779 GB, free: 408 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_2 + booPul.period * integer(time / booPul.period) > 0.0 then 1e-6 * floor(0.5 + 1e6 * ($FUN_2 + booPul.period * integer(time / booPul.period))) else 1e-6 * ceil((-0.5) + 1e6 * ($FUN_2 + 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, "TriggeredSampler.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); [----] triSam.trigger := time >= booPul.t0 and time < booPul.t1; [----] elseif true then [----] assert(booPul.t1 <= time and time < booPul.t0, "TriggeredSampler.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); [----] triSam.trigger := not (time >= booPul.t1 and time < booPul.t0); [----] end if; slice: {1, 2}; Notification: Performance of Causalize: time 0.001096/0.009516, allocations: 1.013 MB / 0.6789 GB, free: 15.37 MB / 0.5606 GB Notification: Performance of Tearing: time 8.126e-06/0.009537, allocations: 11.97 kB / 0.6789 GB, free: 15.36 MB / 0.5606 GB Notification: Performance of Initialization: time 3.11e-07/0.009542, allocations: 0 / 0.6789 GB, free: 15.36 MB / 0.5606 GB Notification: Performance of Tearing: time 1.403e-06/0.009548, allocations: 80 / 0.6789 GB, free: 15.36 MB / 0.5606 GB Notification: Performance of Categorize: time 8.175e-06/0.00956, allocations: 3.984 kB / 0.6789 GB, free: 15.36 MB / 0.5606 GB Notification: Performance of Solve: time 9.112e-05/0.009655, allocations: 43.97 kB / 0.679 GB, free: 15.31 MB / 0.5606 GB Notification: Performance of Jacobian: time 3.156e-06/0.009666, allocations: 0 / 0.679 GB, free: 15.31 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) {triSam1.y, triSam.y, triSam.trigger} * Number of clocked states: ..................... 0 (0) {NOT YET AVAILABLE} * Number of discrete variables: ................. 4 (4) {$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: ........... 6 (scalar:6, 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: ........... 15 (scalar:15, 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.784e-05/0.009708, allocations: 26.67 kB / 0.679 GB, free: 15.29 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.