Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.DHC.Plants.Cooling.Controls.Validation.TankStatus.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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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.DHC.Plants.Cooling.Controls.Validation.TankStatus,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|tanSta.TTan.1.|tanSta.TTan.2.|tanSta.THig|tanSta.TLow|tanSta.y.1.|tanSta.y.2.",fileNamePrefix="Buildings_latest_Buildings.DHC.Plants.Cooling.Controls.Validation.TankStatus") translateModel(Buildings.DHC.Plants.Cooling.Controls.Validation.TankStatus,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|tanSta.TTan.1.|tanSta.TTan.2.|tanSta.THig|tanSta.TLow|tanSta.y.1.|tanSta.y.2.",fileNamePrefix="Buildings_latest_Buildings.DHC.Plants.Cooling.Controls.Validation.TankStatus") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001104/0.001104, allocations: 109.1 kB / 16.42 MB, free: 6.473 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.001068/0.001068, allocations: 189.5 kB / 17.36 MB, free: 5.707 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.134/1.134, allocations: 222.9 MB / 241 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.164/2.164, allocations: 461.9 MB / 0.7354 GB, free: 11.06 MB / 0.6075 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.453e-05/1.455e-05, allocations: 2.281 kB / 1.055 GB, free: 7.723 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.DHC.Plants.Cooling.Controls.Validation.TankStatus): time 0.002829/0.002852, allocations: 2.256 MB / 1.057 GB, free: 5.457 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.001825/0.004688, allocations: 1.263 MB / 1.058 GB, free: 4.188 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001658/0.004864, allocations: 7.938 kB / 1.058 GB, free: 4.18 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 0.0003158/0.005187, allocations: 171.3 kB / 1.058 GB, free: 4.012 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 0.0003011/0.005497, allocations: 171.2 kB / 1.058 GB, free: 3.844 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004805/0.005994, allocations: 251.6 kB / 1.059 GB, free: 3.602 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.00042/0.006421, allocations: 446.8 kB / 1.059 GB, free: 3.164 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001463/0.006575, allocations: 105.2 kB / 1.059 GB, free: 3.059 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002321/0.006815, allocations: 183.3 kB / 1.059 GB, free: 2.879 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001832/0.007005, allocations: 163.3 kB / 1.059 GB, free: 2.719 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 4.83e-05/0.00706, allocations: 24 kB / 1.06 GB, free: 2.695 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001349/0.007201, allocations: 79.97 kB / 1.06 GB, free: 2.617 MB / 0.8262 GB Notification: Performance of combineBinaries: time 0.0002867/0.007494, allocations: 486.3 kB / 1.06 GB, free: 2.137 MB / 0.8262 GB Notification: Performance of replaceArrayConstructors: time 0.0001497/0.00765, allocations: 311.5 kB / 1.06 GB, free: 1.828 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 4.875e-05/0.007704, allocations: 55.8 kB / 1.06 GB, free: 1.773 MB / 0.8262 GB Notification: Performance of FrontEnd: time 3.806e-05/0.007746, allocations: 7.938 kB / 1.06 GB, free: 1.766 MB / 0.8262 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 29 (29) * Number of variables: 29 (27) Notification: Performance of Bindings: time 0.0009999/0.008751, allocations: 1.299 MB / 1.062 GB, free: 368 kB / 0.8262 GB Notification: Performance of FunctionAlias: time 6.738e-05/0.008826, allocations: 62.44 kB / 1.062 GB, free: 312 kB / 0.8262 GB Notification: Performance of Early Inline: time 0.00048/0.009313, allocations: 0.5635 MB / 1.062 GB, free: 15.71 MB / 0.8419 GB Notification: Performance of simplify1: time 4.493e-05/0.009366, allocations: 47.92 kB / 1.062 GB, free: 15.67 MB / 0.8419 GB Notification: Performance of Alias: time 0.0007235/0.0101, allocations: 0.7164 MB / 1.063 GB, free: 14.86 MB / 0.8419 GB Notification: Performance of simplify2: time 4.93e-05/0.01015, allocations: 43.94 kB / 1.063 GB, free: 14.82 MB / 0.8419 GB Notification: Performance of Events: time 0.0002135/0.01037, allocations: 164.1 kB / 1.063 GB, free: 14.66 MB / 0.8419 GB Notification: Performance of Detect States: time 0.000213/0.01059, allocations: 242.3 kB / 1.063 GB, free: 14.41 MB / 0.8419 GB Notification: Performance of Partitioning: time 0.0002013/0.0108, allocations: 240.9 kB / 1.064 GB, free: 14.11 MB / 0.8419 GB Notification: Performance of Causalize: time 0.0007233/0.01153, allocations: 0.7357 MB / 1.064 GB, free: 13.32 MB / 0.8419 GB Notification: Performance of After Index Reduction Inline: time 0.0004129/0.01195, allocations: 0.5103 MB / 1.065 GB, free: 12.78 MB / 0.8419 GB Notification: Performance of Inline: time 0.001099/0.01306, allocations: 1.243 MB / 1.066 GB, free: 11.5 MB / 0.8419 GB Notification: Performance of Partitioning: time 7.523e-05/0.01314, allocations: 75.61 kB / 1.066 GB, free: 11.42 MB / 0.8419 GB Notification: Performance of Cleanup: time 3.833e-05/0.01319, allocations: 39.89 kB / 1.066 GB, free: 11.38 MB / 0.8419 GB Warning: NBResolveSingularities.balanceInitialization reports an overdetermined initialization! Checking for consistency is not yet supported, following equations had to be removed: [SCAL] (1) $SEV_10 = not pre(not tanSta.not1.y) and tanSta.hysCha.u > tanSta.hysCha.uHigh or pre(not tanSta.not1.y) and tanSta.hysCha.u >= tanSta.hysCha.uLow ($RES_EVT_51) slice: {}; Notification: Performance of Causalize: time 0.003414/0.01661, allocations: 3.449 MB / 1.07 GB, free: 7.879 MB / 0.8419 GB Notification: Performance of Tearing: time 6.291e-06/0.01662, allocations: 4 kB / 1.07 GB, free: 7.875 MB / 0.8419 GB Notification: Performance of Initialization: time 4.71e-07/0.01663, allocations: 0 / 1.07 GB, free: 7.875 MB / 0.8419 GB Notification: Performance of Tearing: time 0.0001458/0.01678, allocations: 226.1 kB / 1.07 GB, free: 7.605 MB / 0.8419 GB Notification: Performance of Categorize: time 9.187e-06/0.0168, allocations: 4.031 kB / 1.07 GB, free: 7.602 MB / 0.8419 GB Notification: Performance of Solve: time 0.0004093/0.01721, allocations: 0.6399 MB / 1.07 GB, free: 6.91 MB / 0.8419 GB Notification: Performance of Jacobian: time 1.874e-06/0.01722, allocations: 0 / 1.07 GB, free: 6.91 MB / 0.8419 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: ......... 8 * 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: .................... 4 (4) {TTanTop.tab.nextTimeEvent, TTanTop.tab.nextTimeEventScaled, TTanBot.tab.nextTimeEventScaled, TTanBot.tab.nextTimeEvent} * Number of clocked states: ..................... 0 (0) {NOT YET AVAILABLE} * Number of discrete variables: ................. 19 (18) {tanSta.hysEmp.y, tanSta.not1.y, tanSta.y, tanSta.assMes.u, $SEV_10, $SEV_9, $SEV_8, $SEV_7, $SEV_6, $SEV_5, $SEV_4, $SEV_3, $SEV_2, $SEV_1, $SEV_0, $TEV_2, $TEV_1, $TEV_0} * Number of top-level inputs: ................... 0 (0) {} Notification: [Simulation] Strong Component statistics after passing the back-end: * Number of single strong components: ........... 27 (scalar:25, array:2, record:0) * Number of multi strong components: ............ 4 (algorithm:0, when:4, if:0, tuple:0) * Number of for-loop strong components: ......... 0 (generic: 0, entwined:0) * Number of algebraic-loop strong components: ... 1 (linear: 0, nonlinear:1) Notification: [Initialization] Strong Component statistics after passing the back-end: * Number of single strong components: ........... 65 (scalar:59, array:4, record:2) * Number of multi strong components: ............ 4 (algorithm:4, when:0, if:0, tuple:0) * Number of for-loop strong components: ......... 0 (generic: 0, entwined:0) * Number of algebraic-loop strong components: ... 1 (linear: 0, nonlinear:1) Notification: Performance of backend: time 5.883e-05/0.01728, allocations: 42.95 kB / 1.07 GB, free: 6.875 MB / 0.8419 GB Notification: Performance of SimCode: time 0.00223/0.01952, allocations: 2.522 MB / 1.073 GB, free: 4.484 MB / 0.8419 GB Error: Template error: A template call failed (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../lib/x86_64-linux-gnu/omc/libOpenModelicaCompiler.so: (null)). One possible reason could be that a template imported function call failed (which should not happen for functions called from within template code; templates assert pure 'match'/non-failing semantics). [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SerializeModelInfo.mo:116:9-116:84:writable] Error: Internal error SerializeModelInfo.serialize failed [CodegenCFunctions.tpl:7222:11-7222:11:writable] Error: Template error: Code generation does not support pre(not tanSta.not1.y). [CodegenCFunctions.tpl:5962:14-5962:14:writable] Error: Template error: daeExpLbinary:ERR. [CodegenCFunctions.tpl:7222:11-7222:11:writable] Error: Template error: Code generation does not support pre(not tanSta.not1.y). [CodegenCFunctions.tpl:5962:14-5962:14:writable] Error: Template error: daeExpLbinary:ERR.