Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_1.6_Buildings.Fluid.HeatExchangers.Boreholes.BaseClasses.Examples.Factorial.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 1.6.0+build.1/package.mo", uses=false) Using package Buildings with version 1.6 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 1.6.0+build.1/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.Fluid.HeatExchangers.Boreholes.BaseClasses.Examples.Factorial,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_1.6_Buildings.Fluid.HeatExchangers.Boreholes.BaseClasses.Examples.Factorial") translateModel(Buildings.Fluid.HeatExchangers.Boreholes.BaseClasses.Examples.Factorial,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_1.6_Buildings.Fluid.HeatExchangers.Boreholes.BaseClasses.Examples.Factorial") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001449/0.001449, allocations: 108.8 kB / 16.42 MB, free: 6.461 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.00119/0.00119, allocations: 189.5 kB / 17.36 MB, free: 5.73 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.353/1.353, allocations: 205.1 MB / 223.2 MB, free: 12.25 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 1.6.0+build.1/package.mo): time 0.4358/0.4358, allocations: 95.48 MB / 366.1 MB, free: 12.16 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.516e-05/1.515e-05, allocations: 2.281 kB / 0.5042 GB, free: 11.89 MB / 398.1 MB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatExchangers.Boreholes.BaseClasses.Examples.Factorial): time 0.001258/0.001281, allocations: 0.5477 MB / 0.5048 GB, free: 11.34 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002961/0.00159, allocations: 75.81 kB / 0.5048 GB, free: 11.27 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.953e-05/0.00162, allocations: 3.938 kB / 0.5048 GB, free: 11.26 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 4.311e-05/0.001668, allocations: 0 / 0.5048 GB, free: 11.26 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 2.47e-05/0.0017, allocations: 4 kB / 0.5049 GB, free: 11.26 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001976/0.001912, allocations: 15.97 kB / 0.5049 GB, free: 11.24 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 5.938e-05/0.00198, allocations: 7.984 kB / 0.5049 GB, free: 11.23 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.502e-05/0.00203, allocations: 0 / 0.5049 GB, free: 11.23 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.058e-05/0.002055, allocations: 4 kB / 0.5049 GB, free: 11.23 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.499e-05/0.002107, allocations: 11.94 kB / 0.5049 GB, free: 11.22 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 1.584e-05/0.002127, allocations: 0 / 0.5049 GB, free: 11.22 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.64e-05/0.002178, allocations: 11.98 kB / 0.5049 GB, free: 11.21 MB / 398.1 MB Notification: Performance of combineBinaries: time 3.398e-05/0.002217, allocations: 7.906 kB / 0.5049 GB, free: 11.2 MB / 398.1 MB Notification: Performance of replaceArrayConstructors: time 4.859e-06/0.002227, allocations: 7.844 kB / 0.5049 GB, free: 11.19 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 2.171e-05/0.002253, allocations: 0 / 0.5049 GB, free: 11.19 MB / 398.1 MB Notification: Performance of FrontEnd: time 7.805e-06/0.002264, allocations: 3.938 kB / 0.5049 GB, free: 11.19 MB / 398.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 5 (1) * Number of variables: 5 (1) Notification: Performance of Bindings: time 0.0002932/0.002562, allocations: 173.3 kB / 0.5051 GB, free: 10.92 MB / 398.1 MB Notification: Performance of FunctionAlias: time 4.247e-05/0.00261, allocations: 11.95 kB / 0.5051 GB, free: 10.91 MB / 398.1 MB Notification: Performance of Early Inline: time 8.47e-05/0.0027, allocations: 48.36 kB / 0.5051 GB, free: 10.83 MB / 398.1 MB Notification: Performance of simplify1: time 1.883e-05/0.002725, allocations: 4 kB / 0.5051 GB, free: 10.83 MB / 398.1 MB Notification: Performance of Alias: time 5.202e-05/0.002783, allocations: 56.61 kB / 0.5052 GB, free: 10.73 MB / 398.1 MB Notification: Performance of simplify2: time 3.858e-06/0.002791, allocations: 0 / 0.5052 GB, free: 10.73 MB / 398.1 MB Notification: Performance of Events: time 5.643e-05/0.002853, allocations: 19.91 kB / 0.5052 GB, free: 10.71 MB / 398.1 MB Notification: Performance of Detect States: time 5.593e-05/0.002917, allocations: 40.12 kB / 0.5053 GB, free: 10.66 MB / 398.1 MB Notification: Performance of Partitioning: time 7.955e-05/0.003004, allocations: 28.11 kB / 0.5053 GB, free: 10.62 MB / 398.1 MB Error: Internal error NBSlice.fillDependencyArray failed because number of flattened indices 1 for dependency $FUN_1 could not be divided by the body size 5 without rest. Error: Internal error NBAdjacency.Matrix.createPseudo failed for: [ARRY] (5) y = {$FUN_1 for $i1 in 1:5} ($RES_SIM_1) Error: Internal error NBAdjacency.Matrix.create failed to create adjacency matrix for system: System Variables (3/7) ************************ (1) [DISC] (5) Integer[5] y (2) [DISC] (1) Integer $FUN_1 (3) [DISC] (1) Boolean $SEV_0 System Equations (3/7) ************************ (1) [ARRY] (5) y = {$FUN_1 for $i1 in 1:5} ($RES_SIM_1) (2) [SCAL] (1) $FUN_1 = Buildings.Fluid.HeatExchangers.Boreholes.BaseClasses.factorial(x[$i1]) ($RES_$AUX_2) (3) [SCAL] (1) $SEV_0 = abs(120 - y[5]) < 1e-10 ($RES_EVT_3)