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.715/1.715, allocations: 285.4 MB / 298 MB, free: 5.93 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.001178/0.001178, allocations: 184.8 kB / 366.4 MB, free: 2.043 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.524/1.524, allocations: 205.1 MB / 0.6248 GB, free: 7.703 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.000859/0.000859, allocations: 93.42 kB / 0.738 GB, free: 40.23 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 4.167e-05/4.196e-05, allocations: 7.984 kB / 0.8584 GB, free: 12.95 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7243/0.7244, allocations: 115.3 MB / 0.971 GB, free: 77.8 MB / 0.6667 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.151/1.875, allocations: 429.9 MB / 1.391 GB, free: 130.3 MB / 0.8542 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000335/1.875, allocations: 110.7 kB / 1.391 GB, free: 130.3 MB / 0.8542 GB Notification: Performance of FrontEnd - DAE generated: time 2.719/4.594, allocations: 0.6479 GB / 2.039 GB, free: 179.5 MB / 0.948 GB Notification: Performance of FrontEnd: time 2.234e-06/4.594, allocations: 0 / 2.039 GB, free: 179.5 MB / 0.948 GB Notification: Performance of Transformations before backend: time 0.0001961/4.595, allocations: 46.98 kB / 2.039 GB, free: 179.5 MB / 0.948 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.006562/4.601, allocations: 2.032 MB / 2.041 GB, free: 178.9 MB / 0.948 GB Notification: Performance of prepare preOptimizeDAE: time 5.29e-05/4.601, allocations: 11.56 kB / 2.041 GB, free: 178.9 MB / 0.948 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002649/4.601, allocations: 168.6 kB / 2.041 GB, free: 178.9 MB / 0.948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007627/4.602, allocations: 206.5 kB / 2.041 GB, free: 178.8 MB / 0.948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004915/4.607, allocations: 2.052 MB / 2.043 GB, free: 178.5 MB / 0.948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.733e-05/4.607, allocations: 105.2 kB / 2.043 GB, free: 178.5 MB / 0.948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002726/4.608, allocations: 138.9 kB / 2.043 GB, free: 178.5 MB / 0.948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002115/4.61, allocations: 1.186 MB / 2.045 GB, free: 178.3 MB / 0.948 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.956e-05/4.61, allocations: 8.969 kB / 2.045 GB, free: 178.3 MB / 0.948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001023/4.61, allocations: 43.44 kB / 2.045 GB, free: 178.3 MB / 0.948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.431e-05/4.61, allocations: 31.2 kB / 2.045 GB, free: 178.3 MB / 0.948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001765/4.612, allocations: 0.8946 MB / 2.046 GB, free: 178.3 MB / 0.948 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.01222/4.624, allocations: 6.962 MB / 2.052 GB, free: 175.6 MB / 0.948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002515/4.626, allocations: 1.076 MB / 2.053 GB, free: 175.6 MB / 0.948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007804/4.627, allocations: 450.3 kB / 2.054 GB, free: 175.6 MB / 0.948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005802/4.628, allocations: 0.5992 MB / 2.054 GB, free: 174.9 MB / 0.948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008261/4.629, allocations: 441.8 kB / 2.055 GB, free: 174.9 MB / 0.948 GB Notification: Performance of pre-optimization done (n=78): time 2.985e-06/4.629, allocations: 0 / 2.055 GB, free: 174.9 MB / 0.948 GB Notification: Performance of matching and sorting (n=82): time 0.00617/4.635, allocations: 2.282 MB / 2.057 GB, free: 174.3 MB / 0.948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.727e-05/4.635, allocations: 64.88 kB / 2.057 GB, free: 174.2 MB / 0.948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002173/4.637, allocations: 1.24 MB / 2.058 GB, free: 174.1 MB / 0.948 GB Notification: Performance of collectPreVariables (initialization): time 0.000142/4.637, allocations: 52.58 kB / 2.058 GB, free: 174 MB / 0.948 GB Notification: Performance of collectInitialEqns (initialization): time 0.0006471/4.638, allocations: 0.6817 MB / 2.059 GB, free: 173.8 MB / 0.948 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002619/4.638, allocations: 300.1 kB / 2.059 GB, free: 173.6 MB / 0.948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.813e-05/4.638, allocations: 26.38 kB / 2.059 GB, free: 173.6 MB / 0.948 GB Notification: Performance of setup shared object (initialization): time 0.0001232/4.638, allocations: 357.7 kB / 2.06 GB, free: 173.3 MB / 0.948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001048/4.639, allocations: 0.5493 MB / 2.06 GB, free: 173.3 MB / 0.948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001256/4.641, allocations: 0.8531 MB / 2.061 GB, free: 173 MB / 0.948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001239/4.642, allocations: 0.6666 MB / 2.062 GB, free: 173 MB / 0.948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.452e-06/4.642, allocations: 2.219 kB / 2.062 GB, free: 173 MB / 0.948 GB Notification: Performance of matching and sorting (n=170) (initialization): time 0.004227/4.646, allocations: 1.749 MB / 2.063 GB, free: 172.8 MB / 0.948 GB Notification: Performance of prepare postOptimizeDAE: time 0.001354/4.648, allocations: 2.31 MB / 2.066 GB, free: 170.5 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.809e-05/4.648, allocations: 7.594 kB / 2.066 GB, free: 170.5 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001124/4.649, allocations: 261.2 kB / 2.066 GB, free: 170.5 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001543/4.65, allocations: 263.2 kB / 2.066 GB, free: 170.5 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001657/4.652, allocations: 1.587 MB / 2.068 GB, free: 169.4 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003137/4.655, allocations: 159.4 kB / 2.068 GB, free: 169.3 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002013/4.655, allocations: 58.94 kB / 2.068 GB, free: 169.3 MB / 0.948 GB Notification: Performance of prepare postOptimizeDAE: time 1.888e-05/4.655, allocations: 5.219 kB / 2.068 GB, free: 169.3 MB / 0.948 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003395/4.659, allocations: 1.591 MB / 2.069 GB, free: 169.3 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.016e-05/4.659, allocations: 7.406 kB / 2.07 GB, free: 169.3 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000745/4.66, allocations: 251.2 kB / 2.07 GB, free: 169.3 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001225/4.661, allocations: 262.8 kB / 2.07 GB, free: 169.3 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001169/4.662, allocations: 0.9842 MB / 2.071 GB, free: 168.8 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00296/4.665, allocations: 162.2 kB / 2.071 GB, free: 168.7 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001817/4.665, allocations: 55.58 kB / 2.071 GB, free: 168.7 MB / 0.948 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 () * 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.666, allocations: 180.5 kB / 2.071 GB, free: 168.6 MB / 0.948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005538/4.666, allocations: 154.1 kB / 2.071 GB, free: 168.6 MB / 0.948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002426/4.669, allocations: 1.057 MB / 2.073 GB, free: 168.4 MB / 0.948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.033e-05/4.669, allocations: 13.14 kB / 2.073 GB, free: 168.4 MB / 0.948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.765e-05/4.669, allocations: 3.875 kB / 2.073 GB, free: 168.4 MB / 0.948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001393/4.67, allocations: 0.9314 MB / 2.073 GB, free: 168.2 MB / 0.948 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.005472/4.676, allocations: 2.842 MB / 2.076 GB, free: 167.8 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.123e-06/4.676, allocations: 0 / 2.076 GB, free: 167.8 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000685/4.676, allocations: 143.6 kB / 2.076 GB, free: 167.8 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003075/4.677, allocations: 119 kB / 2.076 GB, free: 167.8 MB / 0.948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.796e-05/4.677, allocations: 28.69 kB / 2.076 GB, free: 167.8 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00341/4.68, allocations: 5.259 MB / 2.082 GB, free: 163.2 MB / 0.948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.366e-06/4.68, allocations: 0 / 2.082 GB, free: 163.2 MB / 0.948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002469/4.683, allocations: 1.619 MB / 2.083 GB, free: 162.8 MB / 0.948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00109/4.684, allocations: 374.6 kB / 2.084 GB, free: 162.6 MB / 0.948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005418/4.684, allocations: 28.52 kB / 2.084 GB, free: 162.6 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0017/4.686, allocations: 85.91 kB / 2.084 GB, free: 162.6 MB / 0.948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001289/4.686, allocations: 60.52 kB / 2.084 GB, free: 162.6 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.478e-05/4.686, allocations: 35.06 kB / 2.084 GB, free: 162.6 MB / 0.948 GB Notification: Performance of sorting global known variables: time 0.001813/4.688, allocations: 0.926 MB / 2.085 GB, free: 162.5 MB / 0.948 GB Notification: Performance of sort global known variables: time 2.1e-07/4.688, allocations: 3.969 kB / 2.085 GB, free: 162.5 MB / 0.948 GB Notification: Performance of remove unused functions: time 0.005313/4.693, allocations: 1.131 MB / 2.086 GB, free: 162.4 MB / 0.948 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,(1,100.0%) 5} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.005007/4.698, allocations: 3.165 MB / 2.089 GB, free: 161.1 MB / 0.948 GB Notification: Performance of simCode: created initialization part: time 0.005131/4.704, allocations: 2.12 MB / 2.091 GB, free: 161 MB / 0.948 GB Notification: Performance of simCode: created event and clocks part: time 5.531e-06/4.704, allocations: 0 / 2.091 GB, free: 161 MB / 0.948 GB Notification: Performance of simCode: created simulation system equations: time 0.001099/4.705, allocations: 0.7913 MB / 2.092 GB, free: 160.7 MB / 0.948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004495/4.709, allocations: 0.7628 MB / 2.092 GB, free: 160.7 MB / 0.948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009549/4.719, allocations: 3.418 MB / 2.096 GB, free: 159.9 MB / 0.948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001102/4.72, allocations: 1.311 MB / 2.097 GB, free: 159.2 MB / 0.948 GB Notification: Performance of simCode: alias equations: time 0.003038/4.723, allocations: 0.5317 MB / 2.098 GB, free: 159.1 MB / 0.948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00108/4.724, allocations: 0.5726 MB / 2.098 GB, free: 159.1 MB / 0.948 GB Notification: Performance of SimCode: time 2.084e-06/4.724, allocations: 0 / 2.098 GB, free: 159.1 MB / 0.948 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1017/4.826, allocations: 57.7 MB / 2.155 GB, free: 156.6 MB / 0.948 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002378/4.826, allocations: 263.1 kB / 2.155 GB, free: 156.3 MB / 0.948 GB Notification: Performance of buildModelFMU: Generate platform static: time 4.282/9.108, allocations: 0 / 2.155 GB, free: 156.3 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)