/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/pyfits/__init__.py:22: PyFITSDeprecationWarning: PyFITS is deprecated, please use astropy.io.fits
  PyFITSDeprecationWarning)  # noqa

Likelihood Analysis Tool
Support Contact: Daniel Kocevski (daniel.kocevski@nasa.gov)


Waiting 8 seconds before starting...
Proceeding.

Importing modules...
This is make3FGLxml version 01r0.
The default diffuse model files and names are for pass 8 and assume you have v10r00p05 of the Fermi Science Tools or higher.
This is make4FGLxml version 01r04.
The default diffuse model files and names are for pass 8 and 4FGL and assume you have v11r5p3 of the Fermi Science Tools or higher.

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/cbook/deprecation.py:106: MatplotlibDeprecationWarning: The mpl_toolkits.axes_grid module was deprecated in version 2.1. Use mpl_toolkits.axes_grid1 and mpl_toolkits.axisartist provies the same functionality instead.
  warnings.warn(message, mplDeprecation, stacklevel=1)

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

number of points = 7497
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1800.6+7828_daily_bin995
RA = 270.173, Dec = 78.4674
tmin = 497232001, tmax = 497491201
emin = 100.0, emax = 100000.0
irfs = P8R3_SOURCE_V2
ROI = 12
zmax = 90

Fitting strategies:
Fix sources to their catalog values = True
Leave variable source normalizations free = True
Perform pre-fit where ALL sources are frozen to catalog values = False
Perform secondary fit with a free spectral index = True
Remove all catalog sources = False
Remove weak (TS < 2) catalog sources = False
Freeze Galactic component = False

Likelihood fit parameters:
Statistic: UNBINNED
Optimizer: MINUIT

Catalog: 4FGL

Repository Job = True

LAT data Source:
Data catalog

Updating database...

UPDATE lightcurve_data_v2 SET job_id='455084', job_status='RUN', time_executed='2021-09-19 07:55:37.901033', time_epoch_executed='1632063337.9' WHERE source_name='4FGL J1800.6+7828' and cadence='daily' and bin_id='995'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/455084

Creating custom pfile directory:
/scratch/kocevski/455084/pfiles/

Retrieving the FT1 file...

Issuing command:
/afs/slac.stanford.edu/g/glast/ground/bin/datacat find --group FT1 --filter 'nMetStop>=497232001.0 && nMetStart<497491201.0' /Data/Flight/Reprocess/P305

Issuing command:
/afs/slac.stanford.edu/g/glast/ground/bin/datacat find --group FT1 --filter 'nMetStart>564945418 && nMetStop>=497232001.0 && nMetStart<497491201.0' /Data/Flight/Level1/LPA

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/455084/ft1_4FGL_J1800.6+7828_daily_bin995.fits


Retrieving the FT1 file...

Issuing command:
/afs/slac.stanford.edu/g/glast/ground/bin/datacat find --group FT2 --filter 'nMetStop>=497232001.0 && nMetStart<497491201.0' /Data/Flight/Level1/LPA

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/455084/ft2_4FGL_J1800.6+7828_daily_bin995.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/455084/ft1_4FGL_J1800.6+7828_daily_bin995.fits outfile=/scratch/kocevski/455084/ft1_filteredMKT_4FGL_J1800.6+7828_daily_bin995.fits ra=270.173 dec=78.4674 rad=12.0 tmin=497232001.0 tmax=497491201.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Done.
real 6.74
user 6.50
sys 0.22

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/455084/ft2_4FGL_J1800.6+7828_daily_bin995.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/455084/ft2_4FGL_J1800.6+7828_daily_bin995.fits sctable="SC_DATA" filter="IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))" roicut=no evfile=/scratch/kocevski/455084/ft1_filteredMKT_4FGL_J1800.6+7828_daily_bin995.fits evtable="EVENTS" outfile="/scratch/kocevski/455084/ft1_filtered_4FGL_J1800.6+7828_daily_bin995.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.49
user 0.33
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/455084/ft1_filtered_4FGL_J1800.6+7828_daily_bin995.fits" evtable="EVENTS" scfile=/scratch/kocevski/455084/ft2_4FGL_J1800.6+7828_daily_bin995.fits sctable="SC_DATA" outfile=/scratch/kocevski/455084/ltcube_497232001_497491201_4FGL_J1800.6+7828_daily_bin995.fits dcostheta=0.025 binsz=1.0 phibins=0 tmin=0.0 tmax=0.0 file_version="1" zmin=0.0 zmax=90.0 chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Working on file /scratch/kocevski/455084/ft2_4FGL_J1800.6+7828_daily_bin995.fits
.....................!
real 12.34
user 11.92
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/455084/ft1_filtered_4FGL_J1800.6+7828_daily_bin995.fits evtable="EVENTS" scfile=/scratch/kocevski/455084/ft2_4FGL_J1800.6+7828_daily_bin995.fits sctable="SC_DATA" expcube=/scratch/kocevski/455084/ltcube_497232001_497491201_4FGL_J1800.6+7828_daily_bin995.fits outfile=/scratch/kocevski/455084/expmap_497232001_497491201_4FGL_J1800.6+7828_daily_bin995.fits irfs="P8R3_SOURCE_V2" evtype="INDEF" srcrad=30.0 nlong=88 nlat=88 nenergies=10 submap=no nlongmin=0 nlongmax=0 nlatmin=0 nlatmax=0 chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

The exposure maps generated by this tool are meant
to be used for *unbinned* likelihood analysis only.
Do not use them for binned analyses.
Computing the ExposureMap using /scratch/kocevski/455084/ltcube_497232001_497491201_4FGL_J1800.6+7828_daily_bin995.fits
.....................!
real 189.82
user 185.18
sys 4.03

Generating the xml model:
radLim = 0.001
maxRad = 12
normsOnly = True
freeVariableSources = True
Fixing all sources to their catalog values, except variable sources
Creating file and adding sources from 4FGL
Added 200 point sources and 0 extended sources

Setting source of interest to:
4FGL J1800.6+7828 @ 270.173 78.4674

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/455084/ft1_filtered_4FGL_J1800.6+7828_daily_bin995.fits scfile=/scratch/kocevski/455084/ft2_4FGL_J1800.6+7828_daily_bin995.fits outfile=/scratch/kocevski/455084/cmap_497232001_497491201_4FGL_J1800.6+7828_daily_bin995.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=270.173 yref=78.4674 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.53
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/455084/ft1_filtered_4FGL_J1800.6+7828_daily_bin995.fits scfile=/scratch/kocevski/455084/ft2_4FGL_J1800.6+7828_daily_bin995.fits outfile=/scratch/kocevski/455084/cmap_HighResolution_497232001_497491201_4FGL_J1800.6+7828_daily_bin995.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=270.173 yref=78.4674 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.54
user 0.36
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/455084/ft1_filtered_4FGL_J1800.6+7828_daily_bin995.fits evtable="EVENTS" scfile=/scratch/kocevski/455084/ft2_4FGL_J1800.6+7828_daily_bin995.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/455084/Model_4FGL_J1800.6+7828_daily_bin995.xml irfs="P8R3_SOURCE_V2" evclsmin=0 evclass="INDEF" evtype="INDEF" convert=yes chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

adding source EG_v02
adding source GAL_V02
Working on...
/scratch/kocevski/455084/ft1_filtered_4FGL_J1800.6+7828_daily_bin995.fits.....................!
real 89.60
user 88.23
sys 1.15

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/455084/ft1_filtered_4FGL_J1800.6+7828_daily_bin995.fits', '/scratch/kocevski/455084/ft2_4FGL_J1800.6+7828_daily_bin995.fits', expMap='/scratch/kocevski/455084/expmap_497232001_497491201_4FGL_J1800.6+7828_daily_bin995.fits', expCube='/scratch/kocevski/455084/ltcube_497232001_497491201_4FGL_J1800.6+7828_daily_bin995.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/455084/Model_4FGL_J1800.6+7828_daily_bin995.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1800.6+7828'

4FGL J1800.6+7828
   Spectrum: LogParabola
411         norm:  1.608e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-11)
412        alpha:  2.159e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
413         beta:  3.593e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
414           Eb:  6.563e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/455084/ft1_filtered_4FGL_J1800.6+7828_daily_bin995.fits
Spacecraft file(s): /scratch/kocevski/455084/ft2_4FGL_J1800.6+7828_daily_bin995.fits
Exposure map: /scratch/kocevski/455084/expmap_497232001_497491201_4FGL_J1800.6+7828_daily_bin995.fits
Exposure cube: /scratch/kocevski/455084/ltcube_497232001_497491201_4FGL_J1800.6+7828_daily_bin995.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/455084/Model_4FGL_J1800.6+7828_daily_bin995.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 0
logL (Fixed Index) = 6657.09244831

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 0
logL (Fixed Index) = 6657.0836278

Fit tolerance = 1e-08

Performing likelihood fit...
 **********
 **   14 **SET NOWARN 
 **********

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    48.275       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10610E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    15.469       1.0000         .10000E-03   10000.    
     4 'norm      '    .10066E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .12101E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    15.187       1.0000         .10000E-03   10000.    
     7 'norm      '    .16013       1.0000         .10000E-03   10000.    
     8 'Prefactor '    4.1908       1.0000         .10000E-03   10000.    
     9 'Prefactor '    7.2764       1.0000         .10000E-03   10000.    
    10 'Prefactor '    3.1363       1.0000         .10000E-03   10000.    
    11 'Prefactor '    22.775       1.0000         .10000E-03   10000.    
    12 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    1.1187       1.0000         .10000E-03   10000.    
    14 'norm      '    17.895       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .28690E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    24.668       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    7.7589       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .15868       1.0000         .10000E-03   10000.    
    21 'norm      '    .13081E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    6.6251       1.0000         .10000E-03   10000.    
    23 'norm      '    6.4673       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10038E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    .93468       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .89661       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6530E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6657.084     FROM MIGRAD    STATUS=CONVERGED    638 CALLS     3122 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     48.272        31.206        .37932E-05    .57184E-05
   2  Prefactor     .10000E-03    28.341       -.97071E-06** at limit **
   3  Prefactor     15.461        50.676        .11339E-06   -.19914E-05
   4  norm          .10000E-03    7.5989        .18469E-06** at limit **
   5  Prefactor     .10000E-03    66.928       -.80507E-06** at limit **
   6  Prefactor     15.145        44.832        .58640E-04    .95984E-04
   7  norm          .15914        .52547       -.10391E-05   -.30459E-02
   8  Prefactor     4.1899        4.5156       -.16599E-05   -.52281E-03
   9  Prefactor     7.2930        14.267       -.13894E-04    .13639E-03
  10  Prefactor     3.1320        64.744        .18346E-04   -.93515E-05
  11  Prefactor     22.559        67.770       -.42017E-04    .25985E-05
  12  norm          .10000E-03    1.1195       -.21325E-07** at limit **
  13  norm          1.1185        .84996       -.10208E-06   -.58023E-03
  14  norm          17.894        5.8949        .24785E-06    .14856E-03
  15  Prefactor     .10000E-03    110.96        .43278E-04** at limit **
  16  Prefactor     .10000E-03    4.4728       -.23909E-06** at limit **
  17  Prefactor     24.672        18.905       -.67462E-06    .13030E-04
  18  Prefactor     .10000E-03    51.121       -.30390E-05** at limit **
  19  norm          7.7577        4.6778        .19364E-06    .45791E-04
  20  Prefactor     .15984        2.7115       -.51690E-06    .16522E-03
  21  norm          .10000E-03    19.694       -.39678E-06** at limit **
  22  norm          6.6252        4.3497       -.15861E-06   -.71156E-04
  23  norm          6.4673        3.8045       -.80058E-07    .15369E-03
  24  Prefactor     .10000E-03    4.7098        .10183E-06** at limit **
  25  Normalizat    .93501        .19851       -.17125E-05    .21573E-03
  26  Prefactor     .89651        .86494E-01    .10660E-05   -.14061E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 48.2722
  Prefactor  = 0.0001
  Prefactor  = 15.4614
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 15.1452
  norm       = 0.159143
  Prefactor  = 4.18992
  Prefactor  = 7.29299
  Prefactor  = 3.13198
  Prefactor  = 22.5586
  norm       = 0.0001
  norm       = 1.11855
  norm       = 17.8937
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 24.6723
  Prefactor  = 0.0001
  norm       = 7.75772
  Prefactor  = 0.159844
  norm       = 0.0001
  norm       = 6.62521
  norm       = 6.46731
  Prefactor  = 0.0001
  Normalizat = 0.935013
  Prefactor  = 0.896513
 **********
 **   18 **HESSE 
 **********

 FCN=   6657.084     FROM HESSE     STATUS=OK           468 CALLS     3590 TOTAL
                     EDM=   .27E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     48.272        31.209        .57713E-04   -1.4317    
   2  Prefactor     .10000E-03    28.355        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     15.461        50.690        .10183E-03   -1.4921    
   4  norm          .10000E-03    7.5999        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    66.936        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     15.145        44.622        .10277E-03   -1.4929    
   7  norm          .15914        .53290        .93518E-03   -1.5628    
   8  Prefactor     4.1899        4.4406        .14253E-03   -1.5299    
   9  Prefactor     7.2930        13.649        .14869E-03   -1.5168    
  10  Prefactor     3.1320        61.928        .22891E-03   -1.5354    
  11  Prefactor     22.559        67.818        .83933E-04   -1.4758    
  12  norm          .10000E-03    1.1340        .84260E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          1.1185        .82388        .62260E-03   -1.5496    
  14  norm          17.894        5.8967        .94680E-04   -1.4862    
  15  Prefactor     .10000E-03    110.79        .21408E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    4.5612        .16830E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     24.672        18.902        .80652E-04   -1.4714    
  18  Prefactor     .10000E-03    51.131        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          7.7577        4.6781        .12727E-03   -1.5151    
  20  Prefactor     .15984        33.442        .25268E-02   -1.5628    
  21  norm          .10000E-03    19.696        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          6.6252        4.3498        .13302E-03   -1.5193    
  23  norm          6.4673        3.8168        .11646E-03   -1.5199    
  24  Prefactor     .10000E-03    4.7155        .17292E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    .93501        .21594        .34720E-03   -.95241    
  26  Prefactor     .89651        .94916E-01    .16359E-03   -.96263    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.68712e-09
Minuit parameter uncertainties:
  1  31.2195
  2  2.41902e-06
  3  50.8314
  4  3.13779e-06
  5  3.29458e-05
  6  44.7202
  7  0.532912
  8  4.44095
  9  13.6552
  10  27.8865
  11  68.0508
  12  4.97959e-06
  13  0.82389
  14  5.89694
  15  7.94575e-06
  16  7.65532e-06
  17  18.9064
  18  3.39352e-06
  19  4.67837
  20  4.62523
  21  1.42558e-06
  22  4.34998
  23  3.81697
  24  3.42905e-07
  25  0.216143
  26  0.094933
Done.

MINUIT Return Code (Fixed Index): 0
logL (Fixed Index) = 6657.08361697

Extracting fit parameters...

4FGL J1800.6+7828
   Spectrum: LogParabola
411         norm:  1.119e+00  8.239e-01  1.000e-04  1.000e+04 ( 1.000e-11)
412        alpha:  2.159e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
413         beta:  3.593e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
414           Eb:  6.563e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
650    Prefactor:  8.965e-01  9.493e-02  0.000e+00  1.000e+01 ( 1.000e+00)
651        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
652        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
649   Normalization:  9.350e-01  2.161e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.14
Ra Dec: 270.173 78.467
Photon Index (Fixed Index): 2.16 +/- 0.00
Photon Flux (Fixed Index): 5.26e-08 +/- 3.88e-08
Energy Flux (Fixed Index): 2.36e-05 +/- 1.74e-05

TS (Fixed Index): 3.14
Ra Dec: 270.173 78.467
Photon Flux Upper Limit: 1.39e-07 ph cm-2 s-1
Energy Flux Upper Limit: 6.22e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/455084/likelihoodResults_497232001_497491201_4FGL_J1800.6+7828_daily_bin995.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6656.66516576
delta logL = 0.418451211847

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6656.66308212
delta logL = 0.420534852135

Fit tolerance = 1e-08

Performing likelihood fit...
 **********
 **   14 **SET NOWARN 
 **********

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .83985       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.8288       1.0000          .0000       5.0000    
     3 'Normalizat'    .89884       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .90492       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6530E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6656.663     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      242 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .83928        8.1676        .10156E-01    .68037E-03
   2  alpha         2.8295        3.9144        .37572        .46960E-04
   3  Normalizat    .89878        .68287E-01    .79815E-01    .67786E-04
   4  Prefactor     .90495        .29515E-01    .45068E-01    .12619E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.83928
  alpha      = 2.82953
  Normalizat = 0.898778
  Prefactor  = 0.904948
 **********
 **   18 **HESSE 
 **********

 FCN=   6656.663     FROM HESSE     STATUS=OK            33 CALLS      275 TOTAL
                     EDM=   .10E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .83928        .90996        .46202E-03   -1.5525    
   2  alpha         2.8295        .90545        .13924E-01    .13220    
   3  Normalizat    .89878        .20588        .35331E-03   -.96503    
   4  Prefactor     .90495        .93311E-01    .16290E-03   -.95968    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.0328e-11
Minuit parameter uncertainties:
  1  0.909975
  2  0.926911
  3  0.206059
  4  0.0933275
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/455084': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6656.66308164
delta logL = 0.420535325091

Extracting fit parameters...

4FGL J1800.6+7828
   Spectrum: LogParabola
411         norm:  8.393e-01  9.100e-01  1.000e-04  1.000e+04 ( 1.000e-11)
412        alpha:  2.830e+00  9.269e-01  0.000e+00  5.000e+00 ( 1.000e+00)
413         beta:  3.593e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
414           Eb:  6.563e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
650    Prefactor:  9.049e-01  9.333e-02  0.000e+00  1.000e+01 ( 1.000e+00)
651        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
652        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
649   Normalization:  8.988e-01  2.061e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.06
Ra Dec: 270.173 78.467
Photon Index (Free Index): 2.83 +/- 0.93
Photon Flux (Free Index): 8.75e-08 +/- 6.30e-08
Energy Flux (Free Index): 1.95e-05 +/- 1.30e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/455084/cmap_HighResolution_497232001_497491201_4FGL_J1800.6+7828_daily_bin995.png

Cleaning up...

** Nuclear option initiated! **
rmdir /scratch/kocevski/455084

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.22e-05', comment='SUCCESS', photon_flux='5.26e-08', energy_flux2='1.95e-05', photon_flux_error='3.88e-08', dlogl='4.21e-01', energy_flux='2.36e-05', photon_flux2='8.75e-08', job_status='DONE', time_completed='2021-09-19 08:10:18.422057', photon_index_error2='0.93', photon_index2='2.83', ts='3.14', fit_tolerance='1e-08', GAL='0.90', photon_index_error='0.00', photon_flux_upper_limit='1.39e-07', energy_flux_error2='1.30e-05', EG='0.94', time_epoch_completed='1632064218.42', return_code='0', job_id='455084', GAL2='0.90', EG2='0.90', return_code2='0', energy_flux_error='1.74e-05', photon_flux_error2='6.30e-08', ts2='4.06', photon_index='2.16' WHERE bin_id='995' AND source_name='4FGL J1800.6+7828' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 19 08:10:18 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0230>
Subject: Job 455084: <4FGL_J1800.6+7828_daily_bin995> in cluster <slac> Done

Job <4FGL_J1800.6+7828_daily_bin995> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Sun Sep 19 07:55:19 2021
Job was executed on host(s) <bullet0230>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep 19 07:55:21 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Sep 19 07:55:21 2021
Terminated at Sun Sep 19 08:10:19 2021
Results reported at Sun Sep 19 08:10:19 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1800.6+7828_daily_bin995 270.173 78.4674 497232001 497491201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1800.6+7828 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   875.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             341.39 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   897 sec.
    Turnaround time :                            900 sec.

The output (if any) is above this job summary.

