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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 2.281/2.281, allocations: 390.5 MB / 398 MB, free: 10.96 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.001947/0.001947, allocations: 180.9 kB / 491.2 MB, free: 1.57 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.528/1.528, allocations: 221.5 MB / 0.7868 GB, free: 13.3 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.0008716/0.0008717, allocations: 99.52 kB / 0.9269 GB, free: 13.8 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 3.062e-05/3.065e-05, allocations: 4 kB / 1.073 GB, free: 181.9 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3056/0.3056, allocations: 143 MB / 1.212 GB, free: 39.43 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.182/1.488, allocations: 442.5 MB / 1.644 GB, free: 4.523 MB / 1.057 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003077/1.488, allocations: 114.7 kB / 1.645 GB, free: 4.461 MB / 1.057 GB Notification: Performance of FrontEnd - DAE generated: time 2.958/4.446, allocations: 0.6604 GB / 2.305 GB, free: 248.4 MB / 1.151 GB Notification: Performance of FrontEnd: time 1.523e-06/4.446, allocations: 0 / 2.305 GB, free: 248.4 MB / 1.151 GB Notification: Performance of Transformations before backend: time 0.0003139/4.447, allocations: 52.23 kB / 2.305 GB, free: 248.4 MB / 1.151 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.00868/4.455, allocations: 2.034 MB / 2.307 GB, free: 247.6 MB / 1.151 GB Notification: Performance of prepare preOptimizeDAE: time 5.383e-05/4.455, allocations: 10.69 kB / 2.307 GB, free: 247.6 MB / 1.151 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001312/4.457, allocations: 204.5 kB / 2.307 GB, free: 247.5 MB / 1.151 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0056/4.462, allocations: 2.081 MB / 2.309 GB, free: 247.1 MB / 1.151 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.659e-05/4.462, allocations: 32.72 kB / 2.309 GB, free: 247.1 MB / 1.151 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005417/4.463, allocations: 89.41 kB / 2.309 GB, free: 247.1 MB / 1.151 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002367/4.465, allocations: 0.8334 MB / 2.31 GB, free: 247.1 MB / 1.151 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002687/4.468, allocations: 1.029 MB / 2.311 GB, free: 247 MB / 1.151 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.8e-05/4.468, allocations: 3.406 kB / 2.311 GB, free: 247 MB / 1.151 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001279/4.468, allocations: 0 / 2.311 GB, free: 247 MB / 1.151 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.755e-05/4.468, allocations: 33.05 kB / 2.311 GB, free: 247 MB / 1.151 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.01415/4.482, allocations: 6.731 MB / 2.318 GB, free: 244.3 MB / 1.151 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002442/4.485, allocations: 1.033 MB / 2.319 GB, free: 244.3 MB / 1.151 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006588/4.486, allocations: 425 kB / 2.319 GB, free: 244.3 MB / 1.151 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005495/4.486, allocations: 0.6008 MB / 2.32 GB, free: 243.6 MB / 1.151 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006452/4.487, allocations: 412.9 kB / 2.32 GB, free: 243.6 MB / 1.151 GB Notification: Performance of pre-optimization done (n=78): time 4.207e-06/4.487, allocations: 0 / 2.32 GB, free: 243.6 MB / 1.151 GB Notification: Performance of matching and sorting (n=82): time 0.005674/4.493, allocations: 2.246 MB / 2.322 GB, free: 243 MB / 1.151 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.578e-05/4.493, allocations: 63.27 kB / 2.323 GB, free: 242.9 MB / 1.151 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001661/4.494, allocations: 1.062 MB / 2.324 GB, free: 242.7 MB / 1.151 GB Notification: Performance of collectPreVariables (initialization): time 0.0001449/4.494, allocations: 29.58 kB / 2.324 GB, free: 242.7 MB / 1.151 GB Notification: Performance of collectInitialEqns (initialization): time 0.0006594/4.495, allocations: 0.6837 MB / 2.324 GB, free: 242.4 MB / 1.151 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002583/4.495, allocations: 290 kB / 2.325 GB, free: 242.2 MB / 1.151 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.987e-05/4.495, allocations: 0 / 2.325 GB, free: 242.2 MB / 1.151 GB Notification: Performance of setup shared object (initialization): time 0.0001072/4.496, allocations: 360.1 kB / 2.325 GB, free: 241.9 MB / 1.151 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007125/4.496, allocations: 0.5189 MB / 2.325 GB, free: 241.9 MB / 1.151 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008594/4.497, allocations: 0.8041 MB / 2.326 GB, free: 241.6 MB / 1.151 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001228/4.498, allocations: 0.6894 MB / 2.327 GB, free: 241.6 MB / 1.151 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.23e-06/4.498, allocations: 3.938 kB / 2.327 GB, free: 241.6 MB / 1.151 GB Notification: Performance of matching and sorting (n=170) (initialization): time 0.002616/4.501, allocations: 1.669 MB / 2.328 GB, free: 241.5 MB / 1.151 GB Notification: Performance of prepare postOptimizeDAE: time 0.0005215/4.502, allocations: 2.286 MB / 2.331 GB, free: 239.1 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.768e-05/4.502, allocations: 11.52 kB / 2.331 GB, free: 239.1 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005848/4.502, allocations: 234 kB / 2.331 GB, free: 239.1 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001297/4.504, allocations: 265.2 kB / 2.331 GB, free: 239.1 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001173/4.505, allocations: 1.616 MB / 2.333 GB, free: 238 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002436/4.507, allocations: 130.7 kB / 2.333 GB, free: 238 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001242/4.507, allocations: 55.95 kB / 2.333 GB, free: 238 MB / 1.151 GB Notification: Performance of prepare postOptimizeDAE: time 1.24e-05/4.507, allocations: 3.938 kB / 2.333 GB, free: 238 MB / 1.151 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002605/4.51, allocations: 1.491 MB / 2.334 GB, free: 237.9 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.357e-05/4.51, allocations: 11.34 kB / 2.334 GB, free: 237.9 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005222/4.51, allocations: 230 kB / 2.335 GB, free: 237.9 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001131/4.512, allocations: 257.7 kB / 2.335 GB, free: 237.9 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001054/4.513, allocations: 1.017 MB / 2.336 GB, free: 237.4 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002675/4.515, allocations: 125.3 kB / 2.336 GB, free: 237.4 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001863/4.516, allocations: 54.5 kB / 2.336 GB, free: 237.4 MB / 1.151 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.0004595/4.516, allocations: 142.8 kB / 2.336 GB, free: 237.3 MB / 1.151 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.002139/4.518, allocations: 0.9227 MB / 2.337 GB, free: 237.1 MB / 1.151 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000423/4.519, allocations: 134.5 kB / 2.337 GB, free: 237 MB / 1.151 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002185/4.521, allocations: 0.9965 MB / 2.338 GB, free: 236.9 MB / 1.151 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.431e-05/4.521, allocations: 7.188 kB / 2.338 GB, free: 236.9 MB / 1.151 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.028e-05/4.521, allocations: 3.031 kB / 2.338 GB, free: 236.9 MB / 1.151 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001451/4.522, allocations: 0.9184 MB / 2.339 GB, free: 236.7 MB / 1.151 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.004619/4.527, allocations: 2.673 MB / 2.342 GB, free: 236.3 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.362e-06/4.527, allocations: 0 / 2.342 GB, free: 236.3 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006805/4.528, allocations: 144.5 kB / 2.342 GB, free: 236.3 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002592/4.528, allocations: 115.3 kB / 2.342 GB, free: 236.3 MB / 1.151 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.471e-05/4.528, allocations: 15.31 kB / 2.342 GB, free: 236.3 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002978/4.531, allocations: 5.117 MB / 2.347 GB, free: 231.9 MB / 1.151 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.098e-06/4.531, allocations: 0 / 2.347 GB, free: 231.9 MB / 1.151 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002361/4.533, allocations: 1.579 MB / 2.348 GB, free: 231.5 MB / 1.151 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0007815/4.534, allocations: 352.8 kB / 2.349 GB, free: 231.3 MB / 1.151 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001772/4.534, allocations: 16.92 kB / 2.349 GB, free: 231.3 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001181/4.536, allocations: 77.83 kB / 2.349 GB, free: 231.3 MB / 1.151 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001164/4.536, allocations: 65.42 kB / 2.349 GB, free: 231.3 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.983e-05/4.536, allocations: 26.92 kB / 2.349 GB, free: 231.3 MB / 1.151 GB Notification: Performance of sorting global known variables: time 0.001137/4.537, allocations: 0.7826 MB / 2.35 GB, free: 231.2 MB / 1.151 GB Notification: Performance of sort global known variables: time 1.41e-07/4.537, allocations: 0 / 2.35 GB, free: 231.2 MB / 1.151 GB Notification: Performance of remove unused functions: time 0.003937/4.541, allocations: 1.088 MB / 2.351 GB, free: 231.1 MB / 1.151 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.004273/4.545, allocations: 3.106 MB / 2.354 GB, free: 229.9 MB / 1.151 GB Notification: Performance of simCode: created initialization part: time 0.003652/4.549, allocations: 2.024 MB / 2.356 GB, free: 229.8 MB / 1.151 GB Notification: Performance of simCode: created event and clocks part: time 5.771e-06/4.549, allocations: 0 / 2.356 GB, free: 229.8 MB / 1.151 GB Notification: Performance of simCode: created simulation system equations: time 0.0009339/4.55, allocations: 0.7483 MB / 2.357 GB, free: 229.4 MB / 1.151 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003427/4.553, allocations: 0.627 MB / 2.357 GB, free: 229.4 MB / 1.151 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006916/4.56, allocations: 3.311 MB / 2.36 GB, free: 228.6 MB / 1.151 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007774/4.561, allocations: 1.313 MB / 2.362 GB, free: 227.9 MB / 1.151 GB Notification: Performance of simCode: alias equations: time 0.002139/4.563, allocations: 0.4951 MB / 2.362 GB, free: 227.9 MB / 1.151 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007543/4.564, allocations: 0.5745 MB / 2.363 GB, free: 227.9 MB / 1.151 GB Notification: Performance of SimCode: time 8.11e-07/4.564, allocations: 2.438 kB / 2.363 GB, free: 227.9 MB / 1.151 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09351/4.657, allocations: 48.2 MB / 2.41 GB, free: 218.2 MB / 1.151 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002428/4.658, allocations: 214 kB / 2.41 GB, free: 217.9 MB / 1.151 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.927/8.585, allocations: 2.406 kB / 2.41 GB, free: 217.9 MB / 1.151 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)