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 0.19/0.1908, allocations: 82.22 MB / 0.5934 GB, free: 6 MB / 446.1 MB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatExchangers.Boreholes.BaseClasses.Examples.Factorial): time 0.0007633/0.1916, allocations: 286.8 kB / 0.5937 GB, free: 5.719 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.000294/0.1919, allocations: 75.84 kB / 0.5937 GB, free: 5.645 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.406e-05/0.192, allocations: 0 / 0.5937 GB, free: 5.645 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 4.471e-05/0.192, allocations: 0 / 0.5937 GB, free: 5.645 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 3.415e-05/0.1921, allocations: 4 kB / 0.5937 GB, free: 5.641 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002109/0.1923, allocations: 7.938 kB / 0.5937 GB, free: 5.633 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 6.017e-05/0.1923, allocations: 7.984 kB / 0.5937 GB, free: 5.625 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.794e-05/0.1924, allocations: 0 / 0.5937 GB, free: 5.625 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.931e-05/0.1924, allocations: 4 kB / 0.5937 GB, free: 5.621 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.637e-05/0.1925, allocations: 3.938 kB / 0.5938 GB, free: 5.617 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 2.162e-05/0.1925, allocations: 7.938 kB / 0.5938 GB, free: 5.609 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.664e-05/0.1926, allocations: 4 kB / 0.5938 GB, free: 5.605 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 3.888e-05/0.1926, allocations: 15.97 kB / 0.5938 GB, free: 5.59 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 3.844e-05/0.1927, allocations: 25.7 kB / 0.5938 GB, free: 5.559 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 8.019e-05/0.1928, allocations: 15.98 kB / 0.5938 GB, free: 5.543 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.036e-06/0.1928, allocations: 0 / 0.5938 GB, free: 5.543 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.844e-06/0.1928, allocations: 0 / 0.5938 GB, free: 5.543 MB / 446.1 MB Notification: Performance of Transformations before backend: time 4.288e-06/0.1928, allocations: 0 / 0.5938 GB, free: 5.543 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 * Number of variables: 5 Notification: Performance of Generate backend data structure: time 0.000401/0.1932, allocations: 331.5 kB / 0.5941 GB, free: 5.172 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.406e-05/0.1933, allocations: 8.031 kB / 0.5941 GB, free: 5.164 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.891e-05/0.1933, allocations: 0 / 0.5941 GB, free: 5.164 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002153/0.1935, allocations: 174.9 kB / 0.5943 GB, free: 4.953 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.156e-05/0.1935, allocations: 0 / 0.5943 GB, free: 4.953 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.63e-05/0.1936, allocations: 0 / 0.5943 GB, free: 4.953 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000141/0.1937, allocations: 49.62 kB / 0.5944 GB, free: 4.898 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.858e-06/0.1937, allocations: 0 / 0.5944 GB, free: 4.898 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.032e-05/0.1937, allocations: 0 / 0.5944 GB, free: 4.898 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.547e-05/0.1938, allocations: 4 kB / 0.5944 GB, free: 4.895 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.671e-05/0.1938, allocations: 19.98 kB / 0.5944 GB, free: 4.875 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008536/0.1947, allocations: 0.794 MB / 0.5952 GB, free: 3.938 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001031/0.1948, allocations: 173.1 kB / 0.5953 GB, free: 3.758 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.37e-05/0.1948, allocations: 75.28 kB / 0.5954 GB, free: 3.684 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.431e-05/0.1949, allocations: 105.8 kB / 0.5955 GB, free: 3.57 MB / 446.1 MB Notification: Performance of pre-optimization done (n=0): time 4.368e-06/0.1949, allocations: 0 / 0.5955 GB, free: 3.57 MB / 446.1 MB Notification: Performance of matching and sorting (n=0): time 8.248e-05/0.195, allocations: 45.58 kB / 0.5955 GB, free: 3.52 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.12e-05/0.1951, allocations: 156.3 kB / 0.5957 GB, free: 3.348 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001374/0.1953, allocations: 134 kB / 0.5958 GB, free: 3.207 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 2.155e-05/0.1953, allocations: 29.7 kB / 0.5958 GB, free: 3.172 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.973e-05/0.1954, allocations: 88.03 kB / 0.5959 GB, free: 3.082 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.135e-06/0.1954, allocations: 0 / 0.5959 GB, free: 3.082 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.22e-06/0.1954, allocations: 0 / 0.5959 GB, free: 3.082 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001294/0.1956, allocations: 318.8 kB / 0.5962 GB, free: 2.762 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.513e-05/0.1956, allocations: 16.36 kB / 0.5962 GB, free: 2.746 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.786e-05/0.1956, allocations: 44.28 kB / 0.5963 GB, free: 2.688 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.814e-05/0.1957, allocations: 23.94 kB / 0.5963 GB, free: 2.664 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.404e-06/0.1957, allocations: 0 / 0.5963 GB, free: 2.664 MB / 446.1 MB Notification: Performance of matching and sorting (n=5) (initialization): time 0.0001664/0.1959, allocations: 85.42 kB / 0.5964 GB, free: 2.574 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.616e-05/0.1959, allocations: 4 kB / 0.5964 GB, free: 2.57 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.02e-06/0.1959, allocations: 0 / 0.5964 GB, free: 2.57 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.519e-05/0.1959, allocations: 4 kB / 0.5964 GB, free: 2.566 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.708e-05/0.196, allocations: 8 kB / 0.5964 GB, free: 2.559 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.746e-06/0.196, allocations: 7.922 kB / 0.5964 GB, free: 2.551 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.287e-05/0.1961, allocations: 4 kB / 0.5964 GB, free: 2.547 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.366e-05/0.1961, allocations: 0 / 0.5964 GB, free: 2.547 MB / 446.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 5 (y[5],y[4],y[3],y[2],y[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (5): * Single equations (assignments): 5 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001185/0.1963, allocations: 205.2 kB / 0.5966 GB, free: 2.336 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.466e-05/0.1963, allocations: 109 kB / 0.5967 GB, free: 2.223 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.282e-05/0.1964, allocations: 108.5 kB / 0.5968 GB, free: 2.109 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.717e-05/0.1965, allocations: 184.3 kB / 0.597 GB, free: 1.922 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.782e-05/0.1965, allocations: 176.3 kB / 0.5972 GB, free: 1.742 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.771e-05/0.1966, allocations: 192.2 kB / 0.5973 GB, free: 1.547 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002489/0.1969, allocations: 409.2 kB / 0.5977 GB, free: 1.09 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.44e-05/0.1969, allocations: 112.9 kB / 0.5978 GB, free: 0.9727 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.364e-05/0.197, allocations: 101 kB / 0.5979 GB, free: 0.8672 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001033/0.1971, allocations: 177.1 kB / 0.5981 GB, free: 0.6875 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.795e-05/0.1972, allocations: 180.2 kB / 0.5983 GB, free: 0.5039 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.244e-05/0.1972, allocations: 192.2 kB / 0.5985 GB, free: 316 kB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.964e-05/0.1973, allocations: 180.2 kB / 0.5986 GB, free: 128 kB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001518/0.1975, allocations: 303.7 kB / 0.5989 GB, free: 15.8 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.165e-05/0.1976, allocations: 198.3 kB / 0.5991 GB, free: 15.59 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.711e-05/0.1977, allocations: 184.2 kB / 0.5993 GB, free: 15.4 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001458/0.1978, allocations: 109 kB / 0.5994 GB, free: 15.29 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001055/0.1979, allocations: 188.3 kB / 0.5996 GB, free: 15.09 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001285/0.1981, allocations: 104.9 kB / 0.5997 GB, free: 14.98 MB / 462.1 MB Notification: Performance of sorting global known variables: time 6.354e-05/0.1981, allocations: 95.27 kB / 0.5998 GB, free: 14.89 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.61e-07/0.1981, allocations: 0 / 0.5998 GB, free: 14.89 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.0002823/0.1984, allocations: 8 kB / 0.5998 GB, free: 14.88 MB / 462.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (0): * Single equations (assignments): 0 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002011/0.1986, allocations: 182.5 kB / 0.5999 GB, free: 14.7 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.0001122/0.1988, allocations: 19.94 kB / 0.6 GB, free: 14.68 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 3.376e-06/0.1988, allocations: 0 / 0.6 GB, free: 14.68 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 3.677e-06/0.1988, allocations: 4.266 kB / 0.6 GB, free: 14.67 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004335/0.1992, allocations: 0.5266 MB / 0.6005 GB, free: 14.14 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003126/0.1995, allocations: 182 kB / 0.6007 GB, free: 13.93 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000353/0.1999, allocations: 0.677 MB / 0.6013 GB, free: 13.23 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 5.732e-05/0.2, allocations: 15.97 kB / 0.6013 GB, free: 13.21 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.606e-05/0.2, allocations: 7.438 kB / 0.6013 GB, free: 13.21 MB / 462.1 MB Notification: Performance of SimCode: time 4.21e-07/0.2, allocations: 0 / 0.6013 GB, free: 13.21 MB / 462.1 MB Notification: Performance of Templates: time 0.003059/0.2031, allocations: 458.5 kB / 0.6018 GB, free: 12.79 MB / 462.1 MB make -j1 -f Buildings_3.0.0_Buildings.Fluid.HeatExchangers.Boreholes.BaseClasses.Examples.Factorial.makefile Environment - environmentSimulation: (rm -f Buildings_3.0.0_Buildings.Fluid.HeatExchangers.Boreholes.BaseClasses.Examples.Factorial.pipe ; mkfifo Buildings_3.0.0_Buildings.Fluid.HeatExchangers.Boreholes.BaseClasses.Examples.Factorial.pipe ; head -c 1048576 < Buildings_3.0.0_Buildings.Fluid.HeatExchangers.Boreholes.BaseClasses.Examples.Factorial.pipe >> ../files/Buildings_3.0.0_Buildings.Fluid.HeatExchangers.Boreholes.BaseClasses.Examples.Factorial.sim & ./Buildings_3.0.0_Buildings.Fluid.HeatExchangers.Boreholes.BaseClasses.Examples.Factorial -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_3.0.0_Buildings.Fluid.HeatExchangers.Boreholes.BaseClasses.Examples.Factorial.pipe 2>&1) Environment - environmentSimulation: