Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-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.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|linPieTwo.u|linPieTwo.y.1.|linPieTwo.y.2.",fileNamePrefix="Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo") translateModel(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|linPieTwo.u|linPieTwo.y.1.|linPieTwo.y.2.",fileNamePrefix="Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001081/0.001081, allocations: 117.3 kB / 16.42 MB, free: 6.363 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.001168/0.001168, allocations: 194.8 kB / 17.35 MB, free: 5.816 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.252/1.252, allocations: 222.9 MB / 241 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.395/2.395, allocations: 472.6 MB / 0.7459 GB, free: 0.5352 MB / 0.6075 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.722e-05/2.724e-05, allocations: 2.281 kB / 1.07 GB, free: 9.734 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo): time 0.003094/0.003129, allocations: 1.776 MB / 1.072 GB, free: 7.949 MB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.001609/0.004754, allocations: 0.9199 MB / 1.073 GB, free: 7.023 MB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001312/0.004897, allocations: 3.938 kB / 1.073 GB, free: 7.02 MB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 0.0005295/0.005432, allocations: 195.2 kB / 1.073 GB, free: 6.832 MB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 0.000434/0.005874, allocations: 161 kB / 1.073 GB, free: 6.676 MB / 0.8419 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005186/0.0064, allocations: 212.9 kB / 1.073 GB, free: 6.473 MB / 0.8419 GB Notification: Performance of NFFlatten.flatten: time 0.0003641/0.006772, allocations: 263.4 kB / 1.073 GB, free: 6.215 MB / 0.8419 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001661/0.006945, allocations: 61.64 kB / 1.074 GB, free: 6.156 MB / 0.8419 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001883/0.00714, allocations: 103.7 kB / 1.074 GB, free: 6.055 MB / 0.8419 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002078/0.007356, allocations: 135.5 kB / 1.074 GB, free: 5.922 MB / 0.8419 GB Notification: Performance of NFPackage.collectConstants: time 4.13e-05/0.007405, allocations: 16 kB / 1.074 GB, free: 5.906 MB / 0.8419 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001047/0.007516, allocations: 40 kB / 1.074 GB, free: 5.867 MB / 0.8419 GB Notification: Performance of combineBinaries: time 0.0002545/0.007776, allocations: 328.7 kB / 1.074 GB, free: 5.543 MB / 0.8419 GB Notification: Performance of replaceArrayConstructors: time 0.0001039/0.007886, allocations: 193.3 kB / 1.074 GB, free: 5.352 MB / 0.8419 GB Notification: Performance of NFVerifyModel.verify: time 3.843e-05/0.00793, allocations: 19.94 kB / 1.074 GB, free: 5.332 MB / 0.8419 GB Notification: Performance of FrontEnd: time 3.781e-05/0.007973, allocations: 7.938 kB / 1.074 GB, free: 5.324 MB / 0.8419 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 12 (12) * Number of variables: 12 (11) Notification: Performance of Bindings: time 0.0007732/0.008751, allocations: 0.8206 MB / 1.075 GB, free: 4.398 MB / 0.8419 GB Notification: Performance of FunctionAlias: time 9.213e-05/0.008848, allocations: 47.38 kB / 1.075 GB, free: 4.352 MB / 0.8419 GB Notification: Performance of Early Inline: time 0.0001686/0.009025, allocations: 188.3 kB / 1.075 GB, free: 4.141 MB / 0.8419 GB Notification: Performance of simplify1: time 2.453e-05/0.009056, allocations: 11.98 kB / 1.075 GB, free: 4.129 MB / 0.8419 GB Notification: Performance of Alias: time 0.0004651/0.009526, allocations: 329.8 kB / 1.076 GB, free: 3.762 MB / 0.8419 GB Notification: Performance of simplify2: time 1.876e-05/0.009554, allocations: 11.98 kB / 1.076 GB, free: 3.75 MB / 0.8419 GB Notification: Performance of Detect States: time 7.603e-05/0.009635, allocations: 64.09 kB / 1.076 GB, free: 3.672 MB / 0.8419 GB Notification: Performance of Events: time 6.756e-05/0.009717, allocations: 27.92 kB / 1.076 GB, free: 3.645 MB / 0.8419 GB Notification: Performance of Partitioning: time 8.772e-05/0.009812, allocations: 68.11 kB / 1.076 GB, free: 3.57 MB / 0.8419 GB Notification: Performance of Causalize: time 0.0003652/0.01018, allocations: 308.7 kB / 1.076 GB, free: 3.262 MB / 0.8419 GB Notification: Performance of After Index Reduction Inline: time 0.0001436/0.01033, allocations: 172.2 kB / 1.076 GB, free: 3.066 MB / 0.8419 GB Notification: Performance of Inline: time 0.002492/0.01283, allocations: 0.7983 MB / 1.077 GB, free: 2.293 MB / 0.8419 GB Notification: Performance of Partitioning: time 3.632e-05/0.01288, allocations: 36.09 kB / 1.077 GB, free: 2.25 MB / 0.8419 GB Notification: Performance of Cleanup: time 1.871e-05/0.0129, allocations: 16 kB / 1.077 GB, free: 2.234 MB / 0.8419 GB Error: Internal error NBSlice.resolveSkips failed because skip of 4 for type Real is invalid. Error: Internal error NBSlice.resolveDependency failed for: linPieTwo.y2Tab.table[3, 1]. Error: Internal error NBAdjacency.Matrix.upgradeRow failed for: [ARRY] (10) linPieTwo.y2Tab.tab.table = {{(-1.0) + linPieTwo.y2Tab.table[1, 1], linPieTwo.y2Tab.table[1, 2]}, {linPieTwo.y2Tab.table[1, 1], linPieTwo.y2Tab.table[1, 2]}, {linPieTwo.y2Tab.table[2, 1], linPieTwo.y2Tab.table[2, 2]}, {linPieTwo.y2Tab.table[3, 1], linPieTwo.y2Tab.table[3, 2]}, {1.0 + linPieTwo.y2Tab.table[3, 1], linPieTwo.y2Tab.table[3, 2]}} + linPieTwo.y2Tab.offsetVector ($RES_BND_23) Error: Internal error NBInitialization.main failed to apply modules!