Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.8.0.x_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.BoreholeSegment.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.0.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.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.0.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.BoreholeSegment,fileNamePrefix="Buildings_maint_8_0_x_Buildings_Fluid_Geothermal_Boreholes_BaseClasses_Examples_BoreholeSegment",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.BoreholeSegment,fileNamePrefix="Buildings_maint_8_0_x_Buildings_Fluid_Geothermal_Boreholes_BaseClasses_Examples_BoreholeSegment",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.0.x/package.mo): time 1.693/1.693, allocations: 288.2 MB / 303.2 MB, free: 8.07 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.001021/0.001021, allocations: 179.4 kB / 371.8 MB, free: 10.27 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.621/1.621, allocations: 205.4 MB / 0.6305 GB, free: 10.01 MB / 458.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008839/0.000884, allocations: 105.5 kB / 0.7439 GB, free: 5.938 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.0004461/0.0004463, allocations: 11.03 kB / 0.8669 GB, free: 142.1 MB / 0.6198 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2413/0.2418, allocations: 115.3 MB / 0.9795 GB, free: 27.59 MB / 0.6198 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.018/1.26, allocations: 430 MB / 1.399 GB, free: 15.39 MB / 0.9323 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002968/1.26, allocations: 112.1 kB / 1.399 GB, free: 15.33 MB / 0.9323 GB Notification: Performance of FrontEnd - DAE generated: time 2.353/3.613, allocations: 0.6497 GB / 2.049 GB, free: 82.36 MB / 0.9323 GB Notification: Performance of FrontEnd: time 1.553e-06/3.613, allocations: 0 / 2.049 GB, free: 82.36 MB / 0.9323 GB Notification: Performance of Transformations before backend: time 0.0002337/3.613, allocations: 39.98 kB / 2.049 GB, free: 82.32 MB / 0.9323 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 0.006843/3.62, allocations: 2.329 MB / 2.051 GB, free: 79.93 MB / 0.9323 GB Notification: Performance of prepare preOptimizeDAE: time 4.307e-05/3.62, allocations: 12.03 kB / 2.052 GB, free: 79.92 MB / 0.9323 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004908/3.621, allocations: 164.8 kB / 2.052 GB, free: 79.75 MB / 0.9323 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001015/3.622, allocations: 209.7 kB / 2.052 GB, free: 79.54 MB / 0.9323 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00484/3.627, allocations: 2.066 MB / 2.054 GB, free: 77.42 MB / 0.9323 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.954e-05/3.627, allocations: 103 kB / 2.054 GB, free: 77.32 MB / 0.9323 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004572/3.627, allocations: 140 kB / 2.054 GB, free: 77.18 MB / 0.9323 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002076/3.629, allocations: 1.212 MB / 2.055 GB, free: 75.91 MB / 0.9323 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.332e-05/3.629, allocations: 7.906 kB / 2.055 GB, free: 75.9 MB / 0.9323 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.256e-05/3.63, allocations: 44 kB / 2.055 GB, free: 75.86 MB / 0.9323 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.002e-05/3.63, allocations: 28 kB / 2.055 GB, free: 75.83 MB / 0.9323 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001295/3.631, allocations: 0.9255 MB / 2.056 GB, free: 74.9 MB / 0.9323 GB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01023/3.641, allocations: 6.967 MB / 2.063 GB, free: 67.54 MB / 0.9323 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002306/3.643, allocations: 1.081 MB / 2.064 GB, free: 66.45 MB / 0.9323 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000494/3.644, allocations: 0.6019 MB / 2.065 GB, free: 65.72 MB / 0.9323 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005831/3.645, allocations: 440.3 kB / 2.065 GB, free: 65.28 MB / 0.9323 GB Notification: Performance of pre-optimization done (n=78): time 3.116e-06/3.645, allocations: 0 / 2.065 GB, free: 65.28 MB / 0.9323 GB Notification: Performance of matching and sorting (n=82): time 0.005486/3.65, allocations: 2.922 MB / 2.068 GB, free: 62.23 MB / 0.9323 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.068e-05/3.65, allocations: 60.06 kB / 2.068 GB, free: 62.16 MB / 0.9323 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001605/3.652, allocations: 1.248 MB / 2.069 GB, free: 60.91 MB / 0.9323 GB Notification: Performance of collectPreVariables (initialization): time 0.0001586/3.652, allocations: 53.7 kB / 2.069 GB, free: 60.85 MB / 0.9323 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005245/3.652, allocations: 0.6809 MB / 2.07 GB, free: 60.16 MB / 0.9323 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002222/3.653, allocations: 295.8 kB / 2.07 GB, free: 59.87 MB / 0.9323 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.017e-05/3.653, allocations: 28 kB / 2.07 GB, free: 59.84 MB / 0.9323 GB Notification: Performance of setup shared object (initialization): time 8.071e-05/3.653, allocations: 357.9 kB / 2.071 GB, free: 59.48 MB / 0.9323 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007756/3.654, allocations: 0.5661 MB / 2.071 GB, free: 58.92 MB / 0.9323 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008555/3.655, allocations: 0.8577 MB / 2.072 GB, free: 57.95 MB / 0.9323 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009026/3.655, allocations: 0.6813 MB / 2.073 GB, free: 57.27 MB / 0.9323 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.777e-06/3.655, allocations: 0 / 2.073 GB, free: 57.27 MB / 0.9323 GB Notification: Performance of matching and sorting (n=170) (initialization): time 0.002409/3.658, allocations: 1.773 MB / 2.074 GB, free: 55.48 MB / 0.9323 GB Notification: Performance of prepare postOptimizeDAE: time 0.000369/3.658, allocations: 2.305 MB / 2.077 GB, free: 53.03 MB / 0.9323 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.014e-05/3.658, allocations: 8 kB / 2.077 GB, free: 53.02 MB / 0.9323 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006077/3.659, allocations: 252 kB / 2.077 GB, free: 52.78 MB / 0.9323 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001328/3.66, allocations: 267.5 kB / 2.077 GB, free: 52.52 MB / 0.9323 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000986/3.661, allocations: 1.588 MB / 2.079 GB, free: 50.88 MB / 0.9323 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002684/3.664, allocations: 155.7 kB / 2.079 GB, free: 50.73 MB / 0.9323 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001215/3.664, allocations: 59.92 kB / 2.079 GB, free: 50.67 MB / 0.9323 GB Notification: Performance of prepare postOptimizeDAE: time 1.101e-05/3.664, allocations: 4 kB / 2.079 GB, free: 50.66 MB / 0.9323 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002156/3.666, allocations: 1.605 MB / 2.081 GB, free: 49.05 MB / 0.9323 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.498e-05/3.666, allocations: 8 kB / 2.081 GB, free: 49.05 MB / 0.9323 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005047/3.667, allocations: 252.8 kB / 2.081 GB, free: 48.8 MB / 0.9323 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001175/3.668, allocations: 259.6 kB / 2.081 GB, free: 48.54 MB / 0.9323 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007567/3.669, allocations: 0.9895 MB / 2.082 GB, free: 47.53 MB / 0.9323 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00252/3.671, allocations: 151.6 kB / 2.082 GB, free: 47.38 MB / 0.9323 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001257/3.671, allocations: 59.92 kB / 2.082 GB, free: 47.32 MB / 0.9323 GB 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 () * Number of clocked 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 {2 26} Notification: Performance of prepare postOptimizeDAE: time 0.0009539/3.672, allocations: 0.5062 MB / 2.083 GB, free: 46.8 MB / 0.9323 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002713/3.673, allocations: 150.1 kB / 2.083 GB, free: 46.66 MB / 0.9323 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001555/3.674, allocations: 1.058 MB / 2.084 GB, free: 45.57 MB / 0.9323 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.367e-05/3.674, allocations: 11.95 kB / 2.084 GB, free: 45.56 MB / 0.9323 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.736e-06/3.674, allocations: 4 kB / 2.084 GB, free: 45.55 MB / 0.9323 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001081/3.675, allocations: 0.9519 MB / 2.085 GB, free: 44.57 MB / 0.9323 GB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003672/3.679, allocations: 2.844 MB / 2.088 GB, free: 41.62 MB / 0.9323 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.18e-06/3.679, allocations: 0 / 2.088 GB, free: 41.62 MB / 0.9323 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007215/3.68, allocations: 151.7 kB / 2.088 GB, free: 41.48 MB / 0.9323 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002498/3.68, allocations: 122.6 kB / 2.088 GB, free: 41.35 MB / 0.9323 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.759e-05/3.68, allocations: 23.98 kB / 2.088 GB, free: 41.32 MB / 0.9323 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002667/3.683, allocations: 5.292 MB / 2.093 GB, free: 35.61 MB / 0.9323 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.713e-06/3.683, allocations: 0 / 2.093 GB, free: 35.61 MB / 0.9323 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002097/3.685, allocations: 1.646 MB / 2.095 GB, free: 33.89 MB / 0.9323 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0008314/3.686, allocations: 375.4 kB / 2.095 GB, free: 33.5 MB / 0.9323 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000183/3.686, allocations: 27.95 kB / 2.095 GB, free: 33.48 MB / 0.9323 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001254/3.687, allocations: 87.75 kB / 2.095 GB, free: 33.39 MB / 0.9323 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001095/3.687, allocations: 64.56 kB / 2.095 GB, free: 33.33 MB / 0.9323 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.915e-05/3.687, allocations: 27.98 kB / 2.095 GB, free: 33.3 MB / 0.9323 GB Notification: Performance of sorting global known variables: time 0.001259/3.689, allocations: 0.9505 MB / 2.096 GB, free: 32.35 MB / 0.9323 GB Notification: Performance of sort global known variables: time 2.31e-07/3.689, allocations: 0 / 2.096 GB, free: 32.35 MB / 0.9323 GB Notification: Performance of remove unused functions: time 0.003131/3.692, allocations: 1.14 MB / 2.097 GB, free: 31.21 MB / 0.9323 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 14 (seg.pipFil.vol1.dynBal.U,seg.pipFil.vol2.dynBal.U,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) * Number of clocked states: 0 () * 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,(1,100.0%) 5} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.003358/3.695, allocations: 3.177 MB / 2.1 GB, free: 27.99 MB / 0.9323 GB Notification: Performance of simCode: created initialization part: time 0.003321/3.698, allocations: 2.096 MB / 2.102 GB, free: 25.89 MB / 0.9323 GB Notification: Performance of simCode: created event and clocks part: time 3.346e-06/3.698, allocations: 0 / 2.102 GB, free: 25.89 MB / 0.9323 GB Notification: Performance of simCode: created simulation system equations: time 0.0008486/3.699, allocations: 0.8095 MB / 2.103 GB, free: 25.04 MB / 0.9323 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003134/3.702, allocations: 0.7547 MB / 2.104 GB, free: 24.3 MB / 0.9323 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006992/3.71, allocations: 8.951 MB / 2.113 GB, free: 15.18 MB / 0.9323 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006648/3.71, allocations: 1.317 MB / 2.114 GB, free: 13.84 MB / 0.9323 GB Notification: Performance of simCode: alias equations: time 0.001988/3.712, allocations: 448.7 kB / 2.114 GB, free: 13.39 MB / 0.9323 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008783/3.713, allocations: 0.6164 MB / 2.115 GB, free: 12.78 MB / 0.9323 GB Notification: Performance of SimCode: time 2.214e-06/3.713, allocations: 0 / 2.115 GB, free: 12.78 MB / 0.9323 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5512/4.264, allocations: 54.73 MB / 2.168 GB, free: 172.5 MB / 0.948 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002093/4.265, allocations: 287.9 kB / 2.169 GB, free: 172.1 MB / 0.948 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.822/8.087, allocations: 0 / 2.169 GB, free: 172.1 MB / 0.948 GB (rm -f Buildings_maint.8.0.x_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.BoreholeSegment.pipe ; mkfifo Buildings_maint.8.0.x_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.BoreholeSegment.pipe ; head -c 1048576 < Buildings_maint.8.0.x_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.BoreholeSegment.pipe >> ../files/Buildings_maint.8.0.x_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.BoreholeSegment.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_maint_8_0_x_Buildings_Fluid_Geothermal_Boreholes_BaseClasses_Examples_BoreholeSegment_fmu --startTime=0 --stopTime=1.5768e+08 --timeout=50 --tolerance=1e-06 Buildings_maint_8_0_x_Buildings_Fluid_Geothermal_Boreholes_BaseClasses_Examples_BoreholeSegment.fmu > Buildings_maint.8.0.x_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.BoreholeSegment.pipe 2>&1)