Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_3.0.0_Buildings.Fluid.HeatExchangers.Boreholes.BaseClasses.Examples.Factorial.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.Fluid.HeatExchangers.Boreholes.BaseClasses.Examples.Factorial,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_3.0.0_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_3.0.0_Buildings.Fluid.HeatExchangers.Boreholes.BaseClasses.Examples.Factorial") [/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.244e-05/2.245e-05, allocations: 2.5 kB / 0.5923 GB, free: 18.76 MB / 446.1 MB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatExchangers.Boreholes.BaseClasses.Examples.Factorial): time 0.001373/0.001405, allocations: 0.5551 MB / 0.5928 GB, free: 18.37 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002937/0.00171, allocations: 87.45 kB / 0.5929 GB, free: 18.3 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.024e-05/0.00174, allocations: 0 / 0.5929 GB, free: 18.3 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 4.624e-05/0.001793, allocations: 0 / 0.5929 GB, free: 18.3 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 3.182e-05/0.00183, allocations: 1.125 kB / 0.5929 GB, free: 18.3 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002251/0.002065, allocations: 15.27 kB / 0.5929 GB, free: 18.29 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 6.98e-05/0.002144, allocations: 8.812 kB / 0.5929 GB, free: 18.29 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.387e-05/0.002203, allocations: 1.156 kB / 0.5929 GB, free: 18.29 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.102e-05/0.002229, allocations: 6.859 kB / 0.5929 GB, free: 18.29 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.807e-05/0.002281, allocations: 1.312 kB / 0.5929 GB, free: 18.29 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 1.626e-05/0.002303, allocations: 0 / 0.5929 GB, free: 18.29 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.795e-05/0.002355, allocations: 7.938 kB / 0.5929 GB, free: 18.28 MB / 446.1 MB Notification: Performance of combineBinaries: time 3.752e-05/0.002397, allocations: 14.55 kB / 0.593 GB, free: 18.27 MB / 446.1 MB Notification: Performance of replaceArrayConstructors: time 4.078e-06/0.002406, allocations: 5.312 kB / 0.593 GB, free: 18.27 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 1.936e-05/0.002431, allocations: 4 kB / 0.593 GB, free: 18.26 MB / 446.1 MB Notification: Performance of FrontEnd: time 7.844e-06/0.002443, allocations: 1.438 kB / 0.593 GB, free: 18.26 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: 5 (1) * Number of variables: 5 (1) Notification: Performance of Bindings: time 0.0002407/0.002688, allocations: 164.7 kB / 0.5931 GB, free: 18.02 MB / 446.1 MB Notification: Performance of FunctionAlias: time 5.343e-05/0.002748, allocations: 30.45 kB / 0.5931 GB, free: 18 MB / 446.1 MB Notification: Performance of Early Inline: time 5.469e-05/0.002809, allocations: 61.83 kB / 0.5932 GB, free: 17.92 MB / 446.1 MB Notification: Performance of simplify1: time 1.576e-05/0.00283, allocations: 0 / 0.5932 GB, free: 17.92 MB / 446.1 MB Notification: Performance of Alias: time 3.515e-05/0.00287, allocations: 52.59 kB / 0.5933 GB, free: 17.84 MB / 446.1 MB Notification: Performance of simplify2: time 5.77e-06/0.002881, allocations: 5.391 kB / 0.5933 GB, free: 17.83 MB / 446.1 MB Notification: Performance of Events: time 5.199e-05/0.002937, allocations: 6.781 kB / 0.5933 GB, free: 17.83 MB / 446.1 MB Notification: Performance of Detect States: time 5.459e-05/0.002998, allocations: 37.44 kB / 0.5933 GB, free: 17.78 MB / 446.1 MB Notification: Performance of Partitioning: time 4.902e-05/0.003053, allocations: 16.34 kB / 0.5933 GB, free: 17.77 MB / 446.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)