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.2335/0.2357, allocations: 80.84 MB / 0.6706 GB, free: 4.582 MB / 0.5137 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatExchangers.Boreholes.BaseClasses.Examples.Factorial): time 0.002188/0.2379, allocations: 0.5478 MB / 0.6712 GB, free: 4.035 MB / 0.5137 GB Notification: Performance of NFInst.instExpressions: time 0.0004985/0.2384, allocations: 87.75 kB / 0.6713 GB, free: 3.949 MB / 0.5137 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.961e-05/0.2385, allocations: 0 / 0.6713 GB, free: 3.949 MB / 0.5137 GB Notification: Performance of NFTyping.typeComponents: time 6.23e-05/0.2386, allocations: 0 / 0.6713 GB, free: 3.949 MB / 0.5137 GB Notification: Performance of NFTyping.typeBindings: time 4.564e-05/0.2386, allocations: 0 / 0.6713 GB, free: 3.949 MB / 0.5137 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003785/0.239, allocations: 15.92 kB / 0.6713 GB, free: 3.934 MB / 0.5137 GB Notification: Performance of NFFlatten.flatten: time 9.272e-05/0.2391, allocations: 4 kB / 0.6713 GB, free: 3.93 MB / 0.5137 GB Notification: Performance of NFFlatten.resolveConnections: time 7.692e-05/0.2392, allocations: 4 kB / 0.6713 GB, free: 3.926 MB / 0.5137 GB Notification: Performance of NFEvalConstants.evaluate: time 2.909e-05/0.2392, allocations: 0 / 0.6713 GB, free: 3.926 MB / 0.5137 GB Notification: Performance of NFSimplifyModel.simplify: time 8.477e-05/0.2393, allocations: 11.98 kB / 0.6713 GB, free: 3.914 MB / 0.5137 GB Notification: Performance of NFPackage.collectConstants: time 2.145e-05/0.2393, allocations: 0 / 0.6713 GB, free: 3.914 MB / 0.5137 GB Notification: Performance of NFFlatten.collectFunctions: time 6.093e-05/0.2394, allocations: 8 kB / 0.6713 GB, free: 3.906 MB / 0.5137 GB Notification: Performance of NFScalarize.scalarize: time 6.909e-05/0.2395, allocations: 11.92 kB / 0.6713 GB, free: 3.895 MB / 0.5137 GB Notification: Performance of NFVerifyModel.verify: time 3.925e-05/0.2395, allocations: 7.938 kB / 0.6713 GB, free: 3.887 MB / 0.5137 GB Notification: Performance of NFConvertDAE.convert: time 0.0001181/0.2396, allocations: 19.92 kB / 0.6713 GB, free: 3.867 MB / 0.5137 GB Notification: Performance of FrontEnd - DAE generated: time 4.108e-06/0.2397, allocations: 0 / 0.6713 GB, free: 3.867 MB / 0.5137 GB Notification: Performance of FrontEnd: time 1.733e-06/0.2397, allocations: 0 / 0.6713 GB, free: 3.867 MB / 0.5137 GB Notification: Performance of Transformations before backend: time 5.851e-06/0.2397, allocations: 0 / 0.6713 GB, free: 3.867 MB / 0.5137 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.000439/0.2401, allocations: 339.4 kB / 0.6717 GB, free: 3.488 MB / 0.5137 GB Notification: Performance of prepare preOptimizeDAE: time 4.421e-05/0.2402, allocations: 8.031 kB / 0.6717 GB, free: 3.48 MB / 0.5137 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.964e-05/0.2402, allocations: 0.9375 kB / 0.6717 GB, free: 3.48 MB / 0.5137 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001612/0.2404, allocations: 172.3 kB / 0.6718 GB, free: 3.273 MB / 0.5137 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.349e-05/0.2404, allocations: 384 / 0.6718 GB, free: 3.273 MB / 0.5137 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.668e-05/0.2404, allocations: 8.297 kB / 0.6719 GB, free: 3.266 MB / 0.5137 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001558/0.2406, allocations: 57.55 kB / 0.6719 GB, free: 3.203 MB / 0.5137 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.01e-05/0.2406, allocations: 4 kB / 0.6719 GB, free: 3.199 MB / 0.5137 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.074e-05/0.2406, allocations: 0 / 0.6719 GB, free: 3.199 MB / 0.5137 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.353e-05/0.2406, allocations: 4 kB / 0.6719 GB, free: 3.195 MB / 0.5137 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.558e-05/0.2407, allocations: 15.98 kB / 0.6719 GB, free: 3.18 MB / 0.5137 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000799/0.2415, allocations: 0.8017 MB / 0.6727 GB, free: 2.234 MB / 0.5137 GB Notification: Performance of preOpt comSubExp (simulation): time 8.946e-05/0.2416, allocations: 165.1 kB / 0.6729 GB, free: 2.062 MB / 0.5137 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.326e-05/0.2416, allocations: 88.06 kB / 0.673 GB, free: 1.973 MB / 0.5137 GB Notification: Performance of preOpt evalFunc (simulation): time 2.687e-05/0.2417, allocations: 75.28 kB / 0.673 GB, free: 1.898 MB / 0.5137 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.707e-05/0.2417, allocations: 109.8 kB / 0.6731 GB, free: 1.781 MB / 0.5137 GB Notification: Performance of pre-optimization done (n=0): time 1.083e-06/0.2417, allocations: 0 / 0.6731 GB, free: 1.781 MB / 0.5137 GB Notification: Performance of matching and sorting (n=0): time 8.091e-05/0.2418, allocations: 37.61 kB / 0.6732 GB, free: 1.738 MB / 0.5137 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.51e-05/0.2419, allocations: 152.4 kB / 0.6733 GB, free: 1.57 MB / 0.5137 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001412/0.2421, allocations: 133.8 kB / 0.6734 GB, free: 1.43 MB / 0.5137 GB Notification: Performance of collectPreVariables (initialization): time 1.48e-05/0.2421, allocations: 25.7 kB / 0.6735 GB, free: 1.398 MB / 0.5137 GB Notification: Performance of collectInitialEqns (initialization): time 6.572e-05/0.2422, allocations: 92.03 kB / 0.6736 GB, free: 1.305 MB / 0.5137 GB Notification: Performance of collectInitialBindings (initialization): time 5.21e-06/0.2422, allocations: 7.938 kB / 0.6736 GB, free: 1.297 MB / 0.5137 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.549e-05/0.2422, allocations: 29.56 kB / 0.6736 GB, free: 1.262 MB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 0.0001399/0.2424, allocations: 318.8 kB / 0.6739 GB, free: 0.9414 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.237e-05/0.2424, allocations: 4 kB / 0.6739 GB, free: 0.9375 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.231e-05/0.2424, allocations: 48.27 kB / 0.6739 GB, free: 0.875 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001185/0.2426, allocations: 52.25 kB / 0.674 GB, free: 0.8086 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.154e-06/0.2426, allocations: 0 / 0.674 GB, free: 0.8086 MB / 0.5137 GB Notification: Performance of matching and sorting (n=5) (initialization): time 0.0001795/0.2428, allocations: 77.55 kB / 0.6741 GB, free: 0.7266 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 1.684e-05/0.2428, allocations: 8 kB / 0.6741 GB, free: 0.7188 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.861e-06/0.2428, allocations: 0 / 0.6741 GB, free: 0.7188 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.442e-05/0.2428, allocations: 4.156 kB / 0.6741 GB, free: 0.7148 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.172e-05/0.2429, allocations: 8 kB / 0.6741 GB, free: 0.707 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.977e-06/0.2429, allocations: 4 kB / 0.6741 GB, free: 0.7031 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.125e-05/0.243, allocations: 11.92 kB / 0.6741 GB, free: 0.6914 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.032e-05/0.243, allocations: 0 / 0.6741 GB, free: 0.6914 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.0001268/0.2431, allocations: 198.1 kB / 0.6743 GB, free: 500 kB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.27e-05/0.2432, allocations: 112.8 kB / 0.6744 GB, free: 380 kB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.9e-05/0.2433, allocations: 112.5 kB / 0.6745 GB, free: 252 kB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.441e-05/0.2434, allocations: 180.2 kB / 0.6747 GB, free: 64 kB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.938e-05/0.2434, allocations: 184.2 kB / 0.6749 GB, free: 15.88 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.454e-05/0.2435, allocations: 189 kB / 0.675 GB, free: 15.68 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002334/0.2438, allocations: 413.1 kB / 0.6754 GB, free: 15.22 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.891e-05/0.2438, allocations: 101 kB / 0.6755 GB, free: 15.12 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.24e-05/0.2438, allocations: 112.9 kB / 0.6756 GB, free: 15 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.176e-05/0.2439, allocations: 176.3 kB / 0.6758 GB, free: 14.82 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.36e-05/0.244, allocations: 176.3 kB / 0.676 GB, free: 14.64 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.903e-05/0.244, allocations: 180.4 kB / 0.6761 GB, free: 14.46 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.646e-05/0.2441, allocations: 188.4 kB / 0.6763 GB, free: 14.27 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001483/0.2443, allocations: 315.7 kB / 0.6766 GB, free: 13.93 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 6.785e-05/0.2443, allocations: 182 kB / 0.6768 GB, free: 13.73 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.086e-05/0.2444, allocations: 188.2 kB / 0.677 GB, free: 13.54 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001635/0.2446, allocations: 101 kB / 0.6771 GB, free: 13.43 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.491e-05/0.2447, allocations: 184.1 kB / 0.6772 GB, free: 13.25 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.895e-05/0.2447, allocations: 109 kB / 0.6773 GB, free: 13.13 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 5.831e-05/0.2448, allocations: 99.25 kB / 0.6774 GB, free: 13.04 MB / 0.5294 GB Notification: Performance of sort global known variables: time 1.11e-07/0.2448, allocations: 0 / 0.6774 GB, free: 13.04 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.0002592/0.245, allocations: 8 kB / 0.6774 GB, free: 13.03 MB / 0.5294 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.0002797/0.2453, allocations: 178.5 kB / 0.6776 GB, free: 12.84 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 9.812e-05/0.2454, allocations: 24.17 kB / 0.6776 GB, free: 12.82 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 2.245e-06/0.2454, allocations: 4.062 kB / 0.6776 GB, free: 12.82 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 1.132e-06/0.2455, allocations: 0 / 0.6776 GB, free: 12.82 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003747/0.2458, allocations: 468.4 kB / 0.6781 GB, free: 12.36 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002348/0.2461, allocations: 180.1 kB / 0.6783 GB, free: 12.15 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002218/0.2463, allocations: 0.6807 MB / 0.6789 GB, free: 11.45 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 4.287e-05/0.2464, allocations: 16.22 kB / 0.6789 GB, free: 11.43 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.604e-05/0.2464, allocations: 11.44 kB / 0.679 GB, free: 11.42 MB / 0.5294 GB Notification: Performance of SimCode: time 2.71e-07/0.2464, allocations: 0 / 0.679 GB, free: 11.42 MB / 0.5294 GB Notification: Performance of Templates: time 0.002525/0.2489, allocations: 483.2 kB / 0.6794 GB, free: 10.95 MB / 0.5294 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)