/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 78 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 = 7424
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1800.6+7828_daily_bin1
RA = 270.173, Dec = 78.4674
tmin = 239587201, tmax = 239846401
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='439083', job_status='RUN', time_executed='2021-09-19 06:51:48.390876', time_epoch_executed='1632059508.39' WHERE source_name='4FGL J1800.6+7828' and cadence='daily' and bin_id='1'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/439083

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

Retrieving the FT1 file...

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

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

Retrieving 41 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/439083/ft1_4FGL_J1800.6+7828_daily_bin1.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/439083/ft2_4FGL_J1800.6+7828_daily_bin1.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/439083/ft1_4FGL_J1800.6+7828_daily_bin1.fits outfile=/scratch/kocevski/439083/ft1_filteredMKT_4FGL_J1800.6+7828_daily_bin1.fits ra=270.173 dec=78.4674 rad=12.0 tmin=239587201.0 tmax=239846401.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 1.31
user 1.14
sys 0.16

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/439083/ft2_4FGL_J1800.6+7828_daily_bin1.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/439083/ft1_filteredMKT_4FGL_J1800.6+7828_daily_bin1.fits evtable="EVENTS" outfile="/scratch/kocevski/439083/ft1_filtered_4FGL_J1800.6+7828_daily_bin1.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.48
user 0.33
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/439083/ft1_filtered_4FGL_J1800.6+7828_daily_bin1.fits" evtable="EVENTS" scfile=/scratch/kocevski/439083/ft2_4FGL_J1800.6+7828_daily_bin1.fits sctable="SC_DATA" outfile=/scratch/kocevski/439083/ltcube_239587201_239846401_4FGL_J1800.6+7828_daily_bin1.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/439083/ft2_4FGL_J1800.6+7828_daily_bin1.fits
.....................!
real 13.52
user 13.17
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/439083/ft1_filtered_4FGL_J1800.6+7828_daily_bin1.fits evtable="EVENTS" scfile=/scratch/kocevski/439083/ft2_4FGL_J1800.6+7828_daily_bin1.fits sctable="SC_DATA" expcube=/scratch/kocevski/439083/ltcube_239587201_239846401_4FGL_J1800.6+7828_daily_bin1.fits outfile=/scratch/kocevski/439083/expmap_239587201_239846401_4FGL_J1800.6+7828_daily_bin1.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/439083/ltcube_239587201_239846401_4FGL_J1800.6+7828_daily_bin1.fits
.....................!
real 189.92
user 185.21
sys 4.34

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/439083/ft1_filtered_4FGL_J1800.6+7828_daily_bin1.fits scfile=/scratch/kocevski/439083/ft2_4FGL_J1800.6+7828_daily_bin1.fits outfile=/scratch/kocevski/439083/cmap_239587201_239846401_4FGL_J1800.6+7828_daily_bin1.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.54
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/439083/ft1_filtered_4FGL_J1800.6+7828_daily_bin1.fits scfile=/scratch/kocevski/439083/ft2_4FGL_J1800.6+7828_daily_bin1.fits outfile=/scratch/kocevski/439083/cmap_HighResolution_239587201_239846401_4FGL_J1800.6+7828_daily_bin1.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.39
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/439083/ft1_filtered_4FGL_J1800.6+7828_daily_bin1.fits evtable="EVENTS" scfile=/scratch/kocevski/439083/ft2_4FGL_J1800.6+7828_daily_bin1.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/439083/Model_4FGL_J1800.6+7828_daily_bin1.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/439083/ft1_filtered_4FGL_J1800.6+7828_daily_bin1.fits.....................!
real 115.45
user 113.96
sys 1.21

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/439083/ft1_filtered_4FGL_J1800.6+7828_daily_bin1.fits', '/scratch/kocevski/439083/ft2_4FGL_J1800.6+7828_daily_bin1.fits', expMap='/scratch/kocevski/439083/expmap_239587201_239846401_4FGL_J1800.6+7828_daily_bin1.fits', expCube='/scratch/kocevski/439083/ltcube_239587201_239846401_4FGL_J1800.6+7828_daily_bin1.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/439083/Model_4FGL_J1800.6+7828_daily_bin1.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/439083/ft1_filtered_4FGL_J1800.6+7828_daily_bin1.fits
Spacecraft file(s): /scratch/kocevski/439083/ft2_4FGL_J1800.6+7828_daily_bin1.fits
Exposure map: /scratch/kocevski/439083/expmap_239587201_239846401_4FGL_J1800.6+7828_daily_bin1.fits
Exposure cube: /scratch/kocevski/439083/ltcube_239587201_239846401_4FGL_J1800.6+7828_daily_bin1.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/439083/Model_4FGL_J1800.6+7828_daily_bin1.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) = 9251.00317994

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    20.485       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10144E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10098E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10026E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    111.19       1.0000         .10000E-03   10000.    
    12 'norm      '    .15299E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .53971       1.0000         .10000E-03   10000.    
    14 'norm      '    3.5282       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .19183E-01   1.0000         .10000E-03   10000.    
    18 'Prefactor '    99.355       1.0000         .10000E-03   10000.    
    19 'norm      '    36.337       1.0000         .10000E-03   10000.    
    20 'Prefactor '    4.3279       1.0000         .10000E-03   10000.    
    21 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    1.1444       1.0000         .10000E-03   10000.    
    23 'norm      '    2.4415       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10078E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    .99041       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .86484       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=   9250.843     FROM MIGRAD    STATUS=CONVERGED    625 CALLS     2710 TOTAL
                     EDM=   .32E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     20.485        14.586        .27379E-07    .43953E-06
   2  Prefactor     .10000E-03    32.305       -.27238E-06** at limit **
   3  Prefactor     .10000E-03    38.805        .14036E-05** at limit **
   4  norm          .10000E-03    7.7355        .35986E-07** at limit **
   5  Prefactor     .10000E-03    48.823       -.16799E-05** at limit **
   6  Prefactor     .10000E-03    8.9802       -.96647E-06** at limit **
   7  norm          .10000E-03    .19742       -.13203E-08** at limit **
   8  Prefactor     .10000E-03    .96341       -.29580E-07** at limit **
   9  Prefactor     .10000E-03    5.5500        .39929E-08** at limit **
  10  Prefactor     .10000E-03    9.7168        .81215E-06** at limit **
  11  Prefactor     111.20        49.344       -.54024E-06    .13457E-04
  12  norm          .10002E-03    1.5180       -.98804E-06** at limit **
  13  norm          .53963        .47033       -.13046E-10   -.56885E-04
  14  norm          3.5255        3.2076        .64385E-08    .31694E-03
  15  Prefactor     .10000E-03    101.13        .37884E-05** at limit **
  16  Prefactor     .10000E-03    3.4220        .31149E-08** at limit **
  17  Prefactor     .10000E-03    86.975       -.22691E-05** at limit **
  18  Prefactor     99.369        77.955       -.14931E-05    .20090E-04
  19  norm          36.326        7.4280        .15098E-06    .46861E-03
  20  Prefactor     4.3257        4.4771        .15718E-05    .62263E-03
  21  norm          .10000E-03    13.652       -.15128E-06** at limit **
  22  norm          1.1476        2.2580       -.71965E-07   -.27559E-03
  23  norm          2.4419        2.6337       -.97061E-07    .41270E-04
  24  Prefactor     .10000E-03    6.8640       -.37470E-06** at limit **
  25  Normalizat    .99039        .15930        .20504E-07    .15722E-03
  26  Prefactor     .86479        .72874E-01   -.13383E-06    .21997E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 20.4847
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 111.203
  norm       = 0.000100019
  norm       = 0.539633
  norm       = 3.52549
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 99.369
  norm       = 36.3259
  Prefactor  = 4.32573
  norm       = 0.0001
  norm       = 1.14758
  norm       = 2.44195
  Prefactor  = 0.0001
  Normalizat = 0.990386
  Prefactor  = 0.864794
 **********
 **   18 **HESSE 
 **********

 FCN=   9250.843     FROM HESSE     STATUS=OK           452 CALLS     3162 TOTAL
                     EDM=   .92E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     20.485        14.588        .88495E-04   -1.4802    
   2  Prefactor     .10000E-03    32.339        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    38.812        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    7.7433        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    48.819        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    8.9778        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    .19749        .18142E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    .97333        .92143E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    5.5817        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    9.7201        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     111.20        49.359        .19073E-03   -1.3595    
  12  norm          .10002E-03    7.1755        .18792E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .53963        .49116        .59266E-03   -1.5561    
  14  norm          3.5255        3.1588        .15659E-03   -1.5332    
  15  Prefactor     .10000E-03    101.04        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    3.4560        .17360E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    90.189        .36474E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     99.369        77.928        .20165E-03   -1.3711    
  19  norm          36.326        7.4220        .66484E-04   -1.4502    
  20  Prefactor     4.3257        4.5628        .96816E-03   -1.5292    
  21  norm          .10000E-03    13.654        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          1.1476        1.8924        .19697E-02   -1.5494    
  23  norm          2.4419        2.6349        .15510E-03   -1.5395    
  24  Prefactor     .10000E-03    6.8979        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    .99039        .17481        .33189E-03   -.93353    
  26  Prefactor     .86479        .80518E-01    .16254E-03   -.97382    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.23167e-09
Minuit parameter uncertainties:
  1  14.5904
  2  2.90379e-06
  3  5.01923e-05
  4  2.56518e-06
  5  4.86171e-05
  6  1.23368e-05
  7  4.45886e-09
  8  9.09599e-07
  9  5.21922e-07
  10  1.4881e-05
  11  49.3777
  12  0.000745359
  13  0.491159
  14  3.15897
  15  0.000178295
  16  7.51814e-07
  17  7.47488e-05
  18  78.0089
  19  7.42216
  20  4.5632
  21  1.60155e-06
  22  1.89249
  23  2.63499
  24  6.19344e-06
  25  0.174909
  26  0.0805288
Done.

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

Extracting fit parameters...

4FGL J1800.6+7828
   Spectrum: LogParabola
411         norm:  5.396e-01  4.912e-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.648e-01  8.053e-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.904e-01  1.749e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.08
Ra Dec: 270.173 78.467
Photon Index (Fixed Index): 2.16 +/- 0.00
Photon Flux (Fixed Index): 2.54e-08 +/- 2.31e-08
Energy Flux (Fixed Index): 1.14e-05 +/- 1.03e-05

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) = 9250.30862166
delta logL = 0.534761875922

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9250.29769296
delta logL = 0.5456905795

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .31407       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.4279       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0069       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .86233       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=   9250.298     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      215 TOTAL
                     EDM=   .10E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .31405        .28124        .10487E-01   -.74224E-03
   2  alpha         1.4274        .37781        .43744       -.52123E-04
   3  Normalizat    1.0070        .15498        .74437E-01    .24112E-04
   4  Prefactor     .86227        .71741E-01    .44523E-01   -.74327E-06
                               ERR DEF=  .500    
Final values: 
  norm       = 0.314052
  alpha      = 1.42742
  Normalizat = 1.00699
  Prefactor  = 0.862268
 **********
 **   18 **HESSE 
 **********

 FCN=   9250.298     FROM HESSE     STATUS=OK            35 CALLS      250 TOTAL
                     EDM=   .41E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .31405        .45160        .46523E-03   -1.5596    
   2  alpha         1.4274        .67016        .15601E-01   -.44342    
   3  Normalizat    1.0070        .17114        .32937E-03   -.92796    
   4  Prefactor     .86227        .79301E-01    .16275E-03   -.97472    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.08179e-09
Minuit parameter uncertainties:
  1  0.451609
  2  0.680409
  3  0.171229
  4  0.0793111
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/439083': 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) = 9250.29769206
delta logL = 0.54569147224

Extracting fit parameters...

4FGL J1800.6+7828
   Spectrum: LogParabola
411         norm:  3.141e-01  4.516e-01  1.000e-04  1.000e+04 ( 1.000e-11)
412        alpha:  1.427e+00  6.804e-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:  8.623e-01  7.931e-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:  1.007e+00  1.712e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.16
Ra Dec: 270.173 78.467
Photon Index (Free Index): 1.43 +/- 0.68
Photon Flux (Free Index): 9.36e-09 +/- 1.37e-08
Energy Flux (Free Index): 2.61e-05 +/- 3.68e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/439083/cmap_HighResolution_239587201_239846401_4FGL_J1800.6+7828_daily_bin1.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.54e-08', energy_flux2='2.61e-05', photon_flux_error='2.31e-08', dlogl='5.46e-01', energy_flux='1.14e-05', photon_flux2='9.36e-09', job_status='DONE', time_completed='2021-09-19 07:06:19.437020', photon_index_error2='0.68', photon_index2='1.43', ts='5.08', fit_tolerance='1e-08', GAL='0.86', photon_index_error='0.00', energy_flux_error2='3.68e-05', EG='0.99', time_epoch_completed='1632060379.44', return_code='0', job_id='439083', GAL2='0.86', EG2='1.01', return_code2='0', energy_flux_error='1.03e-05', photon_flux_error2='1.37e-08', ts2='6.16', photon_index='2.16' WHERE bin_id='1' AND source_name='4FGL J1800.6+7828' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 19 07:06:19 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0101>
Subject: Job 439083: <4FGL_J1800.6+7828_daily_bin1> in cluster <slac> Done

Job <4FGL_J1800.6+7828_daily_bin1> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Sun Sep 19 06:50:20 2021
Job was executed on host(s) <bullet0101>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep 19 06:50:22 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Sep 19 06:50:22 2021
Terminated at Sun Sep 19 07:06:20 2021
Results reported at Sun Sep 19 07:06:20 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1800.6+7828_daily_bin1 270.173 78.4674 239587201 239846401 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 :                                   870.00 sec.
    Max Memory :                                 1031 MB
    Average Memory :                             339.50 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   957 sec.
    Turnaround time :                            960 sec.

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

