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.1972/0.1993, allocations: 80.83 MB / 0.6706 GB, free: 2 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatExchangers.Boreholes.BaseClasses.Examples.Factorial): time 0.001786/0.2011, allocations: 0.5471 MB / 0.6712 GB, free: 1.457 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.0003241/0.2014, allocations: 79.75 kB / 0.6713 GB, free: 1.379 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.793e-05/0.2015, allocations: 4 kB / 0.6713 GB, free: 1.375 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 6.072e-05/0.2015, allocations: 0 / 0.6713 GB, free: 1.375 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 3.767e-05/0.2016, allocations: 0 / 0.6713 GB, free: 1.375 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002764/0.2019, allocations: 7.984 kB / 0.6713 GB, free: 1.367 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 6.88e-05/0.2019, allocations: 7.984 kB / 0.6713 GB, free: 1.359 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 6.235e-05/0.202, allocations: 11.92 kB / 0.6713 GB, free: 1.348 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 3.005e-05/0.202, allocations: 11.94 kB / 0.6713 GB, free: 1.336 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 6.429e-05/0.2021, allocations: 0 / 0.6713 GB, free: 1.336 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 1.632e-05/0.2021, allocations: 0 / 0.6713 GB, free: 1.336 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 4.907e-05/0.2022, allocations: 8 kB / 0.6713 GB, free: 1.328 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 5.403e-05/0.2023, allocations: 11.98 kB / 0.6713 GB, free: 1.316 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 2.876e-05/0.2023, allocations: 3.938 kB / 0.6713 GB, free: 1.312 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 9.246e-05/0.2024, allocations: 19.91 kB / 0.6713 GB, free: 1.293 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 4.048e-06/0.2024, allocations: 0 / 0.6713 GB, free: 1.293 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.634e-06/0.2024, allocations: 0 / 0.6713 GB, free: 1.293 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 6.492e-06/0.2024, allocations: 0 / 0.6713 GB, free: 1.293 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.000399/0.2028, allocations: 339.8 kB / 0.6717 GB, free: 0.9141 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 3.467e-05/0.2029, allocations: 8.031 kB / 0.6717 GB, free: 0.9062 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.658e-05/0.2029, allocations: 4.938 kB / 0.6717 GB, free: 0.9023 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001168/0.203, allocations: 164.3 kB / 0.6718 GB, free: 0.7031 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.838e-06/0.203, allocations: 384 / 0.6718 GB, free: 0.7031 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.494e-05/0.2031, allocations: 4.375 kB / 0.6718 GB, free: 0.6992 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001321/0.2032, allocations: 49.61 kB / 0.6719 GB, free: 0.6445 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.038e-05/0.2032, allocations: 7.938 kB / 0.6719 GB, free: 0.6367 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.959e-06/0.2032, allocations: 0 / 0.6719 GB, free: 0.6367 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.608e-05/0.2033, allocations: 19.88 kB / 0.6719 GB, free: 0.6172 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.851e-05/0.2033, allocations: 11.98 kB / 0.6719 GB, free: 0.6055 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006872/0.204, allocations: 0.7978 MB / 0.6727 GB, free: 15.66 MB / 0.5137 GB Notification: Performance of preOpt comSubExp (simulation): time 8.03e-05/0.2041, allocations: 173.1 kB / 0.6729 GB, free: 15.48 MB / 0.5137 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.913e-05/0.2041, allocations: 80.14 kB / 0.6729 GB, free: 15.4 MB / 0.5137 GB Notification: Performance of preOpt evalFunc (simulation): time 2.422e-05/0.2042, allocations: 87.22 kB / 0.673 GB, free: 15.32 MB / 0.5137 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.23e-05/0.2042, allocations: 109.8 kB / 0.6731 GB, free: 15.2 MB / 0.5137 GB Notification: Performance of pre-optimization done (n=0): time 1.042e-06/0.2042, allocations: 0 / 0.6731 GB, free: 15.2 MB / 0.5137 GB Notification: Performance of matching and sorting (n=0): time 8.635e-05/0.2043, allocations: 29.61 kB / 0.6732 GB, free: 15.16 MB / 0.5137 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.392e-05/0.2044, allocations: 156.4 kB / 0.6733 GB, free: 14.99 MB / 0.5137 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001242/0.2045, allocations: 133.8 kB / 0.6734 GB, free: 14.85 MB / 0.5137 GB Notification: Performance of collectPreVariables (initialization): time 1.727e-05/0.2046, allocations: 29.7 kB / 0.6735 GB, free: 14.82 MB / 0.5137 GB Notification: Performance of collectInitialEqns (initialization): time 5.311e-05/0.2046, allocations: 96.03 kB / 0.6736 GB, free: 14.72 MB / 0.5137 GB Notification: Performance of collectInitialBindings (initialization): time 2.604e-06/0.2046, allocations: 0 / 0.6736 GB, free: 14.72 MB / 0.5137 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.164e-05/0.2047, allocations: 25.7 kB / 0.6736 GB, free: 14.69 MB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 9.246e-05/0.2048, allocations: 310.8 kB / 0.6739 GB, free: 14.38 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.651e-05/0.2048, allocations: 15.98 kB / 0.6739 GB, free: 14.36 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.69e-05/0.2049, allocations: 48.22 kB / 0.6739 GB, free: 14.3 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 6.48e-05/0.2049, allocations: 52.22 kB / 0.674 GB, free: 14.23 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.014e-06/0.2049, allocations: 0 / 0.674 GB, free: 14.23 MB / 0.5137 GB Notification: Performance of matching and sorting (n=5) (initialization): time 0.000157/0.2051, allocations: 81.48 kB / 0.6741 GB, free: 14.14 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 1.4e-05/0.2051, allocations: 4 kB / 0.6741 GB, free: 14.14 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.853e-06/0.2051, allocations: 0 / 0.6741 GB, free: 14.14 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.675e-05/0.2052, allocations: 4 kB / 0.6741 GB, free: 14.14 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.225e-05/0.2052, allocations: 11.98 kB / 0.6741 GB, free: 14.12 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.977e-06/0.2053, allocations: 3.984 kB / 0.6741 GB, free: 14.12 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.431e-05/0.2053, allocations: 7.938 kB / 0.6741 GB, free: 14.11 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.286e-05/0.2054, allocations: 4 kB / 0.6741 GB, free: 14.11 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.0001378/0.2055, allocations: 201.2 kB / 0.6743 GB, free: 13.9 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.35e-05/0.2056, allocations: 116.8 kB / 0.6744 GB, free: 13.78 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.715e-05/0.2057, allocations: 112.3 kB / 0.6745 GB, free: 13.65 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.793e-05/0.2057, allocations: 180.3 kB / 0.6747 GB, free: 13.47 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.537e-05/0.2058, allocations: 180.6 kB / 0.6749 GB, free: 13.29 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.114e-05/0.2059, allocations: 188.1 kB / 0.675 GB, free: 13.09 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002186/0.2061, allocations: 417.2 kB / 0.6754 GB, free: 12.63 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.792e-05/0.2061, allocations: 101 kB / 0.6755 GB, free: 12.52 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.423e-05/0.2062, allocations: 108.9 kB / 0.6756 GB, free: 12.41 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.446e-05/0.2063, allocations: 176.3 kB / 0.6758 GB, free: 12.23 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.934e-05/0.2064, allocations: 180.3 kB / 0.676 GB, free: 12.05 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.157e-05/0.2064, allocations: 192.2 kB / 0.6762 GB, free: 11.85 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.255e-05/0.2065, allocations: 180.3 kB / 0.6763 GB, free: 11.67 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001391/0.2067, allocations: 303.8 kB / 0.6766 GB, free: 11.35 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 7.687e-05/0.2067, allocations: 190.3 kB / 0.6768 GB, free: 11.14 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.748e-05/0.2068, allocations: 184.2 kB / 0.677 GB, free: 10.95 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001093/0.2069, allocations: 109 kB / 0.6771 GB, free: 10.84 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.369e-05/0.207, allocations: 188.1 kB / 0.6773 GB, free: 10.64 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.49e-05/0.2071, allocations: 101 kB / 0.6774 GB, free: 10.54 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 6.202e-05/0.2071, allocations: 103.2 kB / 0.6775 GB, free: 10.44 MB / 0.5137 GB Notification: Performance of sort global known variables: time 2.3e-07/0.2071, allocations: 0 / 0.6775 GB, free: 10.44 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.0002551/0.2074, allocations: 8 kB / 0.6775 GB, free: 10.43 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.0001748/0.2076, allocations: 178.5 kB / 0.6776 GB, free: 10.25 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 9.556e-05/0.2077, allocations: 19.92 kB / 0.6776 GB, free: 10.23 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 2.314e-06/0.2077, allocations: 0 / 0.6776 GB, free: 10.23 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 3.407e-06/0.2077, allocations: 4 kB / 0.6777 GB, free: 10.22 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003457/0.208, allocations: 456 kB / 0.6781 GB, free: 9.773 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002506/0.2083, allocations: 192.1 kB / 0.6783 GB, free: 9.559 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003223/0.2086, allocations: 0.6806 MB / 0.6789 GB, free: 8.852 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 4.441e-05/0.2087, allocations: 12.23 kB / 0.6789 GB, free: 8.84 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.483e-05/0.2087, allocations: 7.438 kB / 0.679 GB, free: 8.832 MB / 0.5137 GB Notification: Performance of SimCode: time 2.91e-07/0.2087, allocations: 0 / 0.679 GB, free: 8.832 MB / 0.5137 GB Notification: Performance of Templates: time 0.002694/0.2114, allocations: 491 kB / 0.6794 GB, free: 8.359 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)