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.763/1.763, allocations: 285.6 MB / 293.1 MB, free: 10.18 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.001258/0.001258, allocations: 172.9 kB / 361.4 MB, free: 6.82 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.67/1.67, allocations: 205.2 MB / 0.62 GB, free: 11.63 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.0009015/0.0009015, allocations: 94.28 kB / 0.733 GB, free: 44.16 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 4.058e-05/4.076e-05, allocations: 7.984 kB / 0.8518 GB, free: 2.621 MB / 0.5886 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7283/0.7284, allocations: 115.3 MB / 0.9645 GB, free: 78.91 MB / 0.6667 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.025/1.753, allocations: 429.2 MB / 1.384 GB, free: 138.1 MB / 0.8542 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002576/1.754, allocations: 105.4 kB / 1.384 GB, free: 138.1 MB / 0.8542 GB Notification: Performance of FrontEnd - DAE generated: time 2.697/4.45, allocations: 0.6447 GB / 2.028 GB, free: 172.7 MB / 0.9323 GB Notification: Performance of FrontEnd: time 1.303e-06/4.45, allocations: 3.5 kB / 2.028 GB, free: 172.7 MB / 0.9323 GB Notification: Performance of Transformations before backend: time 0.0003385/4.451, allocations: 37.75 kB / 2.028 GB, free: 172.7 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.008262/4.459, allocations: 2.033 MB / 2.03 GB, free: 172 MB / 0.9323 GB Notification: Performance of prepare preOptimizeDAE: time 5.456e-05/4.459, allocations: 9.562 kB / 2.03 GB, free: 172 MB / 0.9323 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00155/4.46, allocations: 212.5 kB / 2.031 GB, free: 171.9 MB / 0.9323 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006371/4.467, allocations: 2.054 MB / 2.033 GB, free: 171.6 MB / 0.9323 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.639e-05/4.467, allocations: 35.31 kB / 2.033 GB, free: 171.6 MB / 0.9323 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000648/4.468, allocations: 91.69 kB / 2.033 GB, free: 171.6 MB / 0.9323 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002431/4.47, allocations: 0.8308 MB / 2.034 GB, free: 171.6 MB / 0.9323 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002502/4.473, allocations: 1.031 MB / 2.035 GB, free: 171.4 MB / 0.9323 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.866e-05/4.473, allocations: 8.078 kB / 2.035 GB, free: 171.4 MB / 0.9323 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.635e-05/4.473, allocations: 2.562 kB / 2.035 GB, free: 171.4 MB / 0.9323 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.614e-05/4.473, allocations: 31.84 kB / 2.035 GB, free: 171.4 MB / 0.9323 GB Warning: The model contains alias variables with conflicting start and/or 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.01219/4.485, allocations: 6.726 MB / 2.041 GB, free: 168.8 MB / 0.9323 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002468/4.487, allocations: 1.036 MB / 2.042 GB, free: 168.8 MB / 0.9323 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006537/4.488, allocations: 434.2 kB / 2.043 GB, free: 168.8 MB / 0.9323 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005413/4.489, allocations: 0.5987 MB / 2.043 GB, free: 168.1 MB / 0.9323 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000581/4.489, allocations: 408.6 kB / 2.044 GB, free: 168.1 MB / 0.9323 GB Notification: Performance of pre-optimization done (n=78): time 2.575e-06/4.489, allocations: 0 / 2.044 GB, free: 168.1 MB / 0.9323 GB Notification: Performance of matching and sorting (n=82): time 0.005582/4.495, allocations: 2.242 MB / 2.046 GB, free: 167.5 MB / 0.9323 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.774e-05/4.495, allocations: 67.38 kB / 2.046 GB, free: 167.4 MB / 0.9323 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001425/4.496, allocations: 1.063 MB / 2.047 GB, free: 167.2 MB / 0.9323 GB Notification: Performance of collectPreVariables (initialization): time 0.0001246/4.497, allocations: 32.2 kB / 2.047 GB, free: 167.2 MB / 0.9323 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005987/4.497, allocations: 0.6742 MB / 2.048 GB, free: 166.9 MB / 0.9323 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002396/4.497, allocations: 282.8 kB / 2.048 GB, free: 166.7 MB / 0.9323 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.64e-05/4.497, allocations: 3.656 kB / 2.048 GB, free: 166.7 MB / 0.9323 GB Notification: Performance of setup shared object (initialization): time 0.0001006/4.498, allocations: 357.7 kB / 2.048 GB, free: 166.4 MB / 0.9323 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007379/4.498, allocations: 0.5215 MB / 2.049 GB, free: 166.4 MB / 0.9323 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008607/4.499, allocations: 0.8206 MB / 2.05 GB, free: 166.1 MB / 0.9323 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001317/4.5, allocations: 0.6961 MB / 2.05 GB, free: 166.1 MB / 0.9323 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.571e-06/4.501, allocations: 5.656 kB / 2.05 GB, free: 166.1 MB / 0.9323 GB Notification: Performance of matching and sorting (n=170) (initialization): time 0.002719/4.503, allocations: 1.672 MB / 2.052 GB, free: 165.9 MB / 0.9323 GB Notification: Performance of prepare postOptimizeDAE: time 0.0005453/4.504, allocations: 2.283 MB / 2.054 GB, free: 163.6 MB / 0.9323 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.45e-05/4.504, allocations: 6.875 kB / 2.054 GB, free: 163.6 MB / 0.9323 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006101/4.504, allocations: 226.1 kB / 2.054 GB, free: 163.6 MB / 0.9323 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001262/4.506, allocations: 269.8 kB / 2.055 GB, free: 163.6 MB / 0.9323 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001201/4.507, allocations: 1.615 MB / 2.056 GB, free: 162.5 MB / 0.9323 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002554/4.51, allocations: 121.5 kB / 2.056 GB, free: 162.4 MB / 0.9323 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001225/4.51, allocations: 61.44 kB / 2.056 GB, free: 162.4 MB / 0.9323 GB Notification: Performance of prepare postOptimizeDAE: time 1.357e-05/4.51, allocations: 5.438 kB / 2.056 GB, free: 162.4 MB / 0.9323 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002681/4.512, allocations: 1.496 MB / 2.058 GB, free: 162.4 MB / 0.9323 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.01e-05/4.512, allocations: 7.562 kB / 2.058 GB, free: 162.4 MB / 0.9323 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005266/4.513, allocations: 221.5 kB / 2.058 GB, free: 162.4 MB / 0.9323 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001109/4.514, allocations: 268.3 kB / 2.058 GB, free: 162.4 MB / 0.9323 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009879/4.515, allocations: 1.014 MB / 2.059 GB, free: 161.9 MB / 0.9323 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002659/4.518, allocations: 126.1 kB / 2.059 GB, free: 161.8 MB / 0.9323 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001196/4.518, allocations: 63.16 kB / 2.059 GB, free: 161.8 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.0004197/4.518, allocations: 135.8 kB / 2.06 GB, free: 161.7 MB / 0.9323 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.00173/4.52, allocations: 0.9257 MB / 2.06 GB, free: 161.6 MB / 0.9323 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001985/4.52, allocations: 141.2 kB / 2.061 GB, free: 161.5 MB / 0.9323 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001928/4.522, allocations: 0.9996 MB / 2.062 GB, free: 161.4 MB / 0.9323 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.459e-05/4.522, allocations: 11.3 kB / 2.062 GB, free: 161.4 MB / 0.9323 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.636e-06/4.522, allocations: 0 / 2.062 GB, free: 161.4 MB / 0.9323 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001332/4.524, allocations: 0.9155 MB / 2.062 GB, free: 161.2 MB / 0.9323 GB Warning: The model contains alias variables with conflicting start and/or 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.004219/4.528, allocations: 2.667 MB / 2.065 GB, free: 160.8 MB / 0.9323 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.004e-05/4.528, allocations: 7.75 kB / 2.065 GB, free: 160.8 MB / 0.9323 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006698/4.528, allocations: 142.8 kB / 2.065 GB, free: 160.8 MB / 0.9323 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002685/4.529, allocations: 112.6 kB / 2.065 GB, free: 160.7 MB / 0.9323 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.784e-05/4.529, allocations: 17.86 kB / 2.065 GB, free: 160.7 MB / 0.9323 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002961/4.532, allocations: 5.118 MB / 2.07 GB, free: 156.3 MB / 0.9323 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.881e-06/4.532, allocations: 5.625 kB / 2.07 GB, free: 156.3 MB / 0.9323 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002412/4.534, allocations: 1.571 MB / 2.072 GB, free: 156 MB / 0.9323 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0007425/4.535, allocations: 354.6 kB / 2.072 GB, free: 155.8 MB / 0.9323 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001709/4.535, allocations: 16.81 kB / 2.072 GB, free: 155.8 MB / 0.9323 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001199/4.536, allocations: 82.92 kB / 2.072 GB, free: 155.8 MB / 0.9323 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001192/4.537, allocations: 58.83 kB / 2.072 GB, free: 155.8 MB / 0.9323 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.365e-05/4.537, allocations: 35.73 kB / 2.072 GB, free: 155.8 MB / 0.9323 GB Notification: Performance of sorting global known variables: time 0.001143/4.538, allocations: 0.7739 MB / 2.073 GB, free: 155.7 MB / 0.9323 GB Notification: Performance of sort global known variables: time 1.8e-07/4.538, allocations: 0 / 2.073 GB, free: 155.7 MB / 0.9323 GB Notification: Performance of remove unused functions: time 0.004096/4.542, allocations: 1.078 MB / 2.074 GB, free: 155.6 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.004657/4.547, allocations: 3.093 MB / 2.077 GB, free: 154.3 MB / 0.9323 GB Notification: Performance of simCode: created initialization part: time 0.003807/4.55, allocations: 2.025 MB / 2.079 GB, free: 154.2 MB / 0.9323 GB Notification: Performance of simCode: created event and clocks part: time 7.494e-06/4.55, allocations: 0 / 2.079 GB, free: 154.2 MB / 0.9323 GB Notification: Performance of simCode: created simulation system equations: time 0.0009196/4.551, allocations: 0.7565 MB / 2.08 GB, free: 153.9 MB / 0.9323 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00351/4.555, allocations: 0.6317 MB / 2.081 GB, free: 153.9 MB / 0.9323 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006596/4.561, allocations: 3.289 MB / 2.084 GB, free: 153.1 MB / 0.9323 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007186/4.562, allocations: 1.301 MB / 2.085 GB, free: 152.4 MB / 0.9323 GB Notification: Performance of simCode: alias equations: time 0.001918/4.564, allocations: 0.5028 MB / 2.086 GB, free: 152.4 MB / 0.9323 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007885/4.565, allocations: 0.5686 MB / 2.086 GB, free: 152.4 MB / 0.9323 GB Notification: Performance of SimCode: time 8.52e-07/4.565, allocations: 2.062 kB / 2.086 GB, free: 152.4 MB / 0.9323 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08581/4.651, allocations: 48.25 MB / 2.133 GB, free: 150 MB / 0.9323 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000179/4.651, allocations: 213.8 kB / 2.133 GB, free: 149.7 MB / 0.9323 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.91/8.56, allocations: 1.688 kB / 2.133 GB, free: 149.7 MB / 0.9323 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)