Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.HexInternalElement.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) 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 with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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 Buildings with version 9.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.HexInternalElement,fileNamePrefix="Buildings_9_Buildings_Fluid_Geothermal_Boreholes_BaseClasses_Examples_HexInternalElement",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.HexInternalElement,fileNamePrefix="Buildings_9_Buildings_Fluid_Geothermal_Boreholes_BaseClasses_Examples_HexInternalElement",fmuType="me",version="2.0",platforms={"static"}) [: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 9.1.1-maint.9.1.x/package.mo): time 2.15/2.15, allocations: 387.2 MB / 394.5 MB, free: 13.68 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00115/0.00115, allocations: 191.9 kB / 487 MB, free: 5.406 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.505/1.505, allocations: 221.3 MB / 0.7819 GB, free: 1.383 MB / 0.5417 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009981/0.000998, allocations: 94.92 kB / 0.9213 GB, free: 2.637 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.6805/0.6815, allocations: 148.5 MB / 1.066 GB, free: 168.2 MB / 0.7448 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2629/0.9444, allocations: 142.3 MB / 1.205 GB, free: 26.14 MB / 0.7448 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.015/1.96, allocations: 433.3 MB / 1.628 GB, free: 6.309 MB / 1.057 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003006/1.96, allocations: 106.4 kB / 1.629 GB, free: 6.25 MB / 1.057 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 214 * Number of variables: 214 Notification: Performance of Generate backend data structure: time 2.43/4.39, allocations: 0.5689 GB / 2.198 GB, free: 277.4 MB / 1.151 GB Notification: Performance of prepare preOptimizeDAE: time 3.883e-05/4.39, allocations: 16.27 kB / 2.198 GB, free: 277.4 MB / 1.151 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003963/4.391, allocations: 156.2 kB / 2.198 GB, free: 277.4 MB / 1.151 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002442/4.393, allocations: 1.407 MB / 2.199 GB, free: 277.1 MB / 1.151 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.84e-05/4.393, allocations: 30.56 kB / 2.199 GB, free: 277.1 MB / 1.151 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001035/4.393, allocations: 52.56 kB / 2.199 GB, free: 277.1 MB / 1.151 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0009391/4.394, allocations: 0.5564 MB / 2.2 GB, free: 277.1 MB / 1.151 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00108/4.395, allocations: 0.7463 MB / 2.2 GB, free: 276.9 MB / 1.151 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.786e-05/4.395, allocations: 2.625 kB / 2.2 GB, free: 276.9 MB / 1.151 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.287e-05/4.396, allocations: 0 / 2.2 GB, free: 276.9 MB / 1.151 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.189e-05/4.396, allocations: 24.97 kB / 2.2 GB, free: 276.9 MB / 1.151 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004582/4.4, allocations: 4.359 MB / 2.205 GB, free: 274.8 MB / 1.151 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008012/4.401, allocations: 477.9 kB / 2.205 GB, free: 274.8 MB / 1.151 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004479/4.401, allocations: 306.7 kB / 2.205 GB, free: 274.8 MB / 1.151 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005663/4.402, allocations: 0.6075 MB / 2.206 GB, free: 274.1 MB / 1.151 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.451e-05/4.402, allocations: 40.28 kB / 2.206 GB, free: 274.1 MB / 1.151 GB Notification: Performance of pre-optimization done (n=57): time 2.365e-06/4.402, allocations: 0 / 2.206 GB, free: 274.1 MB / 1.151 GB Notification: Performance of matching and sorting (n=57): time 0.001494/4.404, allocations: 0.6334 MB / 2.207 GB, free: 273.9 MB / 1.151 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.708e-05/4.404, allocations: 63 kB / 2.207 GB, free: 273.9 MB / 1.151 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008296/4.404, allocations: 0.7035 MB / 2.207 GB, free: 273.7 MB / 1.151 GB Notification: Performance of collectPreVariables (initialization): time 4.491e-05/4.405, allocations: 29.23 kB / 2.207 GB, free: 273.7 MB / 1.151 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002067/4.405, allocations: 393.8 kB / 2.208 GB, free: 273.5 MB / 1.151 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001619/4.405, allocations: 192.8 kB / 2.208 GB, free: 273.4 MB / 1.151 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.376e-05/4.405, allocations: 0 / 2.208 GB, free: 273.4 MB / 1.151 GB Notification: Performance of setup shared object (initialization): time 8.15e-05/4.405, allocations: 334.8 kB / 2.208 GB, free: 273.1 MB / 1.151 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002638/4.405, allocations: 180.7 kB / 2.209 GB, free: 273.1 MB / 1.151 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003534/4.406, allocations: 357 kB / 2.209 GB, free: 272.9 MB / 1.151 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000706/4.406, allocations: 306.1 kB / 2.209 GB, free: 272.9 MB / 1.151 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.257e-06/4.406, allocations: 2.969 kB / 2.209 GB, free: 272.9 MB / 1.151 GB Notification: Performance of matching and sorting (n=86) (initialization): time 0.001415/4.408, allocations: 0.7877 MB / 2.21 GB, free: 272.8 MB / 1.151 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002356/4.408, allocations: 1.316 MB / 2.211 GB, free: 271.4 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.49e-05/4.408, allocations: 10 kB / 2.211 GB, free: 271.4 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003241/4.408, allocations: 112.2 kB / 2.211 GB, free: 271.4 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004362/4.409, allocations: 127.8 kB / 2.211 GB, free: 271.4 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002494/4.411, allocations: 4.645 MB / 2.216 GB, free: 267.1 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008284/4.412, allocations: 93.36 kB / 2.216 GB, free: 267.1 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.619e-05/4.412, allocations: 30.31 kB / 2.216 GB, free: 267.1 MB / 1.151 GB Notification: Performance of prepare postOptimizeDAE: time 7.214e-06/4.412, allocations: 6.531 kB / 2.216 GB, free: 267.1 MB / 1.151 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001285/4.414, allocations: 0.6514 MB / 2.217 GB, free: 267.1 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.3e-05/4.414, allocations: 11 kB / 2.217 GB, free: 267.1 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002681/4.414, allocations: 121 kB / 2.217 GB, free: 267 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000425/4.414, allocations: 125.1 kB / 2.217 GB, free: 267 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003226/4.418, allocations: 5.504 MB / 2.222 GB, free: 262 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009336/4.418, allocations: 83.28 kB / 2.222 GB, free: 262 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.603e-05/4.419, allocations: 33.25 kB / 2.222 GB, free: 262 MB / 1.151 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 15 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (71): * Single equations (assignments): 66 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(1,100.0%) 3,(1,100.0%) 3,(1,100.0%) 2} * Non-linear torn systems: 1 {1 4} Notification: Performance of prepare postOptimizeDAE: time 0.0002155/4.419, allocations: 120.7 kB / 2.223 GB, free: 261.9 MB / 1.151 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001674/4.419, allocations: 100.7 kB / 2.223 GB, free: 261.9 MB / 1.151 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001567/4.421, allocations: 0.6997 MB / 2.223 GB, free: 261.8 MB / 1.151 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.022e-05/4.421, allocations: 7.688 kB / 2.223 GB, free: 261.8 MB / 1.151 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.47e-06/4.421, allocations: 1.5 kB / 2.223 GB, free: 261.8 MB / 1.151 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.000984/4.422, allocations: 0.6491 MB / 2.224 GB, free: 261.6 MB / 1.151 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002743/4.424, allocations: 1.749 MB / 2.226 GB, free: 261.1 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.591e-06/4.424, allocations: 7.469 kB / 2.226 GB, free: 261.1 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003872/4.425, allocations: 88.23 kB / 2.226 GB, free: 261.1 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002429/4.425, allocations: 111.3 kB / 2.226 GB, free: 261.1 MB / 1.151 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.356e-05/4.425, allocations: 7.5 kB / 2.226 GB, free: 261.1 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002329/4.427, allocations: 4.626 MB / 2.23 GB, free: 256.8 MB / 1.151 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.819e-06/4.427, allocations: 6.328 kB / 2.23 GB, free: 256.8 MB / 1.151 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.00155/4.429, allocations: 1.086 MB / 2.232 GB, free: 256.5 MB / 1.151 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.001976/4.431, allocations: 1.78 MB / 2.233 GB, free: 255.8 MB / 1.151 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005119/4.431, allocations: 268.2 kB / 2.233 GB, free: 255.7 MB / 1.151 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001274/4.432, allocations: 3.875 kB / 2.234 GB, free: 255.7 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006209/4.432, allocations: 57.42 kB / 2.234 GB, free: 255.7 MB / 1.151 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.61e-05/4.432, allocations: 28.41 kB / 2.234 GB, free: 255.7 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.789e-05/4.432, allocations: 32.56 kB / 2.234 GB, free: 255.7 MB / 1.151 GB Notification: Performance of sort global known variables: time 0.0006556/4.433, allocations: 0.5359 MB / 2.234 GB, free: 255.6 MB / 1.151 GB Notification: Performance of remove unused functions: time 0.00404/4.437, allocations: 0.9167 MB / 2.235 GB, free: 255.4 MB / 1.151 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 4 (hex.vol1.dynBal.U,hex.vol2.dynBal.U,hex.capFil1.T,hex.capFil2.T) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (48): * Single equations (assignments): 42 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(1,100.0%) 2,(1,100.0%) 3,(1,100.0%) 3} * Non-linear torn systems: 1 {1 3} Notification: Performance of Backend phase and start with SimCode phase: time 0.001299/4.438, allocations: 0.6675 MB / 2.236 GB, free: 255.3 MB / 1.151 GB Notification: Performance of simCode: created initialization part: time 0.001961/4.44, allocations: 1.612 MB / 2.237 GB, free: 254.5 MB / 1.151 GB Notification: Performance of simCode: created event and clocks part: time 3.877e-06/4.44, allocations: 0 / 2.237 GB, free: 254.5 MB / 1.151 GB Notification: Performance of simCode: created simulation system equations: time 0.0005298/4.441, allocations: 0.5597 MB / 2.238 GB, free: 254.2 MB / 1.151 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002158/4.443, allocations: 481.7 kB / 2.238 GB, free: 254.2 MB / 1.151 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002865/4.446, allocations: 1.539 MB / 2.24 GB, free: 253.8 MB / 1.151 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007283/4.447, allocations: 1.202 MB / 2.241 GB, free: 253.1 MB / 1.151 GB Notification: Performance of SimCode: time 1.002e-06/4.447, allocations: 3.75 kB / 2.241 GB, free: 253.1 MB / 1.151 GB (rm -f Buildings_9_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.HexInternalElement.pipe ; mkfifo Buildings_9_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.HexInternalElement.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.HexInternalElement.pipe >> ../files/Buildings_9_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.HexInternalElement.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_9_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.HexInternalElement_res.mat --tempDir=temp_Buildings_9_Buildings_Fluid_Geothermal_Boreholes_BaseClasses_Examples_HexInternalElement_fmu --startTime=0 --stopTime=3600 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Fluid_Geothermal_Boreholes_BaseClasses_Examples_HexInternalElement.fmu > Buildings_9_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.HexInternalElement.pipe 2>&1)