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.001017/0.001018, allocations: 84.38 kB / 15.06 MB, free: 1.09 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.001262/0.001262, allocations: 168.7 kB / 15.95 MB, free: 204 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.002/2.002, allocations: 205.4 MB / 222.1 MB, free: 5.883 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.6952/0.6952, allocations: 95.63 MB / 366 MB, free: 10.43 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.0007078/0.0007081, allocations: 15.91 kB / 446.9 MB, free: 9.398 MB / 382.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.456/0.4567, allocations: 70.32 MB / 0.5051 GB, free: 16.53 MB / 382.1 MB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatExchangers.Boreholes.BaseClasses.Examples.Factorial): time 0.0007926/0.4576, allocations: 271.9 kB / 0.5053 GB, free: 16.27 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.000338/0.4579, allocations: 74.84 kB / 0.5054 GB, free: 16.2 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.83e-05/0.4579, allocations: 4 kB / 0.5054 GB, free: 16.19 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 6.278e-05/0.458, allocations: 0 / 0.5054 GB, free: 16.19 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 4.992e-05/0.4581, allocations: 7.938 kB / 0.5054 GB, free: 16.18 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002335/0.4583, allocations: 7.984 kB / 0.5054 GB, free: 16.18 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 7.186e-05/0.4584, allocations: 7.984 kB / 0.5054 GB, free: 16.17 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 6.91e-05/0.4585, allocations: 0 / 0.5054 GB, free: 16.17 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.165e-05/0.4585, allocations: 4 kB / 0.5054 GB, free: 16.16 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.266e-05/0.4586, allocations: 11.92 kB / 0.5055 GB, free: 16.15 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 1.871e-05/0.4586, allocations: 0 / 0.5055 GB, free: 16.15 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.93e-05/0.4587, allocations: 8 kB / 0.5055 GB, free: 16.14 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 3.822e-05/0.4587, allocations: 7.938 kB / 0.5055 GB, free: 16.14 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 3.041e-05/0.4588, allocations: 33.7 kB / 0.5055 GB, free: 16.1 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 7.33e-05/0.4588, allocations: 7.984 kB / 0.5055 GB, free: 16.09 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.482e-06/0.4589, allocations: 0 / 0.5055 GB, free: 16.09 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.354e-06/0.4589, allocations: 0 / 0.5055 GB, free: 16.09 MB / 382.1 MB Notification: Performance of Transformations before backend: time 4.609e-06/0.4589, allocations: 0 / 0.5055 GB, free: 16.09 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.0004398/0.4593, allocations: 329.3 kB / 0.5058 GB, free: 15.72 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.212e-05/0.4594, allocations: 11.98 kB / 0.5058 GB, free: 15.71 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.852e-05/0.4595, allocations: 7.906 kB / 0.5058 GB, free: 15.7 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001757/0.4596, allocations: 174.9 kB / 0.506 GB, free: 15.49 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.44e-05/0.4597, allocations: 3.953 kB / 0.506 GB, free: 15.49 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.535e-05/0.4597, allocations: 8 kB / 0.506 GB, free: 15.48 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001741/0.4599, allocations: 45.67 kB / 0.5061 GB, free: 15.43 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.124e-05/0.4599, allocations: 4 kB / 0.5061 GB, free: 15.43 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.042e-05/0.4599, allocations: 0 / 0.5061 GB, free: 15.43 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.348e-05/0.4599, allocations: 4 kB / 0.5061 GB, free: 15.42 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.036e-05/0.46, allocations: 15.97 kB / 0.5061 GB, free: 15.41 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006951/0.4607, allocations: 0.7901 MB / 0.5069 GB, free: 14.47 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 9.252e-05/0.4608, allocations: 173.1 kB / 0.507 GB, free: 14.29 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.586e-05/0.4608, allocations: 84.14 kB / 0.5071 GB, free: 14.21 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.771e-05/0.4609, allocations: 79.28 kB / 0.5072 GB, free: 14.13 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.929e-05/0.4609, allocations: 105.8 kB / 0.5073 GB, free: 14.02 MB / 382.1 MB Notification: Performance of pre-optimization done (n=0): time 2.104e-06/0.4609, allocations: 0 / 0.5073 GB, free: 14.02 MB / 382.1 MB Notification: Performance of matching and sorting (n=0): time 9.233e-05/0.461, allocations: 45.53 kB / 0.5073 GB, free: 13.96 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.741e-05/0.4611, allocations: 156.4 kB / 0.5075 GB, free: 13.79 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.711e-05/0.4612, allocations: 130 kB / 0.5076 GB, free: 13.65 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.175e-05/0.4612, allocations: 25.7 kB / 0.5076 GB, free: 13.62 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.856e-05/0.4613, allocations: 92.05 kB / 0.5077 GB, free: 13.53 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.795e-06/0.4613, allocations: 0 / 0.5077 GB, free: 13.53 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.098e-06/0.4613, allocations: 0 / 0.5077 GB, free: 13.53 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 7.778e-05/0.4614, allocations: 318.8 kB / 0.508 GB, free: 13.21 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.175e-05/0.4614, allocations: 16 kB / 0.508 GB, free: 13.19 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.465e-05/0.4615, allocations: 44.66 kB / 0.5081 GB, free: 13.13 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.115e-05/0.4615, allocations: 11.98 kB / 0.5081 GB, free: 13.12 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.623e-06/0.4615, allocations: 0 / 0.5081 GB, free: 13.12 MB / 382.1 MB Notification: Performance of matching and sorting (n=5) (initialization): time 0.0001609/0.4617, allocations: 81.48 kB / 0.5082 GB, free: 13.04 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.91e-05/0.4617, allocations: 11.92 kB / 0.5082 GB, free: 13.02 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.253e-06/0.4617, allocations: 4 kB / 0.5082 GB, free: 13.02 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.713e-05/0.4617, allocations: 0 / 0.5082 GB, free: 13.02 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.081e-05/0.4618, allocations: 12 kB / 0.5082 GB, free: 13.01 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.486e-06/0.4618, allocations: 7.938 kB / 0.5082 GB, free: 13 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.508e-05/0.4619, allocations: 3.938 kB / 0.5082 GB, free: 13 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.657e-05/0.4619, allocations: 4 kB / 0.5082 GB, free: 12.99 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.0001054/0.4621, allocations: 201.2 kB / 0.5084 GB, free: 12.79 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.191e-05/0.4621, allocations: 108.9 kB / 0.5085 GB, free: 12.67 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.309e-05/0.4621, allocations: 116.4 kB / 0.5086 GB, free: 12.55 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.536e-05/0.4622, allocations: 180.3 kB / 0.5088 GB, free: 12.37 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.859e-05/0.4623, allocations: 180.2 kB / 0.509 GB, free: 12.19 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.403e-05/0.4623, allocations: 184.3 kB / 0.5091 GB, free: 12 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001612/0.4625, allocations: 409.2 kB / 0.5095 GB, free: 11.54 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.662e-05/0.4625, allocations: 108.9 kB / 0.5096 GB, free: 11.43 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.79e-05/0.4625, allocations: 105 kB / 0.5097 GB, free: 11.32 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.982e-05/0.4626, allocations: 184.2 kB / 0.5099 GB, free: 11.13 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.774e-05/0.4626, allocations: 180.3 kB / 0.5101 GB, free: 10.95 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.628e-05/0.4627, allocations: 176.3 kB / 0.5102 GB, free: 10.77 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.961e-05/0.4627, allocations: 180.2 kB / 0.5104 GB, free: 10.59 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.324e-05/0.4628, allocations: 315.7 kB / 0.5107 GB, free: 10.25 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.258e-05/0.4628, allocations: 186.1 kB / 0.5109 GB, free: 10.05 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.477e-05/0.4629, allocations: 184.3 kB / 0.5111 GB, free: 9.859 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.548e-05/0.463, allocations: 104.9 kB / 0.5112 GB, free: 9.75 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.6e-05/0.463, allocations: 176.3 kB / 0.5113 GB, free: 9.57 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.838e-05/0.463, allocations: 116.9 kB / 0.5114 GB, free: 9.449 MB / 382.1 MB Notification: Performance of sorting global known variables: time 4.162e-05/0.4631, allocations: 99.25 kB / 0.5115 GB, free: 9.352 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.4631, allocations: 0 / 0.5115 GB, free: 9.352 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0002754/0.4634, allocations: 12 kB / 0.5115 GB, free: 9.34 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.0001415/0.4635, allocations: 178.5 kB / 0.5117 GB, free: 9.152 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 9.826e-05/0.4636, allocations: 19.92 kB / 0.5117 GB, free: 9.133 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.144e-06/0.4636, allocations: 0 / 0.5117 GB, free: 9.133 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 1.223e-06/0.4636, allocations: 0 / 0.5117 GB, free: 9.133 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003207/0.464, allocations: 0.5308 MB / 0.5123 GB, free: 8.598 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000193/0.4642, allocations: 174.3 kB / 0.5124 GB, free: 8.398 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001054/0.4643, allocations: 0.6848 MB / 0.5131 GB, free: 7.688 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 4e-05/0.4643, allocations: 11.97 kB / 0.5131 GB, free: 7.676 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.194e-05/0.4643, allocations: 11.44 kB / 0.5131 GB, free: 7.664 MB / 382.1 MB Notification: Performance of SimCode: time 2.2e-07/0.4643, allocations: 0 / 0.5131 GB, free: 7.664 MB / 382.1 MB Notification: Performance of Templates: time 0.002785/0.4671, allocations: 471.7 kB / 0.5136 GB, free: 7.203 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: