Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_Buildings.Controls.OBC.CDL.Continuous.Validation.IntegratorWithReset.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.Continuous.Validation.IntegratorWithReset,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Controls.OBC.CDL.Continuous.Validation.IntegratorWithReset") translateModel(Buildings.Controls.OBC.CDL.Continuous.Validation.IntegratorWithReset,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Controls.OBC.CDL.Continuous.Validation.IntegratorWithReset") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001102/0.001102, allocations: 105.8 kB / 16.38 MB, free: 6.48 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.001156/0.001156, allocations: 190.5 kB / 17.31 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.333/1.333, 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.71/1.71, allocations: 292.3 MB / 0.5496 GB, free: 17.54 MB / 462.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.73e-05/2.753e-05, allocations: 2.281 kB / 0.6729 GB, free: 5.906 MB / 0.545 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Continuous.Validation.IntegratorWithReset): time 0.002159/0.002203, allocations: 0.897 MB / 0.6738 GB, free: 5.004 MB / 0.545 GB Notification: Performance of NFInst.instExpressions: time 0.001702/0.003919, allocations: 1.168 MB / 0.6749 GB, free: 3.82 MB / 0.545 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.251e-05/0.003992, allocations: 4 kB / 0.6749 GB, free: 3.816 MB / 0.545 GB Notification: Performance of NFTyping.typeComponents: time 4.025e-05/0.004038, allocations: 7.875 kB / 0.6749 GB, free: 3.809 MB / 0.545 GB Notification: Performance of NFTyping.typeBindings: time 8.742e-05/0.00413, allocations: 19.78 kB / 0.6749 GB, free: 3.789 MB / 0.545 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005283/0.004674, allocations: 151.2 kB / 0.6751 GB, free: 3.645 MB / 0.545 GB Notification: Performance of NFFlatten.flatten: time 0.0002207/0.004904, allocations: 183.6 kB / 0.6752 GB, free: 3.465 MB / 0.545 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001539/0.005065, allocations: 49.03 kB / 0.6753 GB, free: 3.414 MB / 0.545 GB Notification: Performance of NFEvalConstants.evaluate: time 9.829e-05/0.005169, allocations: 71.75 kB / 0.6754 GB, free: 3.344 MB / 0.545 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001095/0.005284, allocations: 67.73 kB / 0.6754 GB, free: 3.277 MB / 0.545 GB Notification: Performance of NFPackage.collectConstants: time 3.569e-05/0.005325, allocations: 16 kB / 0.6754 GB, free: 3.262 MB / 0.545 GB Notification: Performance of NFFlatten.collectFunctions: time 6.956e-05/0.0054, allocations: 24 kB / 0.6755 GB, free: 3.238 MB / 0.545 GB Notification: Performance of combineBinaries: time 0.0001579/0.005564, allocations: 194 kB / 0.6756 GB, free: 3.047 MB / 0.545 GB Notification: Performance of replaceArrayConstructors: time 5.084e-05/0.00562, allocations: 102.4 kB / 0.6757 GB, free: 2.945 MB / 0.545 GB Notification: Performance of NFVerifyModel.verify: time 3.807e-05/0.005663, allocations: 19.94 kB / 0.6758 GB, free: 2.926 MB / 0.545 GB Notification: Performance of FrontEnd: time 1.617e-05/0.005684, allocations: 0 / 0.6758 GB, free: 2.926 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: 16 (16) * Number of variables: 16 (16) Notification: Performance of Bindings: time 0.0006966/0.006388, allocations: 0.6749 MB / 0.6764 GB, free: 2.148 MB / 0.545 GB Notification: Performance of FunctionAlias: time 0.0001076/0.006501, allocations: 59.89 kB / 0.6765 GB, free: 2.09 MB / 0.545 GB Notification: Performance of Early Inline: time 0.000494/0.007002, allocations: 471.9 kB / 0.6769 GB, free: 1.602 MB / 0.545 GB Notification: Performance of simplify1: time 2.631e-05/0.007039, allocations: 27.97 kB / 0.677 GB, free: 1.574 MB / 0.545 GB Notification: Performance of Alias: time 0.000543/0.007587, allocations: 410.1 kB / 0.6773 GB, free: 1.105 MB / 0.545 GB Notification: Performance of simplify2: time 2.348e-05/0.007621, allocations: 19.97 kB / 0.6774 GB, free: 1.086 MB / 0.545 GB Notification: Performance of Events: time 0.0002957/0.007922, allocations: 212.6 kB / 0.6776 GB, free: 0.8789 MB / 0.545 GB Notification: Performance of Detect States: time 0.0002804/0.008211, allocations: 223.9 kB / 0.6778 GB, free: 0.6445 MB / 0.545 GB Notification: Performance of Partitioning: time 0.0001252/0.008346, allocations: 120.8 kB / 0.6779 GB, free: 484 kB / 0.545 GB Notification: Performance of Causalize: time 0.000396/0.008748, allocations: 398.1 kB / 0.6783 GB, free: 32 kB / 0.545 GB Notification: Performance of After Index Reduction Inline: time 0.0003481/0.009105, allocations: 372.8 kB / 0.6786 GB, free: 15.64 MB / 0.5606 GB Notification: Performance of Inline: time 0.0005751/0.009689, allocations: 0.5661 MB / 0.6792 GB, free: 15.04 MB / 0.5606 GB Notification: Performance of Partitioning: time 2.965e-05/0.009729, allocations: 24.11 kB / 0.6792 GB, free: 15.01 MB / 0.5606 GB Notification: Performance of Cleanup: time 2.145e-05/0.009755, allocations: 23.91 kB / 0.6792 GB, free: 14.98 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) [----] booleanPulse.t0 := if $FUN_2 + booleanPulse.period * integer(time / booleanPulse.period) > 0.0 then 1e-6 * floor(0.5 + 1e6 * ($FUN_2 + booleanPulse.period * integer(time / booleanPulse.period))) else 1e-6 * ceil((-0.5) + 1e6 * ($FUN_2 + booleanPulse.period * integer(time / booleanPulse.period))); [----] booleanPulse.t1 := booleanPulse.t0 + booleanPulse.width * booleanPulse.period; [----] if time + booleanPulse.period < booleanPulse.t1 then [----] booleanPulse.t0 := booleanPulse.t0 - booleanPulse.period; [----] booleanPulse.t1 := booleanPulse.t1 - booleanPulse.period; [----] end if; [----] if time >= booleanPulse.t1 then [----] booleanPulse.t0 := booleanPulse.t0 + booleanPulse.period; [----] elseif time < booleanPulse.t0 then [----] booleanPulse.t1 := booleanPulse.t1 - booleanPulse.period; [----] end if; [----] if booleanPulse.t0 < booleanPulse.t1 then [----] assert(booleanPulse.t0 <= time and time < booleanPulse.t1, "IntegratorWithReset.booleanPulse: Implementation error in initial time calculation: t0 = " + String(booleanPulse.t0, 6, 0, true) + ", t1 = " + String(booleanPulse.t1, 6, 0, true) + ", period = " + String(booleanPulse.period, 6, 0, true) + ", time = " + String(time, 6, 0, true), AssertionLevel.error); [----] booleanPulse.y := time >= booleanPulse.t0 and time < booleanPulse.t1; [----] elseif true then [----] assert(booleanPulse.t1 <= time and time < booleanPulse.t0, "IntegratorWithReset.booleanPulse: Implementation error in initial time calculation: t0 = " + String(booleanPulse.t0, 6, 0, true) + ", t1 = " + String(booleanPulse.t1, 6, 0, true) + ", period = " + String(booleanPulse.period, 6, 0, true) + ", time = " + String(time, 6, 0, true), AssertionLevel.error); [----] booleanPulse.y := not (time >= booleanPulse.t1 and time < booleanPulse.t0); [----] end if; slice: {1, 2}; Notification: Performance of Causalize: time 0.00158/0.01134, allocations: 1.484 MB / 0.6807 GB, free: 13.49 MB / 0.5606 GB Notification: Performance of Tearing: time 6.142e-06/0.01136, allocations: 4 kB / 0.6807 GB, free: 13.48 MB / 0.5606 GB Notification: Performance of Initialization: time 3.41e-07/0.01136, allocations: 0 / 0.6807 GB, free: 13.48 MB / 0.5606 GB Notification: Performance of Tearing: time 2.094e-06/0.01137, allocations: 0 / 0.6807 GB, free: 13.48 MB / 0.5606 GB Notification: Performance of Categorize: time 1.354e-05/0.01139, allocations: 3.938 kB / 0.6807 GB, free: 13.48 MB / 0.5606 GB Notification: Performance of Solve: time 0.000138/0.01153, allocations: 87.95 kB / 0.6808 GB, free: 13.39 MB / 0.5606 GB Notification: Performance of Jacobian: time 0.0003518/0.01189, allocations: 0.5375 MB / 0.6813 GB, free: 12.75 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: ............... 3 * Number of algebraic event partitions: ......... 4 * 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: ............................. 3 (3) {intDef.y, intWitRes1.y, intWitRes2.y} * Number of discrete states: .................... 1 (1) {booleanPulse.y} * Number of clocked states: ..................... 0 (0) {NOT YET AVAILABLE} * Number of discrete variables: ................. 7 (7) {intWitRes1.trigger, $SEV_3, $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: ........... 11 (scalar:11, 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: ........... 25 (scalar:25, 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.939e-05/0.01195, allocations: 32.28 kB / 0.6813 GB, free: 12.72 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.