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.1852/0.1872, allocations: 80.83 MB / 0.6706 GB, free: 1.984 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatExchangers.Boreholes.BaseClasses.Examples.Factorial): time 0.002156/0.1895, allocations: 0.5627 MB / 0.6712 GB, free: 1.426 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.0003605/0.1898, allocations: 79.81 kB / 0.6713 GB, free: 1.348 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.357e-05/0.1899, allocations: 0 / 0.6713 GB, free: 1.348 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 6.185e-05/0.19, allocations: 3.938 kB / 0.6713 GB, free: 1.344 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 3.623e-05/0.19, allocations: 0 / 0.6713 GB, free: 1.344 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003153/0.1903, allocations: 8 kB / 0.6713 GB, free: 1.336 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 8.255e-05/0.1904, allocations: 11.98 kB / 0.6713 GB, free: 1.324 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 7.534e-05/0.1905, allocations: 4 kB / 0.6713 GB, free: 1.32 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 2.733e-05/0.1905, allocations: 3.938 kB / 0.6713 GB, free: 1.316 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 8.058e-05/0.1906, allocations: 4 kB / 0.6713 GB, free: 1.312 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 2.182e-05/0.1907, allocations: 0 / 0.6713 GB, free: 1.312 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 6.95e-05/0.1907, allocations: 15.98 kB / 0.6713 GB, free: 1.297 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 6.914e-05/0.1908, allocations: 7.984 kB / 0.6713 GB, free: 1.289 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 3.395e-05/0.1908, allocations: 3.938 kB / 0.6713 GB, free: 1.285 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.0001268/0.191, allocations: 19.92 kB / 0.6713 GB, free: 1.266 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 1.308e-05/0.191, allocations: 4 kB / 0.6713 GB, free: 1.262 MB / 0.4981 GB Notification: Performance of FrontEnd: time 2.615e-06/0.191, allocations: 3.938 kB / 0.6713 GB, free: 1.258 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 1.372e-05/0.191, allocations: 0 / 0.6713 GB, free: 1.258 MB / 0.4981 GB 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.0005627/0.1916, allocations: 331.8 kB / 0.6717 GB, free: 0.8867 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 5.321e-05/0.1917, allocations: 8.031 kB / 0.6717 GB, free: 0.8789 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.252e-05/0.1917, allocations: 0.9375 kB / 0.6717 GB, free: 0.8789 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001569/0.1919, allocations: 172.3 kB / 0.6718 GB, free: 0.6719 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.792e-05/0.1919, allocations: 4.375 kB / 0.6718 GB, free: 0.668 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.342e-05/0.1919, allocations: 4.359 kB / 0.6718 GB, free: 0.6641 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001561/0.1921, allocations: 53.56 kB / 0.6719 GB, free: 0.6055 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.164e-05/0.1921, allocations: 0 / 0.6719 GB, free: 0.6055 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.197e-05/0.1921, allocations: 0 / 0.6719 GB, free: 0.6055 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.973e-05/0.1922, allocations: 4 kB / 0.6719 GB, free: 0.6016 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.881e-05/0.1922, allocations: 23.91 kB / 0.6719 GB, free: 0.5781 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009142/0.1931, allocations: 0.7939 MB / 0.6727 GB, free: 15.64 MB / 0.5137 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001153/0.1933, allocations: 173.1 kB / 0.6729 GB, free: 15.46 MB / 0.5137 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.839e-05/0.1933, allocations: 84.14 kB / 0.6729 GB, free: 15.38 MB / 0.5137 GB Notification: Performance of preOpt evalFunc (simulation): time 4.449e-05/0.1934, allocations: 75.28 kB / 0.673 GB, free: 15.3 MB / 0.5137 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.503e-05/0.1934, allocations: 105.8 kB / 0.6731 GB, free: 15.19 MB / 0.5137 GB Notification: Performance of pre-optimization done (n=0): time 3.226e-06/0.1934, allocations: 4 kB / 0.6731 GB, free: 15.18 MB / 0.5137 GB Notification: Performance of matching and sorting (n=0): time 9.954e-05/0.1935, allocations: 37.53 kB / 0.6732 GB, free: 15.14 MB / 0.5137 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000106/0.1937, allocations: 156.4 kB / 0.6733 GB, free: 14.97 MB / 0.5137 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001597/0.1938, allocations: 137.7 kB / 0.6734 GB, free: 14.82 MB / 0.5137 GB Notification: Performance of collectPreVariables (initialization): time 1.649e-05/0.1939, allocations: 25.7 kB / 0.6735 GB, free: 14.79 MB / 0.5137 GB Notification: Performance of collectInitialEqns (initialization): time 6.622e-05/0.1939, allocations: 88.05 kB / 0.6735 GB, free: 14.7 MB / 0.5137 GB Notification: Performance of collectInitialBindings (initialization): time 3.928e-06/0.1939, allocations: 4 kB / 0.6736 GB, free: 14.7 MB / 0.5137 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.524e-05/0.194, allocations: 21.7 kB / 0.6736 GB, free: 14.67 MB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 0.0001702/0.1942, allocations: 318.8 kB / 0.6739 GB, free: 14.35 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.707e-05/0.1942, allocations: 7.984 kB / 0.6739 GB, free: 14.34 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.012e-05/0.1943, allocations: 48.28 kB / 0.6739 GB, free: 14.28 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 7.031e-05/0.1943, allocations: 56.19 kB / 0.674 GB, free: 14.21 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.994e-06/0.1943, allocations: 0 / 0.674 GB, free: 14.21 MB / 0.5137 GB Notification: Performance of matching and sorting (n=5) (initialization): time 0.000214/0.1946, allocations: 73.52 kB / 0.6741 GB, free: 14.13 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 2.314e-05/0.1946, allocations: 8 kB / 0.6741 GB, free: 14.12 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.151e-06/0.1946, allocations: 0 / 0.6741 GB, free: 14.12 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.37e-05/0.1946, allocations: 4 kB / 0.6741 GB, free: 14.12 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.971e-05/0.1947, allocations: 11.92 kB / 0.6741 GB, free: 14.11 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.865e-06/0.1948, allocations: 4 kB / 0.6741 GB, free: 14.11 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.973e-05/0.1949, allocations: 8.094 kB / 0.6741 GB, free: 14.1 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.285e-05/0.1949, allocations: 8 kB / 0.6741 GB, free: 14.09 MB / 0.5137 GB 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001602/0.195, allocations: 201 kB / 0.6743 GB, free: 13.88 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.675e-05/0.1951, allocations: 108.9 kB / 0.6744 GB, free: 13.77 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001028/0.1952, allocations: 120.2 kB / 0.6745 GB, free: 13.63 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.000102/0.1954, allocations: 180.2 kB / 0.6747 GB, free: 13.45 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0001099/0.1955, allocations: 196.3 kB / 0.6749 GB, free: 13.25 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.448e-05/0.1956, allocations: 180.2 kB / 0.675 GB, free: 13.07 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000316/0.1959, allocations: 409.2 kB / 0.6754 GB, free: 12.61 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.743e-05/0.1959, allocations: 105 kB / 0.6755 GB, free: 12.5 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.558e-05/0.196, allocations: 101 kB / 0.6756 GB, free: 12.39 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 9.299e-05/0.1961, allocations: 184.2 kB / 0.6758 GB, free: 12.21 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001037/0.1962, allocations: 184.3 kB / 0.676 GB, free: 12.02 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0001003/0.1963, allocations: 184.2 kB / 0.6761 GB, free: 11.83 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.603e-05/0.1964, allocations: 180.3 kB / 0.6763 GB, free: 11.65 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001397/0.1966, allocations: 311.7 kB / 0.6766 GB, free: 11.32 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 8.84e-05/0.1966, allocations: 182.3 kB / 0.6768 GB, free: 11.12 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.369e-05/0.1967, allocations: 184.2 kB / 0.677 GB, free: 10.93 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001109/0.1969, allocations: 105.4 kB / 0.6771 GB, free: 10.82 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.543e-05/0.197, allocations: 184.2 kB / 0.6772 GB, free: 10.63 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.265e-05/0.197, allocations: 108.9 kB / 0.6773 GB, free: 10.52 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 6.981e-05/0.1971, allocations: 103.2 kB / 0.6774 GB, free: 10.42 MB / 0.5137 GB Notification: Performance of sort global known variables: time 1.6e-07/0.1971, allocations: 4 kB / 0.6775 GB, free: 10.41 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.0003112/0.1974, allocations: 8 kB / 0.6775 GB, free: 10.41 MB / 0.5137 GB 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002006/0.1976, allocations: 174.5 kB / 0.6776 GB, free: 10.23 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.0001206/0.1977, allocations: 23.92 kB / 0.6776 GB, free: 10.2 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 2.785e-06/0.1978, allocations: 0 / 0.6776 GB, free: 10.2 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 1.282e-06/0.1978, allocations: 0 / 0.6776 GB, free: 10.2 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003965/0.1982, allocations: 464 kB / 0.6781 GB, free: 9.746 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002832/0.1985, allocations: 180.2 kB / 0.6783 GB, free: 9.543 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003098/0.1988, allocations: 0.6845 MB / 0.6789 GB, free: 8.832 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 5.465e-05/0.1988, allocations: 12.22 kB / 0.6789 GB, free: 8.82 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.207e-05/0.1989, allocations: 15.38 kB / 0.679 GB, free: 8.805 MB / 0.5137 GB Notification: Performance of SimCode: time 2.41e-07/0.1989, allocations: 0 / 0.679 GB, free: 8.805 MB / 0.5137 GB Notification: Performance of Templates: time 0.003247/0.2021, allocations: 485.7 kB / 0.6794 GB, free: 8.336 MB / 0.5137 GB make -j1 -f Buildings_3.0.0_Buildings.Fluid.HeatExchangers.Boreholes.BaseClasses.Examples.Factorial.makefile (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)