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


Performing analysis on: 4FGL_J2056.5-0202_daily_bin1400
RA = 314.142, Dec = -2.0355
tmin = 602208001, tmax = 602467201
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='222712', job_status='RUN', time_executed='2021-09-25 22:16:34.369880', time_epoch_executed='1632633394.37' WHERE source_name='4FGL J2056.5-0202' and cadence='daily' and bin_id='1400'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/222712

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/222712/ft1_4FGL_J2056.5-0202_daily_bin1400.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/222712/ft2_4FGL_J2056.5-0202_daily_bin1400.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/222712/ft1_4FGL_J2056.5-0202_daily_bin1400.fits outfile=/scratch/kocevski/222712/ft1_filteredMKT_4FGL_J2056.5-0202_daily_bin1400.fits ra=314.142 dec=-2.0355 rad=12.0 tmin=602208001.0 tmax=602467201.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 5.29
user 5.01
sys 0.24

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/222712/ft2_4FGL_J2056.5-0202_daily_bin1400.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/222712/ft1_filteredMKT_4FGL_J2056.5-0202_daily_bin1400.fits evtable="EVENTS" outfile="/scratch/kocevski/222712/ft1_filtered_4FGL_J2056.5-0202_daily_bin1400.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.35
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/222712/ft1_filtered_4FGL_J2056.5-0202_daily_bin1400.fits" evtable="EVENTS" scfile=/scratch/kocevski/222712/ft2_4FGL_J2056.5-0202_daily_bin1400.fits sctable="SC_DATA" outfile=/scratch/kocevski/222712/ltcube_602208001_602467201_4FGL_J2056.5-0202_daily_bin1400.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/222712/ft2_4FGL_J2056.5-0202_daily_bin1400.fits
.....................!
real 15.19
user 14.81
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/222712/ft1_filtered_4FGL_J2056.5-0202_daily_bin1400.fits evtable="EVENTS" scfile=/scratch/kocevski/222712/ft2_4FGL_J2056.5-0202_daily_bin1400.fits sctable="SC_DATA" expcube=/scratch/kocevski/222712/ltcube_602208001_602467201_4FGL_J2056.5-0202_daily_bin1400.fits outfile=/scratch/kocevski/222712/expmap_602208001_602467201_4FGL_J2056.5-0202_daily_bin1400.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/222712/ltcube_602208001_602467201_4FGL_J2056.5-0202_daily_bin1400.fits
.....................!
real 192.44
user 186.81
sys 4.87

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/222712/ft1_filtered_4FGL_J2056.5-0202_daily_bin1400.fits scfile=/scratch/kocevski/222712/ft2_4FGL_J2056.5-0202_daily_bin1400.fits outfile=/scratch/kocevski/222712/cmap_602208001_602467201_4FGL_J2056.5-0202_daily_bin1400.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.56
user 0.38
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/222712/ft1_filtered_4FGL_J2056.5-0202_daily_bin1400.fits scfile=/scratch/kocevski/222712/ft2_4FGL_J2056.5-0202_daily_bin1400.fits outfile=/scratch/kocevski/222712/cmap_HighResolution_602208001_602467201_4FGL_J2056.5-0202_daily_bin1400.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.40
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/222712/ft1_filtered_4FGL_J2056.5-0202_daily_bin1400.fits evtable="EVENTS" scfile=/scratch/kocevski/222712/ft2_4FGL_J2056.5-0202_daily_bin1400.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/222712/Model_4FGL_J2056.5-0202_daily_bin1400.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/222712/ft1_filtered_4FGL_J2056.5-0202_daily_bin1400.fits.....................!
real 81.52
user 80.05
sys 1.20

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    15.971       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    24.023       1.0000         .10000E-03   10000.    
     4 'Prefactor '    8.9517       1.0000         .10000E-03   10000.    
     5 'norm      '    .10013E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    11.976       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    5.6138       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    80.926       1.0000         .10000E-03   10000.    
    12 'Prefactor '    3.2221       1.0000         .10000E-03   10000.    
    13 'Prefactor '    7.9984       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10120E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    3.4313       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10744E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.1733       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .96763       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=   7610.956     FROM MIGRAD    STATUS=CONVERGED    410 CALLS     2018 TOTAL
                     EDM=   .23E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     15.966        40.582       -.19266E-05   -.72131E-04
   2  Prefactor     .10000E-03    13.816        .16865E-05** at limit **
   3  norm          24.023        3.5430       -.43089E-07    .76978E-06
   4  Prefactor     8.9520        15.476        .10428E-05   -.13725E-03
   5  norm          .10000E-03    3.5938        .20360E-08** at limit **
   6  Prefactor     11.976        7.7753        .18275E-10   -.15428E-04
   7  Prefactor     .10000E-03    14.672       -.31500E-06** at limit **
   8  Prefactor     .10000E-03    30.785       -.50579E-06** at limit **
   9  Prefactor     5.6142        20.307        .19076E-06    .75054E-06
  10  Prefactor     .10000E-03    10.569       -.42518E-07** at limit **
  11  Prefactor     80.918        62.963       -.17791E-05   -.12801E-03
  12  Prefactor     3.2221        17.270        .41462E-06   -.18455E-04
  13  Prefactor     7.9991        24.583        .13870E-06    .24694E-05
  14  Prefactor     .10000E-03    40.823       -.10192E-05** at limit **
  15  Prefactor     3.4313        3.5200       -.86708E-06    .73817E-03
  16  Prefactor     .10000E-03    1.6876        .49753E-08** at limit **
  17  Prefactor     .10000E-03    14.497       -.14243E-05** at limit **
  18  Prefactor     .10000E-03    32.883        .15351E-05** at limit **
  19  Normalizat    1.1732        .28677        .22617E-06   -.83872E-05
  20  Prefactor     .96768        .11344        .62227E-07   -.22655E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 15.9662
  Prefactor  = 0.000100001
  norm       = 24.0228
  Prefactor  = 8.95204
  norm       = 0.0001
  Prefactor  = 11.9761
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.61424
  Prefactor  = 0.0001
  Prefactor  = 80.9181
  Prefactor  = 3.22209
  Prefactor  = 7.99906
  Prefactor  = 0.0001
  Prefactor  = 3.4313
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.000100001
  Normalizat = 1.17321
  Prefactor  = 0.967676
 **********
 **   18 **HESSE 
 **********

 FCN=   7610.956     FROM HESSE     STATUS=OK           291 CALLS     2309 TOTAL
                     EDM=   .58E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     15.966        41.349        .10022E-03   -1.4909    
   2  Prefactor     .10000E-03    14.439        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          24.023        3.5432        .58662E-04   -1.4727    
   4  Prefactor     8.9520        15.704        .66981E-03   -1.5109    
   5  norm          .10000E-03    3.6366        .16145E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     11.976        7.7789        .11576E-03   -1.5016    
   7  Prefactor     .10000E-03    14.749        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    30.911        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     5.6142        20.286        .16955E-03   -1.5234    
  10  Prefactor     .10000E-03    10.570        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     80.918        64.599        .44647E-04   -1.3906    
  12  Prefactor     3.2221        17.326        .22568E-03   -1.5349    
  13  Prefactor     7.9991        24.602        .14177E-03   -1.5142    
  14  Prefactor     .10000E-03    41.097        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     3.4313        3.7621        .86304E-03   -1.5337    
  16  Prefactor     .10000E-03    4.1310        .21866E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    14.926        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    33.448        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    1.1732        .34175        .41880E-03   -.87435    
  20  Prefactor     .96768        .13663        .18532E-03   -.93815    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.80879e-10
Minuit parameter uncertainties:
  1  41.4237
  2  0.000243916
  3  3.54325
  4  15.7111
  5  2.22496e-06
  6  7.77961
  7  5.20304e-05
  8  0.00010221
  9  20.3108
  10  7.3042e-06
  11  64.6554
  12  14.9497
  13  24.633
  14  0.000234499
  15  3.76231
  16  1.34457e-05
  17  0.000211885
  18  0.000341481
  19  0.342403
  20  0.136676
Done.

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

Extracting fit parameters...

4FGL J2056.5-0202
   Spectrum: PowerLaw
326    Prefactor:  1.198e+01  7.780e+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.677e-01  1.367e-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.173e+00  3.424e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.68
Ra Dec: 314.142 -2.035
Photon Index (Fixed Index): 2.52 +/- 0.00
Photon Flux (Fixed Index): 1.13e-07 +/- 7.31e-08
Energy Flux (Fixed Index): 3.21e-05 +/- 2.08e-05

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

Saving results to:
/scratch/kocevski/222712/likelihoodResults_602208001_602467201_4FGL_J2056.5-0202_daily_bin1400.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) = 7610.95593585
delta logL = 0.000353836327122

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7610.95581556
delta logL = 0.000474127457892

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    11.862       1.0000         .10000E-03   10000.    
     2 'Index     '    2.5381       1.0000          .0000       10.000    
     3 'Normalizat'    1.1711       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .96809       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=   7610.956     FROM MIGRAD    STATUS=CONVERGED     58 CALLS      235 TOTAL
                     EDM=   .47E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     11.842        187.27        .29078E-02    .14312E-03
   2  Index         2.5358        6.2299        .16525        .89366E-04
   3  Normalizat    1.1714        .16840        .94600E-01    .67233E-04
   4  Prefactor     .96819        .55012E-01    .45867E-01   -.97931E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 11.8423
  Index      = 2.53584
  Normalizat = 1.17139
  Prefactor  = 0.968195
 **********
 **   18 **HESSE 
 **********

 FCN=   7610.956     FROM HESSE     STATUS=OK            33 CALLS      268 TOTAL
                     EDM=   .30E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     11.842        9.1107        .11631E-03   -1.5020    
   2  Index         2.5358        .60653        .81826E-02   -.51534    
   3  Normalizat    1.1714        .33780        .41908E-03   -.87492    
   4  Prefactor     .96819        .13625        .18528E-03   -.93797    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.98213e-11
Minuit parameter uncertainties:
  1  9.11181
  2  0.608512
  3  0.338427
  4  0.136296
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/222712': 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) = 7610.95579464
delta logL = 0.000495048222547

Extracting fit parameters...

4FGL J2056.5-0202
   Spectrum: PowerLaw
326    Prefactor:  1.184e+01  9.112e+00  1.000e-04  1.000e+04 ( 1.000e-12)
327        Index:  2.536e+00  6.085e-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.682e-01  1.363e-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.171e+00  3.384e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.65
Ra Dec: 314.142 -2.035
Photon Index (Free Index): 2.54 +/- 0.61
Photon Flux (Free Index): 1.14e-07 +/- 8.60e-08
Energy Flux (Free Index): 3.19e-05 +/- 2.21e-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/222712/cmap_HighResolution_602208001_602467201_4FGL_J2056.5-0202_daily_bin1400.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.03e-02', comment='SUCCESS', photon_flux='1.13e-07', energy_flux2='3.19e-05', photon_flux_error='7.31e-08', dlogl='4.95e-04', energy_flux='3.21e-05', photon_flux2='1.14e-07', job_status='DONE', time_completed='2021-09-25 22:28:22.113039', photon_index_error2='0.61', photon_index2='2.54', ts='3.68', fit_tolerance='1e-08', GAL='0.97', photon_index_error='0.00', photon_flux_upper_limit='2.61e-07', energy_flux_error2='2.21e-05', EG='1.17', time_epoch_completed='1632634102.11', return_code='0', job_id='222712', GAL2='0.97', EG2='1.17', return_code2='0', energy_flux_error='2.08e-05', photon_flux_error2='8.60e-08', ts2='3.65', photon_index='2.52' WHERE bin_id='1400' AND source_name='4FGL J2056.5-0202' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 25 22:28:22 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0174>
Subject: Job 222712: <4FGL_J2056.5-0202_daily_bin1400> in cluster <slac> Done

Job <4FGL_J2056.5-0202_daily_bin1400> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Sat Sep 25 22:15:29 2021
Job was executed on host(s) <bullet0174>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep 25 22:16:24 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:16:24 2021
Terminated at Sat Sep 25 22:28:22 2021
Results reported at Sat Sep 25 22:28:22 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2056.5-0202_daily_bin1400 314.142 -2.0355 602208001 602467201 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 :                                   700.30 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             338.96 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   718 sec.
    Turnaround time :                            773 sec.

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

