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/Buildings 1.6.0+build.1/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo) Using package Modelica with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo) Using package Complex with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo) Using package Buildings with version 1.6 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 1.6.0+build.1/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") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 1.6.0+build.1/package.mo): time 0.5/0.5, allocations: 94.74 MB / 102 MB, free: 10.38 MB / 90.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo): time 0.001098/0.001098, allocations: 178 kB / 125.3 MB, free: 12.04 MB / 106.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo): time 1.23/1.23, allocations: 170.5 MB / 319 MB, free: 9.527 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo): time 0.001876/0.001876, allocations: 113.3 kB / 381 MB, free: 18.13 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 1.002e-05/1.006e-05, allocations: 3.938 kB / 448.6 MB, free: 2.141 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1358/0.1359, allocations: 61.53 MB / 0.4981 GB, free: 4.52 MB / 394.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3445/0.4804, allocations: 92.35 MB / 0.5883 GB, free: 10.12 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002132/0.4807, allocations: 87.73 kB / 0.5884 GB, free: 10.04 MB / 410.7 MB Notification: Performance of FrontEnd: time 0.002353/0.483, allocations: 0.6941 MB / 0.5891 GB, free: 9.359 MB / 410.7 MB Notification: Performance of Transformations before backend: time 7.153e-06/0.4831, allocations: 0 / 0.5891 GB, free: 9.359 MB / 410.7 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.0002699/0.4833, allocations: 327.1 kB / 0.5894 GB, free: 8.996 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.203e-05/0.4834, allocations: 10.06 kB / 0.5894 GB, free: 8.988 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.949e-05/0.4834, allocations: 1.562 kB / 0.5894 GB, free: 8.988 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001257/0.4836, allocations: 167.1 kB / 0.5896 GB, free: 8.789 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.324e-05/0.4836, allocations: 0 / 0.5896 GB, free: 8.789 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.341e-05/0.4836, allocations: 4 kB / 0.5896 GB, free: 8.785 MB / 410.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 7.054e-05/0.4837, allocations: 19.81 kB / 0.5896 GB, free: 8.77 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001021/0.4838, allocations: 81.2 kB / 0.5897 GB, free: 8.672 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.964e-06/0.4838, allocations: 4 kB / 0.5897 GB, free: 8.668 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.152e-05/0.4838, allocations: 0 / 0.5897 GB, free: 8.668 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.294e-06/0.4838, allocations: 0 / 0.5897 GB, free: 8.668 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007843/0.4846, allocations: 1.102 MB / 0.5908 GB, free: 7.422 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 8.197e-05/0.4847, allocations: 170.9 kB / 0.5909 GB, free: 7.246 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.407e-05/0.4848, allocations: 82.61 kB / 0.591 GB, free: 7.164 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.172e-05/0.4848, allocations: 76.92 kB / 0.5911 GB, free: 7.09 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.702e-05/0.4849, allocations: 108.3 kB / 0.5912 GB, free: 6.977 MB / 410.7 MB Notification: Performance of pre-optimization done (n=0): time 1.253e-06/0.4849, allocations: 0 / 0.5912 GB, free: 6.977 MB / 410.7 MB Notification: Performance of matching and sorting (n=0): time 8.025e-05/0.485, allocations: 38.48 kB / 0.5912 GB, free: 6.934 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.719e-05/0.485, allocations: 77.11 kB / 0.5913 GB, free: 6.84 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001066/0.4851, allocations: 119.5 kB / 0.5914 GB, free: 6.715 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 1.537e-05/0.4851, allocations: 30.94 kB / 0.5914 GB, free: 6.68 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.79e-05/0.4852, allocations: 92.05 kB / 0.5915 GB, free: 6.586 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.104e-06/0.4852, allocations: 0 / 0.5915 GB, free: 6.586 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.627e-06/0.4852, allocations: 1.031 kB / 0.5915 GB, free: 6.586 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.000103/0.4853, allocations: 314.8 kB / 0.5918 GB, free: 6.27 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.212e-05/0.4854, allocations: 17.08 kB / 0.5918 GB, free: 6.254 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.74e-05/0.4854, allocations: 50.88 kB / 0.5919 GB, free: 6.188 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001135/0.4855, allocations: 15.98 kB / 0.5919 GB, free: 6.172 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.853e-06/0.4855, allocations: 3.781 kB / 0.5919 GB, free: 6.172 MB / 410.7 MB Notification: Performance of matching and sorting (n=5) (initialization): time 0.0002519/0.4858, allocations: 73.55 kB / 0.592 GB, free: 6.094 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.284e-05/0.4858, allocations: 4 kB / 0.592 GB, free: 6.09 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.35e-06/0.4858, allocations: 0 / 0.592 GB, free: 6.09 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.047e-05/0.4859, allocations: 4 kB / 0.592 GB, free: 6.086 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.489e-05/0.4859, allocations: 15.89 kB / 0.592 GB, free: 6.07 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.37e-06/0.4859, allocations: 0 / 0.592 GB, free: 6.07 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.129e-05/0.486, allocations: 4.656 kB / 0.592 GB, free: 6.066 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.372e-05/0.486, allocations: 4 kB / 0.592 GB, free: 6.062 MB / 410.7 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 () * 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.000102/0.4861, allocations: 184.9 kB / 0.5922 GB, free: 5.879 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.196e-05/0.4862, allocations: 110.4 kB / 0.5923 GB, free: 5.766 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.329e-05/0.4863, allocations: 116.4 kB / 0.5924 GB, free: 5.648 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.939e-05/0.4863, allocations: 177.5 kB / 0.5926 GB, free: 5.469 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.098e-05/0.4864, allocations: 181 kB / 0.5927 GB, free: 5.285 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.96e-05/0.4865, allocations: 176.8 kB / 0.5929 GB, free: 5.105 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002107/0.4867, allocations: 398.7 kB / 0.5933 GB, free: 4.672 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.186e-05/0.4867, allocations: 108.9 kB / 0.5934 GB, free: 4.559 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.686e-05/0.4868, allocations: 101 kB / 0.5935 GB, free: 4.453 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.567e-05/0.4868, allocations: 176.7 kB / 0.5937 GB, free: 4.273 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.012e-05/0.4869, allocations: 184.2 kB / 0.5938 GB, free: 4.086 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.908e-05/0.487, allocations: 182 kB / 0.594 GB, free: 3.902 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.199e-05/0.487, allocations: 185.9 kB / 0.5942 GB, free: 3.715 MB / 410.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0001377/0.4872, allocations: 307.7 kB / 0.5945 GB, free: 3.391 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.091e-05/0.4873, allocations: 186.1 kB / 0.5947 GB, free: 3.184 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.895e-05/0.4874, allocations: 188.1 kB / 0.5948 GB, free: 2.992 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001023/0.4875, allocations: 108.9 kB / 0.5949 GB, free: 2.879 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.802e-05/0.4875, allocations: 180.3 kB / 0.5951 GB, free: 2.695 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.313e-05/0.4876, allocations: 108.9 kB / 0.5952 GB, free: 2.582 MB / 410.7 MB Notification: Performance of sort global known variables: time 5.793e-05/0.4876, allocations: 91.28 kB / 0.5953 GB, free: 2.492 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0002488/0.4879, allocations: 11.98 kB / 0.5953 GB, free: 2.48 MB / 410.7 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 () * 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.0001533/0.4881, allocations: 174.5 kB / 0.5955 GB, free: 2.301 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 7.816e-05/0.4881, allocations: 27.92 kB / 0.5955 GB, free: 2.273 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 2.024e-06/0.4882, allocations: 0 / 0.5955 GB, free: 2.273 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 2.876e-06/0.4882, allocations: 4 kB / 0.5955 GB, free: 2.27 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002924/0.4885, allocations: 0.5185 MB / 0.596 GB, free: 1.746 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002025/0.4887, allocations: 142.9 kB / 0.5961 GB, free: 1.586 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002526/0.4889, allocations: 0.6945 MB / 0.5968 GB, free: 0.8672 MB / 410.7 MB Notification: Performance of SimCode: time 2.2e-07/0.4889, allocations: 0 / 0.5968 GB, free: 0.8672 MB / 410.7 MB Notification: Performance of Templates: time 0.002359/0.4913, allocations: 0.5148 MB / 0.5973 GB, free: 400 kB / 410.7 MB make -j1 -f Buildings_1.6_Buildings.Fluid.HeatExchangers.Boreholes.BaseClasses.Examples.Factorial.makefile (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)