Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.BoreholeSegment.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.BoreholeSegment,fileNamePrefix="Buildings_8_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_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.1.4-maint.8.1.x/package.mo): time 1.661/1.661, allocations: 289.8 MB / 297.1 MB, free: 6.707 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.001394/0.001394, allocations: 181.3 kB / 366.3 MB, free: 2.02 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.494/1.494, allocations: 205.1 MB / 0.6256 GB, free: 5.859 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.00105/0.00105, allocations: 87.42 kB / 0.7396 GB, free: 39.65 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.3322/0.3333, allocations: 122.4 MB / 0.8591 GB, free: 13.24 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8434/1.177, allocations: 116.3 MB / 0.9727 GB, free: 68.13 MB / 0.6511 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.034/2.211, allocations: 430.1 MB / 1.393 GB, free: 59.12 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002584/2.211, allocations: 107.6 kB / 1.393 GB, free: 59.06 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: 274 * Number of variables: 274 Notification: Performance of Generate backend data structure: time 2.62/4.832, allocations: 0.6502 GB / 2.043 GB, free: 145.5 MB / 0.9636 GB Notification: Performance of prepare preOptimizeDAE: time 4.464e-05/4.832, allocations: 7.875 kB / 2.043 GB, free: 145.5 MB / 0.9636 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005968/4.832, allocations: 213.3 kB / 2.043 GB, free: 145.4 MB / 0.9636 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004405/4.837, allocations: 2.059 MB / 2.045 GB, free: 145.1 MB / 0.9636 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.097e-05/4.837, allocations: 34.66 kB / 2.045 GB, free: 145.1 MB / 0.9636 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000205/4.837, allocations: 85.19 kB / 2.045 GB, free: 145.1 MB / 0.9636 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001529/4.839, allocations: 0.8499 MB / 2.046 GB, free: 145 MB / 0.9636 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001621/4.84, allocations: 1.044 MB / 2.047 GB, free: 144.9 MB / 0.9636 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.346e-05/4.84, allocations: 0 / 2.047 GB, free: 144.9 MB / 0.9636 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.668e-05/4.84, allocations: 6.719 kB / 2.047 GB, free: 144.9 MB / 0.9636 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.595e-05/4.84, allocations: 28.91 kB / 2.047 GB, free: 144.9 MB / 0.9636 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007582/4.848, allocations: 6.556 MB / 2.054 GB, free: 142.1 MB / 0.9636 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001218/4.849, allocations: 0.7467 MB / 2.054 GB, free: 142.1 MB / 0.9636 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006704/4.85, allocations: 442.9 kB / 2.055 GB, free: 142 MB / 0.9636 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005747/4.85, allocations: 0.5999 MB / 2.055 GB, free: 141.4 MB / 0.9636 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000554/4.851, allocations: 414.3 kB / 2.056 GB, free: 141.3 MB / 0.9636 GB Notification: Performance of pre-optimization done (n=78): time 3.005e-06/4.851, allocations: 0 / 2.056 GB, free: 141.3 MB / 0.9636 GB Notification: Performance of matching and sorting (n=82): time 0.005398/4.856, allocations: 2.223 MB / 2.058 GB, free: 140.7 MB / 0.9636 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.61e-05/4.856, allocations: 73.36 kB / 2.058 GB, free: 140.7 MB / 0.9636 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001388/4.858, allocations: 1.059 MB / 2.059 GB, free: 140.5 MB / 0.9636 GB Notification: Performance of collectPreVariables (initialization): time 9.607e-05/4.858, allocations: 28.55 kB / 2.059 GB, free: 140.5 MB / 0.9636 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004286/4.858, allocations: 497.1 kB / 2.06 GB, free: 140.2 MB / 0.9636 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002709/4.859, allocations: 289.7 kB / 2.06 GB, free: 140 MB / 0.9636 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.079e-05/4.859, allocations: 2.734 kB / 2.06 GB, free: 140 MB / 0.9636 GB Notification: Performance of setup shared object (initialization): time 0.0001348/4.859, allocations: 359.5 kB / 2.06 GB, free: 139.7 MB / 0.9636 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000779/4.86, allocations: 0.5334 MB / 2.061 GB, free: 139.7 MB / 0.9636 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008778/4.861, allocations: 0.8402 MB / 2.062 GB, free: 139.4 MB / 0.9636 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001278/4.862, allocations: 0.7098 MB / 2.062 GB, free: 139.4 MB / 0.9636 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.258e-06/4.862, allocations: 3.625 kB / 2.062 GB, free: 139.4 MB / 0.9636 GB Notification: Performance of matching and sorting (n=170) (initialization): time 0.002866/4.865, allocations: 1.706 MB / 2.064 GB, free: 139.2 MB / 0.9636 GB Notification: Performance of prepare postOptimizeDAE: time 0.0006438/4.865, allocations: 2.285 MB / 2.066 GB, free: 136.9 MB / 0.9636 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.645e-05/4.865, allocations: 11.52 kB / 2.066 GB, free: 136.9 MB / 0.9636 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006202/4.866, allocations: 225.3 kB / 2.066 GB, free: 136.8 MB / 0.9636 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001418/4.868, allocations: 261.4 kB / 2.067 GB, free: 136.8 MB / 0.9636 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001328/4.869, allocations: 1.639 MB / 2.068 GB, free: 135.7 MB / 0.9636 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002583/4.871, allocations: 125.1 kB / 2.068 GB, free: 135.7 MB / 0.9636 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001218/4.872, allocations: 59.41 kB / 2.068 GB, free: 135.7 MB / 0.9636 GB Notification: Performance of prepare postOptimizeDAE: time 1.355e-05/4.872, allocations: 9.625 kB / 2.068 GB, free: 135.7 MB / 0.9636 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002545/4.874, allocations: 1.535 MB / 2.07 GB, free: 135.7 MB / 0.9636 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.585e-05/4.874, allocations: 6.719 kB / 2.07 GB, free: 135.7 MB / 0.9636 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005168/4.875, allocations: 219.2 kB / 2.07 GB, free: 135.7 MB / 0.9636 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001183/4.876, allocations: 252.9 kB / 2.07 GB, free: 135.7 MB / 0.9636 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009949/4.877, allocations: 1.041 MB / 2.071 GB, free: 135.1 MB / 0.9636 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002524/4.879, allocations: 117.7 kB / 2.071 GB, free: 135.1 MB / 0.9636 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001169/4.88, allocations: 59.28 kB / 2.072 GB, free: 135.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.0003595/4.88, allocations: 145.2 kB / 2.072 GB, free: 135 MB / 0.9636 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002154/4.88, allocations: 141.1 kB / 2.072 GB, free: 134.9 MB / 0.9636 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00204/4.882, allocations: 1.007 MB / 2.073 GB, free: 134.8 MB / 0.9636 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.366e-05/4.882, allocations: 10.5 kB / 2.073 GB, free: 134.8 MB / 0.9636 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.197e-05/4.882, allocations: 3.625 kB / 2.073 GB, free: 134.8 MB / 0.9636 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001364/4.884, allocations: 0.9101 MB / 2.074 GB, free: 134.6 MB / 0.9636 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004072/4.888, allocations: 2.684 MB / 2.076 GB, free: 134.2 MB / 0.9636 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.59e-06/4.888, allocations: 7.312 kB / 2.076 GB, free: 134.2 MB / 0.9636 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007164/4.888, allocations: 139.5 kB / 2.076 GB, free: 134.2 MB / 0.9636 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002683/4.889, allocations: 110.7 kB / 2.077 GB, free: 134.2 MB / 0.9636 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.081e-05/4.889, allocations: 18.42 kB / 2.077 GB, free: 134.2 MB / 0.9636 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003042/4.892, allocations: 5.064 MB / 2.082 GB, free: 129.8 MB / 0.9636 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.058e-06/4.892, allocations: 3.969 kB / 2.082 GB, free: 129.8 MB / 0.9636 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.002387/4.894, allocations: 1.581 MB / 2.083 GB, free: 129.4 MB / 0.9636 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.002935/4.897, allocations: 2.484 MB / 2.085 GB, free: 128.6 MB / 0.9636 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0007517/4.898, allocations: 354.6 kB / 2.086 GB, free: 128.5 MB / 0.9636 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002119/4.898, allocations: 18.58 kB / 2.086 GB, free: 128.5 MB / 0.9636 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001316/4.9, allocations: 80.61 kB / 2.086 GB, free: 128.5 MB / 0.9636 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.125e-05/4.9, allocations: 43.45 kB / 2.086 GB, free: 128.5 MB / 0.9636 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.308e-05/4.9, allocations: 34.2 kB / 2.086 GB, free: 128.5 MB / 0.9636 GB Notification: Performance of sort global known variables: time 0.001083/4.901, allocations: 0.7768 MB / 2.087 GB, free: 128.3 MB / 0.9636 GB Notification: Performance of remove unused functions: time 0.005404/4.906, allocations: 1.302 MB / 2.088 GB, free: 128.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.001675/4.908, allocations: 0.813 MB / 2.089 GB, free: 128.1 MB / 0.9636 GB Notification: Performance of simCode: created initialization part: time 0.003801/4.912, allocations: 2.074 MB / 2.091 GB, free: 128 MB / 0.9636 GB Notification: Performance of simCode: created event and clocks part: time 6.713e-06/4.912, allocations: 0 / 2.091 GB, free: 128 MB / 0.9636 GB Notification: Performance of simCode: created simulation system equations: time 0.0009804/4.913, allocations: 0.7382 MB / 2.092 GB, free: 127.7 MB / 0.9636 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003284/4.916, allocations: 0.602 MB / 2.092 GB, free: 127.7 MB / 0.9636 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005776/4.922, allocations: 3.02 MB / 2.095 GB, free: 127 MB / 0.9636 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001134/4.923, allocations: 1.471 MB / 2.097 GB, free: 126.3 MB / 0.9636 GB Notification: Performance of SimCode: time 1.122e-06/4.923, allocations: 0 / 2.097 GB, free: 126.3 MB / 0.9636 GB (rm -f Buildings_8_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.BoreholeSegment.pipe ; mkfifo Buildings_8_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.BoreholeSegment.pipe ; head -c 1048576 < Buildings_8_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.BoreholeSegment.pipe >> ../files/Buildings_8_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.BoreholeSegment.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_8_Buildings_Fluid_Geothermal_Boreholes_BaseClasses_Examples_BoreholeSegment_fmu --startTime=0 --stopTime=1.5768e+08 --timeout=50 --tolerance=1e-06 Buildings_8_Buildings_Fluid_Geothermal_Boreholes_BaseClasses_Examples_BoreholeSegment.fmu > Buildings_8_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.BoreholeSegment.pipe 2>&1)