/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 131 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 = 7567
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J2056.5-0202_daily_bin1132
RA = 314.142, Dec = -2.0355
tmin = 532742401, tmax = 533001601
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='221322', job_status='RUN', time_executed='2021-09-25 22:13:52.341970', time_epoch_executed='1632633232.34' WHERE source_name='4FGL J2056.5-0202' and cadence='daily' and bin_id='1132'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/221322

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/221322/ft1_4FGL_J2056.5-0202_daily_bin1132.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/221322/ft2_4FGL_J2056.5-0202_daily_bin1132.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/221322/ft1_4FGL_J2056.5-0202_daily_bin1132.fits outfile=/scratch/kocevski/221322/ft1_filteredMKT_4FGL_J2056.5-0202_daily_bin1132.fits ra=314.142 dec=-2.0355 rad=12.0 tmin=532742401.0 tmax=533001601.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 3.71
user 3.47
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/221322/ft2_4FGL_J2056.5-0202_daily_bin1132.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/221322/ft1_filteredMKT_4FGL_J2056.5-0202_daily_bin1132.fits evtable="EVENTS" outfile="/scratch/kocevski/221322/ft1_filtered_4FGL_J2056.5-0202_daily_bin1132.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.56
user 0.35
sys 0.13

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/221322/ft1_filtered_4FGL_J2056.5-0202_daily_bin1132.fits" evtable="EVENTS" scfile=/scratch/kocevski/221322/ft2_4FGL_J2056.5-0202_daily_bin1132.fits sctable="SC_DATA" outfile=/scratch/kocevski/221322/ltcube_532742401_533001601_4FGL_J2056.5-0202_daily_bin1132.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/221322/ft2_4FGL_J2056.5-0202_daily_bin1132.fits
.....................!
real 14.95
user 14.43
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/221322/ft1_filtered_4FGL_J2056.5-0202_daily_bin1132.fits evtable="EVENTS" scfile=/scratch/kocevski/221322/ft2_4FGL_J2056.5-0202_daily_bin1132.fits sctable="SC_DATA" expcube=/scratch/kocevski/221322/ltcube_532742401_533001601_4FGL_J2056.5-0202_daily_bin1132.fits outfile=/scratch/kocevski/221322/expmap_532742401_533001601_4FGL_J2056.5-0202_daily_bin1132.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/221322/ltcube_532742401_533001601_4FGL_J2056.5-0202_daily_bin1132.fits
.....................!
real 196.90
user 189.48
sys 4.84

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/221322/ft1_filtered_4FGL_J2056.5-0202_daily_bin1132.fits scfile=/scratch/kocevski/221322/ft2_4FGL_J2056.5-0202_daily_bin1132.fits outfile=/scratch/kocevski/221322/cmap_532742401_533001601_4FGL_J2056.5-0202_daily_bin1132.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.40
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/221322/ft1_filtered_4FGL_J2056.5-0202_daily_bin1132.fits scfile=/scratch/kocevski/221322/ft2_4FGL_J2056.5-0202_daily_bin1132.fits outfile=/scratch/kocevski/221322/cmap_HighResolution_532742401_533001601_4FGL_J2056.5-0202_daily_bin1132.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.62
user 0.41
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/221322/ft1_filtered_4FGL_J2056.5-0202_daily_bin1132.fits evtable="EVENTS" scfile=/scratch/kocevski/221322/ft2_4FGL_J2056.5-0202_daily_bin1132.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/221322/Model_4FGL_J2056.5-0202_daily_bin1132.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/221322/ft1_filtered_4FGL_J2056.5-0202_daily_bin1132.fits.....................!
real 70.38
user 68.35
sys 1.24

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    21.495       1.0000         .10000E-03   10000.    
     2 'Prefactor '    18.425       1.0000         .10000E-03   10000.    
     3 'norm      '    1.3744       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    7.9310       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10436E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    9.0709       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10078E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    33.710       1.0000         .10000E-03   10000.    
    13 'Prefactor '    13.584       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10081E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    13.796       1.0000         .10000E-03   10000.    
    16 'Prefactor '    2.2328       1.0000         .10000E-03   10000.    
    17 'Prefactor '    13.873       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.0623       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .93931       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=   6863.301     FROM MIGRAD    STATUS=CONVERGED    406 CALLS     1740 TOTAL
                     EDM=   .10E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     21.497        28.757        .56298E-06   -.79113E-05
   2  Prefactor     18.427        12.670       -.80345E-06   -.35783E-04
   3  norm          1.3745        1.2549       -.26791E-06   -.46832E-03
   4  Prefactor     .10000E-03    15.579       -.50214E-05** at limit **
   5  norm          .10000E-03    3.8275       -.10894E-06** at limit **
   6  Prefactor     7.9294        6.6136        .34712E-06   -.18928E-03
   7  Prefactor     .10000E-03    8.0963       -.11210E-06** at limit **
   8  Prefactor     .10000E-03    84.888        .18597E-04** at limit **
   9  Prefactor     9.0740        13.330       -.12882E-05   -.11286E-04
  10  Prefactor     .10000E-03    11.465        .28991E-06** at limit **
  11  Prefactor     .10000E-03    24.102       -.27295E-05** at limit **
  12  Prefactor     33.706        20.570       -.11900E-05    .14963E-04
  13  Prefactor     13.574        26.394       -.45363E-05    .14988E-04
  14  Prefactor     .10000E-03    23.887       -.27543E-05** at limit **
  15  Prefactor     13.795        7.8857       -.39406E-06    .60662E-05
  16  Prefactor     2.2315        2.2269        .15606E-05    .50435E-03
  17  Prefactor     13.811        33.654       -.68968E-04    .12560E-05
  18  Prefactor     .10000E-03    17.957        .85668E-05** at limit **
  19  Normalizat    1.0631        .26889        .12700E-04   -.26278E-03
  20  Prefactor     .93899        .10737       -.22360E-05    .64576E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 21.4975
  Prefactor  = 18.4271
  norm       = 1.37449
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 7.92938
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 9.074
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 33.7061
  Prefactor  = 13.5742
  Prefactor  = 0.0001
  Prefactor  = 13.7952
  Prefactor  = 2.23145
  Prefactor  = 13.811
  Prefactor  = 0.0001
  Normalizat = 1.06313
  Prefactor  = 0.938985
 **********
 **   18 **HESSE 
 **********

 FCN=   6863.301     FROM HESSE     STATUS=OK           293 CALLS     2033 TOTAL
                     EDM=   .31E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     21.497        28.779        .86393E-04   -1.4780    
   2  Prefactor     18.427        12.685        .93307E-04   -1.4849    
   3  norm          1.3745        1.2363        .85397E-04   -1.5473    
   4  Prefactor     .10000E-03    15.761        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    3.9920        .31644E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     7.9294        6.6207        .14238E-03   -1.5145    
   7  Prefactor     .10000E-03    8.1366        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    85.890        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     9.0740        13.320        .13307E-03   -1.5105    
  10  Prefactor     .10000E-03    11.484        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    24.109        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     33.706        20.586        .69018E-04   -1.4546    
  13  Prefactor     13.574        26.433        .10868E-03   -1.4971    
  14  Prefactor     .10000E-03    23.912        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     13.795        7.8874        .10784E-03   -1.4965    
  16  Prefactor     2.2315        2.2231        .11814E-03   -1.5409    
  17  Prefactor     13.811        33.715        .10754E-03   -1.4965    
  18  Prefactor     .10000E-03    17.972        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    1.0631        .32316        .37853E-03   -.90944    
  20  Prefactor     .93899        .13047        .16684E-03   -.94792    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.14967e-09
Minuit parameter uncertainties:
  1  28.7977
  2  12.6867
  3  1.23636
  4  6.93041e-05
  5  3.04495e-05
  6  6.62128
  7  4.42789e-05
  8  0.000413489
  9  13.3248
  10  1.72924e-05
  11  8.37229e-05
  12  20.5908
  13  26.4555
  14  0.000132002
  15  7.88801
  16  2.22318
  17  33.7613
  18  1.65418e-05
  19  0.323758
  20  0.130509
Done.

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

Extracting fit parameters...

4FGL J2056.5-0202
   Spectrum: PowerLaw
326    Prefactor:  7.929e+00  6.621e+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:  9.390e-01  1.305e-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.063e+00  3.238e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.97
Ra Dec: 314.142 -2.035
Photon Index (Fixed Index): 2.52 +/- 0.00
Photon Flux (Fixed Index): 7.46e-08 +/- 6.22e-08
Energy Flux (Fixed Index): 2.12e-05 +/- 1.77e-05

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

Saving results to:
/scratch/kocevski/221322/likelihoodResults_532742401_533001601_4FGL_J2056.5-0202_daily_bin1132.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) = 6863.19848267
delta logL = 0.10274030363

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6863.19776861
delta logL = 0.10345435905

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    9.2259       1.0000         .10000E-03   10000.    
     2 'Index     '    2.1746       1.0000          .0000       10.000    
     3 'Normalizat'    1.0925       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .93033       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=   6863.198     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      265 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     9.2141        233.32        .32987E-02    .10631E-03
   2  Index         2.1730        5.8818        .24872       -.44462E-05
   3  Normalizat    1.0929        .13266        .84451E-01    .24630E-04
   4  Prefactor     .93025        .45369E-01    .45390E-01    .55979E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 9.2141
  Index      = 2.17299
  Normalizat = 1.09285
  Prefactor  = 0.930251
 **********
 **   18 **HESSE 
 **********

 FCN=   6863.198     FROM HESSE     STATUS=OK            33 CALLS      298 TOTAL
                     EDM=   .30E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     9.2141        7.7990        .13195E-03   -1.5101    
   2  Index         2.1730        .69523        .90905E-02   -.60092    
   3  Normalizat    1.0929        .31100        .37393E-03   -.89982    
   4  Prefactor     .93025        .12867        .16751E-03   -.95092    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.0378e-13
Minuit parameter uncertainties:
  1  7.7999
  2  0.698565
  3  0.311521
  4  0.128712
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/221322': 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) = 6863.19776453
delta logL = 0.103458436076

Extracting fit parameters...

4FGL J2056.5-0202
   Spectrum: PowerLaw
326    Prefactor:  9.214e+00  7.800e+00  1.000e-04  1.000e+04 ( 1.000e-12)
327        Index:  2.173e+00  6.986e-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:  9.303e-01  1.287e-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.093e+00  3.115e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.15
Ra Dec: 314.142 -2.035
Photon Index (Free Index): 2.17 +/- 0.70
Photon Flux (Free Index): 5.68e-08 +/- 6.37e-08
Energy Flux (Free Index): 2.69e-05 +/- 2.80e-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/221322/cmap_HighResolution_532742401_533001601_4FGL_J2056.5-0202_daily_bin1132.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.56e-02', comment='SUCCESS', photon_flux='7.46e-08', energy_flux2='2.69e-05', photon_flux_error='6.22e-08', dlogl='1.03e-01', energy_flux='2.12e-05', photon_flux2='5.68e-08', job_status='DONE', time_completed='2021-09-25 22:24:38.108257', photon_index_error2='0.70', photon_index2='2.17', ts='1.97', fit_tolerance='1e-08', GAL='0.94', photon_index_error='0.00', photon_flux_upper_limit='2.01e-07', energy_flux_error2='2.80e-05', EG='1.06', time_epoch_completed='1632633878.11', return_code='0', job_id='221322', GAL2='0.93', EG2='1.09', return_code2='0', energy_flux_error='1.77e-05', photon_flux_error2='6.37e-08', ts2='2.15', photon_index='2.52' WHERE bin_id='1132' AND source_name='4FGL J2056.5-0202' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 25 22:24:38 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0107>
Subject: Job 221322: <4FGL_J2056.5-0202_daily_bin1132> in cluster <slac> Done

Job <4FGL_J2056.5-0202_daily_bin1132> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sat Sep 25 22:10:39 2021
Job was executed on host(s) <bullet0107>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep 25 22:11:33 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Sep 25 22:11:33 2021
Terminated at Sat Sep 25 22:24:38 2021
Results reported at Sat Sep 25 22:24:38 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2056.5-0202_daily_bin1132 314.142 -2.0355 532742401 533001601 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 :                                   638.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             314.85 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   786 sec.
    Turnaround time :                            839 sec.

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

