Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.8.0.x_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.BoreholeSegment.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.0.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.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.0.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.BoreholeSegment,fileNamePrefix="Buildings_maint_8_0_x_Buildings_Fluid_Geothermal_Boreholes_BaseClasses_Examples_BoreholeSegment",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.BoreholeSegment,fileNamePrefix="Buildings_maint_8_0_x_Buildings_Fluid_Geothermal_Boreholes_BaseClasses_Examples_BoreholeSegment",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.0.1-maint.8.0.x/package.mo): time 1.389/1.389, allocations: 285.5 MB / 292.8 MB, free: 10.43 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.000998/0.0009982, allocations: 185.3 kB / 361.1 MB, free: 7.098 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.177/1.177, allocations: 205.1 MB / 0.6195 GB, free: 11.95 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.0007884/0.0007884, allocations: 94.33 kB / 0.7326 GB, free: 44.48 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.2108/0.2116, allocations: 121.5 MB / 0.8512 GB, free: 3.145 MB / 0.5886 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4793/0.691, allocations: 115.3 MB / 0.9638 GB, free: 78.03 MB / 0.6667 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.6998/1.391, allocations: 429.1 MB / 1.383 GB, free: 137.3 MB / 0.8542 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002544/1.391, allocations: 105 kB / 1.383 GB, free: 137.2 MB / 0.8542 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 274 * Number of variables: 274 Notification: Performance of Generate backend data structure: time 1.919/3.31, allocations: 0.6502 GB / 2.033 GB, free: 153.3 MB / 0.9636 GB Notification: Performance of prepare preOptimizeDAE: time 3.995e-05/3.31, allocations: 8.344 kB / 2.033 GB, free: 153.3 MB / 0.9636 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00105/3.311, allocations: 210.9 kB / 2.033 GB, free: 153.2 MB / 0.9636 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004782/3.316, allocations: 2.07 MB / 2.035 GB, free: 152.9 MB / 0.9636 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.281e-05/3.316, allocations: 37.16 kB / 2.035 GB, free: 152.9 MB / 0.9636 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003545/3.317, allocations: 88.75 kB / 2.036 GB, free: 152.9 MB / 0.9636 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001626/3.318, allocations: 0.8407 MB / 2.036 GB, free: 152.9 MB / 0.9636 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001678/3.32, allocations: 1.039 MB / 2.037 GB, free: 152.8 MB / 0.9636 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.352e-05/3.32, allocations: 3.906 kB / 2.037 GB, free: 152.8 MB / 0.9636 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.201e-05/3.32, allocations: 11.14 kB / 2.037 GB, free: 152.8 MB / 0.9636 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.048e-05/3.32, allocations: 27.38 kB / 2.037 GB, free: 152.8 MB / 0.9636 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007875/3.328, allocations: 6.549 MB / 2.044 GB, free: 150 MB / 0.9636 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001052/3.329, allocations: 0.743 MB / 2.045 GB, free: 150 MB / 0.9636 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005532/3.33, allocations: 442 kB / 2.045 GB, free: 150 MB / 0.9636 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005065/3.33, allocations: 0.6043 MB / 2.046 GB, free: 149.3 MB / 0.9636 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005174/3.331, allocations: 417.5 kB / 2.046 GB, free: 149.3 MB / 0.9636 GB Notification: Performance of pre-optimization done (n=78): time 2.815e-06/3.331, allocations: 0 / 2.046 GB, free: 149.3 MB / 0.9636 GB Notification: Performance of matching and sorting (n=82): time 0.005/3.336, allocations: 2.235 MB / 2.048 GB, free: 148.7 MB / 0.9636 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.496e-05/3.336, allocations: 63 kB / 2.048 GB, free: 148.6 MB / 0.9636 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001326/3.337, allocations: 1.059 MB / 2.049 GB, free: 148.5 MB / 0.9636 GB Notification: Performance of collectPreVariables (initialization): time 0.0001327/3.337, allocations: 29.58 kB / 2.049 GB, free: 148.4 MB / 0.9636 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003667/3.338, allocations: 0.4896 MB / 2.05 GB, free: 148.2 MB / 0.9636 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002613/3.338, allocations: 286.7 kB / 2.05 GB, free: 148 MB / 0.9636 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.928e-05/3.338, allocations: 0 / 2.05 GB, free: 148 MB / 0.9636 GB Notification: Performance of setup shared object (initialization): time 7.229e-05/3.338, allocations: 362.9 kB / 2.05 GB, free: 147.7 MB / 0.9636 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007434/3.339, allocations: 0.5374 MB / 2.051 GB, free: 147.7 MB / 0.9636 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008472/3.34, allocations: 0.827 MB / 2.052 GB, free: 147.4 MB / 0.9636 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001284/3.341, allocations: 0.7134 MB / 2.052 GB, free: 147.4 MB / 0.9636 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.737e-06/3.341, allocations: 0 / 2.052 GB, free: 147.4 MB / 0.9636 GB Notification: Performance of matching and sorting (n=170) (initialization): time 0.002606/3.343, allocations: 1.709 MB / 2.054 GB, free: 147.2 MB / 0.9636 GB Notification: Performance of prepare postOptimizeDAE: time 0.0003451/3.344, allocations: 2.285 MB / 2.056 GB, free: 144.9 MB / 0.9636 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.948e-05/3.344, allocations: 11.23 kB / 2.056 GB, free: 144.9 MB / 0.9636 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005523/3.344, allocations: 221.1 kB / 2.056 GB, free: 144.9 MB / 0.9636 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001342/3.346, allocations: 265.1 kB / 2.057 GB, free: 144.9 MB / 0.9636 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001163/3.347, allocations: 1.639 MB / 2.058 GB, free: 143.7 MB / 0.9636 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002344/3.349, allocations: 121.5 kB / 2.058 GB, free: 143.7 MB / 0.9636 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001271/3.349, allocations: 59.7 kB / 2.059 GB, free: 143.7 MB / 0.9636 GB Notification: Performance of prepare postOptimizeDAE: time 8.506e-06/3.349, allocations: 6.625 kB / 2.059 GB, free: 143.7 MB / 0.9636 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002361/3.352, allocations: 1.536 MB / 2.06 GB, free: 143.7 MB / 0.9636 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.71e-05/3.352, allocations: 11.45 kB / 2.06 GB, free: 143.7 MB / 0.9636 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004895/3.352, allocations: 218.2 kB / 2.06 GB, free: 143.7 MB / 0.9636 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001169/3.354, allocations: 254.3 kB / 2.06 GB, free: 143.7 MB / 0.9636 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008709/3.354, allocations: 1.034 MB / 2.061 GB, free: 143.1 MB / 0.9636 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002212/3.357, allocations: 121.9 kB / 2.062 GB, free: 143.1 MB / 0.9636 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001161/3.357, allocations: 58.03 kB / 2.062 GB, free: 143.1 MB / 0.9636 GB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: seg.pipFil.Rgg.Q_flow:VARIABLE(unit = "W" protected = true ) "Heat flow rate from port_a -> port_b" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 26 * Number of states: 0 () * Number of discrete variables: 9 ($PRE.seg.TBouCon.iSam,seg.TBouCon.iSam,$PRE.seg.TBouCon.UOld,seg.TBouCon.UOld,$PRE.seg.TBouCon.QAve_flow,seg.TBouCon.QAve_flow,$whenCondition1,$PRE.seg.TBouCon.port.T,seg.TBouCon.port.T) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (140): * Single equations (assignments): 137 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {3 25} Notification: Performance of prepare postOptimizeDAE: time 0.0002894/3.357, allocations: 137.6 kB / 2.062 GB, free: 143 MB / 0.9636 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000208/3.357, allocations: 137.3 kB / 2.062 GB, free: 142.9 MB / 0.9636 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001765/3.359, allocations: 1.011 MB / 2.063 GB, free: 142.8 MB / 0.9636 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.065e-05/3.359, allocations: 11.2 kB / 2.063 GB, free: 142.8 MB / 0.9636 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.175e-06/3.359, allocations: 3.344 kB / 2.063 GB, free: 142.8 MB / 0.9636 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001271/3.36, allocations: 0.9162 MB / 2.064 GB, free: 142.6 MB / 0.9636 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00362/3.364, allocations: 2.687 MB / 2.066 GB, free: 142.2 MB / 0.9636 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.737e-06/3.364, allocations: 0 / 2.066 GB, free: 142.2 MB / 0.9636 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006756/3.365, allocations: 138.8 kB / 2.067 GB, free: 142.2 MB / 0.9636 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002638/3.365, allocations: 116.5 kB / 2.067 GB, free: 142.2 MB / 0.9636 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.119e-05/3.365, allocations: 16.47 kB / 2.067 GB, free: 142.2 MB / 0.9636 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002648/3.368, allocations: 5.061 MB / 2.072 GB, free: 137.8 MB / 0.9636 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.445e-06/3.368, allocations: 0 / 2.072 GB, free: 137.8 MB / 0.9636 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.002052/3.37, allocations: 1.588 MB / 2.073 GB, free: 137.4 MB / 0.9636 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.002714/3.372, allocations: 2.488 MB / 2.076 GB, free: 136.7 MB / 0.9636 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006229/3.373, allocations: 352.6 kB / 2.076 GB, free: 136.5 MB / 0.9636 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002497/3.373, allocations: 17.03 kB / 2.076 GB, free: 136.5 MB / 0.9636 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001247/3.375, allocations: 79.33 kB / 2.076 GB, free: 136.5 MB / 0.9636 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.471e-05/3.375, allocations: 42.75 kB / 2.076 GB, free: 136.5 MB / 0.9636 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.85e-05/3.375, allocations: 29.5 kB / 2.076 GB, free: 136.5 MB / 0.9636 GB Notification: Performance of sort global known variables: time 0.0008919/3.376, allocations: 0.7796 MB / 2.077 GB, free: 136.4 MB / 0.9636 GB Notification: Performance of remove unused functions: time 0.004665/3.38, allocations: 1.298 MB / 2.078 GB, free: 136.3 MB / 0.9636 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 14 (seg.port_b1.h_outflow,seg.port_a2.h_outflow,seg.pipFil.capFil1.T,seg.pipFil.capFil2.T,seg.soi.T[1],seg.soi.T[2],seg.soi.T[3],seg.soi.T[4],seg.soi.T[5],seg.soi.T[6],seg.soi.T[7],seg.soi.T[8],seg.soi.T[9],seg.TBouCon.U) * Number of discrete variables: 5 ($whenCondition1,seg.TBouCon.QAve_flow,seg.TBouCon.port.T,seg.TBouCon.UOld,seg.TBouCon.iSam) * Number of discrete states: 2 (seg.TBouCon.iSam,seg.TBouCon.UOld) * Top-level inputs: 0 Notification: Strong component statistics for simulation (73): * Single equations (assignments): 63 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 4 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(1,100.0%) 3,(1,100.0%) 3,(2,100.0%) 4} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001439/3.382, allocations: 0.8053 MB / 2.079 GB, free: 136.1 MB / 0.9636 GB Notification: Performance of simCode: created initialization part: time 0.003257/3.385, allocations: 2.074 MB / 2.081 GB, free: 136 MB / 0.9636 GB Notification: Performance of simCode: created event and clocks part: time 3.577e-06/3.385, allocations: 0 / 2.081 GB, free: 136 MB / 0.9636 GB Notification: Performance of simCode: created simulation system equations: time 0.0007823/3.386, allocations: 0.7486 MB / 2.082 GB, free: 135.7 MB / 0.9636 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002489/3.388, allocations: 0.6087 MB / 2.082 GB, free: 135.7 MB / 0.9636 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004514/3.393, allocations: 3.013 MB / 2.085 GB, free: 135.1 MB / 0.9636 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009696/3.394, allocations: 1.469 MB / 2.087 GB, free: 134.4 MB / 0.9636 GB Notification: Performance of SimCode: time 4.91e-07/3.394, allocations: 0 / 2.087 GB, free: 134.4 MB / 0.9636 GB (rm -f Buildings_maint.8.0.x_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.BoreholeSegment.pipe ; mkfifo Buildings_maint.8.0.x_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.BoreholeSegment.pipe ; head -c 1048576 < Buildings_maint.8.0.x_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.BoreholeSegment.pipe >> ../files/Buildings_maint.8.0.x_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.BoreholeSegment.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_maint_8_0_x_Buildings_Fluid_Geothermal_Boreholes_BaseClasses_Examples_BoreholeSegment_fmu --startTime=0 --stopTime=1.5768e+08 --timeout=50 --tolerance=1e-06 Buildings_maint_8_0_x_Buildings_Fluid_Geothermal_Boreholes_BaseClasses_Examples_BoreholeSegment.fmu > Buildings_maint.8.0.x_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.BoreholeSegment.pipe 2>&1)