Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_3.0.0_Buildings.Fluid.HeatExchangers.Boreholes.BaseClasses.Examples.BoreholeSegment.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 3.0.0/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_StateGraph2 2.0.2/package.mo", uses=false) Using package Modelica_StateGraph2 with version 2.0.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_StateGraph2 2.0.2/package.mo) Using package ModelicaServices with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo) Using package Modelica with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo) Using package Complex with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo) Using package Buildings with version 3.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 3.0.0/package.mo) Running command: translateModel(Buildings.Fluid.HeatExchangers.Boreholes.BaseClasses.Examples.BoreholeSegment,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_3.0.0_Buildings.Fluid.HeatExchangers.Boreholes.BaseClasses.Examples.BoreholeSegment") translateModel(Buildings.Fluid.HeatExchangers.Boreholes.BaseClasses.Examples.BoreholeSegment,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_3.0.0_Buildings.Fluid.HeatExchangers.Boreholes.BaseClasses.Examples.BoreholeSegment") [: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 3.0.0/package.mo): time 0.7275/0.7275, allocations: 132.4 MB / 139.7 MB, free: 15.52 MB / 122.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo): time 0.001245/0.001246, allocations: 170.9 kB / 171.6 MB, free: 2.027 MB / 138.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo): time 1.521/1.521, allocations: 170.5 MB / 373.9 MB, free: 15.81 MB / 282.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo): time 0.001708/0.001708, allocations: 112.7 kB / 444.5 MB, free: 9.348 MB / 346.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_StateGraph2 2.0.2/package.mo:257:38-257:110:writable] Warning: The file was not encoded in UTF-8: "

An important practical aspect of state machines is the abilit...". Defaulting to 7-bit ASCII with unknown characters replaced by '?'. To change encoding when loading a file: loadFile(encoding="ISO-XXXX-YY"). To change it in a package: add a file package.encoding at the top-level. Note: The Modelica Language Specification only allows files encoded in UTF-8. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_StateGraph2 2.0.2/package.mo:761:36-761:108:writable] Warning: The file was not encoded in UTF-8: "

The Modelica_StateGraph2 library is described in detail in (O...". Defaulting to 7-bit ASCII with unknown characters replaced by '?'. To change encoding when loading a file: loadFile(encoding="ISO-XXXX-YY"). To change it in a package: add a file package.encoding at the top-level. Note: The Modelica Language Specification only allows files encoded in UTF-8. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_StateGraph2 2.0.2/package.mo:1435:36-1435:108:writable] Warning: The file was not encoded in UTF-8: "

Main Authors:
SCode: time 0.5204/0.5204, allocations: 73.38 MB / 0.666 GB, free: 62.36 MB / 458.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.7879/1.308, allocations: 384.4 MB / 1.041 GB, free: 55.07 MB / 0.5886 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002989/1.309, allocations: 110.1 kB / 1.041 GB, free: 55.02 MB / 0.5886 GB Notification: Performance of FrontEnd: time 2.036/3.345, allocations: 0.5604 GB / 1.602 GB, free: 2.684 MB / 0.6198 GB Notification: Performance of Transformations before backend: time 0.0003736/3.345, allocations: 39.2 kB / 1.602 GB, free: 2.648 MB / 0.6198 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 288 * Number of variables: 288 Notification: Performance of Generate backend data structure: time 0.008131/3.354, allocations: 2.088 MB / 1.604 GB, free: 0.5117 MB / 0.6198 GB Notification: Performance of prepare preOptimizeDAE: time 5.448e-05/3.354, allocations: 8.031 kB / 1.604 GB, free: 0.5039 MB / 0.6198 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001709/3.355, allocations: 213.6 kB / 1.604 GB, free: 300 kB / 0.6198 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.4065/3.762, allocations: 13.14 MB / 1.617 GB, free: 135 MB / 0.6198 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.192e-05/3.762, allocations: 43.19 kB / 1.617 GB, free: 135 MB / 0.6198 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007656/3.763, allocations: 89.59 kB / 1.617 GB, free: 135 MB / 0.6198 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.00282/3.766, allocations: 0.8546 MB / 1.618 GB, free: 134.9 MB / 0.6198 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002853/3.769, allocations: 1.124 MB / 1.619 GB, free: 134.7 MB / 0.6198 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.707e-05/3.769, allocations: 3.969 kB / 1.619 GB, free: 134.7 MB / 0.6198 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001621/3.769, allocations: 3.906 kB / 1.619 GB, free: 134.7 MB / 0.6198 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.313e-05/3.769, allocations: 40.08 kB / 1.619 GB, free: 134.7 MB / 0.6198 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01008/3.779, allocations: 7.39 MB / 1.626 GB, free: 130.9 MB / 0.6198 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007137/3.78, allocations: 438.2 kB / 1.627 GB, free: 130.9 MB / 0.6198 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005898/3.78, allocations: 422.9 kB / 1.627 GB, free: 130.9 MB / 0.6198 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003568/3.781, allocations: 280 kB / 1.627 GB, free: 130.6 MB / 0.6198 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005784/3.781, allocations: 480.5 kB / 1.628 GB, free: 130.5 MB / 0.6198 GB Notification: Performance of pre-optimization done (n=76): time 3.547e-06/3.781, allocations: 1.688 kB / 1.628 GB, free: 130.5 MB / 0.6198 GB Notification: Performance of matching and sorting (n=84): time 0.007805/3.789, allocations: 2.718 MB / 1.631 GB, free: 129.6 MB / 0.6198 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.698e-05/3.789, allocations: 280 kB / 1.631 GB, free: 129.3 MB / 0.6198 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001718/3.791, allocations: 1.038 MB / 1.632 GB, free: 129.1 MB / 0.6198 GB Notification: Performance of collectPreVariables (initialization): time 0.0001372/3.791, allocations: 29.64 kB / 1.632 GB, free: 129.1 MB / 0.6198 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005953/3.792, allocations: 0.5277 MB / 1.632 GB, free: 128.8 MB / 0.6198 GB Notification: Performance of collectInitialBindings (initialization): time 0.0004181/3.792, allocations: 288.7 kB / 1.633 GB, free: 128.7 MB / 0.6198 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.485e-05/3.792, allocations: 0 / 1.633 GB, free: 128.7 MB / 0.6198 GB Notification: Performance of setup shared object (initialization): time 0.0001384/3.792, allocations: 361.1 kB / 1.633 GB, free: 128.4 MB / 0.6198 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009873/3.793, allocations: 0.5394 MB / 1.634 GB, free: 128.4 MB / 0.6198 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001205/3.795, allocations: 0.896 MB / 1.634 GB, free: 128 MB / 0.6198 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00161/3.796, allocations: 0.7208 MB / 1.635 GB, free: 128 MB / 0.6198 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.105e-05/3.796, allocations: 2.906 kB / 1.635 GB, free: 128 MB / 0.6198 GB Notification: Performance of matching and sorting (n=182) (initialization): time 0.00351/3.8, allocations: 1.77 MB / 1.637 GB, free: 127.8 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 0.0009517/3.801, allocations: 2.979 MB / 1.64 GB, free: 124.8 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.831e-05/3.801, allocations: 7.938 kB / 1.64 GB, free: 124.8 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008335/3.802, allocations: 263.1 kB / 1.64 GB, free: 124.7 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002113/3.804, allocations: 346 kB / 1.64 GB, free: 124.7 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001912/3.806, allocations: 1.731 MB / 1.642 GB, free: 123.6 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00281/3.808, allocations: 105 kB / 1.642 GB, free: 123.6 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001892/3.809, allocations: 63.36 kB / 1.642 GB, free: 123.6 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 1.749e-05/3.809, allocations: 6.688 kB / 1.642 GB, free: 123.6 MB / 0.6198 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003272/3.812, allocations: 1.584 MB / 1.644 GB, free: 123.6 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.069e-05/3.812, allocations: 10.31 kB / 1.644 GB, free: 123.6 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007229/3.813, allocations: 266.6 kB / 1.644 GB, free: 123.6 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001307/3.814, allocations: 261.7 kB / 1.644 GB, free: 123.6 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001466/3.815, allocations: 1.12 MB / 1.645 GB, free: 123 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002842/3.818, allocations: 97.03 kB / 1.645 GB, free: 123 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002086/3.819, allocations: 55.91 kB / 1.645 GB, free: 123 MB / 0.6198 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: 34 * 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 (148): * Single equations (assignments): 144 * Array equations: 0 * Algorithm blocks: 1 * 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 29} Notification: Performance of prepare postOptimizeDAE: time 0.000569/3.819, allocations: 180 kB / 1.646 GB, free: 122.9 MB / 0.6198 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004408/3.82, allocations: 140.1 kB / 1.646 GB, free: 122.8 MB / 0.6198 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002473/3.822, allocations: 1.015 MB / 1.647 GB, free: 122.7 MB / 0.6198 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.109e-05/3.822, allocations: 18.95 kB / 1.647 GB, free: 122.7 MB / 0.6198 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.82e-05/3.822, allocations: 0 / 1.647 GB, free: 122.7 MB / 0.6198 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001668/3.824, allocations: 0.931 MB / 1.648 GB, free: 122.5 MB / 0.6198 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005783/3.83, allocations: 2.842 MB / 1.65 GB, free: 121.9 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.897e-06/3.83, allocations: 3.938 kB / 1.65 GB, free: 121.9 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001482/3.831, allocations: 231.6 kB / 1.651 GB, free: 121.9 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003278/3.831, allocations: 110.9 kB / 1.651 GB, free: 121.9 MB / 0.6198 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000102/3.832, allocations: 17.03 kB / 1.651 GB, free: 121.9 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004736/3.836, allocations: 5.761 MB / 1.656 GB, free: 116.8 MB / 0.6198 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.609e-06/3.836, allocations: 1.875 kB / 1.656 GB, free: 116.8 MB / 0.6198 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.002772/3.839, allocations: 1.648 MB / 1.658 GB, free: 116.4 MB / 0.6198 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001085/3.84, allocations: 347.8 kB / 1.658 GB, free: 116.2 MB / 0.6198 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005005/3.841, allocations: 20.95 kB / 1.658 GB, free: 116.2 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001689/3.842, allocations: 79.75 kB / 1.658 GB, free: 116.2 MB / 0.6198 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001386/3.843, allocations: 52.39 kB / 1.659 GB, free: 116.2 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.441e-05/3.843, allocations: 30.58 kB / 1.659 GB, free: 116.2 MB / 0.6198 GB Notification: Performance of sort global known variables: time 0.001578/3.844, allocations: 0.7438 MB / 1.659 GB, free: 116.1 MB / 0.6198 GB Notification: Performance of remove unused functions: time 0.005549/3.85, allocations: 1.071 MB / 1.66 GB, free: 116.1 MB / 0.6198 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 14 (seg.pipFil.vol1.dynBal.medium.T,seg.pipFil.vol2.dynBal.medium.T,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: 5 (seg.TBouCon.iSam,seg.TBouCon.port.T,seg.TBouCon.UOld,seg.TBouCon.QAve_flow,$whenCondition1) * Top-level inputs: 0 Notification: Strong component statistics for simulation (73): * Single equations (assignments): 66 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 2 * When equations: 0 * 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.002151/3.852, allocations: 0.772 MB / 1.661 GB, free: 116 MB / 0.6198 GB Notification: Performance of simCode: created initialization part: time 0.005952/3.858, allocations: 2.283 MB / 1.663 GB, free: 115.8 MB / 0.6198 GB Notification: Performance of simCode: created event and clocks part: time 6.462e-06/3.858, allocations: 3.031 kB / 1.663 GB, free: 115.8 MB / 0.6198 GB Notification: Performance of simCode: created simulation system equations: time 0.002497/3.86, allocations: 0.9428 MB / 1.664 GB, free: 115.5 MB / 0.6198 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003609/3.864, allocations: 0.5805 MB / 1.665 GB, free: 115.5 MB / 0.6198 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009201/3.873, allocations: 3.052 MB / 1.668 GB, free: 114.9 MB / 0.6198 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002742/3.876, allocations: 1.451 MB / 1.669 GB, free: 114.1 MB / 0.6198 GB Notification: Performance of SimCode: time 1.563e-06/3.876, allocations: 0 / 1.669 GB, free: 114.1 MB / 0.6198 GB Notification: Performance of Templates: time 0.07102/3.947, allocations: 40.51 MB / 1.709 GB, free: 112.7 MB / 0.6198 GB make -j1 -f Buildings_3.0.0_Buildings.Fluid.HeatExchangers.Boreholes.BaseClasses.Examples.BoreholeSegment.makefile (rm -f Buildings_3.0.0_Buildings.Fluid.HeatExchangers.Boreholes.BaseClasses.Examples.BoreholeSegment.pipe ; mkfifo Buildings_3.0.0_Buildings.Fluid.HeatExchangers.Boreholes.BaseClasses.Examples.BoreholeSegment.pipe ; head -c 1048576 < Buildings_3.0.0_Buildings.Fluid.HeatExchangers.Boreholes.BaseClasses.Examples.BoreholeSegment.pipe >> ../files/Buildings_3.0.0_Buildings.Fluid.HeatExchangers.Boreholes.BaseClasses.Examples.BoreholeSegment.sim & ./Buildings_3.0.0_Buildings.Fluid.HeatExchangers.Boreholes.BaseClasses.Examples.BoreholeSegment -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_3.0.0_Buildings.Fluid.HeatExchangers.Boreholes.BaseClasses.Examples.BoreholeSegment.pipe 2>&1)