Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_1.6_Buildings.Fluid.HeatExchangers.Boreholes.BaseClasses.Examples.Factorial.conf.json 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 1.6.0+build.1/package.mo", uses=false) Using package Buildings with version 1.6 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 1.6.0+build.1/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) Running command: translateModel(Buildings.Fluid.HeatExchangers.Boreholes.BaseClasses.Examples.Factorial,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_1.6_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_1.6_Buildings.Fluid.HeatExchangers.Boreholes.BaseClasses.Examples.Factorial") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009539/0.0009539, allocations: 99.55 kB / 15.05 MB, free: 1.105 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001115/0.001115, allocations: 177.3 kB / 15.94 MB, free: 228 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.357/1.357, allocations: 205.4 MB / 222.1 MB, free: 5.543 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 1.6.0+build.1/package.mo): time 0.5568/0.5568, allocations: 95.59 MB / 366 MB, free: 10.35 MB / 302.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Buildings requested package Modelica of version 3.2.1. Modelica 3.2.3 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0005555/0.0005556, allocations: 16 kB / 446.8 MB, free: 9.344 MB / 382.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3463/0.3468, allocations: 70.34 MB / 0.505 GB, free: 16.66 MB / 382.1 MB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatExchangers.Boreholes.BaseClasses.Examples.Factorial): time 0.000817/0.3477, allocations: 264.6 kB / 0.5053 GB, free: 16.4 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0003461/0.3481, allocations: 81.62 kB / 0.5053 GB, free: 16.33 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.987e-05/0.3481, allocations: 0 / 0.5053 GB, free: 16.33 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 7.331e-05/0.3482, allocations: 0 / 0.5053 GB, free: 16.33 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 3.313e-05/0.3483, allocations: 4 kB / 0.5054 GB, free: 16.32 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002544/0.3485, allocations: 7.984 kB / 0.5054 GB, free: 16.32 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 5.954e-05/0.3486, allocations: 4 kB / 0.5054 GB, free: 16.31 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 6.617e-05/0.3487, allocations: 0 / 0.5054 GB, free: 16.31 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.543e-05/0.3488, allocations: 11.92 kB / 0.5054 GB, free: 16.3 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.986e-05/0.3488, allocations: 7.922 kB / 0.5054 GB, free: 16.29 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 1.809e-05/0.3489, allocations: 0 / 0.5054 GB, free: 16.29 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.304e-05/0.3489, allocations: 8 kB / 0.5054 GB, free: 16.29 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 3.702e-05/0.349, allocations: 11.98 kB / 0.5054 GB, free: 16.27 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 3e-05/0.349, allocations: 25.7 kB / 0.5054 GB, free: 16.24 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 7.751e-05/0.3491, allocations: 8 kB / 0.5054 GB, free: 16.23 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.256e-06/0.3491, allocations: 0 / 0.5054 GB, free: 16.23 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.803e-06/0.3492, allocations: 0 / 0.5054 GB, free: 16.23 MB / 382.1 MB Notification: Performance of Transformations before backend: time 5.24e-06/0.3492, allocations: 0 / 0.5054 GB, free: 16.23 MB / 382.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.0003299/0.3495, allocations: 329.4 kB / 0.5057 GB, free: 15.87 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.12e-05/0.3496, allocations: 11.98 kB / 0.5058 GB, free: 15.86 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.861e-05/0.3496, allocations: 7.891 kB / 0.5058 GB, free: 15.85 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.788e-05/0.3497, allocations: 167 kB / 0.5059 GB, free: 15.64 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.833e-05/0.3498, allocations: 7.953 kB / 0.5059 GB, free: 15.64 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.111e-05/0.3498, allocations: 0 / 0.5059 GB, free: 15.64 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001492/0.35, allocations: 41.69 kB / 0.506 GB, free: 15.59 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.033e-05/0.35, allocations: 0 / 0.506 GB, free: 15.59 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.368e-05/0.35, allocations: 3.984 kB / 0.506 GB, free: 15.59 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.643e-05/0.3501, allocations: 11.98 kB / 0.506 GB, free: 15.57 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.572e-05/0.3501, allocations: 15.98 kB / 0.506 GB, free: 15.56 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006734/0.3508, allocations: 0.7978 MB / 0.5068 GB, free: 14.62 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 6.174e-05/0.3509, allocations: 169.1 kB / 0.5069 GB, free: 14.44 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.433e-05/0.3509, allocations: 75.28 kB / 0.507 GB, free: 14.37 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.242e-05/0.351, allocations: 109.8 kB / 0.5071 GB, free: 14.25 MB / 382.1 MB Notification: Performance of pre-optimization done (n=0): time 1.784e-06/0.351, allocations: 3.938 kB / 0.5071 GB, free: 14.25 MB / 382.1 MB Notification: Performance of matching and sorting (n=0): time 9.401e-05/0.3511, allocations: 37.61 kB / 0.5072 GB, free: 14.2 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.994e-05/0.3511, allocations: 160.3 kB / 0.5073 GB, free: 14.03 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001252/0.3513, allocations: 126 kB / 0.5074 GB, free: 13.89 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.163e-05/0.3513, allocations: 25.7 kB / 0.5075 GB, free: 13.86 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.209e-05/0.3514, allocations: 88.05 kB / 0.5075 GB, free: 13.77 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.797e-06/0.3514, allocations: 7.938 kB / 0.5076 GB, free: 13.76 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.469e-06/0.3514, allocations: 0 / 0.5076 GB, free: 13.76 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 5.969e-05/0.3515, allocations: 322.8 kB / 0.5079 GB, free: 13.44 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.984e-05/0.3515, allocations: 8 kB / 0.5079 GB, free: 13.43 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.767e-05/0.3516, allocations: 48.27 kB / 0.5079 GB, free: 13.37 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.224e-05/0.3517, allocations: 12 kB / 0.5079 GB, free: 13.36 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.857e-06/0.3517, allocations: 4 kB / 0.5079 GB, free: 13.35 MB / 382.1 MB Notification: Performance of matching and sorting (n=5) (initialization): time 0.0002321/0.3519, allocations: 81.47 kB / 0.508 GB, free: 13.27 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.093e-05/0.352, allocations: 8 kB / 0.508 GB, free: 13.26 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.424e-06/0.352, allocations: 0 / 0.508 GB, free: 13.26 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.918e-05/0.352, allocations: 4 kB / 0.508 GB, free: 13.25 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001133/0.3521, allocations: 8 kB / 0.508 GB, free: 13.25 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.012e-05/0.3522, allocations: 3.938 kB / 0.508 GB, free: 13.24 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001331/0.3523, allocations: 11.94 kB / 0.508 GB, free: 13.23 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.933e-05/0.3523, allocations: 3.984 kB / 0.508 GB, free: 13.23 MB / 382.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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001093/0.3525, allocations: 201.2 kB / 0.5082 GB, free: 13.02 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.063e-05/0.3525, allocations: 108.9 kB / 0.5083 GB, free: 12.91 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.764e-05/0.3526, allocations: 116.6 kB / 0.5085 GB, free: 12.79 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.313e-05/0.3526, allocations: 180.3 kB / 0.5086 GB, free: 12.61 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.947e-05/0.3527, allocations: 184.3 kB / 0.5088 GB, free: 12.42 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.875e-05/0.3527, allocations: 184.2 kB / 0.509 GB, free: 12.23 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001857/0.3529, allocations: 409.2 kB / 0.5094 GB, free: 11.77 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.18e-05/0.353, allocations: 112.9 kB / 0.5095 GB, free: 11.66 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.833e-05/0.353, allocations: 101 kB / 0.5096 GB, free: 11.55 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.044e-05/0.353, allocations: 180.3 kB / 0.5097 GB, free: 11.37 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.837e-05/0.3531, allocations: 180.2 kB / 0.5099 GB, free: 11.18 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.07e-05/0.3531, allocations: 184.6 kB / 0.5101 GB, free: 11 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.57e-05/0.3531, allocations: 180.2 kB / 0.5103 GB, free: 10.81 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.643e-05/0.3532, allocations: 311.7 kB / 0.5106 GB, free: 10.48 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.353e-05/0.3533, allocations: 186.1 kB / 0.5107 GB, free: 10.28 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.761e-05/0.3534, allocations: 184.2 kB / 0.5109 GB, free: 10.09 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000132/0.3535, allocations: 108.9 kB / 0.511 GB, free: 9.977 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.773e-05/0.3536, allocations: 180.3 kB / 0.5112 GB, free: 9.793 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.276e-05/0.3536, allocations: 108.9 kB / 0.5113 GB, free: 9.68 MB / 382.1 MB Notification: Performance of sorting global known variables: time 7.003e-05/0.3537, allocations: 95.27 kB / 0.5114 GB, free: 9.586 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.193e-06/0.3537, allocations: 0 / 0.5114 GB, free: 9.586 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0004062/0.3541, allocations: 11.94 kB / 0.5114 GB, free: 9.574 MB / 382.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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001754/0.3543, allocations: 182.5 kB / 0.5116 GB, free: 9.383 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0001266/0.3545, allocations: 19.92 kB / 0.5116 GB, free: 9.363 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.897e-06/0.3545, allocations: 0 / 0.5116 GB, free: 9.363 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 3.647e-06/0.3545, allocations: 0 / 0.5116 GB, free: 9.363 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002777/0.3548, allocations: 0.5344 MB / 0.5121 GB, free: 8.824 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002553/0.3551, allocations: 180.4 kB / 0.5123 GB, free: 8.621 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001175/0.3552, allocations: 0.677 MB / 0.5129 GB, free: 7.918 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 6.966e-05/0.3553, allocations: 11.98 kB / 0.513 GB, free: 7.906 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.856e-05/0.3553, allocations: 7.438 kB / 0.513 GB, free: 7.898 MB / 382.1 MB Notification: Performance of SimCode: time 6.81e-07/0.3553, allocations: 0 / 0.513 GB, free: 7.898 MB / 382.1 MB Notification: Performance of Templates: time 0.003838/0.3592, allocations: 467.8 kB / 0.5134 GB, free: 7.441 MB / 382.1 MB make -j1 -f Buildings_1.6_Buildings.Fluid.HeatExchangers.Boreholes.BaseClasses.Examples.Factorial.makefile Environment - environmentSimulation: (rm -f Buildings_1.6_Buildings.Fluid.HeatExchangers.Boreholes.BaseClasses.Examples.Factorial.pipe ; mkfifo Buildings_1.6_Buildings.Fluid.HeatExchangers.Boreholes.BaseClasses.Examples.Factorial.pipe ; head -c 1048576 < Buildings_1.6_Buildings.Fluid.HeatExchangers.Boreholes.BaseClasses.Examples.Factorial.pipe >> ../files/Buildings_1.6_Buildings.Fluid.HeatExchangers.Boreholes.BaseClasses.Examples.Factorial.sim & ./Buildings_1.6_Buildings.Fluid.HeatExchangers.Boreholes.BaseClasses.Examples.Factorial -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_1.6_Buildings.Fluid.HeatExchangers.Boreholes.BaseClasses.Examples.Factorial.pipe 2>&1) Environment - environmentSimulation: