Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesTwoUTube.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 8.1.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo) Running command: translateModel(Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesTwoUTube,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesTwoUTube") translateModel(Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesTwoUTube,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesTwoUTube") [: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 8.1.4-maint.8.1.x/package.mo): time 1.583/1.583, allocations: 289.8 MB / 297.1 MB, free: 6.477 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.00109/0.00109, allocations: 185.3 kB / 366.3 MB, free: 1.805 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.454/1.454, allocations: 205.1 MB / 0.6256 GB, free: 5.773 MB / 474.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001054/0.001054, allocations: 85.53 kB / 0.7395 GB, free: 39.6 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 1.001e-05/1.003e-05, allocations: 4 kB / 0.8591 GB, free: 13.27 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5844/0.5844, allocations: 116.3 MB / 0.9726 GB, free: 68.42 MB / 0.6511 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1724/0.7569, allocations: 148.9 MB / 1.118 GB, free: 15.46 MB / 0.7292 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002756/0.7572, allocations: 111.8 kB / 1.118 GB, free: 15.35 MB / 0.7292 GB Notification: Performance of FrontEnd: time 0.05692/0.8141, allocations: 21.66 MB / 1.139 GB, free: 9.688 MB / 0.7448 GB Notification: Performance of Transformations before backend: time 1.873e-05/0.8142, allocations: 12 kB / 1.139 GB, free: 9.676 MB / 0.7448 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 122 * Number of variables: 122 Notification: Performance of Generate backend data structure: time 0.001076/0.8153, allocations: 0.7635 MB / 1.14 GB, free: 8.863 MB / 0.7448 GB Notification: Performance of prepare preOptimizeDAE: time 4.008e-05/0.8153, allocations: 12.03 kB / 1.14 GB, free: 8.852 MB / 0.7448 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000117/0.8155, allocations: 75.06 kB / 1.14 GB, free: 8.777 MB / 0.7448 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005846/0.8161, allocations: 440.7 kB / 1.141 GB, free: 8.309 MB / 0.7448 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.161e-05/0.8161, allocations: 16 kB / 1.141 GB, free: 8.293 MB / 0.7448 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.897e-05/0.8162, allocations: 27.98 kB / 1.141 GB, free: 8.266 MB / 0.7448 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0005502/0.8167, allocations: 309.9 kB / 1.141 GB, free: 7.961 MB / 0.7448 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006299/0.8174, allocations: 324.6 kB / 1.141 GB, free: 7.637 MB / 0.7448 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.002e-05/0.8174, allocations: 0 / 1.141 GB, free: 7.637 MB / 0.7448 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.958e-05/0.8174, allocations: 0 / 1.141 GB, free: 7.637 MB / 0.7448 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.549e-05/0.8174, allocations: 15.98 kB / 1.141 GB, free: 7.621 MB / 0.7448 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001976/0.8194, allocations: 1.448 MB / 1.143 GB, free: 6.113 MB / 0.7448 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003448/0.8198, allocations: 254.9 kB / 1.143 GB, free: 5.855 MB / 0.7448 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003539/0.8201, allocations: 277.8 kB / 1.143 GB, free: 5.582 MB / 0.7448 GB Notification: Performance of preOpt evalFunc (simulation): time 2.608e-05/0.8202, allocations: 4 kB / 1.143 GB, free: 5.578 MB / 0.7448 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.813e-05/0.8202, allocations: 42.56 kB / 1.143 GB, free: 5.527 MB / 0.7448 GB Notification: Performance of pre-optimization done (n=42): time 1.913e-06/0.8202, allocations: 4 kB / 1.143 GB, free: 5.523 MB / 0.7448 GB Notification: Performance of matching and sorting (n=42): time 0.00053/0.8208, allocations: 309.5 kB / 1.143 GB, free: 5.215 MB / 0.7448 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.379e-05/0.8208, allocations: 59.19 kB / 1.144 GB, free: 5.145 MB / 0.7448 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004263/0.8212, allocations: 365.2 kB / 1.144 GB, free: 4.781 MB / 0.7448 GB Notification: Performance of collectPreVariables (initialization): time 2.422e-05/0.8213, allocations: 25.7 kB / 1.144 GB, free: 4.75 MB / 0.7448 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001168/0.8214, allocations: 216.2 kB / 1.144 GB, free: 4.535 MB / 0.7448 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001201/0.8215, allocations: 141.8 kB / 1.144 GB, free: 4.395 MB / 0.7448 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.268e-05/0.8215, allocations: 0 / 1.144 GB, free: 4.395 MB / 0.7448 GB Notification: Performance of setup shared object (initialization): time 0.0001448/0.8217, allocations: 366.7 kB / 1.145 GB, free: 4.027 MB / 0.7448 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001677/0.8219, allocations: 96.75 kB / 1.145 GB, free: 3.93 MB / 0.7448 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002062/0.8221, allocations: 105.1 kB / 1.145 GB, free: 3.828 MB / 0.7448 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001805/0.8223, allocations: 114.3 kB / 1.145 GB, free: 3.719 MB / 0.7448 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.094e-06/0.8223, allocations: 0 / 1.145 GB, free: 3.719 MB / 0.7448 GB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0004539/0.8227, allocations: 328.6 kB / 1.145 GB, free: 3.391 MB / 0.7448 GB Notification: Performance of prepare postOptimizeDAE: time 1.893e-05/0.8227, allocations: 8 kB / 1.145 GB, free: 3.383 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.192e-06/0.8228, allocations: 0 / 1.145 GB, free: 3.383 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.433e-05/0.8228, allocations: 0 / 1.145 GB, free: 3.383 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005522/0.8233, allocations: 131.9 kB / 1.145 GB, free: 3.254 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.731e-06/0.8234, allocations: 0 / 1.145 GB, free: 3.254 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002473/0.8236, allocations: 47.66 kB / 1.145 GB, free: 3.207 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.318e-05/0.8236, allocations: 12 kB / 1.145 GB, free: 3.195 MB / 0.7448 GB Notification: Model statistics after passing the back-end for initialization: * 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 initialization (46): * Single equations (assignments): 46 * 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 9.86e-05/0.8237, allocations: 113.6 kB / 1.146 GB, free: 3.078 MB / 0.7448 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.861e-05/0.8238, allocations: 43.44 kB / 1.146 GB, free: 3.035 MB / 0.7448 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001123/0.8239, allocations: 56.66 kB / 1.146 GB, free: 2.98 MB / 0.7448 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.634e-06/0.824, allocations: 4 kB / 1.146 GB, free: 2.977 MB / 0.7448 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.392e-06/0.824, allocations: 3.938 kB / 1.146 GB, free: 2.973 MB / 0.7448 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.123e-06/0.824, allocations: 3.984 kB / 1.146 GB, free: 2.969 MB / 0.7448 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006007/0.8246, allocations: 0.4937 MB / 1.146 GB, free: 2.438 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.754e-06/0.8246, allocations: 0 / 1.146 GB, free: 2.438 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005447/0.8251, allocations: 127.9 kB / 1.146 GB, free: 2.312 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.081e-06/0.8252, allocations: 3.984 kB / 1.146 GB, free: 2.309 MB / 0.7448 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.178e-05/0.8252, allocations: 4 kB / 1.146 GB, free: 2.305 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.893e-06/0.8252, allocations: 3.938 kB / 1.146 GB, free: 2.301 MB / 0.7448 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.114e-06/0.8252, allocations: 0 / 1.146 GB, free: 2.301 MB / 0.7448 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0007466/0.826, allocations: 0.5807 MB / 1.147 GB, free: 1.703 MB / 0.7448 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001243/0.8261, allocations: 132.4 kB / 1.147 GB, free: 1.555 MB / 0.7448 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.356e-05/0.8262, allocations: 4 kB / 1.147 GB, free: 1.551 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002369/0.8264, allocations: 19.89 kB / 1.147 GB, free: 1.531 MB / 0.7448 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.325e-05/0.8265, allocations: 23.97 kB / 1.147 GB, free: 1.508 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.607e-05/0.8265, allocations: 4 kB / 1.147 GB, free: 1.504 MB / 0.7448 GB Notification: Performance of sort global known variables: time 0.0003295/0.8268, allocations: 299.1 kB / 1.147 GB, free: 1.211 MB / 0.7448 GB Notification: Performance of remove unused functions: time 0.000447/0.8273, allocations: 139.5 kB / 1.147 GB, free: 1.074 MB / 0.7448 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 4 (intRes2UTub.capFil1.T,intRes2UTub.capFil2.T,intRes2UTub.capFil3.T,intRes2UTub.capFil4.T) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (42): * Single equations (assignments): 42 * 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.0004187/0.8277, allocations: 270.6 kB / 1.148 GB, free: 0.8125 MB / 0.7448 GB Notification: Performance of simCode: created initialization part: time 0.0004273/0.8282, allocations: 268.4 kB / 1.148 GB, free: 0.5508 MB / 0.7448 GB Notification: Performance of simCode: created event and clocks part: time 2.064e-06/0.8282, allocations: 3.938 kB / 1.148 GB, free: 0.5469 MB / 0.7448 GB Notification: Performance of simCode: created simulation system equations: time 0.0002115/0.8284, allocations: 163.6 kB / 1.148 GB, free: 396 kB / 0.7448 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005054/0.8289, allocations: 77.52 kB / 1.148 GB, free: 320 kB / 0.7448 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001755/0.8307, allocations: 0.8813 MB / 1.149 GB, free: 15.4 MB / 0.7605 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005893/0.8313, allocations: 0.9284 MB / 1.15 GB, free: 14.44 MB / 0.7605 GB Notification: Performance of SimCode: time 2.7e-07/0.8313, allocations: 0 / 1.15 GB, free: 14.44 MB / 0.7605 GB Notification: Performance of Templates: time 0.01072/0.842, allocations: 5.316 MB / 1.155 GB, free: 9.242 MB / 0.7605 GB make -j1 -f Buildings_8_Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesTwoUTube.makefile (rm -f Buildings_8_Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesTwoUTube.pipe ; mkfifo Buildings_8_Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesTwoUTube.pipe ; head -c 1048576 < Buildings_8_Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesTwoUTube.pipe >> ../files/Buildings_8_Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesTwoUTube.sim & ./Buildings_8_Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesTwoUTube -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_8_Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesTwoUTube.pipe 2>&1)