Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.BoreholeSegment.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package Buildings with version 10.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo) Running command: "" <> buildModelFMU(Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.BoreholeSegment,fileNamePrefix="Buildings_latest_Buildings_Fluid_Geothermal_Boreholes_BaseClasses_Examples_BoreholeSegment",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.BoreholeSegment,fileNamePrefix="Buildings_latest_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 10.0.0-master/package.mo): time 2.29/2.29, allocations: 390.4 MB / 397.7 MB, free: 11.24 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00115/0.00115, allocations: 180.6 kB / 490.8 MB, free: 1.957 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.602/1.602, allocations: 221.3 MB / 0.7863 GB, free: 13.71 MB / 0.5573 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009624/0.0009624, allocations: 94.36 kB / 0.9264 GB, free: 14.23 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 0.7575/0.7585, allocations: 149.1 MB / 1.072 GB, free: 182.5 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2847/1.043, allocations: 143 MB / 1.212 GB, free: 40.02 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.17/2.213, allocations: 442.4 MB / 1.644 GB, free: 5.371 MB / 1.057 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003105/2.214, allocations: 101.1 kB / 1.644 GB, free: 5.316 MB / 1.057 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.849/5.062, allocations: 0.666 GB / 2.31 GB, free: 252.3 MB / 1.167 GB Notification: Performance of prepare preOptimizeDAE: time 4.777e-05/5.063, allocations: 7.094 kB / 2.31 GB, free: 252.3 MB / 1.167 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001438/5.064, allocations: 210.7 kB / 2.31 GB, free: 252.2 MB / 1.167 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005744/5.07, allocations: 2.087 MB / 2.312 GB, free: 251.9 MB / 1.167 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.075e-05/5.07, allocations: 35.47 kB / 2.312 GB, free: 251.9 MB / 1.167 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004645/5.07, allocations: 91.19 kB / 2.312 GB, free: 251.9 MB / 1.167 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001943/5.072, allocations: 0.8396 MB / 2.313 GB, free: 251.9 MB / 1.167 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002153/5.074, allocations: 1.043 MB / 2.314 GB, free: 251.7 MB / 1.167 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.687e-05/5.074, allocations: 5.969 kB / 2.314 GB, free: 251.7 MB / 1.167 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001189/5.075, allocations: 3.719 kB / 2.314 GB, free: 251.7 MB / 1.167 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.132e-05/5.075, allocations: 29.34 kB / 2.314 GB, free: 251.7 MB / 1.167 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009519/5.084, allocations: 6.553 MB / 2.32 GB, free: 248.9 MB / 1.167 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001124/5.085, allocations: 0.7392 MB / 2.321 GB, free: 248.9 MB / 1.167 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000585/5.086, allocations: 434.9 kB / 2.322 GB, free: 248.9 MB / 1.167 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005172/5.086, allocations: 0.5988 MB / 2.322 GB, free: 248.2 MB / 1.167 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005541/5.087, allocations: 417.7 kB / 2.323 GB, free: 248.2 MB / 1.167 GB Notification: Performance of pre-optimization done (n=78): time 3.076e-06/5.087, allocations: 0 / 2.323 GB, free: 248.2 MB / 1.167 GB Notification: Performance of matching and sorting (n=82): time 0.005658/5.093, allocations: 2.232 MB / 2.325 GB, free: 247.6 MB / 1.167 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.186e-05/5.093, allocations: 62.97 kB / 2.325 GB, free: 247.5 MB / 1.167 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001463/5.094, allocations: 1.073 MB / 2.326 GB, free: 247.3 MB / 1.167 GB Notification: Performance of collectPreVariables (initialization): time 0.0001495/5.094, allocations: 32.61 kB / 2.326 GB, free: 247.3 MB / 1.167 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004959/5.095, allocations: 499.4 kB / 2.326 GB, free: 247 MB / 1.167 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003358/5.095, allocations: 286.9 kB / 2.327 GB, free: 246.8 MB / 1.167 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.005e-05/5.095, allocations: 0 / 2.327 GB, free: 246.8 MB / 1.167 GB Notification: Performance of setup shared object (initialization): time 0.0001504/5.096, allocations: 353.3 kB / 2.327 GB, free: 246.5 MB / 1.167 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009312/5.096, allocations: 0.5375 MB / 2.327 GB, free: 246.5 MB / 1.167 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001108/5.098, allocations: 0.814 MB / 2.328 GB, free: 246.2 MB / 1.167 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001526/5.099, allocations: 0.7145 MB / 2.329 GB, free: 246.2 MB / 1.167 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.358e-06/5.099, allocations: 0 / 2.329 GB, free: 246.2 MB / 1.167 GB Notification: Performance of matching and sorting (n=170) (initialization): time 0.003286/5.102, allocations: 1.712 MB / 2.331 GB, free: 246.1 MB / 1.167 GB Notification: Performance of prepare postOptimizeDAE: time 0.0004484/5.103, allocations: 2.294 MB / 2.333 GB, free: 243.7 MB / 1.167 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.507e-05/5.103, allocations: 6.062 kB / 2.333 GB, free: 243.7 MB / 1.167 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006327/5.104, allocations: 235.7 kB / 2.333 GB, free: 243.7 MB / 1.167 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00145/5.105, allocations: 259.6 kB / 2.333 GB, free: 243.7 MB / 1.167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001306/5.106, allocations: 1.642 MB / 2.335 GB, free: 242.6 MB / 1.167 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002732/5.109, allocations: 116.1 kB / 2.335 GB, free: 242.6 MB / 1.167 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001392/5.109, allocations: 59 kB / 2.335 GB, free: 242.6 MB / 1.167 GB Notification: Performance of prepare postOptimizeDAE: time 1.088e-05/5.109, allocations: 3.938 kB / 2.335 GB, free: 242.6 MB / 1.167 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002763/5.112, allocations: 1.533 MB / 2.337 GB, free: 242.5 MB / 1.167 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.85e-05/5.112, allocations: 11.77 kB / 2.337 GB, free: 242.5 MB / 1.167 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005437/5.113, allocations: 221.2 kB / 2.337 GB, free: 242.5 MB / 1.167 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001298/5.114, allocations: 253.6 kB / 2.337 GB, free: 242.5 MB / 1.167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001004/5.115, allocations: 1.034 MB / 2.338 GB, free: 242 MB / 1.167 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002802/5.118, allocations: 122 kB / 2.338 GB, free: 242 MB / 1.167 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001377/5.118, allocations: 62.88 kB / 2.338 GB, free: 242 MB / 1.167 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.000429/5.118, allocations: 136 kB / 2.338 GB, free: 241.8 MB / 1.167 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002595/5.119, allocations: 136.6 kB / 2.339 GB, free: 241.8 MB / 1.167 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002209/5.121, allocations: 1.004 MB / 2.34 GB, free: 241.7 MB / 1.167 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.426e-05/5.121, allocations: 11.12 kB / 2.34 GB, free: 241.7 MB / 1.167 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.948e-06/5.121, allocations: 13.19 kB / 2.34 GB, free: 241.7 MB / 1.167 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001471/5.122, allocations: 0.9135 MB / 2.34 GB, free: 241.5 MB / 1.167 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005448/5.128, allocations: 2.684 MB / 2.343 GB, free: 241 MB / 1.167 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.729e-06/5.128, allocations: 7.625 kB / 2.343 GB, free: 241 MB / 1.167 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000768/5.129, allocations: 143.9 kB / 2.343 GB, free: 241 MB / 1.167 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003165/5.129, allocations: 108.9 kB / 2.343 GB, free: 241 MB / 1.167 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.656e-05/5.129, allocations: 22.95 kB / 2.343 GB, free: 241 MB / 1.167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00345/5.132, allocations: 5.053 MB / 2.348 GB, free: 236.6 MB / 1.167 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.611e-06/5.132, allocations: 0 / 2.348 GB, free: 236.6 MB / 1.167 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.002443/5.135, allocations: 1.59 MB / 2.35 GB, free: 236.2 MB / 1.167 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.002968/5.138, allocations: 2.48 MB / 2.352 GB, free: 235.5 MB / 1.167 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0007763/5.139, allocations: 356.7 kB / 2.353 GB, free: 235.3 MB / 1.167 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002083/5.139, allocations: 18.38 kB / 2.353 GB, free: 235.3 MB / 1.167 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001274/5.14, allocations: 75.2 kB / 2.353 GB, free: 235.3 MB / 1.167 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.096e-05/5.14, allocations: 46.75 kB / 2.353 GB, free: 235.3 MB / 1.167 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.224e-05/5.14, allocations: 33.75 kB / 2.353 GB, free: 235.3 MB / 1.167 GB Notification: Performance of sort global known variables: time 0.001228/5.142, allocations: 0.7861 MB / 2.354 GB, free: 235.2 MB / 1.167 GB Notification: Performance of remove unused functions: time 0.005181/5.147, allocations: 1.298 MB / 2.355 GB, free: 235.1 MB / 1.167 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.002173/5.149, allocations: 0.8195 MB / 2.356 GB, free: 234.9 MB / 1.167 GB Notification: Performance of simCode: created initialization part: time 0.004147/5.153, allocations: 2.077 MB / 2.358 GB, free: 234.8 MB / 1.167 GB Notification: Performance of simCode: created event and clocks part: time 5.35e-06/5.153, allocations: 7.188 kB / 2.358 GB, free: 234.8 MB / 1.167 GB Notification: Performance of simCode: created simulation system equations: time 0.0009109/5.154, allocations: 0.7281 MB / 2.358 GB, free: 234.5 MB / 1.167 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003193/5.157, allocations: 0.6061 MB / 2.359 GB, free: 234.5 MB / 1.167 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006048/5.163, allocations: 3.019 MB / 2.362 GB, free: 233.9 MB / 1.167 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001112/5.165, allocations: 1.478 MB / 2.363 GB, free: 233.2 MB / 1.167 GB Notification: Performance of SimCode: time 1.142e-06/5.165, allocations: 3.906 kB / 2.363 GB, free: 233.2 MB / 1.167 GB (rm -f Buildings_latest_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.BoreholeSegment.pipe ; mkfifo Buildings_latest_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.BoreholeSegment.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.BoreholeSegment.pipe >> ../files/Buildings_latest_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.BoreholeSegment.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_latest_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.BoreholeSegment_res.mat --tempDir=temp_Buildings_latest_Buildings_Fluid_Geothermal_Boreholes_BaseClasses_Examples_BoreholeSegment_fmu --startTime=0 --stopTime=1.5768e+08 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Fluid_Geothermal_Boreholes_BaseClasses_Examples_BoreholeSegment.fmu > Buildings_latest_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.BoreholeSegment.pipe 2>&1)