Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_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 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.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_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_8_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.001061/0.001061, allocations: 103.6 kB / 16.38 MB, free: 6.441 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.00104/0.00104, allocations: 190.4 kB / 17.31 MB, free: 5.789 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.12/1.12, allocations: 205.1 MB / 223.2 MB, free: 12.23 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.524/1.524, allocations: 292.3 MB / 0.5496 GB, free: 17.62 MB / 462.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.925e-05/1.927e-05, allocations: 6.219 kB / 0.6729 GB, free: 5.914 MB / 0.545 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo): time 0.002605/0.002637, allocations: 1.791 MB / 0.6746 GB, free: 4.105 MB / 0.545 GB Notification: Performance of NFInst.instExpressions: time 0.001113/0.003761, allocations: 0.8627 MB / 0.6755 GB, free: 3.234 MB / 0.545 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.335e-05/0.003834, allocations: 3.938 kB / 0.6755 GB, free: 3.23 MB / 0.545 GB Notification: Performance of NFTyping.typeComponents: time 0.0003986/0.004239, allocations: 180.4 kB / 0.6756 GB, free: 3.059 MB / 0.545 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.0003133/0.004559, allocations: 156.6 kB / 0.6758 GB, free: 2.906 MB / 0.545 GB Notification: Performance of NFTyping.typeClassSections: time 0.000328/0.004894, allocations: 183.2 kB / 0.676 GB, free: 2.73 MB / 0.545 GB Notification: Performance of NFFlatten.flatten: time 0.0002466/0.005148, allocations: 251.4 kB / 0.6762 GB, free: 2.484 MB / 0.545 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001211/0.005278, allocations: 65.5 kB / 0.6763 GB, free: 2.422 MB / 0.545 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001299/0.005415, allocations: 111.6 kB / 0.6764 GB, free: 2.312 MB / 0.545 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001453/0.005569, allocations: 135.5 kB / 0.6765 GB, free: 2.18 MB / 0.545 GB Notification: Performance of NFPackage.collectConstants: time 2.657e-05/0.005603, allocations: 16 kB / 0.6765 GB, free: 2.164 MB / 0.545 GB Notification: Performance of NFFlatten.collectFunctions: time 7.242e-05/0.00568, allocations: 47.98 kB / 0.6766 GB, free: 2.117 MB / 0.545 GB Notification: Performance of combineBinaries: time 0.0002075/0.005901, allocations: 316.8 kB / 0.6769 GB, free: 1.805 MB / 0.545 GB Notification: Performance of replaceArrayConstructors: time 8.775e-05/0.005994, allocations: 189.2 kB / 0.677 GB, free: 1.617 MB / 0.545 GB Notification: Performance of NFVerifyModel.verify: time 2.783e-05/0.006027, allocations: 27.88 kB / 0.6771 GB, free: 1.59 MB / 0.545 GB Notification: Performance of FrontEnd: time 1.706e-05/0.006049, allocations: 7.984 kB / 0.6771 GB, free: 1.582 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: 12 (12) * Number of variables: 12 (11) Notification: Performance of Bindings: time 0.000666/0.006719, allocations: 0.8128 MB / 0.6779 GB, free: 0.6641 MB / 0.545 GB Notification: Performance of FunctionAlias: time 5.032e-05/0.006774, allocations: 39.81 kB / 0.6779 GB, free: 0.625 MB / 0.545 GB Notification: Performance of Early Inline: time 0.0001379/0.006918, allocations: 172.3 kB / 0.6781 GB, free: 440 kB / 0.545 GB Notification: Performance of simplify1: time 1.78e-05/0.006943, allocations: 11.98 kB / 0.6781 GB, free: 428 kB / 0.545 GB Notification: Performance of Alias: time 0.0003408/0.007288, allocations: 313.8 kB / 0.6784 GB, free: 68 kB / 0.545 GB Notification: Performance of simplify2: time 1.258e-05/0.007309, allocations: 11.98 kB / 0.6784 GB, free: 56 kB / 0.545 GB Notification: Performance of Events: time 3.978e-05/0.007353, allocations: 23.92 kB / 0.6784 GB, free: 32 kB / 0.545 GB Notification: Performance of Detect States: time 7.094e-05/0.007429, allocations: 60.22 kB / 0.6785 GB, free: 15.96 MB / 0.5606 GB Notification: Performance of Partitioning: time 7.157e-05/0.007507, allocations: 64.09 kB / 0.6785 GB, free: 15.89 MB / 0.5606 GB Notification: Performance of Causalize: time 0.0003558/0.007869, allocations: 376.1 kB / 0.6789 GB, free: 15.51 MB / 0.5606 GB Notification: Performance of After Index Reduction Inline: time 0.000132/0.008009, allocations: 172.3 kB / 0.6791 GB, free: 15.32 MB / 0.5606 GB Notification: Performance of Inline: time 0.0004782/0.008493, allocations: 0.5404 MB / 0.6796 GB, free: 14.74 MB / 0.5606 GB Notification: Performance of Partitioning: time 3.885e-05/0.008541, allocations: 44.09 kB / 0.6796 GB, free: 14.69 MB / 0.5606 GB Notification: Performance of Cleanup: time 1.24e-05/0.008558, allocations: 7.938 kB / 0.6796 GB, free: 14.68 MB / 0.5606 GB Error: Internal error NBSlice.fillDependencyArray failed because number of flattened indices 1 for dependency linPieTwo.y2Tab.table[1, 2] could not be devided 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!