Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8.0.0_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.BoreholeSegment.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/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.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/package.mo) Running command: "" <> buildModelFMU(Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.BoreholeSegment,fileNamePrefix="Buildings_8_0_0_Buildings_Fluid_Geothermal_Boreholes_BaseClasses_Examples_BoreholeSegment",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.BoreholeSegment,fileNamePrefix="Buildings_8_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 8.0.0/package.mo): time 2.543/2.543, allocations: 284.8 MB / 292.1 MB, free: 10.8 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.002699/0.002699, allocations: 193.2 kB / 360.3 MB, free: 7.547 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.008/2.008, allocations: 205.1 MB / 0.6187 GB, free: 13.23 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.001199/0.001198, allocations: 88.28 kB / 0.7317 GB, free: 45.12 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.3062/0.3075, allocations: 121.4 MB / 0.8502 GB, free: 3.918 MB / 0.5886 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6587/0.9662, allocations: 115.2 MB / 0.9628 GB, free: 78.64 MB / 0.6667 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.101/2.067, allocations: 429 MB / 1.382 GB, free: 139.8 MB / 0.8542 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0005056/2.068, allocations: 106.1 kB / 1.382 GB, free: 139.7 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.286/5.354, allocations: 0.6502 GB / 2.032 GB, free: 165.9 MB / 0.9323 GB Notification: Performance of prepare preOptimizeDAE: time 4.422e-05/5.354, allocations: 9.75 kB / 2.032 GB, free: 165.9 MB / 0.9323 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001444/5.355, allocations: 212.9 kB / 2.032 GB, free: 165.8 MB / 0.9323 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008327/5.364, allocations: 2.059 MB / 2.034 GB, free: 165.4 MB / 0.9323 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.173e-05/5.364, allocations: 41.91 kB / 2.034 GB, free: 165.4 MB / 0.9323 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004993/5.364, allocations: 83.56 kB / 2.034 GB, free: 165.4 MB / 0.9323 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002896/5.367, allocations: 0.8457 MB / 2.035 GB, free: 165.4 MB / 0.9323 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003064/5.37, allocations: 1.041 MB / 2.036 GB, free: 165.3 MB / 0.9323 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.462e-05/5.37, allocations: 3.906 kB / 2.036 GB, free: 165.3 MB / 0.9323 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000148/5.371, allocations: 0 / 2.036 GB, free: 165.3 MB / 0.9323 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.358e-05/5.371, allocations: 32.44 kB / 2.036 GB, free: 165.3 MB / 0.9323 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01271/5.383, allocations: 6.563 MB / 2.043 GB, free: 162.5 MB / 0.9323 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001952/5.385, allocations: 0.7326 MB / 2.043 GB, free: 162.5 MB / 0.9323 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00104/5.387, allocations: 440.1 kB / 2.044 GB, free: 162.5 MB / 0.9323 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0007856/5.387, allocations: 0.606 MB / 2.044 GB, free: 161.8 MB / 0.9323 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009995/5.388, allocations: 411.6 kB / 2.045 GB, free: 161.8 MB / 0.9323 GB Notification: Performance of pre-optimization done (n=78): time 3.827e-06/5.388, allocations: 0 / 2.045 GB, free: 161.8 MB / 0.9323 GB Notification: Performance of matching and sorting (n=82): time 0.009032/5.397, allocations: 2.229 MB / 2.047 GB, free: 161.2 MB / 0.9323 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.457e-05/5.398, allocations: 65.84 kB / 2.047 GB, free: 161.1 MB / 0.9323 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002298/5.4, allocations: 1.063 MB / 2.048 GB, free: 160.9 MB / 0.9323 GB Notification: Performance of collectPreVariables (initialization): time 0.0004342/5.4, allocations: 28.95 kB / 2.048 GB, free: 160.9 MB / 0.9323 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005832/5.401, allocations: 494.5 kB / 2.049 GB, free: 160.6 MB / 0.9323 GB Notification: Performance of collectInitialBindings (initialization): time 0.0005184/5.401, allocations: 289 kB / 2.049 GB, free: 160.4 MB / 0.9323 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000122/5.402, allocations: 3.219 kB / 2.049 GB, free: 160.4 MB / 0.9323 GB Notification: Performance of setup shared object (initialization): time 0.0001184/5.402, allocations: 362.5 kB / 2.049 GB, free: 160.1 MB / 0.9323 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001505/5.403, allocations: 0.5331 MB / 2.05 GB, free: 160.1 MB / 0.9323 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001694/5.405, allocations: 0.8371 MB / 2.051 GB, free: 159.8 MB / 0.9323 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002541/5.407, allocations: 0.7069 MB / 2.051 GB, free: 159.8 MB / 0.9323 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.578e-06/5.408, allocations: 3.531 kB / 2.051 GB, free: 159.8 MB / 0.9323 GB Notification: Performance of matching and sorting (n=170) (initialization): time 0.005638/5.413, allocations: 1.707 MB / 2.053 GB, free: 159.7 MB / 0.9323 GB Notification: Performance of prepare postOptimizeDAE: time 0.0004974/5.414, allocations: 2.283 MB / 2.055 GB, free: 157.3 MB / 0.9323 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.76e-05/5.414, allocations: 7.125 kB / 2.055 GB, free: 157.3 MB / 0.9323 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001096/5.415, allocations: 230.6 kB / 2.055 GB, free: 157.3 MB / 0.9323 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002975/5.418, allocations: 264.8 kB / 2.056 GB, free: 157.3 MB / 0.9323 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002251/5.42, allocations: 1.641 MB / 2.057 GB, free: 156.2 MB / 0.9323 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005114/5.425, allocations: 123.5 kB / 2.057 GB, free: 156.2 MB / 0.9323 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003545/5.426, allocations: 61.03 kB / 2.057 GB, free: 156.2 MB / 0.9323 GB Notification: Performance of prepare postOptimizeDAE: time 1.277e-05/5.426, allocations: 3.688 kB / 2.057 GB, free: 156.2 MB / 0.9323 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.005006/5.431, allocations: 1.535 MB / 2.059 GB, free: 156.1 MB / 0.9323 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.727e-05/5.431, allocations: 10.8 kB / 2.059 GB, free: 156.1 MB / 0.9323 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009425/5.432, allocations: 222.5 kB / 2.059 GB, free: 156.1 MB / 0.9323 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002629/5.435, allocations: 255.6 kB / 2.059 GB, free: 156.1 MB / 0.9323 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001789/5.436, allocations: 1.038 MB / 2.06 GB, free: 155.6 MB / 0.9323 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005075/5.441, allocations: 119.6 kB / 2.06 GB, free: 155.6 MB / 0.9323 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003146/5.442, allocations: 60.09 kB / 2.061 GB, free: 155.6 MB / 0.9323 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.0005028/5.442, allocations: 131.1 kB / 2.061 GB, free: 155.4 MB / 0.9323 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004546/5.443, allocations: 139.5 kB / 2.061 GB, free: 155.4 MB / 0.9323 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003366/5.446, allocations: 1.004 MB / 2.062 GB, free: 155.3 MB / 0.9323 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.895e-05/5.446, allocations: 7.781 kB / 2.062 GB, free: 155.3 MB / 0.9323 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.324e-05/5.446, allocations: 6.938 kB / 2.062 GB, free: 155.3 MB / 0.9323 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002446/5.449, allocations: 0.9127 MB / 2.063 GB, free: 155.1 MB / 0.9323 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007015/5.456, allocations: 2.689 MB / 2.065 GB, free: 154.6 MB / 0.9323 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.023e-05/5.456, allocations: 0 / 2.065 GB, free: 154.6 MB / 0.9323 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001441/5.457, allocations: 151 kB / 2.065 GB, free: 154.6 MB / 0.9323 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004709/5.458, allocations: 109.4 kB / 2.066 GB, free: 154.6 MB / 0.9323 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001207/5.458, allocations: 20.58 kB / 2.066 GB, free: 154.6 MB / 0.9323 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004647/5.463, allocations: 5.051 MB / 2.07 GB, free: 150.2 MB / 0.9323 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.873e-06/5.463, allocations: 2.312 kB / 2.07 GB, free: 150.2 MB / 0.9323 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.004212/5.467, allocations: 1.582 MB / 2.072 GB, free: 149.8 MB / 0.9323 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.005259/5.472, allocations: 2.487 MB / 2.074 GB, free: 149.1 MB / 0.9323 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00125/5.474, allocations: 353 kB / 2.075 GB, free: 148.9 MB / 0.9323 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003906/5.474, allocations: 18.16 kB / 2.075 GB, free: 148.9 MB / 0.9323 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002778/5.477, allocations: 80 kB / 2.075 GB, free: 148.9 MB / 0.9323 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000144/5.477, allocations: 45.86 kB / 2.075 GB, free: 148.9 MB / 0.9323 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000106/5.477, allocations: 33.53 kB / 2.075 GB, free: 148.9 MB / 0.9323 GB Notification: Performance of sort global known variables: time 0.001674/5.479, allocations: 0.7774 MB / 2.076 GB, free: 148.8 MB / 0.9323 GB Notification: Performance of remove unused functions: time 0.008236/5.487, allocations: 1.301 MB / 2.077 GB, free: 148.7 MB / 0.9323 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.002362/5.489, allocations: 0.8001 MB / 2.078 GB, free: 148.5 MB / 0.9323 GB Notification: Performance of simCode: created initialization part: time 0.006695/5.496, allocations: 2.077 MB / 2.08 GB, free: 148.4 MB / 0.9323 GB Notification: Performance of simCode: created event and clocks part: time 8.927e-06/5.496, allocations: 0 / 2.08 GB, free: 148.4 MB / 0.9323 GB Notification: Performance of simCode: created simulation system equations: time 0.001592/5.498, allocations: 0.7367 MB / 2.081 GB, free: 148.1 MB / 0.9323 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005832/5.504, allocations: 0.6188 MB / 2.081 GB, free: 148.1 MB / 0.9323 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009425/5.513, allocations: 3.009 MB / 2.084 GB, free: 147.5 MB / 0.9323 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002126/5.515, allocations: 1.472 MB / 2.085 GB, free: 146.8 MB / 0.9323 GB Notification: Performance of SimCode: time 1.562e-06/5.515, allocations: 0 / 2.085 GB, free: 146.8 MB / 0.9323 GB (rm -f Buildings_8.0.0_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.BoreholeSegment.pipe ; mkfifo Buildings_8.0.0_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.BoreholeSegment.pipe ; head -c 1048576 < Buildings_8.0.0_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.BoreholeSegment.pipe >> ../files/Buildings_8.0.0_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.BoreholeSegment.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_8_0_0_Buildings_Fluid_Geothermal_Boreholes_BaseClasses_Examples_BoreholeSegment_fmu --startTime=0 --stopTime=1.5768e+08 --timeout=50 --tolerance=1e-06 Buildings_8_0_0_Buildings_Fluid_Geothermal_Boreholes_BaseClasses_Examples_BoreholeSegment.fmu > Buildings_8.0.0_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.BoreholeSegment.pipe 2>&1)