Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_3.0.0_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_StateGraph2 2.0.2/package.mo", uses=false) 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 3.0.0/package.mo", uses=false) Using package Buildings with version 3.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 3.0.0/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) Using package Modelica_StateGraph2 with version 2.0.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_StateGraph2 2.0.2/package.mo) Running command: translateModel(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_3.0.0_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_3.0.0_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo") [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_StateGraph2 2.0.2/package.mo:257:38-257:110:writable] Warning: The file was not encoded in UTF-8: "

An important practical aspect of state machines is the abilit...". Defaulting to 7-bit ASCII with unknown characters replaced by '?'. To change encoding when loading a file: loadFile(encoding="ISO-XXXX-YY"). To change it in a package: add a file package.encoding at the top-level. Note: The Modelica Language Specification only allows files encoded in UTF-8. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_StateGraph2 2.0.2/package.mo:761:36-761:108:writable] Warning: The file was not encoded in UTF-8: "

The Modelica_StateGraph2 library is described in detail in (O...". Defaulting to 7-bit ASCII with unknown characters replaced by '?'. To change encoding when loading a file: loadFile(encoding="ISO-XXXX-YY"). To change it in a package: add a file package.encoding at the top-level. Note: The Modelica Language Specification only allows files encoded in UTF-8. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_StateGraph2 2.0.2/package.mo:1435:36-1435:108:writable] Warning: The file was not encoded in UTF-8: "

Main Authors:
SCode: time 2.368e-05/2.369e-05, allocations: 2.5 kB / 0.5923 GB, free: 18.34 MB / 446.1 MB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo): time 0.002487/0.002518, allocations: 1.768 MB / 0.594 GB, free: 16.97 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.001114/0.003646, allocations: 0.8806 MB / 0.5948 GB, free: 16.26 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.568e-05/0.003732, allocations: 0 / 0.5948 GB, free: 16.26 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004333/0.004174, allocations: 183.1 kB / 0.595 GB, free: 16.08 MB / 446.1 MB [/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.000329/0.00451, allocations: 159.5 kB / 0.5952 GB, free: 15.93 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002994/0.004816, allocations: 189.2 kB / 0.5954 GB, free: 15.75 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002262/0.005049, allocations: 259.4 kB / 0.5956 GB, free: 15.49 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001367/0.005193, allocations: 57.66 kB / 0.5957 GB, free: 15.44 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001304/0.005329, allocations: 111.6 kB / 0.5958 GB, free: 15.33 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001349/0.005472, allocations: 131.6 kB / 0.5959 GB, free: 15.2 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 2.527e-05/0.005504, allocations: 12 kB / 0.5959 GB, free: 15.19 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.71e-05/0.005587, allocations: 44 kB / 0.5959 GB, free: 15.14 MB / 446.1 MB Notification: Performance of combineBinaries: time 0.0001577/0.005751, allocations: 332.6 kB / 0.5963 GB, free: 14.82 MB / 446.1 MB Notification: Performance of replaceArrayConstructors: time 5.079e-05/0.005807, allocations: 177.5 kB / 0.5964 GB, free: 14.64 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 2.751e-05/0.00584, allocations: 31.88 kB / 0.5965 GB, free: 14.61 MB / 446.1 MB Notification: Performance of FrontEnd: time 2.008e-05/0.005865, allocations: 7.938 kB / 0.5965 GB, free: 14.6 MB / 446.1 MB 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.0005479/0.006417, allocations: 0.8089 MB / 0.5973 GB, free: 13.69 MB / 446.1 MB Notification: Performance of FunctionAlias: time 5.103e-05/0.006474, allocations: 27.88 kB / 0.5973 GB, free: 13.66 MB / 446.1 MB Notification: Performance of Early Inline: time 0.0001221/0.006602, allocations: 176.2 kB / 0.5974 GB, free: 13.46 MB / 446.1 MB Notification: Performance of simplify1: time 1.993e-05/0.00663, allocations: 11.98 kB / 0.5975 GB, free: 13.45 MB / 446.1 MB Notification: Performance of Alias: time 0.0002993/0.006935, allocations: 306 kB / 0.5978 GB, free: 13.11 MB / 446.1 MB Notification: Performance of simplify2: time 1.039e-05/0.006954, allocations: 11.98 kB / 0.5978 GB, free: 13.09 MB / 446.1 MB Notification: Performance of Events: time 4.229e-05/0.007002, allocations: 15.94 kB / 0.5978 GB, free: 13.08 MB / 446.1 MB Notification: Performance of Detect States: time 0.0002183/0.007226, allocations: 80.08 kB / 0.5979 GB, free: 12.98 MB / 446.1 MB Notification: Performance of Partitioning: time 6.77e-05/0.0073, allocations: 68.05 kB / 0.5979 GB, free: 12.91 MB / 446.1 MB Notification: Performance of Causalize: time 0.0002875/0.007593, allocations: 386.3 kB / 0.5983 GB, free: 12.53 MB / 446.1 MB Notification: Performance of After Index Reduction Inline: time 9.043e-05/0.007691, allocations: 156.4 kB / 0.5984 GB, free: 12.35 MB / 446.1 MB Notification: Performance of Inline: time 0.000449/0.008146, allocations: 0.6336 MB / 0.5991 GB, free: 11.68 MB / 446.1 MB Notification: Performance of Partitioning: time 2.605e-05/0.008181, allocations: 48.02 kB / 0.5991 GB, free: 11.63 MB / 446.1 MB Notification: Performance of Cleanup: time 1.204e-05/0.008198, allocations: 11.94 kB / 0.5991 GB, free: 11.62 MB / 446.1 MB 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!