Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_maint.7.0.x_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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo", uses=false) Using package Buildings with version 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.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.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo") translateModel(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.7.0.x_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.001095/0.001095, allocations: 105.1 kB / 16.42 MB, free: 6.516 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.001085/0.001085, allocations: 189.9 kB / 17.36 MB, free: 5.75 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.142/1.142, allocations: 205.1 MB / 223.2 MB, free: 12.26 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.206/1.206, allocations: 251.7 MB / 0.51 GB, free: 432 kB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.364e-05/1.365e-05, allocations: 2.281 kB / 0.7264 GB, free: 4.781 MB / 0.5606 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo): time 0.002388/0.002411, allocations: 1.787 MB / 0.7281 GB, free: 2.98 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.001199/0.003621, allocations: 0.8664 MB / 0.729 GB, free: 2.105 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.726e-05/0.003708, allocations: 0 / 0.729 GB, free: 2.105 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 0.0004513/0.004165, allocations: 193.5 kB / 0.7291 GB, free: 1.922 MB / 0.5606 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Utilities/Strings.mo:139:3-175:14:writable] Warning: Pure function 'Modelica.Utilities.Strings.isEmpty' contains a call to impure function 'Modelica.Utilities.Strings.Advanced.skipWhiteSpace'. Notification: Performance of NFTyping.typeBindings: time 0.0003324/0.004515, allocations: 167.9 kB / 0.7293 GB, free: 1.762 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003751/0.004897, allocations: 182.1 kB / 0.7295 GB, free: 1.59 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 0.0002811/0.005186, allocations: 263.4 kB / 0.7297 GB, free: 1.332 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001313/0.005326, allocations: 65.58 kB / 0.7298 GB, free: 1.27 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001624/0.005496, allocations: 111.6 kB / 0.7299 GB, free: 1.16 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001524/0.005656, allocations: 127.6 kB / 0.73 GB, free: 1.035 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 3.094e-05/0.005694, allocations: 16 kB / 0.73 GB, free: 1.02 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 9.041e-05/0.00579, allocations: 43.98 kB / 0.7301 GB, free: 0.9766 MB / 0.5606 GB Notification: Performance of combineBinaries: time 0.0002132/0.006009, allocations: 320.8 kB / 0.7304 GB, free: 0.6602 MB / 0.5606 GB Notification: Performance of replaceArrayConstructors: time 9.362e-05/0.00611, allocations: 193.3 kB / 0.7306 GB, free: 480 kB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 3.193e-05/0.006147, allocations: 27.88 kB / 0.7306 GB, free: 452 kB / 0.5606 GB Notification: Performance of FrontEnd: time 2.368e-05/0.006176, allocations: 7.938 kB / 0.7306 GB, free: 444 kB / 0.5606 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.0007219/0.006902, allocations: 0.8091 MB / 0.7314 GB, free: 15.52 MB / 0.5762 GB Notification: Performance of FunctionAlias: time 5.505e-05/0.006964, allocations: 39.62 kB / 0.7314 GB, free: 15.48 MB / 0.5762 GB Notification: Performance of Early Inline: time 0.0001459/0.007116, allocations: 168.3 kB / 0.7316 GB, free: 15.29 MB / 0.5762 GB Notification: Performance of simplify1: time 2.106e-05/0.007143, allocations: 11.98 kB / 0.7316 GB, free: 15.28 MB / 0.5762 GB Notification: Performance of Alias: time 0.0003813/0.007529, allocations: 313.9 kB / 0.7319 GB, free: 14.93 MB / 0.5762 GB Notification: Performance of simplify2: time 1.338e-05/0.007551, allocations: 8 kB / 0.7319 GB, free: 14.92 MB / 0.5762 GB Notification: Performance of Events: time 4.467e-05/0.0076, allocations: 27.86 kB / 0.7319 GB, free: 14.89 MB / 0.5762 GB Notification: Performance of Detect States: time 6.313e-05/0.00767, allocations: 60.2 kB / 0.732 GB, free: 14.82 MB / 0.5762 GB Notification: Performance of Partitioning: time 7.583e-05/0.007753, allocations: 56.12 kB / 0.732 GB, free: 14.75 MB / 0.5762 GB Notification: Performance of Causalize: time 0.0003644/0.008124, allocations: 384.7 kB / 0.7324 GB, free: 14.37 MB / 0.5762 GB Notification: Performance of After Index Reduction Inline: time 0.0001322/0.008264, allocations: 168.3 kB / 0.7326 GB, free: 14.18 MB / 0.5762 GB Notification: Performance of Inline: time 0.0006175/0.008888, allocations: 0.6535 MB / 0.7332 GB, free: 13.5 MB / 0.5762 GB Notification: Performance of Partitioning: time 3.13e-05/0.008928, allocations: 36.11 kB / 0.7332 GB, free: 13.45 MB / 0.5762 GB Notification: Performance of Cleanup: time 1.779e-05/0.008951, allocations: 15.92 kB / 0.7333 GB, free: 13.44 MB / 0.5762 GB Error: Internal error NBSlice.fillDependencyArray failed because number of flattened indices 1 for dependency linPieTwo.y2Tab.table[1, 2] could not be divided by the body size 10 without rest. Error: Internal error NBAdjacency.Matrix.createPseudo 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_21) Error: Internal error NBAdjacency.Matrix.create failed to create adjacency matrix for system: System Variables (12/58) ************************** (1) [PRMT] (1) protected final parameter Real linPieTwo.y2Tab.tab.u_max = Modelica.Blocks.Tables.Internal.getTable1DAbscissaUmax(linPieTwo.y2Tab.tab.tableID) (fixed = true) (2) [PRMT] (1) protected final parameter Real linPieTwo.y2Tab.tab.u_min = Modelica.Blocks.Tables.Internal.getTable1DAbscissaUmin(linPieTwo.y2Tab.tab.tableID) (fixed = true) (3) [PRMT] (10) protected final parameter Real[5, 2] linPieTwo.y2Tab.tab.table = {{linPieTwo.y2Tab.table[1, 1] - 1.0, 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 (fixed = {true for $i1 in 1:5, $i2 in 1:2}) (4) [PRMT] (10) protected final parameter Real[5, 2] linPieTwo.y2Tab.offsetVector = {{0.0, linPieTwo.y2Tab.offset}, {0.0, linPieTwo.y2Tab.offset}, {0.0, linPieTwo.y2Tab.offset}, {0.0, linPieTwo.y2Tab.offset}, {0.0, linPieTwo.y2Tab.offset}} (fixed = {true for $i1 in 1:5, $i2 in 1:2}) (5) [PRMT] (6) parameter Real[3, 2] linPieTwo.y2Tab.table = {{linPieTwo.x0, linPieTwo.y20}, {linPieTwo.x1, linPieTwo.y20}, {linPieTwo.x2, linPieTwo.y21}} (fixed = {true for $i1 in 1:3, $i2 in 1:2}) (6) [PRMT] (1) protected final parameter Real linPieTwo.y1Tab.tab.u_max = Modelica.Blocks.Tables.Internal.getTable1DAbscissaUmax(linPieTwo.y1Tab.tab.tableID) (fixed = true) (7) [PRMT] (1) protected final parameter Real linPieTwo.y1Tab.tab.u_min = Modelica.Blocks.Tables.Internal.getTable1DAbscissaUmin(linPieTwo.y1Tab.tab.tableID) (fixed = true) (8) [PRMT] (10) protected final parameter Real[5, 2] linPieTwo.y1Tab.tab.table = {{linPieTwo.y1Tab.table[1, 1] - 1.0, linPieTwo.y1Tab.table[1, 2]}, {linPieTwo.y1Tab.table[1, 1], linPieTwo.y1Tab.table[1, 2]}, {linPieTwo.y1Tab.table[2, 1], linPieTwo.y1Tab.table[2, 2]}, {linPieTwo.y1Tab.table[3, 1], linPieTwo.y1Tab.table[3, 2]}, {1.0 + linPieTwo.y1Tab.table[3, 1], linPieTwo.y1Tab.table[3, 2]}} + linPieTwo.y1Tab.offsetVector (fixed = {true for $i1 in 1:5, $i2 in 1:2}) (9) [PRMT] (10) protected final parameter Real[5, 2] linPieTwo.y1Tab.offsetVector = {{0.0, linPieTwo.y1Tab.offset}, {0.0, linPieTwo.y1Tab.offset}, {0.0, linPieTwo.y1Tab.offset}, {0.0, linPieTwo.y1Tab.offset}, {0.0, linPieTwo.y1Tab.offset}} (fixed = {true for $i1 in 1:5, $i2 in 1:2}) (10) [PRMT] (6) parameter Real[3, 2] linPieTwo.y1Tab.table = {{linPieTwo.x0, linPieTwo.y10}, {linPieTwo.x1, linPieTwo.y11}, {linPieTwo.x2, linPieTwo.y11}} (fixed = {true for $i1 in 1:3, $i2 in 1:2}) (11) [EXTO] (1) protected parameter Modelica.Blocks.Types.ExternalCombiTable1D linPieTwo.y2Tab.tab.tableID = Modelica.Blocks.Types.ExternalCombiTable1D.constructor("NoName", "NoName", linPieTwo.y2Tab.tab.table, linPieTwo.y2Tab.tab.columns, Modelica.Blocks.Types.Smoothness.LinearSegments, Modelica.Blocks.Types.Extrapolation.LastTwoPoints, false) (fixed = true) (12) [EXTO] (1) protected parameter Modelica.Blocks.Types.ExternalCombiTable1D linPieTwo.y1Tab.tab.tableID = Modelica.Blocks.Types.ExternalCombiTable1D.constructor("NoName", "NoName", linPieTwo.y1Tab.tab.table, linPieTwo.y1Tab.tab.columns, Modelica.Blocks.Types.Smoothness.LinearSegments, Modelica.Blocks.Types.Extrapolation.LastTwoPoints, false) (fixed = true) System Equations (12/58) ************************** (1) [SCAL] (1) linPieTwo.y2Tab.tab.u_max = Modelica.Blocks.Tables.Internal.getTable1DAbscissaUmax(linPieTwo.y2Tab.tab.tableID) ($RES_BND_23) (2) [SCAL] (1) linPieTwo.y2Tab.tab.u_min = Modelica.Blocks.Tables.Internal.getTable1DAbscissaUmin(linPieTwo.y2Tab.tab.tableID) ($RES_BND_22) (3) [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_21) (4) [ARRY] (10) linPieTwo.y2Tab.offsetVector = {{0.0, linPieTwo.y2Tab.offset}, {0.0, linPieTwo.y2Tab.offset}, {0.0, linPieTwo.y2Tab.offset}, {0.0, linPieTwo.y2Tab.offset}, {0.0, linPieTwo.y2Tab.offset}} ($RES_BND_20) (5) [ARRY] (6) linPieTwo.y2Tab.table = {{linPieTwo.x0, linPieTwo.y20}, {linPieTwo.x1, linPieTwo.y20}, {linPieTwo.x2, linPieTwo.y21}} ($RES_BND_19) (6) [SCAL] (1) linPieTwo.y1Tab.tab.u_max = Modelica.Blocks.Tables.Internal.getTable1DAbscissaUmax(linPieTwo.y1Tab.tab.tableID) ($RES_BND_18) (7) [SCAL] (1) linPieTwo.y1Tab.tab.u_min = Modelica.Blocks.Tables.Internal.getTable1DAbscissaUmin(linPieTwo.y1Tab.tab.tableID) ($RES_BND_17) (8) [ARRY] (10) linPieTwo.y1Tab.tab.table = {{(-1.0) + linPieTwo.y1Tab.table[1, 1], linPieTwo.y1Tab.table[1, 2]}, {linPieTwo.y1Tab.table[1, 1], linPieTwo.y1Tab.table[1, 2]}, {linPieTwo.y1Tab.table[2, 1], linPieTwo.y1Tab.table[2, 2]}, {linPieTwo.y1Tab.table[3, 1], linPieTwo.y1Tab.table[3, 2]}, {1.0 + linPieTwo.y1Tab.table[3, 1], linPieTwo.y1Tab.table[3, 2]}} + linPieTwo.y1Tab.offsetVector ($RES_BND_16) (9) [ARRY] (10) linPieTwo.y1Tab.offsetVector = {{0.0, linPieTwo.y1Tab.offset}, {0.0, linPieTwo.y1Tab.offset}, {0.0, linPieTwo.y1Tab.offset}, {0.0, linPieTwo.y1Tab.offset}, {0.0, linPieTwo.y1Tab.offset}} ($RES_BND_15) (10) [ARRY] (6) linPieTwo.y1Tab.table = {{linPieTwo.x0, linPieTwo.y10}, {linPieTwo.x1, linPieTwo.y11}, {linPieTwo.x2, linPieTwo.y11}} ($RES_BND_14) (11) [RECD] (1) linPieTwo.y2Tab.tab.tableID = Modelica.Blocks.Types.ExternalCombiTable1D.constructor("NoName", "NoName", linPieTwo.y2Tab.tab.table, linPieTwo.y2Tab.tab.columns, Modelica.Blocks.Types.Smoothness.LinearSegments, Modelica.Blocks.Types.Extrapolation.LastTwoPoints, false) ($RES_BND_25) (12) [RECD] (1) linPieTwo.y1Tab.tab.tableID = Modelica.Blocks.Types.ExternalCombiTable1D.constructor("NoName", "NoName", linPieTwo.y1Tab.tab.table, linPieTwo.y1Tab.tab.columns, Modelica.Blocks.Types.Smoothness.LinearSegments, Modelica.Blocks.Types.Extrapolation.LastTwoPoints, false) ($RES_BND_24) Error: Internal error NBInitialization.main failed to apply modules!