Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax.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.TriggeredMax,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax") translateModel(Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001218/0.001218, allocations: 112.6 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.001087/0.001087, 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.55/1.55, 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.856/1.856, allocations: 292.3 MB / 0.5496 GB, free: 17.43 MB / 462.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.523e-05/2.524e-05, allocations: 6.219 kB / 0.6729 GB, free: 5.875 MB / 0.545 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax): time 0.002099/0.002141, allocations: 0.74 MB / 0.6736 GB, free: 5.133 MB / 0.545 GB Notification: Performance of NFInst.instExpressions: time 0.001632/0.003787, allocations: 1.187 MB / 0.6748 GB, free: 3.93 MB / 0.545 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.468e-05/0.003853, allocations: 4 kB / 0.6748 GB, free: 3.926 MB / 0.545 GB Notification: Performance of NFTyping.typeComponents: time 2.803e-05/0.003886, allocations: 3.938 kB / 0.6748 GB, free: 3.922 MB / 0.545 GB Notification: Performance of NFTyping.typeBindings: time 7.519e-05/0.003966, allocations: 11.91 kB / 0.6748 GB, free: 3.91 MB / 0.545 GB Notification: Performance of NFTyping.typeClassSections: time 0.000531/0.004512, allocations: 151.2 kB / 0.6749 GB, free: 3.766 MB / 0.545 GB Notification: Performance of NFFlatten.flatten: time 0.0001778/0.004697, allocations: 123.8 kB / 0.675 GB, free: 3.645 MB / 0.545 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001035/0.004808, allocations: 15.98 kB / 0.675 GB, free: 3.629 MB / 0.545 GB Notification: Performance of NFEvalConstants.evaluate: time 9.181e-05/0.004908, allocations: 47.91 kB / 0.6751 GB, free: 3.582 MB / 0.545 GB Notification: Performance of NFSimplifyModel.simplify: time 9.347e-05/0.005008, allocations: 43.88 kB / 0.6751 GB, free: 3.539 MB / 0.545 GB Notification: Performance of NFPackage.collectConstants: time 2.35e-05/0.005037, allocations: 12 kB / 0.6751 GB, free: 3.527 MB / 0.545 GB Notification: Performance of NFFlatten.collectFunctions: time 7.486e-05/0.005116, allocations: 23.98 kB / 0.6752 GB, free: 3.504 MB / 0.545 GB Notification: Performance of combineBinaries: time 0.0001112/0.005234, allocations: 107.1 kB / 0.6753 GB, free: 3.398 MB / 0.545 GB Notification: Performance of replaceArrayConstructors: time 2.795e-05/0.005268, allocations: 47.22 kB / 0.6753 GB, free: 3.352 MB / 0.545 GB Notification: Performance of NFVerifyModel.verify: time 3.916e-05/0.005312, allocations: 15.94 kB / 0.6753 GB, free: 3.336 MB / 0.545 GB Notification: Performance of FrontEnd: time 1.244e-05/0.005329, allocations: 0 / 0.6753 GB, free: 3.336 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.0005782/0.005913, allocations: 443.9 kB / 0.6758 GB, free: 2.801 MB / 0.545 GB Notification: Performance of FunctionAlias: time 8.645e-05/0.006006, allocations: 43.92 kB / 0.6758 GB, free: 2.758 MB / 0.545 GB Notification: Performance of Early Inline: time 0.0003861/0.006399, allocations: 356 kB / 0.6761 GB, free: 2.383 MB / 0.545 GB Notification: Performance of simplify1: time 2.006e-05/0.006428, allocations: 11.98 kB / 0.6761 GB, free: 2.371 MB / 0.545 GB Notification: Performance of Alias: time 0.0003602/0.006793, allocations: 237.6 kB / 0.6764 GB, free: 2.078 MB / 0.545 GB Notification: Performance of simplify2: time 1.026e-05/0.006815, allocations: 12 kB / 0.6764 GB, free: 2.066 MB / 0.545 GB Notification: Performance of Events: time 0.0002603/0.007081, allocations: 179.5 kB / 0.6766 GB, free: 1.891 MB / 0.545 GB Notification: Performance of Detect States: time 0.000433/0.007522, allocations: 172.1 kB / 0.6767 GB, free: 1.707 MB / 0.545 GB Notification: Performance of Partitioning: time 7.544e-05/0.007606, allocations: 44.12 kB / 0.6768 GB, free: 1.656 MB / 0.545 GB Notification: Performance of Causalize: time 0.0002557/0.007867, allocations: 220.5 kB / 0.677 GB, free: 1.434 MB / 0.545 GB Notification: Performance of After Index Reduction Inline: time 0.0002466/0.008122, allocations: 280.5 kB / 0.6772 GB, free: 1.133 MB / 0.545 GB Notification: Performance of Inline: time 0.0004095/0.008539, allocations: 420.2 kB / 0.6776 GB, free: 0.6875 MB / 0.545 GB Notification: Performance of Partitioning: time 2.215e-05/0.008569, allocations: 20.12 kB / 0.6777 GB, free: 0.6602 MB / 0.545 GB Notification: Performance of Cleanup: time 1.73e-05/0.008591, allocations: 15.92 kB / 0.6777 GB, free: 0.6445 MB / 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, "TriggeredMax.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, "TriggeredMax.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.00104/0.009636, allocations: 0.9186 MB / 0.6786 GB, free: 15.7 MB / 0.5606 GB Notification: Performance of Tearing: time 6.953e-06/0.009653, allocations: 0 / 0.6786 GB, free: 15.7 MB / 0.5606 GB Notification: Performance of Initialization: time 3.5e-07/0.009661, allocations: 4 kB / 0.6786 GB, free: 15.7 MB / 0.5606 GB Notification: Performance of Tearing: time 9.01e-07/0.009667, allocations: 0 / 0.6786 GB, free: 15.7 MB / 0.5606 GB Notification: Performance of Categorize: time 7.434e-06/0.009679, allocations: 0 / 0.6786 GB, free: 15.7 MB / 0.5606 GB Notification: Performance of Solve: time 0.0001029/0.009786, allocations: 39.91 kB / 0.6786 GB, free: 15.66 MB / 0.5606 GB Notification: Performance of Jacobian: time 5.851e-06/0.009808, allocations: 4 kB / 0.6786 GB, free: 15.66 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) {booPul.y, triggeredMax.y} * 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: ............ 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: ........... 13 (scalar:13, 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.277e-05/0.009856, allocations: 27.95 kB / 0.6786 GB, free: 15.63 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.