Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.BoreholeSegment.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.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 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.BoreholeSegment,fileNamePrefix="Buildings_maint_7_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_7_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 7.0.3-maint.7.0.x/package.mo): time 1.215/1.215, allocations: 249.4 MB / 256.7 MB, free: 15.82 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.00115/0.00115, allocations: 186.3 kB / 316 MB, free: 7.203 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.342/1.342, allocations: 205.1 MB / 0.5667 GB, free: 23.56 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008164/0.0008164, allocations: 88.78 kB / 0.671 GB, free: 0.8633 MB / 0.4948 GB Notification: Performance of FrontEnd - loaded program: time 0.2142/0.215, allocations: 112.5 MB / 0.7808 GB, free: 280 kB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3871/0.6021, allocations: 106.3 MB / 0.8847 GB, free: 76.24 MB / 0.6042 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.6719/1.274, allocations: 421.5 MB / 1.296 GB, free: 1.648 MB / 0.8073 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002582/1.274, allocations: 105.6 kB / 1.296 GB, free: 1.594 MB / 0.8073 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.756/3.03, allocations: 0.6328 GB / 1.929 GB, free: 110.3 MB / 0.8698 GB Notification: Performance of prepare preOptimizeDAE: time 3.279e-05/3.03, allocations: 8 kB / 1.929 GB, free: 110.3 MB / 0.8698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004279/3.03, allocations: 213.5 kB / 1.929 GB, free: 110.1 MB / 0.8698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003395/3.034, allocations: 2.067 MB / 1.931 GB, free: 108 MB / 0.8698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.806e-05/3.034, allocations: 36 kB / 1.931 GB, free: 107.9 MB / 0.8698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001684/3.034, allocations: 87.91 kB / 1.932 GB, free: 107.9 MB / 0.8698 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.00123/3.035, allocations: 0.84 MB / 1.932 GB, free: 107 MB / 0.8698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001368/3.037, allocations: 1.036 MB / 1.933 GB, free: 105.9 MB / 0.8698 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.108e-05/3.037, allocations: 7.938 kB / 1.933 GB, free: 105.9 MB / 0.8698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.67e-05/3.037, allocations: 4 kB / 1.933 GB, free: 105.9 MB / 0.8698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.724e-05/3.037, allocations: 28 kB / 1.933 GB, free: 105.9 MB / 0.8698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005211/3.042, allocations: 6.553 MB / 1.94 GB, free: 99.07 MB / 0.8698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009088/3.043, allocations: 0.7354 MB / 1.941 GB, free: 98.34 MB / 0.8698 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000501/3.043, allocations: 442.9 kB / 1.941 GB, free: 97.91 MB / 0.8698 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004261/3.044, allocations: 0.6014 MB / 1.942 GB, free: 97.18 MB / 0.8698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004515/3.044, allocations: 407 kB / 1.942 GB, free: 96.77 MB / 0.8698 GB Notification: Performance of pre-optimization done (n=78): time 2.094e-06/3.044, allocations: 0 / 1.942 GB, free: 96.77 MB / 0.8698 GB Notification: Performance of matching and sorting (n=82): time 0.00414/3.049, allocations: 2.233 MB / 1.944 GB, free: 94.48 MB / 0.8698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.229e-05/3.049, allocations: 67.41 kB / 1.944 GB, free: 94.41 MB / 0.8698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001054/3.05, allocations: 1.066 MB / 1.945 GB, free: 93.32 MB / 0.8698 GB Notification: Performance of collectPreVariables (initialization): time 7.896e-05/3.05, allocations: 29.7 kB / 1.945 GB, free: 93.29 MB / 0.8698 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002856/3.05, allocations: 496.3 kB / 1.946 GB, free: 92.79 MB / 0.8698 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002182/3.05, allocations: 283.8 kB / 1.946 GB, free: 92.51 MB / 0.8698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.44e-05/3.05, allocations: 0 / 1.946 GB, free: 92.51 MB / 0.8698 GB Notification: Performance of setup shared object (initialization): time 6.691e-05/3.05, allocations: 361.9 kB / 1.946 GB, free: 92.15 MB / 0.8698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006916/3.051, allocations: 0.5382 MB / 1.947 GB, free: 91.62 MB / 0.8698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000782/3.052, allocations: 0.8324 MB / 1.948 GB, free: 90.68 MB / 0.8698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001152/3.053, allocations: 0.7164 MB / 1.948 GB, free: 89.97 MB / 0.8698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.687e-06/3.053, allocations: 4 kB / 1.948 GB, free: 89.97 MB / 0.8698 GB Notification: Performance of matching and sorting (n=170) (initialization): time 0.002438/3.055, allocations: 1.711 MB / 1.95 GB, free: 88.25 MB / 0.8698 GB Notification: Performance of prepare postOptimizeDAE: time 0.0003345/3.056, allocations: 2.276 MB / 1.952 GB, free: 85.83 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.722e-05/3.056, allocations: 8 kB / 1.952 GB, free: 85.82 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005481/3.056, allocations: 230.8 kB / 1.953 GB, free: 85.6 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001313/3.058, allocations: 263.6 kB / 1.953 GB, free: 85.34 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001114/3.059, allocations: 1.64 MB / 1.954 GB, free: 83.66 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002216/3.061, allocations: 124.1 kB / 1.954 GB, free: 83.54 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001076/3.061, allocations: 55.97 kB / 1.955 GB, free: 83.49 MB / 0.8698 GB Notification: Performance of prepare postOptimizeDAE: time 7.754e-06/3.061, allocations: 4 kB / 1.955 GB, free: 83.48 MB / 0.8698 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002329/3.064, allocations: 1.529 MB / 1.956 GB, free: 81.95 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.391e-05/3.064, allocations: 8.094 kB / 1.956 GB, free: 81.95 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004832/3.064, allocations: 224.7 kB / 1.956 GB, free: 81.72 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001108/3.065, allocations: 247.6 kB / 1.956 GB, free: 81.48 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008527/3.066, allocations: 1.04 MB / 1.958 GB, free: 80.41 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002287/3.068, allocations: 119.5 kB / 1.958 GB, free: 80.3 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001114/3.068, allocations: 51.98 kB / 1.958 GB, free: 80.25 MB / 0.8698 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.0003243/3.069, allocations: 153 kB / 1.958 GB, free: 80.09 MB / 0.8698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002064/3.069, allocations: 134.3 kB / 1.958 GB, free: 79.96 MB / 0.8698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001903/3.071, allocations: 1.019 MB / 1.959 GB, free: 78.93 MB / 0.8698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.112e-05/3.071, allocations: 8 kB / 1.959 GB, free: 78.92 MB / 0.8698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.634e-06/3.071, allocations: 4 kB / 1.959 GB, free: 78.91 MB / 0.8698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001261/3.072, allocations: 0.9025 MB / 1.96 GB, free: 77.97 MB / 0.8698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003642/3.076, allocations: 2.685 MB / 1.962 GB, free: 75.23 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.168e-06/3.076, allocations: 0 / 1.962 GB, free: 75.23 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006752/3.077, allocations: 147 kB / 1.963 GB, free: 75.09 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002399/3.077, allocations: 106.5 kB / 1.963 GB, free: 74.97 MB / 0.8698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.489e-05/3.077, allocations: 23.98 kB / 1.963 GB, free: 74.95 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002633/3.08, allocations: 5.059 MB / 1.968 GB, free: 69.52 MB / 0.8698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.135e-06/3.08, allocations: 3.906 kB / 1.968 GB, free: 69.52 MB / 0.8698 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001931/3.081, allocations: 1.584 MB / 1.969 GB, free: 67.86 MB / 0.8698 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.002463/3.084, allocations: 2.49 MB / 1.972 GB, free: 65.3 MB / 0.8698 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005791/3.085, allocations: 355.2 kB / 1.972 GB, free: 64.93 MB / 0.8698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001906/3.085, allocations: 15.98 kB / 1.972 GB, free: 64.91 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001181/3.086, allocations: 71.77 kB / 1.972 GB, free: 64.84 MB / 0.8698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.757e-05/3.086, allocations: 48.58 kB / 1.972 GB, free: 64.8 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.388e-05/3.086, allocations: 31.98 kB / 1.972 GB, free: 64.77 MB / 0.8698 GB Notification: Performance of sort global known variables: time 0.0008754/3.087, allocations: 0.7755 MB / 1.973 GB, free: 63.99 MB / 0.8698 GB Notification: Performance of remove unused functions: time 0.004397/3.091, allocations: 1.3 MB / 1.974 GB, free: 62.69 MB / 0.8698 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.001278/3.093, allocations: 0.7973 MB / 1.975 GB, free: 61.95 MB / 0.8698 GB Notification: Performance of simCode: created initialization part: time 0.002968/3.096, allocations: 2.069 MB / 1.977 GB, free: 59.87 MB / 0.8698 GB Notification: Performance of simCode: created event and clocks part: time 4.358e-06/3.096, allocations: 4 kB / 1.977 GB, free: 59.87 MB / 0.8698 GB Notification: Performance of simCode: created simulation system equations: time 0.0007607/3.096, allocations: 0.736 MB / 1.978 GB, free: 59.11 MB / 0.8698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002442/3.099, allocations: 0.6091 MB / 1.978 GB, free: 58.5 MB / 0.8698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004409/3.103, allocations: 3.02 MB / 1.981 GB, free: 55.47 MB / 0.8698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000942/3.104, allocations: 1.47 MB / 1.983 GB, free: 53.96 MB / 0.8698 GB Notification: Performance of SimCode: time 4.1e-07/3.104, allocations: 0 / 1.983 GB, free: 53.96 MB / 0.8698 GB (rm -f Buildings_maint.7.0.x_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.BoreholeSegment.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.BoreholeSegment.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.BoreholeSegment.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.BoreholeSegment.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_maint_7_0_x_Buildings_Fluid_Geothermal_Boreholes_BaseClasses_Examples_BoreholeSegment_fmu --startTime=0 --stopTime=1.5768e+08 --timeout=50 --tolerance=1e-06 Buildings_maint_7_0_x_Buildings_Fluid_Geothermal_Boreholes_BaseClasses_Examples_BoreholeSegment.fmu > Buildings_maint.7.0.x_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.BoreholeSegment.pipe 2>&1)