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.2135/0.2143, allocations: 82.22 MB / 0.5941 GB, free: 5.566 MB / 446.1 MB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatExchangers.Boreholes.BaseClasses.Examples.Factorial): time 0.0008446/0.2152, allocations: 288.9 kB / 0.5944 GB, free: 5.281 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.0003969/0.2156, allocations: 75.86 kB / 0.5945 GB, free: 5.207 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.176e-05/0.2156, allocations: 4 kB / 0.5945 GB, free: 5.203 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 5.482e-05/0.2157, allocations: 3.984 kB / 0.5945 GB, free: 5.199 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 3.786e-05/0.2157, allocations: 0 / 0.5945 GB, free: 5.199 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00023/0.216, allocations: 4 kB / 0.5945 GB, free: 5.195 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 5.859e-05/0.2161, allocations: 12 kB / 0.5945 GB, free: 5.184 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.31e-05/0.2161, allocations: 3.984 kB / 0.5945 GB, free: 5.18 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.344e-05/0.2161, allocations: 0 / 0.5945 GB, free: 5.18 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.412e-05/0.2162, allocations: 7.938 kB / 0.5945 GB, free: 5.172 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 1.905e-05/0.2162, allocations: 0 / 0.5945 GB, free: 5.172 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.098e-05/0.2163, allocations: 11.94 kB / 0.5945 GB, free: 5.16 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 6.004e-05/0.2164, allocations: 11.97 kB / 0.5945 GB, free: 5.148 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 4.617e-05/0.2164, allocations: 29.64 kB / 0.5946 GB, free: 5.113 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001137/0.2165, allocations: 19.92 kB / 0.5946 GB, free: 5.094 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.67e-06/0.2166, allocations: 4 kB / 0.5946 GB, free: 5.09 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.743e-06/0.2166, allocations: 0 / 0.5946 GB, free: 5.09 MB / 446.1 MB Notification: Performance of Transformations before backend: time 5e-06/0.2166, allocations: 4 kB / 0.5946 GB, free: 5.086 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.000351/0.2169, allocations: 327.7 kB / 0.5949 GB, free: 4.719 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.214e-05/0.217, allocations: 8.031 kB / 0.5949 GB, free: 4.711 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.049e-05/0.217, allocations: 4.938 kB / 0.5949 GB, free: 4.707 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001299/0.2172, allocations: 168.3 kB / 0.5951 GB, free: 4.504 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.184e-05/0.2172, allocations: 384 / 0.5951 GB, free: 4.504 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.006e-05/0.2172, allocations: 4.375 kB / 0.5951 GB, free: 4.5 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001224/0.2173, allocations: 53.78 kB / 0.5951 GB, free: 4.441 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.156e-06/0.2173, allocations: 4 kB / 0.5951 GB, free: 4.438 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.217e-05/0.2174, allocations: 4 kB / 0.5951 GB, free: 4.434 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.223e-05/0.2174, allocations: 0 / 0.5951 GB, free: 4.434 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.898e-05/0.2174, allocations: 23.86 kB / 0.5952 GB, free: 4.41 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007117/0.2181, allocations: 0.7939 MB / 0.5959 GB, free: 3.473 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 8.431e-05/0.2182, allocations: 165.1 kB / 0.5961 GB, free: 3.301 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.358e-05/0.2183, allocations: 84.14 kB / 0.5962 GB, free: 3.215 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.012e-05/0.2183, allocations: 83.2 kB / 0.5963 GB, free: 3.133 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.818e-05/0.2184, allocations: 117.8 kB / 0.5964 GB, free: 3.008 MB / 446.1 MB Notification: Performance of pre-optimization done (n=0): time 9.72e-07/0.2184, allocations: 0 / 0.5964 GB, free: 3.008 MB / 446.1 MB Notification: Performance of matching and sorting (n=0): time 7.73e-05/0.2185, allocations: 29.61 kB / 0.5964 GB, free: 2.973 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.053e-05/0.2186, allocations: 156.4 kB / 0.5965 GB, free: 2.801 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001261/0.2187, allocations: 133.8 kB / 0.5967 GB, free: 2.66 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 1.507e-05/0.2187, allocations: 25.7 kB / 0.5967 GB, free: 2.629 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.887e-05/0.2188, allocations: 96.03 kB / 0.5968 GB, free: 2.531 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.395e-06/0.2188, allocations: 0 / 0.5968 GB, free: 2.531 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.466e-05/0.2188, allocations: 13.72 kB / 0.5968 GB, free: 2.512 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001329/0.2189, allocations: 318.8 kB / 0.5971 GB, free: 2.191 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.302e-05/0.219, allocations: 11.98 kB / 0.5971 GB, free: 2.18 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.684e-05/0.219, allocations: 48.22 kB / 0.5972 GB, free: 2.117 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.758e-05/0.2191, allocations: 48.22 kB / 0.5972 GB, free: 2.055 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.328e-06/0.2191, allocations: 4 kB / 0.5972 GB, free: 2.051 MB / 446.1 MB Notification: Performance of matching and sorting (n=5) (initialization): time 0.0001781/0.2193, allocations: 77.55 kB / 0.5973 GB, free: 1.969 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.569e-05/0.2193, allocations: 4 kB / 0.5973 GB, free: 1.965 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.859e-06/0.2193, allocations: 0 / 0.5973 GB, free: 1.965 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.647e-05/0.2193, allocations: 4 kB / 0.5973 GB, free: 1.961 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.492e-05/0.2194, allocations: 19.92 kB / 0.5973 GB, free: 1.941 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.391e-06/0.2194, allocations: 0 / 0.5973 GB, free: 1.941 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.578e-05/0.2195, allocations: 7.938 kB / 0.5973 GB, free: 1.934 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.998e-06/0.2195, allocations: 0 / 0.5973 GB, free: 1.934 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001246/0.2197, allocations: 198.1 kB / 0.5975 GB, free: 1.73 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.418e-05/0.2197, allocations: 116.8 kB / 0.5976 GB, free: 1.609 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.682e-05/0.2198, allocations: 104.5 kB / 0.5977 GB, free: 1.5 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.181e-05/0.2199, allocations: 184.2 kB / 0.5979 GB, free: 1.312 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.133e-05/0.2199, allocations: 180.2 kB / 0.5981 GB, free: 1.129 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.13e-05/0.22, allocations: 184.6 kB / 0.5982 GB, free: 0.9414 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002344/0.2203, allocations: 409.2 kB / 0.5986 GB, free: 496 kB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.678e-05/0.2203, allocations: 105 kB / 0.5987 GB, free: 384 kB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.842e-05/0.2203, allocations: 105 kB / 0.5988 GB, free: 272 kB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.484e-05/0.2204, allocations: 192.9 kB / 0.599 GB, free: 72 kB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001063/0.2205, allocations: 176.3 kB / 0.5992 GB, free: 15.89 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.718e-05/0.2206, allocations: 188.2 kB / 0.5994 GB, free: 15.7 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.763e-05/0.2207, allocations: 180.3 kB / 0.5995 GB, free: 15.52 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001337/0.2208, allocations: 315.9 kB / 0.5998 GB, free: 15.18 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.011e-05/0.2209, allocations: 182.1 kB / 0.6 GB, free: 14.98 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.362e-05/0.221, allocations: 196.2 kB / 0.6002 GB, free: 14.78 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.692e-05/0.2211, allocations: 101 kB / 0.6003 GB, free: 14.68 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.822e-05/0.2212, allocations: 184.2 kB / 0.6005 GB, free: 14.49 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.167e-05/0.2213, allocations: 104.9 kB / 0.6006 GB, free: 14.38 MB / 462.1 MB Notification: Performance of sorting global known variables: time 6.42e-05/0.2214, allocations: 99.25 kB / 0.6007 GB, free: 14.28 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.2214, allocations: 0 / 0.6007 GB, free: 14.28 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.00023/0.2216, allocations: 12 kB / 0.6007 GB, free: 14.27 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 (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.0001713/0.2218, allocations: 182.5 kB / 0.6009 GB, free: 14.08 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 9.693e-05/0.2219, allocations: 19.92 kB / 0.6009 GB, free: 14.06 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 2.104e-06/0.2219, allocations: 0 / 0.6009 GB, free: 14.06 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 1.192e-06/0.2219, allocations: 0 / 0.6009 GB, free: 14.06 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004013/0.2223, allocations: 0.5305 MB / 0.6014 GB, free: 13.53 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000247/0.2226, allocations: 189.9 kB / 0.6016 GB, free: 13.31 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003268/0.2229, allocations: 0.677 MB / 0.6022 GB, free: 12.61 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 4.744e-05/0.223, allocations: 11.98 kB / 0.6022 GB, free: 12.6 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.401e-05/0.223, allocations: 7.438 kB / 0.6022 GB, free: 12.59 MB / 462.1 MB Notification: Performance of SimCode: time 4.71e-07/0.223, allocations: 0 / 0.6022 GB, free: 12.59 MB / 462.1 MB Notification: Performance of Templates: time 0.002881/0.2259, allocations: 471.2 kB / 0.6027 GB, free: 12.16 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: