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


Performing analysis on: 4FGL_J2053.8+2922_daily_bin9
RA = 313.454, Dec = 29.3693
tmin = 241660801, tmax = 241920001
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='180870', job_status='RUN', time_executed='2021-09-25 19:52:05.745931', time_epoch_executed='1632624725.75' WHERE source_name='4FGL J2053.8+2922' and cadence='daily' and bin_id='9'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/180870

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/180870/ft1_4FGL_J2053.8+2922_daily_bin9.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/180870/ft2_4FGL_J2053.8+2922_daily_bin9.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/180870/ft1_4FGL_J2053.8+2922_daily_bin9.fits outfile=/scratch/kocevski/180870/ft1_filteredMKT_4FGL_J2053.8+2922_daily_bin9.fits ra=313.454 dec=29.3693 rad=12.0 tmin=241660801.0 tmax=241920001.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.54
user 1.32
sys 0.17

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/180870/ft2_4FGL_J2053.8+2922_daily_bin9.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/180870/ft2_4FGL_J2053.8+2922_daily_bin9.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/180870/ft1_filteredMKT_4FGL_J2053.8+2922_daily_bin9.fits evtable="EVENTS" outfile="/scratch/kocevski/180870/ft1_filtered_4FGL_J2053.8+2922_daily_bin9.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.34
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/180870/ft1_filtered_4FGL_J2053.8+2922_daily_bin9.fits" evtable="EVENTS" scfile=/scratch/kocevski/180870/ft2_4FGL_J2053.8+2922_daily_bin9.fits sctable="SC_DATA" outfile=/scratch/kocevski/180870/ltcube_241660801_241920001_4FGL_J2053.8+2922_daily_bin9.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/180870/ft2_4FGL_J2053.8+2922_daily_bin9.fits
.....................!
real 14.80
user 14.41
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/180870/ft1_filtered_4FGL_J2053.8+2922_daily_bin9.fits evtable="EVENTS" scfile=/scratch/kocevski/180870/ft2_4FGL_J2053.8+2922_daily_bin9.fits sctable="SC_DATA" expcube=/scratch/kocevski/180870/ltcube_241660801_241920001_4FGL_J2053.8+2922_daily_bin9.fits outfile=/scratch/kocevski/180870/expmap_241660801_241920001_4FGL_J2053.8+2922_daily_bin9.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/180870/ltcube_241660801_241920001_4FGL_J2053.8+2922_daily_bin9.fits
.....................!
real 191.62
user 186.45
sys 4.64

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
Extended source Cygnus Loop in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_archive_v18/Templates/CygnusLoop.fits is the correct path to the extended template.
Extended source gamma Cygni in ROI with RadialDisk spatial model.
Extended source Cygnus Cocoon in ROI with RadialGaussian spatial model.
Extended source HB 21 in ROI with RadialDisk spatial model.
Added 209 point sources and 4 extended sources
If using unbinned likelihood you will need to rerun gtdiffrsp for the extended sources or rerun the makeModel function with optional argument psForce=True

Setting source of interest to:
4FGL J2053.8+2922 @ 313.454 29.3693

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/180870/ft1_filtered_4FGL_J2053.8+2922_daily_bin9.fits scfile=/scratch/kocevski/180870/ft2_4FGL_J2053.8+2922_daily_bin9.fits outfile=/scratch/kocevski/180870/cmap_241660801_241920001_4FGL_J2053.8+2922_daily_bin9.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=313.454 yref=29.3693 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.56
user 0.41
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/180870/ft1_filtered_4FGL_J2053.8+2922_daily_bin9.fits scfile=/scratch/kocevski/180870/ft2_4FGL_J2053.8+2922_daily_bin9.fits outfile=/scratch/kocevski/180870/cmap_HighResolution_241660801_241920001_4FGL_J2053.8+2922_daily_bin9.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=313.454 yref=29.3693 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.55
user 0.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/180870/ft1_filtered_4FGL_J2053.8+2922_daily_bin9.fits evtable="EVENTS" scfile=/scratch/kocevski/180870/ft2_4FGL_J2053.8+2922_daily_bin9.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/180870/Model_4FGL_J2053.8+2922_daily_bin9.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 Cygnus Cocoon
adding source Cygnus Loop
adding source EG_v02
adding source GAL_V02
adding source HB 21
adding source gamma Cygni
Working on...
/scratch/kocevski/180870/ft1_filtered_4FGL_J2053.8+2922_daily_bin9.fits.....................!
real 830.35
user 826.49
sys 1.72

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/180870/ft1_filtered_4FGL_J2053.8+2922_daily_bin9.fits', '/scratch/kocevski/180870/ft2_4FGL_J2053.8+2922_daily_bin9.fits', expMap='/scratch/kocevski/180870/expmap_241660801_241920001_4FGL_J2053.8+2922_daily_bin9.fits', expCube='/scratch/kocevski/180870/ltcube_241660801_241920001_4FGL_J2053.8+2922_daily_bin9.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/180870/Model_4FGL_J2053.8+2922_daily_bin9.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2053.8+2922'

4FGL J2053.8+2922
   Spectrum: LogParabola
453         norm:  5.603e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-14)
454        alpha:  1.451e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
455         beta:  2.140e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
456           Eb:  4.763e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/180870/ft1_filtered_4FGL_J2053.8+2922_daily_bin9.fits
Spacecraft file(s): /scratch/kocevski/180870/ft2_4FGL_J2053.8+2922_daily_bin9.fits
Exposure map: /scratch/kocevski/180870/expmap_241660801_241920001_4FGL_J2053.8+2922_daily_bin9.fits
Exposure cube: /scratch/kocevski/180870/ltcube_241660801_241920001_4FGL_J2053.8+2922_daily_bin9.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/180870/Model_4FGL_J2053.8+2922_daily_bin9.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) = 36526.0892849

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10356E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    14.134       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .62770E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    8.8923       1.0000         .10000E-03   10000.    
     5 'norm      '    2.8020       1.0000         .10000E-03   10000.    
     6 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    132.51       1.0000         .10000E-03   10000.    
    11 'Prefactor '    14.044       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10104E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .18290E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .35726       1.0000         .10000E-03   10000.    
    16 'norm      '    6.6366       1.0000         .10000E-03   10000.    
    17 'Prefactor '    1.6222       1.0000         .10000E-03   10000.    
    18 'Normalizat'    1.3473       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .98320       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7660E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   36526.09     FROM MIGRAD    STATUS=CONVERGED    402 CALLS     1908 TOTAL
                     EDM=   .19E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    21.736        .29639E-07** at limit **
   2  norm          14.135        5.7444        .22970E-06   -.49511E-05
   3  Prefactor     .10000E-03    10.374       -.38202E-06** at limit **
   4  norm          8.8764        3.3957        .40216E-06   -.24312E-03
   5  norm          2.8020        3.0067        .92603E-06    .11109E-03
   6  norm          .10000E-03    1.4110       -.74229E-08** at limit **
   7  Prefactor     .10000E-03    .90196       -.17735E-07** at limit **
   8  norm          .10000E-03    9.4804        .10928E-06** at limit **
   9  Prefactor     .10000E-03    8.0417       -.14868E-06** at limit **
  10  Prefactor     132.57        72.547       -.53241E-05   -.55934E-04
  11  Prefactor     14.044        27.007        .55189E-07   -.12792E-04
  12  Prefactor     .10000E-03    6.8622       -.37744E-06** at limit **
  13  Prefactor     .10001E-03    1.2864       -.33360E-06** at limit **
  14  norm          .10000E-03    1.3082       -.27035E-07** at limit **
  15  norm          .35763        .80725        .35689E-06   -.26785E-03
  16  norm          6.6368        6.5832       -.13482E-07   -.57938E-05
  17  Prefactor     1.6228        5.4416        .78055E-06    .15832E-04
  18  Normalizat    1.3474        .21249        .85898E-06   -.74858E-04
  19  Prefactor     .98315        .28510E-01   -.24252E-06   -.25201E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 14.1353
  Prefactor  = 0.000100003
  norm       = 8.87638
  norm       = 2.80202
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 132.569
  Prefactor  = 14.044
  Prefactor  = 0.0001
  Prefactor  = 0.000100011
  norm       = 0.0001
  norm       = 0.357631
  norm       = 6.63677
  Prefactor  = 1.62283
  Normalizat = 1.34739
  Prefactor  = 0.98315
 **********
 **   18 **HESSE 
 **********

 FCN=   36526.09     FROM HESSE     STATUS=OK           282 CALLS     2190 TOTAL
                     EDM=   .17E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    21.802        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          14.135        5.7459        .53270E-03   -1.4956    
   3  Prefactor     .10000E-03    10.175        .16857       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          8.8764        3.5288        .67206E-03   -1.5112    
   5  norm          2.8020        2.9898        .12152E-02   -1.5373    
   6  norm          .10000E-03    1.4115        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    .90499        .17724E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    9.4817        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    8.0591        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     132.57        72.485        .17491E-03   -1.3400    
  11  Prefactor     14.044        26.899        .10688E-03   -1.4958    
  12  Prefactor     .10000E-03    6.8651        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10001E-03    6.9148        .39674E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    1.3139        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .35763        .90890        .24559E-02   -1.5588    
  16  norm          6.6368        6.5861        .15577E-03   -1.5193    
  17  Prefactor     1.6228        5.4372        .33224E-03   -1.5453    
  18  Normalizat    1.3474        .20998        .82971E-03   -.82163    
  19  Prefactor     .98315        .29136E-01    .13054E-03   -.93293    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.68598e-07
Minuit parameter uncertainties:
  1  9.48942e-06
  2  5.74613
  3  0.000357798
  4  3.52892
  5  2.98991
  6  1.77219e-07
  7  1.55954e-07
  8  1.83427e-06
  9  1.21443e-05
  10  72.5335
  11  26.922
  12  2.48457e-06
  13  0.000561617
  14  1.04688e-06
  15  0.908932
  16  6.5868
  17  5.43885
  18  0.210112
  19  0.0291368
Done.

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

Extracting fit parameters...

4FGL J2053.8+2922
   Spectrum: LogParabola
453         norm:  1.000e-04  1.834e-06  1.000e-04  1.000e+04 ( 1.000e-14)
454        alpha:  1.451e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
455         beta:  2.140e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
456           Eb:  4.763e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
755    Prefactor:  9.832e-01  2.914e-02  0.000e+00  1.000e+01 ( 1.000e+00)
756        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
757        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
754   Normalization:  1.347e+00  2.101e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 313.454 29.369
Photon Flux Upper Limit: 1.21e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.88e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/180870/likelihoodResults_241660801_241920001_4FGL_J2053.8+2922_daily_bin9.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) = 36526.0877395
delta logL = -0.000501400107169

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 36526.0872381
delta logL = 5.45696821064e-10

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   36526.09     FROM MIGRAD    STATUS=CONVERGED     86 CALLS      241 TOTAL
                     EDM=   .50E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10004E-03    1688.2        .18142E-02** at limit **
   2  alpha         1.4214        4.2633        .18831        .37478E-06
   3  Normalizat    1.3474        .12670        .82972E-03   -.32884E-06
   4  Prefactor     .98315        .17605E-01    .13054E-03    .97541E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100042
  alpha      = 1.42143
  Normalizat = 1.34739
  Prefactor  = 0.98315
 **********
 **   18 **HESSE 
 **********

 FCN=   36526.09     FROM HESSE     STATUS=OK            23 CALLS      264 TOTAL
                     EDM=   .88E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10004E-03    9.5203        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.4214        3.4996        .75326E-02   -.44608    
   3  Normalizat    1.3474        .19696        .33189E-04   -.82163    
   4  Prefactor     .98315        .27377E-01    .52216E-05   -.93293    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.84133e-09
Minuit parameter uncertainties:
  1  0.00125819
  2  423.27
  3  0.197075
  4  0.0273773
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/180870': 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) = 36526.0872381
delta logL = 5.18775777891e-09

Extracting fit parameters...

4FGL J2053.8+2922
   Spectrum: LogParabola
453         norm:  1.000e-04  1.258e-03  1.000e-04  1.000e+04 ( 1.000e-14)
454        alpha:  1.421e+00  4.233e+02  0.000e+00  5.000e+00 ( 1.000e+00)
455         beta:  2.140e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
456           Eb:  4.763e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
755    Prefactor:  9.832e-01  2.738e-02  0.000e+00  1.000e+01 ( 1.000e+00)
756        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
757        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
754   Normalization:  1.347e+00  1.971e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 313.454 29.369

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/180870/cmap_HighResolution_241660801_241920001_4FGL_J2053.8+2922_daily_bin9.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.88e-05', job_status='DONE', photon_flux_upper_limit='1.21e-08', time_completed='2021-09-25 20:44:32.260239', job_id='180870', GAL2='0.98', fit_tolerance='1e-08', EG2='1.35', EG='1.35', time_epoch_completed='1632627872.26', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.98', dlogl='5.19e-09', ts2='-0.00', photon_index_error='0.00', photon_index='1.45' WHERE bin_id='9' AND source_name='4FGL J2053.8+2922' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 25 20:44:32 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0285>
Subject: Job 180870: <4FGL_J2053.8+2922_daily_bin9> in cluster <slac> Done

Job <4FGL_J2053.8+2922_daily_bin9> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sat Sep 25 19:45:50 2021
Job was executed on host(s) <bullet0285>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep 25 19:51:46 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Sep 25 19:51:46 2021
Terminated at Sat Sep 25 20:44:32 2021
Results reported at Sat Sep 25 20:44:32 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2053.8+2922_daily_bin9 313.454 29.3693 241660801 241920001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2053.8+2922 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   3140.22 sec.
    Max Memory :                                 630 MB
    Average Memory :                             426.40 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   2937 MB
    Max Processes :                              6
    Max Threads :                                21
    Run time :                                   3166 sec.
    Turnaround time :                            3522 sec.

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

