Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.HexInternalElement.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: "" <> buildModelFMU(Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.HexInternalElement,fileNamePrefix="Buildings_8_Buildings_Fluid_Geothermal_Boreholes_BaseClasses_Examples_HexInternalElement",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.HexInternalElement,fileNamePrefix="Buildings_8_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 8.1.4-maint.8.1.x/package.mo): time 1.571/1.571, allocations: 289.8 MB / 297.1 MB, free: 6.691 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.001116/0.001116, allocations: 173.4 kB / 366.3 MB, free: 1.992 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.487/1.487, allocations: 205.2 MB / 0.6256 GB, free: 5.855 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.0009359/0.000936, allocations: 85.77 kB / 0.7395 GB, free: 39.68 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.287/0.288, allocations: 122.4 MB / 0.8591 GB, free: 13.27 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7803/1.068, allocations: 116.3 MB / 0.9727 GB, free: 68.4 MB / 0.6511 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.082/2.15, allocations: 421.8 MB / 1.385 GB, free: 67.11 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000471/2.151, allocations: 104.4 kB / 1.385 GB, free: 67.05 MB / 0.823 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 1.797/3.947, allocations: 0.5553 GB / 1.94 GB, free: 12.26 MB / 0.948 GB Notification: Performance of prepare preOptimizeDAE: time 4.733e-05/3.947, allocations: 8 kB / 1.94 GB, free: 12.25 MB / 0.948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008668/3.948, allocations: 154.3 kB / 1.94 GB, free: 12.1 MB / 0.948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003472/3.952, allocations: 1.401 MB / 1.941 GB, free: 10.66 MB / 0.948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.66e-05/3.952, allocations: 28 kB / 1.942 GB, free: 10.63 MB / 0.948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002045/3.952, allocations: 52 kB / 1.942 GB, free: 10.58 MB / 0.948 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001279/3.953, allocations: 0.5585 MB / 1.942 GB, free: 10.02 MB / 0.948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001345/3.955, allocations: 0.7529 MB / 1.943 GB, free: 9.23 MB / 0.948 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.218e-05/3.955, allocations: 0 / 1.943 GB, free: 9.23 MB / 0.948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.649e-05/3.955, allocations: 3.938 kB / 1.943 GB, free: 9.227 MB / 0.948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.627e-05/3.955, allocations: 27.91 kB / 1.943 GB, free: 9.199 MB / 0.948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005339/3.96, allocations: 4.348 MB / 1.947 GB, free: 4.598 MB / 0.948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008403/3.961, allocations: 488.8 kB / 1.948 GB, free: 4.109 MB / 0.948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004666/3.962, allocations: 303.7 kB / 1.948 GB, free: 3.812 MB / 0.948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005679/3.962, allocations: 0.6017 MB / 1.948 GB, free: 3.082 MB / 0.948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.714e-05/3.962, allocations: 43.06 kB / 1.949 GB, free: 3.031 MB / 0.948 GB Notification: Performance of pre-optimization done (n=57): time 2.355e-06/3.962, allocations: 0 / 1.949 GB, free: 3.031 MB / 0.948 GB Notification: Performance of matching and sorting (n=57): time 0.001682/3.964, allocations: 0.6274 MB / 1.949 GB, free: 2.383 MB / 0.948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.689e-05/3.964, allocations: 63.91 kB / 1.949 GB, free: 2.309 MB / 0.948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009845/3.965, allocations: 0.6963 MB / 1.95 GB, free: 1.609 MB / 0.948 GB Notification: Performance of collectPreVariables (initialization): time 6.618e-05/3.965, allocations: 29.7 kB / 1.95 GB, free: 1.574 MB / 0.948 GB Notification: Performance of collectInitialEqns (initialization): time 0.000256/3.965, allocations: 379.4 kB / 1.95 GB, free: 1.195 MB / 0.948 GB Notification: Performance of collectInitialBindings (initialization): time 0.000157/3.965, allocations: 201 kB / 1.95 GB, free: 0.9961 MB / 0.948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.508e-05/3.965, allocations: 0 / 1.95 GB, free: 0.9961 MB / 0.948 GB Notification: Performance of setup shared object (initialization): time 8.147e-05/3.966, allocations: 333.9 kB / 1.951 GB, free: 0.6641 MB / 0.948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002679/3.966, allocations: 185.5 kB / 1.951 GB, free: 492 kB / 0.948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003874/3.966, allocations: 368.3 kB / 1.951 GB, free: 44 kB / 0.948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.5036/4.47, allocations: 296.4 kB / 1.952 GB, free: 274.3 MB / 0.948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.959e-06/4.47, allocations: 6.156 kB / 1.952 GB, free: 274.3 MB / 0.948 GB Notification: Performance of matching and sorting (n=86) (initialization): time 0.002025/4.472, allocations: 0.7996 MB / 1.952 GB, free: 274.3 MB / 0.948 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002978/4.472, allocations: 1.309 MB / 1.954 GB, free: 272.9 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.183e-05/4.472, allocations: 3.25 kB / 1.954 GB, free: 272.9 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003619/4.473, allocations: 124.5 kB / 1.954 GB, free: 272.9 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004532/4.473, allocations: 127.5 kB / 1.954 GB, free: 272.9 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00268/4.476, allocations: 4.65 MB / 1.958 GB, free: 268.7 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001105/4.477, allocations: 98.23 kB / 1.959 GB, free: 268.7 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.298e-05/4.477, allocations: 31.31 kB / 1.959 GB, free: 268.7 MB / 0.948 GB Notification: Performance of prepare postOptimizeDAE: time 8.737e-06/4.477, allocations: 6.75 kB / 1.959 GB, free: 268.7 MB / 0.948 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001465/4.478, allocations: 0.6526 MB / 1.959 GB, free: 268.6 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.266e-05/4.478, allocations: 5.406 kB / 1.959 GB, free: 268.6 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002978/4.479, allocations: 117 kB / 1.959 GB, free: 268.6 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004585/4.479, allocations: 135.3 kB / 1.959 GB, free: 268.6 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003554/4.483, allocations: 5.49 MB / 1.965 GB, free: 263.6 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001053/4.484, allocations: 85.02 kB / 1.965 GB, free: 263.6 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.343e-05/4.484, allocations: 35.12 kB / 1.965 GB, free: 263.6 MB / 0.948 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.0002589/4.484, allocations: 119 kB / 1.965 GB, free: 263.5 MB / 0.948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001903/4.484, allocations: 100.4 kB / 1.965 GB, free: 263.4 MB / 0.948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00167/4.486, allocations: 0.7013 MB / 1.966 GB, free: 263.4 MB / 0.948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.975e-06/4.486, allocations: 3.938 kB / 1.966 GB, free: 263.4 MB / 0.948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.56e-06/4.486, allocations: 3.938 kB / 1.966 GB, free: 263.4 MB / 0.948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0009996/4.487, allocations: 0.6487 MB / 1.966 GB, free: 263.2 MB / 0.948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002908/4.49, allocations: 1.759 MB / 1.968 GB, free: 262.7 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.109e-06/4.49, allocations: 0 / 1.968 GB, free: 262.7 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003958/4.49, allocations: 94.62 kB / 1.968 GB, free: 262.7 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002514/4.491, allocations: 100.9 kB / 1.968 GB, free: 262.7 MB / 0.948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.392e-05/4.491, allocations: 7.531 kB / 1.968 GB, free: 262.7 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002494/4.493, allocations: 4.626 MB / 1.973 GB, free: 258.4 MB / 0.948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.227e-06/4.493, allocations: 3.969 kB / 1.973 GB, free: 258.4 MB / 0.948 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001655/4.495, allocations: 1.088 MB / 1.974 GB, free: 258.1 MB / 0.948 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.002193/4.497, allocations: 1.772 MB / 1.976 GB, free: 257.4 MB / 0.948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006134/4.498, allocations: 269.4 kB / 1.976 GB, free: 257.3 MB / 0.948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001296/4.498, allocations: 3.812 kB / 1.976 GB, free: 257.3 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006589/4.499, allocations: 53.19 kB / 1.976 GB, free: 257.3 MB / 0.948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.435e-05/4.499, allocations: 37.02 kB / 1.976 GB, free: 257.3 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.739e-05/4.499, allocations: 24.28 kB / 1.976 GB, free: 257.3 MB / 0.948 GB Notification: Performance of sort global known variables: time 0.0009231/4.5, allocations: 0.5342 MB / 1.977 GB, free: 257.2 MB / 0.948 GB Notification: Performance of remove unused functions: time 0.00498/4.505, allocations: 0.9217 MB / 1.977 GB, free: 257.1 MB / 0.948 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.001643/4.506, allocations: 0.6593 MB / 1.978 GB, free: 257 MB / 0.948 GB Notification: Performance of simCode: created initialization part: time 0.002456/4.509, allocations: 1.61 MB / 1.98 GB, free: 256.2 MB / 0.948 GB Notification: Performance of simCode: created event and clocks part: time 6.913e-06/4.509, allocations: 3.938 kB / 1.98 GB, free: 256.2 MB / 0.948 GB Notification: Performance of simCode: created simulation system equations: time 0.0006716/4.509, allocations: 0.5524 MB / 1.98 GB, free: 255.9 MB / 0.948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002476/4.512, allocations: 494 kB / 1.981 GB, free: 255.9 MB / 0.948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003098/4.515, allocations: 1.529 MB / 1.982 GB, free: 255.5 MB / 0.948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008164/4.516, allocations: 1.207 MB / 1.983 GB, free: 254.8 MB / 0.948 GB Notification: Performance of SimCode: time 7.81e-07/4.516, allocations: 0 / 1.983 GB, free: 254.8 MB / 0.948 GB (rm -f Buildings_8_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.HexInternalElement.pipe ; mkfifo Buildings_8_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.HexInternalElement.pipe ; head -c 1048576 < Buildings_8_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.HexInternalElement.pipe >> ../files/Buildings_8_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.HexInternalElement.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_8_Buildings_Fluid_Geothermal_Boreholes_BaseClasses_Examples_HexInternalElement_fmu --startTime=0 --stopTime=3600 --timeout=50 --tolerance=1e-06 Buildings_8_Buildings_Fluid_Geothermal_Boreholes_BaseClasses_Examples_HexInternalElement.fmu > Buildings_8_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.HexInternalElement.pipe 2>&1)