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 200 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 = 7544
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J2056.5-0202_daily_bin1689
RA = 314.142, Dec = -2.0355
tmin = 677116801, tmax = 677376001
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='993994', job_status='RUN', time_executed='2022-06-20 01:04:46.939574', time_epoch_executed='1655712286.94' WHERE source_name='4FGL J2056.5-0202' and cadence='daily' and bin_id='1689'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/993994

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/993994/ft1_4FGL_J2056.5-0202_daily_bin1689.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/993994/ft2_4FGL_J2056.5-0202_daily_bin1689.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/993994/ft1_4FGL_J2056.5-0202_daily_bin1689.fits outfile=/scratch/kocevski/993994/ft1_filteredMKT_4FGL_J2056.5-0202_daily_bin1689.fits ra=314.142 dec=-2.0355 rad=12.0 tmin=677116801.0 tmax=677376001.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 2.77
user 2.55
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/993994/ft2_4FGL_J2056.5-0202_daily_bin1689.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/993994/ft1_filteredMKT_4FGL_J2056.5-0202_daily_bin1689.fits evtable="EVENTS" outfile="/scratch/kocevski/993994/ft1_filtered_4FGL_J2056.5-0202_daily_bin1689.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.52
user 0.36
sys 0.15

Number of photons that the gtmktime cut: 498

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/993994/ft1_filtered_4FGL_J2056.5-0202_daily_bin1689.fits" evtable="EVENTS" scfile=/scratch/kocevski/993994/ft2_4FGL_J2056.5-0202_daily_bin1689.fits sctable="SC_DATA" outfile=/scratch/kocevski/993994/ltcube_677116801_677376001_4FGL_J2056.5-0202_daily_bin1689.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/993994/ft2_4FGL_J2056.5-0202_daily_bin1689.fits
.....................!
real 17.19
user 16.74
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/993994/ft1_filtered_4FGL_J2056.5-0202_daily_bin1689.fits evtable="EVENTS" scfile=/scratch/kocevski/993994/ft2_4FGL_J2056.5-0202_daily_bin1689.fits sctable="SC_DATA" expcube=/scratch/kocevski/993994/ltcube_677116801_677376001_4FGL_J2056.5-0202_daily_bin1689.fits outfile=/scratch/kocevski/993994/expmap_677116801_677376001_4FGL_J2056.5-0202_daily_bin1689.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/993994/ltcube_677116801_677376001_4FGL_J2056.5-0202_daily_bin1689.fits
.....................!
real 193.69
user 187.60
sys 5.52

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/993994/ft1_filtered_4FGL_J2056.5-0202_daily_bin1689.fits scfile=/scratch/kocevski/993994/ft2_4FGL_J2056.5-0202_daily_bin1689.fits outfile=/scratch/kocevski/993994/cmap_677116801_677376001_4FGL_J2056.5-0202_daily_bin1689.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.57
user 0.41
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/993994/ft1_filtered_4FGL_J2056.5-0202_daily_bin1689.fits scfile=/scratch/kocevski/993994/ft2_4FGL_J2056.5-0202_daily_bin1689.fits outfile=/scratch/kocevski/993994/cmap_HighResolution_677116801_677376001_4FGL_J2056.5-0202_daily_bin1689.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.56
user 0.39
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/993994/ft1_filtered_4FGL_J2056.5-0202_daily_bin1689.fits evtable="EVENTS" scfile=/scratch/kocevski/993994/ft2_4FGL_J2056.5-0202_daily_bin1689.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/993994/Model_4FGL_J2056.5-0202_daily_bin1689.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/993994/ft1_filtered_4FGL_J2056.5-0202_daily_bin1689.fits.....................!
real 62.23
user 60.83
sys 1.23

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/993994/ft1_filtered_4FGL_J2056.5-0202_daily_bin1689.fits', '/scratch/kocevski/993994/ft2_4FGL_J2056.5-0202_daily_bin1689.fits', expMap='/scratch/kocevski/993994/expmap_677116801_677376001_4FGL_J2056.5-0202_daily_bin1689.fits', expCube='/scratch/kocevski/993994/ltcube_677116801_677376001_4FGL_J2056.5-0202_daily_bin1689.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/993994/Model_4FGL_J2056.5-0202_daily_bin1689.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/993994/ft1_filtered_4FGL_J2056.5-0202_daily_bin1689.fits
Spacecraft file(s): /scratch/kocevski/993994/ft2_4FGL_J2056.5-0202_daily_bin1689.fits
Exposure map: /scratch/kocevski/993994/expmap_677116801_677376001_4FGL_J2056.5-0202_daily_bin1689.fits
Exposure cube: /scratch/kocevski/993994/ltcube_677116801_677376001_4FGL_J2056.5-0202_daily_bin1689.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/993994/Model_4FGL_J2056.5-0202_daily_bin1689.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) = 5678.27988325

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10673E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    10.116       1.0000         .10000E-03   10000.    
     3 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10047E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    1.8878       1.0000         .10000E-03   10000.    
     6 'Prefactor '    9.5366       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10315E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    42.622       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    6.1422       1.0000         .10000E-03   10000.    
    12 'Prefactor '    5.6189       1.0000         .10000E-03   10000.    
    13 'Prefactor '    20.637       1.0000         .10000E-03   10000.    
    14 'Prefactor '    18.632       1.0000         .10000E-03   10000.    
    15 'Prefactor '    1.2643       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10075E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    39.669       1.0000         .10000E-03   10000.    
    18 'Prefactor '    7.1268       1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.2121       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .72061       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.

 FCN=   5678.250     FROM MIGRAD    STATUS=CONVERGED    399 CALLS     2052 TOTAL
                     EDM=   .67E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    68.359       -.14555E-06** at limit **
   2  Prefactor     10.106        19.729        .89581E-07    .17223E-04
   3  norm          .10000E-03    .83326       -.12526E-06** at limit **
   4  Prefactor     .10000E-03    6.9507       -.11682E-06** at limit **
   5  norm          1.8877        6.2903        .17051E-05    .10784E-03
   6  Prefactor     9.5379        7.6134        .26073E-05    .43420E-03
   7  Prefactor     .10000E-03    3.9974       -.27517E-07** at limit **
   8  Prefactor     .10000E-03    22.947       -.20755E-06** at limit **
   9  Prefactor     42.626        28.096        .92688E-06   -.17543E-05
  10  Prefactor     .10000E-03    12.608        .44666E-07** at limit **
  11  Prefactor     6.1283        107.20        .42939E-05   -.14580E-04
  12  Prefactor     5.6183        10.556        .30660E-05    .18796E-03
  13  Prefactor     20.642        25.247        .13420E-05   -.13472E-04
  14  Prefactor     18.721        54.247        .41661E-05    .10849E-03
  15  Prefactor     1.2642        3.7143        .11803E-05    .16567E-03
  16  Prefactor     .10000E-03    .72307        .14433E-05** at limit **
  17  Prefactor     39.663        43.835        .24166E-05   -.72744E-04
  18  Prefactor     7.1290        21.444        .75276E-06   -.29164E-05
  19  Normalizat    1.2114        .32328       -.11684E-04    .10671E-03
  20  Prefactor     .72087        .11595        .39754E-05   -.49087E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 10.1057
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 1.88773
  Prefactor  = 9.53793
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 42.6256
  Prefactor  = 0.0001
  Prefactor  = 6.12833
  Prefactor  = 5.61833
  Prefactor  = 20.6415
  Prefactor  = 18.7212
  Prefactor  = 1.26419
  Prefactor  = 0.0001
  Prefactor  = 39.6629
  Prefactor  = 7.12903
  Normalizat = 1.21138
  Prefactor  = 0.720873
 **********
 **   18 **HESSE 
 **********

 FCN=   5678.250     FROM HESSE     STATUS=OK           291 CALLS     2343 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    68.698        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     10.106        19.827        .12598E-03   -1.5072    
   3  norm          .10000E-03    .84016        .67148E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    6.9545        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          1.8877        6.3007        .30289E-03   -1.5433    
   6  Prefactor     9.5379        7.6768        .64885E-03   -1.5090    
   7  Prefactor     .10000E-03    3.9988        .14714E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    22.977        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     42.626        28.104        .61404E-04   -1.4401    
  10  Prefactor     .10000E-03    12.621        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     6.1283        107.10        .16199E-03   -1.5213    
  12  Prefactor     5.6183        10.626        .84737E-03   -1.5234    
  13  Prefactor     20.642        25.275        .88168E-04   -1.4799    
  14  Prefactor     18.721        54.283        .92788E-04   -1.4842    
  15  Prefactor     1.2642        3.6580        .24299E-03   -1.5483    
  16  Prefactor     .10000E-03    .74047        .63122E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     39.663        44.020        .63641E-04   -1.4448    
  18  Prefactor     7.1290        21.427        .15026E-03   -1.5174    
  19  Normalizat    1.2114        .35031        .33548E-03   -.86252    
  20  Prefactor     .72087        .12823        .17019E-03   -1.0271    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.70025e-09
Minuit parameter uncertainties:
  1  5.58216e-05
  2  19.84
  3  4.15795e-07
  4  1.07273e-06
  5  6.30286
  6  7.67756
  7  2.98589e-07
  8  3.08105e-05
  9  28.113
  10  3.53613e-06
  11  51.3466
  12  10.63
  13  25.2878
  14  54.4268
  15  3.65868
  16  1.62071e-05
  17  44.0566
  18  21.4502
  19  0.350989
  20  0.128279
Done.

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

Extracting fit parameters...

4FGL J2056.5-0202
   Spectrum: PowerLaw
326    Prefactor:  9.538e+00  7.678e+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

GAL_V02
   Spectrum: PowerLaw
586    Prefactor:  7.209e-01  1.283e-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.211e+00  3.510e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.24
Ra Dec: 314.142 -2.035
Photon Index (Fixed Index): 2.52 +/- 0.00
Photon Flux (Fixed Index): 8.97e-08 +/- 7.21e-08
Energy Flux (Fixed Index): 2.56e-05 +/- 2.06e-05

TS (Fixed Index): 2.24
Ra Dec: 314.142 -2.035
Photon Flux Upper Limit: 2.36e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.84e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/993994/likelihoodResults_677116801_677376001_4FGL_J2056.5-0202_daily_bin1689.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) = 5678.22191009
delta logL = 0.0284926505956

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5678.2166348
delta logL = 0.0337679435179

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    10.254       1.0000         .10000E-03   10000.    
     2 'Index     '    2.3209       1.0000          .0000       10.000    
     3 'Normalizat'    1.2275       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .71677       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=   5678.217     FROM MIGRAD    STATUS=CONVERGED     81 CALLS      235 TOTAL
                     EDM=   .58E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     10.253        8.4991        .12513E-03    .16127E-02
   2  Index         2.3213        .73991        .82659E-02    .36631E-03
   3  Normalizat    1.2275        .30564        .33361E-03   -.26446E-03
   4  Prefactor     .71684        .12097        .17061E-03   -.63300E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 10.2526
  Index      = 2.32133
  Normalizat = 1.22746
  Prefactor  = 0.716841
 **********
 **   18 **HESSE 
 **********

 FCN=   5678.217     FROM HESSE     STATUS=OK            23 CALLS      258 TOTAL
                     EDM=   .60E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     10.253        8.4459        .50052E-05   -1.5067    
   2  Index         2.3213        .73458        .33064E-03   -.56538    
   3  Normalizat    1.2275        .30583        .66722E-04   -.85758    
   4  Prefactor     .71684        .12102        .34123E-04   -1.0287    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.99511e-09
Minuit parameter uncertainties:
  1  8.44688
  2  0.738341
  3  0.306278
  4  0.12106
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/993994': 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) = 5678.21663424
delta logL = 0.0337684974393

Extracting fit parameters...

4FGL J2056.5-0202
   Spectrum: PowerLaw
326    Prefactor:  1.025e+01  8.447e+00  1.000e-04  1.000e+04 ( 1.000e-12)
327        Index:  2.321e+00  7.383e-01  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:  7.168e-01  1.211e-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.227e+00  3.063e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.29
Ra Dec: 314.142 -2.035
Photon Index (Free Index): 2.32 +/- 0.74
Photon Flux (Free Index): 7.52e-08 +/- 8.68e-08
Energy Flux (Free Index): 2.76e-05 +/- 2.41e-05

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/993994/cmap_HighResolution_677116801_677376001_4FGL_J2056.5-0202_daily_bin1689.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.84e-02', comment='SUCCESS', photon_flux='8.97e-08', energy_flux2='2.76e-05', photon_flux_error='7.21e-08', dlogl='3.38e-02', energy_flux='2.56e-05', photon_flux2='7.52e-08', job_status='DONE', time_completed='2022-06-20 01:14:43.496774', photon_index_error2='0.74', photon_index2='2.32', ts='2.24', fit_tolerance='1e-08', GAL='0.72', photon_index_error='0.00', photon_flux_upper_limit='2.36e-07', energy_flux_error2='2.41e-05', EG='1.21', time_epoch_completed='1655712883.5', return_code='0', job_id='993994', GAL2='0.72', EG2='1.23', return_code2='0', energy_flux_error='2.06e-05', photon_flux_error2='8.68e-08', ts2='2.29', photon_index='2.52' WHERE bin_id='1689' AND source_name='4FGL J2056.5-0202' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Jun 20 01:14:43 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0066>
Subject: Job 993994: <4FGL_J2056.5-0202_daily_bin1689> in cluster <slac> Done

Job <4FGL_J2056.5-0202_daily_bin1689> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Mon Jun 20 01:00:23 2022
Job was executed on host(s) <bullet0066>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Jun 20 01:01:16 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Jun 20 01:01:16 2022
Terminated at Mon Jun 20 01:14:44 2022
Results reported at Mon Jun 20 01:14:44 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2056.5-0202_daily_bin1689 314.142 -2.0355 677116801 677376001 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 :                                   597.22 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             284.59 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   807 sec.
    Turnaround time :                            861 sec.

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

