Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_Buildings.Controls.OBC.CDL.Logical.Validation.Xor.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.Xor,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Controls.OBC.CDL.Logical.Validation.Xor") translateModel(Buildings.Controls.OBC.CDL.Logical.Validation.Xor,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Controls.OBC.CDL.Logical.Validation.Xor") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001101/0.001101, allocations: 109.3 kB / 16.38 MB, free: 6.488 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.000997/0.0009969, allocations: 190.5 kB / 17.32 MB, free: 5.797 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.395/1.395, 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.794/1.794, allocations: 292.3 MB / 0.5496 GB, free: 17.52 MB / 462.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.486e-05/2.488e-05, allocations: 6.219 kB / 0.6729 GB, free: 5.875 MB / 0.545 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Validation.Xor): time 0.001761/0.001802, allocations: 0.6707 MB / 0.6735 GB, free: 5.199 MB / 0.545 GB Notification: Performance of NFInst.instExpressions: time 0.00147/0.003285, allocations: 1.188 MB / 0.6747 GB, free: 3.996 MB / 0.545 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.182e-05/0.00334, allocations: 0 / 0.6747 GB, free: 3.996 MB / 0.545 GB Notification: Performance of NFTyping.typeComponents: time 2.822e-05/0.003375, allocations: 7.922 kB / 0.6747 GB, free: 3.988 MB / 0.545 GB Notification: Performance of NFTyping.typeBindings: time 7.2e-05/0.003459, allocations: 19.86 kB / 0.6747 GB, free: 3.969 MB / 0.545 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005804/0.004045, allocations: 214.2 kB / 0.6749 GB, free: 3.766 MB / 0.545 GB Notification: Performance of NFFlatten.flatten: time 0.0002035/0.004256, allocations: 191.7 kB / 0.6751 GB, free: 3.578 MB / 0.545 GB Notification: Performance of NFFlatten.resolveConnections: time 9.346e-05/0.004356, allocations: 15.97 kB / 0.6751 GB, free: 3.562 MB / 0.545 GB Notification: Performance of NFEvalConstants.evaluate: time 9.577e-05/0.004457, allocations: 59.95 kB / 0.6752 GB, free: 3.504 MB / 0.545 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001099/0.004573, allocations: 67.78 kB / 0.6752 GB, free: 3.438 MB / 0.545 GB Notification: Performance of NFPackage.collectConstants: time 3.112e-05/0.00461, allocations: 19.94 kB / 0.6753 GB, free: 3.418 MB / 0.545 GB Notification: Performance of NFFlatten.collectFunctions: time 7.444e-05/0.004689, allocations: 31.98 kB / 0.6753 GB, free: 3.387 MB / 0.545 GB Notification: Performance of combineBinaries: time 0.000128/0.004823, allocations: 123.1 kB / 0.6754 GB, free: 3.266 MB / 0.545 GB Notification: Performance of replaceArrayConstructors: time 2.191e-05/0.004851, allocations: 43.38 kB / 0.6754 GB, free: 3.223 MB / 0.545 GB Notification: Performance of NFVerifyModel.verify: time 3.544e-05/0.004892, allocations: 19.94 kB / 0.6755 GB, free: 3.203 MB / 0.545 GB Notification: Performance of FrontEnd: time 9.888e-06/0.004906, allocations: 0 / 0.6755 GB, free: 3.203 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.0005549/0.005465, allocations: 0.4924 MB / 0.6759 GB, free: 2.609 MB / 0.545 GB Notification: Performance of FunctionAlias: time 0.000105/0.005577, allocations: 75.78 kB / 0.676 GB, free: 2.535 MB / 0.545 GB Notification: Performance of Early Inline: time 0.0005039/0.00609, allocations: 487.9 kB / 0.6765 GB, free: 2.031 MB / 0.545 GB Notification: Performance of simplify1: time 1.154e-05/0.006111, allocations: 11.98 kB / 0.6765 GB, free: 2.02 MB / 0.545 GB Notification: Performance of Alias: time 0.0003437/0.00646, allocations: 249.1 kB / 0.6767 GB, free: 1.723 MB / 0.545 GB Notification: Performance of simplify2: time 6.482e-06/0.006475, allocations: 3.984 kB / 0.6767 GB, free: 1.719 MB / 0.545 GB Notification: Performance of Events: time 0.0003858/0.006865, allocations: 311.3 kB / 0.677 GB, free: 1.414 MB / 0.545 GB Notification: Performance of Detect States: time 0.0002991/0.007173, allocations: 272 kB / 0.6773 GB, free: 1.133 MB / 0.545 GB Notification: Performance of Partitioning: time 5.844e-05/0.007239, allocations: 40.11 kB / 0.6773 GB, free: 1.086 MB / 0.545 GB Notification: Performance of Causalize: time 0.0002352/0.00748, allocations: 208.1 kB / 0.6775 GB, free: 0.875 MB / 0.545 GB Notification: Performance of After Index Reduction Inline: time 0.0003514/0.00784, allocations: 404.2 kB / 0.6779 GB, free: 464 kB / 0.545 GB Notification: Performance of Inline: time 0.0005448/0.008391, allocations: 0.5392 MB / 0.6784 GB, free: 15.88 MB / 0.5606 GB Notification: Performance of Partitioning: time 2.284e-05/0.008423, allocations: 24.06 kB / 0.6785 GB, free: 15.84 MB / 0.5606 GB Notification: Performance of Cleanup: time 1.365e-05/0.008442, allocations: 11.98 kB / 0.6785 GB, free: 15.83 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, "Xor.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, "Xor.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, "Xor.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, "Xor.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.00127/0.009716, allocations: 1.293 MB / 0.6797 GB, free: 14.53 MB / 0.5606 GB Notification: Performance of Tearing: time 6.372e-06/0.009733, allocations: 0 / 0.6797 GB, free: 14.53 MB / 0.5606 GB Notification: Performance of Initialization: time 3.11e-07/0.009738, allocations: 0 / 0.6797 GB, free: 14.53 MB / 0.5606 GB Notification: Performance of Tearing: time 1.072e-06/0.009743, allocations: 160 / 0.6797 GB, free: 14.53 MB / 0.5606 GB Notification: Performance of Categorize: time 6.502e-06/0.009753, allocations: 0 / 0.6797 GB, free: 14.53 MB / 0.5606 GB Notification: Performance of Solve: time 9.895e-05/0.009856, allocations: 63.88 kB / 0.6798 GB, free: 14.47 MB / 0.5606 GB Notification: Performance of Jacobian: time 3.697e-06/0.009874, allocations: 64 / 0.6798 GB, free: 14.47 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) {xor1.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 3.417e-05/0.009913, allocations: 32.94 kB / 0.6798 GB, free: 14.44 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.