Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_7.0.0_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.BoreholeSegment.conf.json 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.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.1/package.mo) Running command: "" <> buildModelFMU(Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.BoreholeSegment,fileNamePrefix="Buildings_7_0_0_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.1/package.mo): time 2.342/2.342, allocations: 248.6 MB / 255.9 MB, free: 7.184 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001691/0.001691, allocations: 187.7 kB / 315.1 MB, free: 4.246 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.945/1.945, allocations: 205.1 MB / 0.5658 GB, free: 356 kB / 410.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001607/0.001607, allocations: 98.64 kB / 0.67 GB, free: 5.574 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.5238/0.5255, allocations: 112.4 MB / 0.7797 GB, free: 103.7 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2309/0.7564, allocations: 106.3 MB / 0.8835 GB, free: 13.34 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.562/2.318, allocations: 422.4 MB / 1.296 GB, free: 243.1 MB / 0.8542 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0004419/2.319, allocations: 105.4 kB / 1.296 GB, free: 243.1 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 3.183/5.502, allocations: 0.6328 GB / 1.929 GB, free: 153.7 MB / 0.8698 GB Notification: Performance of prepare preOptimizeDAE: time 4.556e-05/5.502, allocations: 7.219 kB / 1.929 GB, free: 153.7 MB / 0.8698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001341/5.503, allocations: 210.8 kB / 1.929 GB, free: 153.6 MB / 0.8698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007645/5.511, allocations: 2.06 MB / 1.931 GB, free: 153.3 MB / 0.8698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.743e-05/5.511, allocations: 37.81 kB / 1.931 GB, free: 153.3 MB / 0.8698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004482/5.511, allocations: 97.23 kB / 1.931 GB, free: 153.3 MB / 0.8698 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002628/5.514, allocations: 0.8371 MB / 1.932 GB, free: 153.3 MB / 0.8698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002726/5.517, allocations: 1.033 MB / 1.933 GB, free: 153.1 MB / 0.8698 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.138e-05/5.517, allocations: 6.844 kB / 1.933 GB, free: 153.1 MB / 0.8698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001438/5.517, allocations: 0 / 1.933 GB, free: 153.1 MB / 0.8698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.833e-05/5.517, allocations: 32.44 kB / 1.933 GB, free: 153.1 MB / 0.8698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01193/5.529, allocations: 6.538 MB / 1.939 GB, free: 150.3 MB / 0.8698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002097/5.531, allocations: 0.7439 MB / 1.94 GB, free: 150.3 MB / 0.8698 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001198/5.532, allocations: 440.1 kB / 1.941 GB, free: 150.3 MB / 0.8698 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0007732/5.533, allocations: 0.6034 MB / 1.941 GB, free: 149.6 MB / 0.8698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009889/5.534, allocations: 407.2 kB / 1.942 GB, free: 149.6 MB / 0.8698 GB Notification: Performance of pre-optimization done (n=78): time 4.368e-06/5.534, allocations: 0 / 1.942 GB, free: 149.6 MB / 0.8698 GB Notification: Performance of matching and sorting (n=82): time 0.009309/5.544, allocations: 2.234 MB / 1.944 GB, free: 149 MB / 0.8698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.142e-05/5.544, allocations: 66.06 kB / 1.944 GB, free: 149 MB / 0.8698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002344/5.546, allocations: 1.068 MB / 1.945 GB, free: 148.8 MB / 0.8698 GB Notification: Performance of collectPreVariables (initialization): time 0.0004332/5.547, allocations: 25.7 kB / 1.945 GB, free: 148.8 MB / 0.8698 GB Notification: Performance of collectInitialEqns (initialization): time 0.0006187/5.547, allocations: 493.1 kB / 1.945 GB, free: 148.6 MB / 0.8698 GB Notification: Performance of collectInitialBindings (initialization): time 0.0005225/5.548, allocations: 290.3 kB / 1.946 GB, free: 148.4 MB / 0.8698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001205/5.548, allocations: 0 / 1.946 GB, free: 148.4 MB / 0.8698 GB Notification: Performance of setup shared object (initialization): time 0.0001193/5.548, allocations: 359.8 kB / 1.946 GB, free: 148.1 MB / 0.8698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001463/5.549, allocations: 0.5319 MB / 1.947 GB, free: 148.1 MB / 0.8698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001666/5.551, allocations: 0.8371 MB / 1.947 GB, free: 147.8 MB / 0.8698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002474/5.554, allocations: 0.7191 MB / 1.948 GB, free: 147.8 MB / 0.8698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.428e-06/5.554, allocations: 3.938 kB / 1.948 GB, free: 147.8 MB / 0.8698 GB Notification: Performance of matching and sorting (n=170) (initialization): time 0.005274/5.559, allocations: 1.704 MB / 1.95 GB, free: 147.6 MB / 0.8698 GB Notification: Performance of prepare postOptimizeDAE: time 0.0005349/5.56, allocations: 2.286 MB / 1.952 GB, free: 145.3 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.923e-05/5.56, allocations: 10.97 kB / 1.952 GB, free: 145.3 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001104/5.561, allocations: 220.3 kB / 1.952 GB, free: 145.3 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002958/5.564, allocations: 265.9 kB / 1.952 GB, free: 145.3 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002181/5.566, allocations: 1.641 MB / 1.954 GB, free: 144.1 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004905/5.571, allocations: 122.7 kB / 1.954 GB, free: 144.1 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002902/5.571, allocations: 60.34 kB / 1.954 GB, free: 144.1 MB / 0.8698 GB Notification: Performance of prepare postOptimizeDAE: time 1.492e-05/5.571, allocations: 2.625 kB / 1.954 GB, free: 144.1 MB / 0.8698 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004866/5.576, allocations: 1.53 MB / 1.956 GB, free: 144.1 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.158e-05/5.576, allocations: 13.59 kB / 1.956 GB, free: 144.1 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009504/5.577, allocations: 227.3 kB / 1.956 GB, free: 144.1 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002648/5.58, allocations: 253.3 kB / 1.956 GB, free: 144.1 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001829/5.582, allocations: 1.036 MB / 1.957 GB, free: 143.6 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004878/5.587, allocations: 116 kB / 1.957 GB, free: 143.6 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003193/5.587, allocations: 59.62 kB / 1.957 GB, free: 143.6 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.0005111/5.587, allocations: 148.3 kB / 1.957 GB, free: 143.4 MB / 0.8698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004982/5.588, allocations: 135.8 kB / 1.958 GB, free: 143.4 MB / 0.8698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003399/5.591, allocations: 1.006 MB / 1.959 GB, free: 143.3 MB / 0.8698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.879e-05/5.591, allocations: 11.23 kB / 1.959 GB, free: 143.3 MB / 0.8698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.43e-05/5.591, allocations: 7.062 kB / 1.959 GB, free: 143.3 MB / 0.8698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.00244/5.594, allocations: 0.9064 MB / 1.959 GB, free: 143.1 MB / 0.8698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006612/5.601, allocations: 2.687 MB / 1.962 GB, free: 142.6 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.528e-06/5.601, allocations: 0 / 1.962 GB, free: 142.6 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001421/5.602, allocations: 144.4 kB / 1.962 GB, free: 142.6 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004568/5.603, allocations: 119 kB / 1.962 GB, free: 142.6 MB / 0.8698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001063/5.603, allocations: 24.55 kB / 1.962 GB, free: 142.6 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004655/5.607, allocations: 5.054 MB / 1.967 GB, free: 138.2 MB / 0.8698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.55e-06/5.607, allocations: 0 / 1.967 GB, free: 138.2 MB / 0.8698 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.004164/5.612, allocations: 1.586 MB / 1.969 GB, free: 137.8 MB / 0.8698 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.005298/5.617, allocations: 2.481 MB / 1.971 GB, free: 137.1 MB / 0.8698 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001217/5.618, allocations: 363.3 kB / 1.972 GB, free: 136.9 MB / 0.8698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000402/5.619, allocations: 7.25 kB / 1.972 GB, free: 136.9 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002759/5.621, allocations: 80.81 kB / 1.972 GB, free: 136.9 MB / 0.8698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001593/5.622, allocations: 41.2 kB / 1.972 GB, free: 136.9 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001054/5.622, allocations: 38.02 kB / 1.972 GB, free: 136.9 MB / 0.8698 GB Notification: Performance of sort global known variables: time 0.001743/5.623, allocations: 0.7712 MB / 1.973 GB, free: 136.8 MB / 0.8698 GB Notification: Performance of remove unused functions: time 0.008274/5.632, allocations: 1.3 MB / 1.974 GB, free: 136.7 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.002447/5.634, allocations: 0.8074 MB / 1.975 GB, free: 136.5 MB / 0.8698 GB Notification: Performance of simCode: created initialization part: time 0.006574/5.641, allocations: 2.074 MB / 1.977 GB, free: 136.4 MB / 0.8698 GB Notification: Performance of simCode: created event and clocks part: time 9.348e-06/5.641, allocations: 5.719 kB / 1.977 GB, free: 136.4 MB / 0.8698 GB Notification: Performance of simCode: created simulation system equations: time 0.001571/5.642, allocations: 0.7332 MB / 1.977 GB, free: 136.1 MB / 0.8698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005967/5.648, allocations: 0.61 MB / 1.978 GB, free: 136.1 MB / 0.8698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009539/5.658, allocations: 3.01 MB / 1.981 GB, free: 135.5 MB / 0.8698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00209/5.66, allocations: 1.465 MB / 1.982 GB, free: 134.8 MB / 0.8698 GB Notification: Performance of SimCode: time 3.326e-06/5.66, allocations: 0 / 1.982 GB, free: 134.8 MB / 0.8698 GB