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 101 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 make4FGLDR3xml version 01r09.
The default diffuse model files and names are for P8R3, 4FGL DRs, and the default fermitools directory locations.

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


Performing analysis on: 4FGL_J2056.5-0202_daily_bin1733
RA = 314.142, Dec = -2.0355
tmin = 688521601, tmax = 688780801
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='708412', job_status='RUN', time_executed='2022-10-30 00:37:17.737633', time_epoch_executed='1667115437.74' WHERE source_name='4FGL J2056.5-0202' and cadence='daily' and bin_id='1733'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/708412

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/708412/ft1_4FGL_J2056.5-0202_daily_bin1733.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/708412/ft2_4FGL_J2056.5-0202_daily_bin1733.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/708412/ft1_4FGL_J2056.5-0202_daily_bin1733.fits outfile=/scratch/kocevski/708412/ft1_filteredMKT_4FGL_J2056.5-0202_daily_bin1733.fits ra=314.142 dec=-2.0355 rad=12.0 tmin=688521601.0 tmax=688780801.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.56
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/708412/ft2_4FGL_J2056.5-0202_daily_bin1733.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/708412/ft1_filteredMKT_4FGL_J2056.5-0202_daily_bin1733.fits evtable="EVENTS" outfile="/scratch/kocevski/708412/ft1_filtered_4FGL_J2056.5-0202_daily_bin1733.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.42
user 0.27
sys 0.14

Number of photons that the gtmktime cut: 668

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/708412/ft1_filtered_4FGL_J2056.5-0202_daily_bin1733.fits" evtable="EVENTS" scfile=/scratch/kocevski/708412/ft2_4FGL_J2056.5-0202_daily_bin1733.fits sctable="SC_DATA" outfile=/scratch/kocevski/708412/ltcube_688521601_688780801_4FGL_J2056.5-0202_daily_bin1733.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/708412/ft2_4FGL_J2056.5-0202_daily_bin1733.fits
.....................!
real 9.37
user 9.02
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/708412/ft1_filtered_4FGL_J2056.5-0202_daily_bin1733.fits evtable="EVENTS" scfile=/scratch/kocevski/708412/ft2_4FGL_J2056.5-0202_daily_bin1733.fits sctable="SC_DATA" expcube=/scratch/kocevski/708412/ltcube_688521601_688780801_4FGL_J2056.5-0202_daily_bin1733.fits outfile=/scratch/kocevski/708412/expmap_688521601_688780801_4FGL_J2056.5-0202_daily_bin1733.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/708412/ltcube_688521601_688780801_4FGL_J2056.5-0202_daily_bin1733.fits
.....................!
real 147.70
user 143.88
sys 3.56

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/708412/ft1_filtered_4FGL_J2056.5-0202_daily_bin1733.fits scfile=/scratch/kocevski/708412/ft2_4FGL_J2056.5-0202_daily_bin1733.fits outfile=/scratch/kocevski/708412/cmap_688521601_688780801_4FGL_J2056.5-0202_daily_bin1733.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.45
user 0.29
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/708412/ft1_filtered_4FGL_J2056.5-0202_daily_bin1733.fits scfile=/scratch/kocevski/708412/ft2_4FGL_J2056.5-0202_daily_bin1733.fits outfile=/scratch/kocevski/708412/cmap_HighResolution_688521601_688780801_4FGL_J2056.5-0202_daily_bin1733.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.46
user 0.31
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/708412/ft1_filtered_4FGL_J2056.5-0202_daily_bin1733.fits evtable="EVENTS" scfile=/scratch/kocevski/708412/ft2_4FGL_J2056.5-0202_daily_bin1733.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/708412/Model_4FGL_J2056.5-0202_daily_bin1733.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/708412/ft1_filtered_4FGL_J2056.5-0202_daily_bin1733.fits.....................!
real 58.06
user 56.94
sys 1.01

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/708412/ft1_filtered_4FGL_J2056.5-0202_daily_bin1733.fits', '/scratch/kocevski/708412/ft2_4FGL_J2056.5-0202_daily_bin1733.fits', expMap='/scratch/kocevski/708412/expmap_688521601_688780801_4FGL_J2056.5-0202_daily_bin1733.fits', expCube='/scratch/kocevski/708412/ltcube_688521601_688780801_4FGL_J2056.5-0202_daily_bin1733.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/708412/Model_4FGL_J2056.5-0202_daily_bin1733.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  0.000e+00  1.000e+06 ( 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/708412/ft1_filtered_4FGL_J2056.5-0202_daily_bin1733.fits
Spacecraft file(s): /scratch/kocevski/708412/ft2_4FGL_J2056.5-0202_daily_bin1733.fits
Exposure map: /scratch/kocevski/708412/expmap_688521601_688780801_4FGL_J2056.5-0202_daily_bin1733.fits
Exposure cube: /scratch/kocevski/708412/ltcube_688521601_688780801_4FGL_J2056.5-0202_daily_bin1733.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/708412/Model_4FGL_J2056.5-0202_daily_bin1733.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) = 7457.82206976

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11866E-01   1.0000          .0000       .10000E+07
     2 'Prefactor '    .13227E-03   1.0000          .0000       .10000E+07
     3 'norm      '    3.9873       1.0000          .0000       .10000E+07
     4 'Prefactor '    .12471E-01   1.0000          .0000       .10000E+07
     5 'norm      '    .31399E-04   1.0000          .0000       .10000E+07
     6 'Prefactor '    5.9911       1.0000          .0000       .10000E+07
     7 'Prefactor '    .38046E-04   1.0000          .0000       .10000E+07
     8 'Prefactor '    .67105E-04   1.0000          .0000       .10000E+07
     9 'Prefactor '    .12372E-03   1.0000          .0000       .10000E+07
    10 'Prefactor '    12.390       1.0000          .0000       .10000E+07
    11 'Prefactor '    .53437E-02   1.0000          .0000       .10000E+07
    12 'Prefactor '    .14092E-01   1.0000          .0000       .10000E+07
    13 'Prefactor '    .78597       1.0000          .0000       .10000E+07
    14 'Prefactor '    .20058       1.0000          .0000       .10000E+07
    15 'Prefactor '    5.1403       1.0000          .0000       .10000E+07
    16 'Normalizat'    .89168       1.0000         .10000E-01   10.000    
    17 'Prefactor '    1.0375       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=   7457.780     FROM MIGRAD    STATUS=CONVERGED    142 CALLS      996 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .22287E-05    13.389        .11391E-06** at limit **
   2  Prefactor     .55511E-10    2.8394       -.52771E-07** at limit **
   3  norm          3.9889        2.0447       -.76164E-07   -.19400E-01
   4  Prefactor     .13767E-06    82.251       -.38238E-06** at limit **
   5  norm           .0000        1.8844        .15278E-08** at limit **
   6  Prefactor     5.9946        6.1860       -.32816E-07    .25352E-03
   7  Prefactor     .54401E-08    12.105       -.88614E-07** at limit **
   8  Prefactor     .47184E-08    10.892        .29209E-06** at limit **
   9  Prefactor     .59391E-06    31.710       -.11397E-06** at limit **
  10  Prefactor     13.093        2.7554       -.48391E-08   -.36154E-02
  11  Prefactor     .40133E-05    10.404        .71099E-07** at limit **
  12  Prefactor     .56621E-08    15.259       -.54863E-07** at limit **
  13  Prefactor     .65560        1.0685       -.10279E-07    .70009E-01
  14  Prefactor     .18513        5.2473       -.15568E-06** at limit **
  15  Prefactor     4.6804        3.8271       -.32734E-07   -.53560E-02
  16  Normalizat    .89205        .28323       -.49572E-06   -.11727E-03
  17  Prefactor     1.0374        .11879        .13145E-07   -.30401E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.22872e-06
  Prefactor  = 5.55112e-11
  norm       = 3.9889
  Prefactor  = 1.37668e-07
  norm       = 0
  Prefactor  = 5.99461
  Prefactor  = 5.44009e-09
  Prefactor  = 4.71845e-09
  Prefactor  = 5.93914e-07
  Prefactor  = 13.0935
  Prefactor  = 4.01335e-06
  Prefactor  = 5.66214e-09
  Prefactor  = 0.655597
  Prefactor  = 0.185131
  Prefactor  = 4.68044
  Normalizat = 0.892053
  Prefactor  = 1.03744
 **********
 **   18 **HESSE 
 **********

 FCN=   7457.780     FROM HESSE     STATUS=OK           259 CALLS     1255 TOTAL
                     EDM=   .63E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .22287E-05    22.628        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .55511E-10    2.8691        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          3.9889        2.0558        .50485E-03   -1.5668    
   4  Prefactor     .13767E-06    82.167        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm           .0000        1.8927        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     5.9946        6.2189        .40999E-03   -1.5659    
   7  Prefactor     .54401E-08    12.153        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .47184E-08    10.848        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .59391E-06    32.836        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     13.093        26.440        .28433E-03   -1.5636    
  11  Prefactor     .40133E-05    24.367        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .56621E-08    15.395        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .65560        15.755        .53987E-03   -1.5692    
  14  Prefactor     .18513        1.1850        .50349E-02   -1.5717    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     4.6804        77.913        .44319E-03   -1.5665    
  16  Normalizat    .89205        .25851        .91950E-01   -.96740    
  17  Prefactor     1.0374        .10240        .40703E-01   -.91492    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.25129e-07
Minuit parameter uncertainties:
  1  0.014203
  2  2.83457e-05
  3  2.05584
  4  0.00672703
  5  4.8496e-06
  6  6.21888
  7  0.000514594
  8  0.000453663
  9  0.00883216
  10  26.4407
  11  0.0197781
  12  0.000590403
  13  6.42784
  14  0.936746
  15  38.1932
  16  0.258872
  17  0.102423
Done.

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

Extracting fit parameters...

4FGL J2056.5-0202
   Spectrum: PowerLaw
326    Prefactor:  5.995e+00  6.219e+00  0.000e+00  1.000e+06 ( 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:  1.037e+00  1.024e-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:  8.921e-01  2.589e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.24
Ra Dec: 314.142 -2.035
Photon Index (Fixed Index): 2.52 +/- 0.00
Photon Flux (Fixed Index): 5.64e-08 +/- 5.84e-08
Energy Flux (Fixed Index): 1.61e-05 +/- 1.67e-05

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

Saving results to:
/scratch/kocevski/708412/likelihoodResults_688521601_688780801_4FGL_J2056.5-0202_daily_bin1733.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): 102
logL (Free Index) = 7457.11010154
delta logL = 0.670056441551

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7457.03871765
delta logL = 0.741440333626

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .75062E-01   1.0000          .0000       .10000E+07
     2 'Index     '    5.7858       1.0000          .0000       10.000    
     3 'Normalizat'    .76814       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0780       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.

 FCN=   7457.039     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      287 TOTAL
                     EDM=   .53E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .73779E-01    .64593        .34428E-03** at limit **
   2  Index         5.7966        2.5377        .14221        .17624E-03
   3  Normalizat    .76847        .58856E-01    .98355E-01    .39802E-04
   4  Prefactor     1.0777        .24925E-01    .38491E-01    .11873E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0737794
  Index      = 5.79657
  Normalizat = 0.768474
  Prefactor  = 1.0777
 **********
 **   18 **HESSE 
 **********

 FCN=   7457.039     FROM HESSE     STATUS=NOT POSDEF    35 CALLS      322 TOTAL
                     EDM=   .51E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .73779E-01    1.6190        .15578E-04   -1.5703    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         5.7966        7.3539        .52325E-02    .16000    
   3  Normalizat    .76847        .22144        .43585E-03   -1.0125    
   4  Prefactor     1.0777        .91725E-01    .15781E-03   -.90183    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 5.1082e-11
Minuit parameter uncertainties:
  1  0.691218
  2  5.22384
  3  0.221697
  4  0.0917383
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/708412': 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): 102
logL (Free Index) = 7457.03870285
delta logL = 0.74145512788

Extracting fit parameters...

4FGL J2056.5-0202
   Spectrum: PowerLaw
326    Prefactor:  7.378e-02  6.912e-01  0.000e+00  1.000e+06 ( 1.000e-12)
327        Index:  5.797e+00  5.224e+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:  1.078e+00  9.174e-02  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:  7.685e-01  2.217e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.02
Ra Dec: 314.142 -2.035
Photon Index (Free Index): 5.80 +/- 5.22
Photon Flux (Free Index): 1.42e-07 +/- 9.50e-08
Energy Flux (Free Index): 1.78e-05 +/- 1.40e-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/708412/cmap_HighResolution_688521601_688780801_4FGL_J2056.5-0202_daily_bin1733.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.40e-02', comment='SUCCESS', photon_flux='5.64e-08', energy_flux2='1.78e-05', photon_flux_error='5.84e-08', dlogl='7.41e-01', energy_flux='1.61e-05', photon_flux2='1.42e-07', job_status='DONE', time_completed='2022-10-30 00:44:26.723367', photon_index_error2='5.22', photon_index2='5.80', ts='1.24', fit_tolerance='1e-08', GAL='1.04', photon_index_error='0.00', photon_flux_upper_limit='1.80e-07', energy_flux_error2='1.40e-05', EG='0.89', time_epoch_completed='1667115866.72', return_code='0', job_id='708412', GAL2='1.08', EG2='0.77', return_code2='102', energy_flux_error='1.67e-05', photon_flux_error2='9.50e-08', ts2='3.02', photon_index='2.52' WHERE bin_id='1733' AND source_name='4FGL J2056.5-0202' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Oct 30 00:44:26 PDT 2022


------------------------------------------------------------
Sender: LSF System <scs@bullet0168>
Subject: Job 708412: <4FGL_J2056.5-0202_daily_bin1733> in cluster <slac> Done

Job <4FGL_J2056.5-0202_daily_bin1733> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Sun Oct 30 00:35:24 2022
Job was executed on host(s) <bullet0168>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Oct 30 00:35:26 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Oct 30 00:35:26 2022
Terminated at Sun Oct 30 00:44:27 2022
Results reported at Sun Oct 30 00:44:27 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2056.5-0202_daily_bin1733 314.142 -2.0355 688521601 688780801 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 :                                   430.01 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             270.11 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   540 sec.
    Turnaround time :                            543 sec.

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

