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.2233/0.2252, allocations: 80.83 MB / 0.5897 GB, free: 7.102 MB / 446.1 MB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatExchangers.Boreholes.BaseClasses.Examples.Factorial): time 0.001972/0.2272, allocations: 0.6112 MB / 0.5903 GB, free: 6.48 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.000341/0.2276, allocations: 87.8 kB / 0.5904 GB, free: 6.395 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.783e-05/0.2276, allocations: 0 / 0.5904 GB, free: 6.395 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 4.086e-05/0.2277, allocations: 3.938 kB / 0.5904 GB, free: 6.391 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 3.158e-05/0.2277, allocations: 0 / 0.5904 GB, free: 6.391 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002256/0.2279, allocations: 11.92 kB / 0.5904 GB, free: 6.379 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 4.9e-05/0.228, allocations: 8 kB / 0.5904 GB, free: 6.371 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.687e-05/0.228, allocations: 3.984 kB / 0.5904 GB, free: 6.367 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.741e-05/0.2281, allocations: 11.98 kB / 0.5904 GB, free: 6.355 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.333e-05/0.2281, allocations: 0 / 0.5904 GB, free: 6.355 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 1.677e-05/0.2282, allocations: 0 / 0.5904 GB, free: 6.355 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.098e-05/0.2282, allocations: 8 kB / 0.5904 GB, free: 6.348 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 4.997e-05/0.2283, allocations: 4 kB / 0.5904 GB, free: 6.344 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 3.804e-05/0.2283, allocations: 19.84 kB / 0.5904 GB, free: 6.324 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 8.574e-05/0.2284, allocations: 12 kB / 0.5905 GB, free: 6.312 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.236e-06/0.2284, allocations: 0 / 0.5905 GB, free: 6.312 MB / 446.1 MB Notification: Performance of FrontEnd: time 5.81e-07/0.2284, allocations: 3.938 kB / 0.5905 GB, free: 6.309 MB / 446.1 MB Notification: Performance of Transformations before backend: time 6.442e-06/0.2284, allocations: 0 / 0.5905 GB, free: 6.309 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.0003515/0.2288, allocations: 343.7 kB / 0.5908 GB, free: 5.926 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.878e-05/0.2288, allocations: 8.031 kB / 0.5908 GB, free: 5.918 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.863e-05/0.2289, allocations: 8.844 kB / 0.5908 GB, free: 5.91 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001428/0.229, allocations: 164.4 kB / 0.591 GB, free: 5.711 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.19e-05/0.229, allocations: 384 / 0.591 GB, free: 5.711 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.869e-05/0.2291, allocations: 4.375 kB / 0.591 GB, free: 5.707 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001302/0.2292, allocations: 49.73 kB / 0.591 GB, free: 5.652 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.815e-06/0.2292, allocations: 0 / 0.591 GB, free: 5.652 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.062e-05/0.2292, allocations: 4 kB / 0.591 GB, free: 5.648 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.328e-05/0.2293, allocations: 4 kB / 0.591 GB, free: 5.645 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.055e-05/0.2293, allocations: 15.98 kB / 0.591 GB, free: 5.629 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007003/0.23, allocations: 0.8017 MB / 0.5918 GB, free: 4.684 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 7.154e-05/0.2301, allocations: 169.1 kB / 0.592 GB, free: 4.508 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.151e-05/0.2301, allocations: 84.14 kB / 0.5921 GB, free: 4.422 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.351e-05/0.2302, allocations: 83.28 kB / 0.5921 GB, free: 4.34 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.198e-05/0.2302, allocations: 105.8 kB / 0.5922 GB, free: 4.227 MB / 446.1 MB Notification: Performance of pre-optimization done (n=0): time 1.232e-06/0.2302, allocations: 0 / 0.5922 GB, free: 4.227 MB / 446.1 MB Notification: Performance of matching and sorting (n=0): time 7.508e-05/0.2303, allocations: 25.7 kB / 0.5923 GB, free: 4.195 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.335e-05/0.2304, allocations: 156.4 kB / 0.5924 GB, free: 4.023 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001317/0.2306, allocations: 133.7 kB / 0.5925 GB, free: 3.883 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 1.354e-05/0.2306, allocations: 25.7 kB / 0.5926 GB, free: 3.852 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.548e-05/0.2306, allocations: 103.9 kB / 0.5927 GB, free: 3.746 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.335e-06/0.2306, allocations: 0 / 0.5927 GB, free: 3.746 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.807e-05/0.2307, allocations: 21.72 kB / 0.5927 GB, free: 3.719 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001023/0.2308, allocations: 322.8 kB / 0.593 GB, free: 3.395 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.668e-05/0.2308, allocations: 11.98 kB / 0.593 GB, free: 3.383 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.259e-05/0.2309, allocations: 40.28 kB / 0.593 GB, free: 3.328 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.353e-05/0.231, allocations: 56.38 kB / 0.5931 GB, free: 3.258 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.727e-06/0.231, allocations: 4 kB / 0.5931 GB, free: 3.254 MB / 446.1 MB Notification: Performance of matching and sorting (n=5) (initialization): time 0.00017/0.2311, allocations: 77.64 kB / 0.5932 GB, free: 3.172 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.358e-05/0.2312, allocations: 4.375 kB / 0.5932 GB, free: 3.168 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.008e-06/0.2312, allocations: 0 / 0.5932 GB, free: 3.168 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.338e-05/0.2312, allocations: 4 kB / 0.5932 GB, free: 3.164 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.134e-05/0.2313, allocations: 8 kB / 0.5932 GB, free: 3.156 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.191e-06/0.2313, allocations: 7.875 kB / 0.5932 GB, free: 3.148 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.368e-05/0.2314, allocations: 15.83 kB / 0.5932 GB, free: 3.133 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.598e-05/0.2314, allocations: 8 kB / 0.5932 GB, free: 3.125 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.0001321/0.2315, allocations: 194 kB / 0.5934 GB, free: 2.926 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.802e-05/0.2316, allocations: 109 kB / 0.5935 GB, free: 2.812 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.089e-05/0.2317, allocations: 112.5 kB / 0.5936 GB, free: 2.695 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.485e-05/0.2318, allocations: 180.2 kB / 0.5938 GB, free: 2.512 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.291e-05/0.2318, allocations: 176.3 kB / 0.594 GB, free: 2.332 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.376e-05/0.2319, allocations: 184.1 kB / 0.5941 GB, free: 2.145 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002371/0.2322, allocations: 417.2 kB / 0.5945 GB, free: 1.68 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.676e-05/0.2322, allocations: 101 kB / 0.5946 GB, free: 1.574 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.639e-05/0.2322, allocations: 104.9 kB / 0.5947 GB, free: 1.465 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.522e-05/0.2323, allocations: 181 kB / 0.5949 GB, free: 1.281 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.994e-05/0.2324, allocations: 188.2 kB / 0.5951 GB, free: 1.09 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.229e-05/0.2325, allocations: 176.3 kB / 0.5952 GB, free: 0.9102 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.964e-05/0.2325, allocations: 184.2 kB / 0.5954 GB, free: 0.7227 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001706/0.2327, allocations: 307.9 kB / 0.5957 GB, free: 408 kB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.368e-05/0.2328, allocations: 189.9 kB / 0.5959 GB, free: 192 kB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.336e-05/0.2329, allocations: 184.3 kB / 0.5961 GB, free: 0 / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001318/0.233, allocations: 105 kB / 0.5962 GB, free: 15.89 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.508e-05/0.2331, allocations: 184.2 kB / 0.5963 GB, free: 15.7 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.587e-05/0.2332, allocations: 104.9 kB / 0.5965 GB, free: 15.59 MB / 462.1 MB Notification: Performance of sorting global known variables: time 7.425e-05/0.2333, allocations: 103.2 kB / 0.5965 GB, free: 15.49 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.2333, allocations: 0 / 0.5965 GB, free: 15.49 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.0002599/0.2335, allocations: 8 kB / 0.5966 GB, free: 15.48 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.0001866/0.2337, allocations: 178.5 kB / 0.5967 GB, free: 15.3 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 9.139e-05/0.2338, allocations: 23.92 kB / 0.5967 GB, free: 15.27 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 2.645e-06/0.2338, allocations: 0 / 0.5967 GB, free: 15.27 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 3.286e-06/0.2338, allocations: 3.938 kB / 0.5968 GB, free: 15.27 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004072/0.2343, allocations: 0.5224 MB / 0.5973 GB, free: 14.74 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002597/0.2345, allocations: 190.3 kB / 0.5974 GB, free: 14.53 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002684/0.2348, allocations: 0.677 MB / 0.5981 GB, free: 13.82 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 4.45e-05/0.2349, allocations: 16.2 kB / 0.5981 GB, free: 13.81 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.222e-05/0.2349, allocations: 11.44 kB / 0.5981 GB, free: 13.8 MB / 462.1 MB Notification: Performance of SimCode: time 4.81e-07/0.2349, allocations: 0 / 0.5981 GB, free: 13.8 MB / 462.1 MB Notification: Performance of Templates: time 0.002642/0.2375, allocations: 471.9 kB / 0.5986 GB, free: 13.37 MB / 462.1 MB 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)