aklog: Couldn't determine realm of user:aklog: No credentials cache found  while getting realm
/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 185 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 = 7542
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J2056.5-0202_daily_bin1703
RA = 314.142, Dec = -2.0355
tmin = 680745601, tmax = 681004801
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='324021', job_status='RUN', time_executed='2022-08-01 01:23:27.669046', time_epoch_executed='1659342207.67' WHERE source_name='4FGL J2056.5-0202' and cadence='daily' and bin_id='1703'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/324021

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/324021/ft1_4FGL_J2056.5-0202_daily_bin1703.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/324021/ft2_4FGL_J2056.5-0202_daily_bin1703.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/324021/ft1_4FGL_J2056.5-0202_daily_bin1703.fits outfile=/scratch/kocevski/324021/ft1_filteredMKT_4FGL_J2056.5-0202_daily_bin1703.fits ra=314.142 dec=-2.0355 rad=12.0 tmin=680745601.0 tmax=681004801.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 2.78
sys 0.19

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/324021/ft2_4FGL_J2056.5-0202_daily_bin1703.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/324021/ft2_4FGL_J2056.5-0202_daily_bin1703.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/324021/ft1_filteredMKT_4FGL_J2056.5-0202_daily_bin1703.fits evtable="EVENTS" outfile="/scratch/kocevski/324021/ft1_filtered_4FGL_J2056.5-0202_daily_bin1703.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.51
user 0.33
sys 0.17

Number of photons that the gtmktime cut: 49

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/324021/ft1_filtered_4FGL_J2056.5-0202_daily_bin1703.fits" evtable="EVENTS" scfile=/scratch/kocevski/324021/ft2_4FGL_J2056.5-0202_daily_bin1703.fits sctable="SC_DATA" outfile=/scratch/kocevski/324021/ltcube_680745601_681004801_4FGL_J2056.5-0202_daily_bin1703.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/324021/ft2_4FGL_J2056.5-0202_daily_bin1703.fits
.....................!
real 15.62
user 15.20
sys 0.37

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/324021/ft1_filtered_4FGL_J2056.5-0202_daily_bin1703.fits evtable="EVENTS" scfile=/scratch/kocevski/324021/ft2_4FGL_J2056.5-0202_daily_bin1703.fits sctable="SC_DATA" expcube=/scratch/kocevski/324021/ltcube_680745601_681004801_4FGL_J2056.5-0202_daily_bin1703.fits outfile=/scratch/kocevski/324021/expmap_680745601_681004801_4FGL_J2056.5-0202_daily_bin1703.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/324021/ltcube_680745601_681004801_4FGL_J2056.5-0202_daily_bin1703.fits
.....................!
real 193.93
user 188.50
sys 5.06

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 180 point sources and 0 extended sources

Setting source of interest to:
4FGL J2056.5-0202 @ 314.142 -2.0355

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/324021/ft1_filtered_4FGL_J2056.5-0202_daily_bin1703.fits scfile=/scratch/kocevski/324021/ft2_4FGL_J2056.5-0202_daily_bin1703.fits outfile=/scratch/kocevski/324021/cmap_680745601_681004801_4FGL_J2056.5-0202_daily_bin1703.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=314.142 yref=-2.0355 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

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/324021/ft1_filtered_4FGL_J2056.5-0202_daily_bin1703.fits scfile=/scratch/kocevski/324021/ft2_4FGL_J2056.5-0202_daily_bin1703.fits outfile=/scratch/kocevski/324021/cmap_HighResolution_680745601_681004801_4FGL_J2056.5-0202_daily_bin1703.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=314.142 yref=-2.0355 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.57
user 0.38
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/324021/ft1_filtered_4FGL_J2056.5-0202_daily_bin1703.fits evtable="EVENTS" scfile=/scratch/kocevski/324021/ft2_4FGL_J2056.5-0202_daily_bin1703.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/324021/Model_4FGL_J2056.5-0202_daily_bin1703.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/324021/ft1_filtered_4FGL_J2056.5-0202_daily_bin1703.fits.........................!
real 19.68
user 18.43
sys 1.21

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/324021/ft1_filtered_4FGL_J2056.5-0202_daily_bin1703.fits', '/scratch/kocevski/324021/ft2_4FGL_J2056.5-0202_daily_bin1703.fits', expMap='/scratch/kocevski/324021/expmap_680745601_681004801_4FGL_J2056.5-0202_daily_bin1703.fits', expCube='/scratch/kocevski/324021/ltcube_680745601_681004801_4FGL_J2056.5-0202_daily_bin1703.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/324021/Model_4FGL_J2056.5-0202_daily_bin1703.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2056.5-0202'

4FGL J2056.5-0202
   Spectrum: PowerLaw
326    Prefactor:  1.312e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
327        Index:  2.517e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
328        Scale:  7.173e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/324021/ft1_filtered_4FGL_J2056.5-0202_daily_bin1703.fits
Spacecraft file(s): /scratch/kocevski/324021/ft2_4FGL_J2056.5-0202_daily_bin1703.fits
Exposure map: /scratch/kocevski/324021/expmap_680745601_681004801_4FGL_J2056.5-0202_daily_bin1703.fits
Exposure cube: /scratch/kocevski/324021/ltcube_680745601_681004801_4FGL_J2056.5-0202_daily_bin1703.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/324021/Model_4FGL_J2056.5-0202_daily_bin1703.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 647.74627988

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 646.789653494

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .63887       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .56544E-02   1.0000         .10000E-03   10000.    
     3 'norm      '    4.1836       1.0000         .10000E-03   10000.    
     4 'Prefactor '    2.0503       1.0000         .10000E-03   10000.    
     5 'norm      '    2.2625       1.0000         .10000E-03   10000.    
     6 'Prefactor '    37.737       1.0000         .10000E-03   10000.    
     7 'Prefactor '    3.2848       1.0000         .10000E-03   10000.    
     8 'Prefactor '    242.11       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .70630E-02   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .34122E-01   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .82591       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .92370E-01   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .59189E-01   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .14343       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10446E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    3.5910       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .18568E-02   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .85861       1.0000         .10000E-03   10000.    
    19 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
    20 'Prefactor '    .95106       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5890E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   646.7799     FROM MIGRAD    STATUS=CONVERGED    151 CALLS      348 TOTAL
                     EDM=   .10E-12  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    117.35       -.82991E-06** at limit **
   2  Prefactor     .10000E-03    20.227        .30496E-07** at limit **
   3  norm          4.1836        1.0073         .0000         .0000    
   4  Prefactor     2.0503        1.0333         .0000         .0000    
   5  norm          2.2625        1.0268         .0000         .0000    
   6  Prefactor     36.801        112.35       -.34090E-05   -.64071E-06
   7  Prefactor     3.2848        1.0121         .0000         .0000    
   8  Prefactor     251.69        408.01       -.10476E-04   -.17085E-05
   9  Prefactor     .10000E-03    55.593        .19532E-05** at limit **
  10  Prefactor     .10000E-03    31.420        .20235E-06** at limit **
  11  Prefactor     .10000E-03    241.55        .42995E-05** at limit **
  12  Prefactor     .10000E-03    277.09        .20657E-05** at limit **
  13  Prefactor     .10000E-03    65.513       -.26066E-05** at limit **
  14  Prefactor     .10000E-03    195.48        .79924E-06** at limit **
  15  Prefactor     .10000E-03    37.876       -.34500E-07** at limit **
  16  Prefactor     3.5835        11.539       -.38601E-07   -.58280E-06
  17  Prefactor     .10000E-03    154.40       -.94641E-06** at limit **
  18  Prefactor     .10000E-03    125.82        .19398E-05** at limit **
  19  Normalizat    .10000E-01    .27330       -.39263E-06** at limit **
  20  Prefactor     .95032        .16292        .33873E-06   -.13599E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 4.18361
  Prefactor  = 2.05029
  norm       = 2.26251
  Prefactor  = 36.801
  Prefactor  = 3.28483
  Prefactor  = 251.691
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.58352
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.01
  Prefactor  = 0.950319
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   646.7799     FROM HESSE     STATUS=FAILED        19 CALLS      367 TOTAL
                     EDM=   .10E-12  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    117.39        .11825E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    20.234        .95139E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          540.10        535.86         .0000       -1.5299    
   4  Prefactor     2.0503        1.0333         .0000       -1.5422    
   5  norm          2.2625        1.0268         .0000       -1.5407    
   6  Prefactor     36.801        .98766       -.34090E-05   -1.4494    
   7  Prefactor     3.2848        1.0121         .0000       -1.5345    
   8  Prefactor     251.69        1.0191       -.10476E-04   -1.2522    
   9  Prefactor     .10000E-03    .21821        .19532E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    .21124        .20235E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    .39288        .42995E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    .22443        .20657E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    .21691       -.26066E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    .23601        .79924E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    .20571       -.34500E-07   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     3.5835        1.0090       -.38601E-07   -1.5329    
  17  Prefactor     .10000E-03    .25741       -.94641E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    .40047        .19398E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    .10000E-01    .25761       -.39263E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .95032        1.2928        .33873E-06   -.94404    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 1.03191e-13
Minuit parameter uncertainties:
  1  5.659e-07
  2  1.66788e-08
  3  1.00732
  4  1.03335
  5  1.02678
  6  0.98766
  7  1.01208
  8  1.01909
  9  2.74577e-07
  10  6.08248e-08
  11  1.42262e-06
  12  1.97821e-07
  13  2.97254e-07
  14  5.87898e-07
  15  7.58896e-09
  16  1.00898
  17  5.01016e-07
  18  1.82873e-07
  19  1.93178e-09
  20  1.3388
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 646.779855007

Extracting fit parameters...

4FGL J2056.5-0202
   Spectrum: PowerLaw
326    Prefactor:  3.680e+01  9.877e-01  1.000e-04  1.000e+04 ( 1.000e-12)
327        Index:  2.517e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
328        Scale:  7.173e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
586    Prefactor:  9.503e-01  1.339e+00  0.000e+00  1.000e+01 ( 1.000e+00)
587        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
588        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
585   Normalization:  1.000e-02  1.932e-09  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.16
Ra Dec: 314.142 -2.035
Photon Flux Upper Limit: 3.67e-06 ph cm-2 s-1
Energy Flux Upper Limit: 2.86e-01 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/324021/likelihoodResults_680745601_681004801_4FGL_J2056.5-0202_daily_bin1703.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) = 646.758753901
delta logL = 0.0211011060455

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 646.757539723
delta logL = 0.0223152835463

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    47.847       1.0000         .10000E-03   10000.    
     2 'Index     '    2.2031       1.0000          .0000       10.000    
     3 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    .94931       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5890E+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=   646.7575     FROM MIGRAD    STATUS=CONVERGED     79 CALLS      294 TOTAL
                     EDM=   .24E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     47.841        123.24        .57969E-04    .20261E-03
   2  Index         2.2031        1.3819        .74793E-02    .11780E-03
   3  Normalizat    .10000E-01    .27382        .78809E-02** at limit **
   4  Prefactor     .94932        .15710        .13170E-03   -.11262E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 47.8413
  Index      = 2.20315
  Normalizat = 0.01
  Prefactor  = 0.949324
 **********
 **   18 **HESSE 
 **********

 FCN=   646.7575     FROM HESSE     STATUS=OK            23 CALLS      317 TOTAL
                     EDM=   .25E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     47.841        122.51        .11594E-04   -1.4324    
   2  Index         2.2031        1.3741        .29917E-03   -.59363    
   3  Normalizat    .10000E-01    .27383        .15762E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .94932        .15709        .26340E-04   -.94438    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.47133e-09
Minuit parameter uncertainties:
  1  123.162
  2  1.40064
  3  6.01407e-09
  4  0.15717
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/324021': 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) = 646.757539719
delta logL = 0.0223152881131

Extracting fit parameters...

4FGL J2056.5-0202
   Spectrum: PowerLaw
326    Prefactor:  4.784e+01  1.232e+02  1.000e-04  1.000e+04 ( 1.000e-12)
327        Index:  2.203e+00  1.401e+00  0.000e+00  1.000e+01 (-1.000e+00)
328        Scale:  7.173e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
586    Prefactor:  9.493e-01  1.572e-01  0.000e+00  1.000e+01 ( 1.000e+00)
587        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
588        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
585   Normalization:  1.000e-02  6.014e-09  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.16
Ra Dec: 314.142 -2.035

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/324021/cmap_HighResolution_680745601_681004801_4FGL_J2056.5-0202_daily_bin1703.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.86e-01', job_status='DONE', photon_flux_upper_limit='3.67e-06', time_completed='2022-08-01 01:29:05.358924', job_id='324021', GAL2='0.95', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1659342545.36', return_code2='0', ts='0.16', comment='SUCCESS', return_code='101', GAL='0.95', dlogl='2.23e-02', ts2='0.21', photon_index_error='0.00', photon_index='2.52' WHERE bin_id='1703' AND source_name='4FGL J2056.5-0202' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Aug  1 01:29:05 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0279>
Subject: Job 324021: <4FGL_J2056.5-0202_daily_bin1703> in cluster <slac> Done

Job <4FGL_J2056.5-0202_daily_bin1703> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Mon Aug  1 01:20:11 2022
Job was executed on host(s) <bullet0279>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Aug  1 01:20:14 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Aug  1 01:20:14 2022
Terminated at Mon Aug  1 01:29:06 2022
Results reported at Mon Aug  1 01:29:06 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2056.5-0202_daily_bin1703 314.142 -2.0355 680745601 681004801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2056.5-0202 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   336.52 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             337.84 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   531 sec.
    Turnaround time :                            535 sec.

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

