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


Performing analysis on: 4FGL_J2056.5-0202_daily_bin1459
RA = 314.142, Dec = -2.0355
tmin = 617500801, tmax = 617760001
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='222805', job_status='RUN', time_executed='2021-09-25 22:21:09.847277', time_epoch_executed='1632633669.85' WHERE source_name='4FGL J2056.5-0202' and cadence='daily' and bin_id='1459'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/222805

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/222805/ft1_4FGL_J2056.5-0202_daily_bin1459.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/222805/ft2_4FGL_J2056.5-0202_daily_bin1459.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/222805/ft1_4FGL_J2056.5-0202_daily_bin1459.fits outfile=/scratch/kocevski/222805/ft1_filteredMKT_4FGL_J2056.5-0202_daily_bin1459.fits ra=314.142 dec=-2.0355 rad=12.0 tmin=617500801.0 tmax=617760001.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.65
user 2.40
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/222805/ft1_filtered_4FGL_J2056.5-0202_daily_bin1459.fits" evtable="EVENTS" scfile=/scratch/kocevski/222805/ft2_4FGL_J2056.5-0202_daily_bin1459.fits sctable="SC_DATA" outfile=/scratch/kocevski/222805/ltcube_617500801_617760001_4FGL_J2056.5-0202_daily_bin1459.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/222805/ft2_4FGL_J2056.5-0202_daily_bin1459.fits
.....................!
real 14.50
user 14.09
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/222805/ft1_filtered_4FGL_J2056.5-0202_daily_bin1459.fits evtable="EVENTS" scfile=/scratch/kocevski/222805/ft2_4FGL_J2056.5-0202_daily_bin1459.fits sctable="SC_DATA" expcube=/scratch/kocevski/222805/ltcube_617500801_617760001_4FGL_J2056.5-0202_daily_bin1459.fits outfile=/scratch/kocevski/222805/expmap_617500801_617760001_4FGL_J2056.5-0202_daily_bin1459.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/222805/ltcube_617500801_617760001_4FGL_J2056.5-0202_daily_bin1459.fits
.....................!
real 191.29
user 186.11
sys 4.55

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/222805/ft1_filtered_4FGL_J2056.5-0202_daily_bin1459.fits scfile=/scratch/kocevski/222805/ft2_4FGL_J2056.5-0202_daily_bin1459.fits outfile=/scratch/kocevski/222805/cmap_617500801_617760001_4FGL_J2056.5-0202_daily_bin1459.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.54
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/222805/ft1_filtered_4FGL_J2056.5-0202_daily_bin1459.fits scfile=/scratch/kocevski/222805/ft2_4FGL_J2056.5-0202_daily_bin1459.fits outfile=/scratch/kocevski/222805/cmap_HighResolution_617500801_617760001_4FGL_J2056.5-0202_daily_bin1459.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.54
user 0.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/222805/ft1_filtered_4FGL_J2056.5-0202_daily_bin1459.fits evtable="EVENTS" scfile=/scratch/kocevski/222805/ft2_4FGL_J2056.5-0202_daily_bin1459.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/222805/Model_4FGL_J2056.5-0202_daily_bin1459.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/222805/ft1_filtered_4FGL_J2056.5-0202_daily_bin1459.fits......................!
real 28.31
user 27.13
sys 1.12

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    291.28       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10264E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    15.442       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    72.834       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    18.380       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    77.820       1.0000         .10000E-03   10000.    
    14 'Prefactor '    68.332       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    1.8965       1.0000         .10000E-03   10000.    
    17 'Prefactor '    35.335       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .12378E-02   1.0000         .10000E-03   10000.    
    19 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
    20 'Prefactor '    .92964       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=   1805.424     FROM MIGRAD    STATUS=CONVERGED    405 CALLS     2033 TOTAL
                     EDM=   .84E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     291.29        185.12       -.62660E-07   -.36470E-05
   2  Prefactor     .10000E-03    51.759       -.98094E-06** at limit **
   3  norm          15.442        16.374       -.18785E-07    .83402E-07
   4  Prefactor     .10000E-03    52.345       -.68227E-06** at limit **
   5  norm          .10000E-03    75.622       -.14368E-06** at limit **
   6  Prefactor     72.842        30.517        .79473E-07   -.82626E-05
   7  Prefactor     .10000E-03    47.298        .10840E-05** at limit **
   8  Prefactor     .10000E-03    32.779       -.11167E-06** at limit **
   9  Prefactor     18.386        27.308       -.20619E-06   -.19784E-04
  10  Prefactor     .10000E-03    12.138        .13456E-07** at limit **
  11  Prefactor     .10000E-03    159.33       -.58483E-06** at limit **
  12  Prefactor     .10000E-03    151.64        .12892E-05** at limit **
  13  Prefactor     77.874        49.058        .10826E-05    .60293E-04
  14  Prefactor     68.162        145.64        .69144E-05    .98617E-05
  15  Prefactor     .10000E-03    18.761       -.13748E-06** at limit **
  16  Prefactor     1.8977        11.776       -.94881E-05    .73561E-04
  17  Prefactor     35.351        87.363        .15495E-04    .53657E-04
  18  Prefactor     .10015E-03    1596.0       -.31195E-04** at limit **
  19  Normalizat    .10000E-01    .15710        .22394E-05** at limit **
  20  Prefactor     .92963        .12661       -.19364E-06    .75603E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 291.286
  Prefactor  = 0.0001
  norm       = 15.4416
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 72.8417
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 18.3859
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 77.8744
  Prefactor  = 68.1624
  Prefactor  = 0.0001
  Prefactor  = 1.89769
  Prefactor  = 35.3512
  Prefactor  = 0.000100151
  Normalizat = 0.01
  Prefactor  = 0.929628
 **********
 **   18 **HESSE 
 **********

 FCN=   1805.424     FROM HESSE     STATUS=OK           283 CALLS     2316 TOTAL
                     EDM=   .16E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     291.29        185.40        .23786E-04   -1.2278    
   2  Prefactor     .10000E-03    52.014        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          15.442        16.375        .10192E-03   -1.4922    
   4  Prefactor     .10000E-03    52.352        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    75.621        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     72.842        30.554        .47042E-04   -1.3999    
   7  Prefactor     .10000E-03    47.324        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    32.780        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     18.386        27.355        .93421E-04   -1.4850    
  10  Prefactor     .10000E-03    12.138        .14456E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    159.59        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    151.73        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     77.874        49.151        .45522E-04   -1.3941    
  14  Prefactor     68.162        145.08        .24278E-03   -1.4055    
  15  Prefactor     .10000E-03    18.762        .17981E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     1.8977        11.846        .20454E-03   -1.5432    
  17  Prefactor     35.351        87.658        .67417E-04   -1.4518    
  18  Prefactor     .10015E-03    1575.3        .41231E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    .10000E-01    .16806        .94889E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .92963        .12271        .14738E-03   -.95113    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.57172e-10
Minuit parameter uncertainties:
  1  185.78
  2  2.61278e-05
  3  16.3802
  4  7.57337e-05
  5  1.90897e-05
  6  30.5609
  7  0.000125039
  8  1.06083e-05
  9  27.3731
  10  1.86175e-06
  11  3.00837e-05
  12  0.000295095
  13  49.1771
  14  145.845
  15  1.54838e-05
  16  9.485
  17  87.9798
  18  0.0316882
  19  9.06523e-07
  20  0.122746
Done.

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

Extracting fit parameters...

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

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

EG_v02
   Spectrum: FileFunction
585   Normalization:  1.000e-02  9.065e-07  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 10.71
Ra Dec: 314.142 -2.035
Photon Index (Fixed Index): 2.52 +/- 0.00
Photon Flux (Fixed Index): 6.85e-07 +/- 2.87e-07
Energy Flux (Fixed Index): 1.95e-04 +/- 8.19e-05

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) = 1805.38054792
delta logL = 0.0437006942827

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 1805.35889137
delta logL = 0.0653572433237

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    65.967       1.0000         .10000E-03   10000.    
     2 'Index     '    2.6606       1.0000          .0000       10.000    
     3 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    .92761       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=   1805.359     FROM MIGRAD    STATUS=CONVERGED     83 CALLS      242 TOTAL
                     EDM=   .62E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     65.948        34.435        .49414E-04   -.27229E-04
   2  Index         2.6612        .40558        .29172E-03   -.11497E-05
   3  Normalizat    .10000E-01    .16384        .94264E-02** at limit **
   4  Prefactor     .92765        .10633        .14744E-03   -.39766E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 65.9484
  Index      = 2.66119
  Normalizat = 0.01
  Prefactor  = 0.927652
 **********
 **   18 **HESSE 
 **********

 FCN=   1805.359     FROM HESSE     STATUS=OK            23 CALLS      265 TOTAL
                     EDM=   .61E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     65.948        34.386        .98827E-05   -1.4082    
   2  Index         2.6612        .40500        .11669E-04   -.48676    
   3  Normalizat    .10000E-01    .16386        .18853E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .92765        .10632        .29488E-04   -.95181    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.07312e-10
Minuit parameter uncertainties:
  1  34.3967
  2  0.405567
  3  6.57068e-06
  4  0.106344
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/222805': 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) = 1805.35888995
delta logL = 0.0653586613362

Extracting fit parameters...

4FGL J2056.5-0202
   Spectrum: PowerLaw
326    Prefactor:  6.595e+01  3.440e+01  1.000e-04  1.000e+04 ( 1.000e-12)
327        Index:  2.661e+00  4.056e-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.277e-01  1.063e-01  0.000e+00  1.000e+01 ( 1.000e+00)
587        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
588        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
585   Normalization:  1.000e-02  6.571e-06  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 10.60
Ra Dec: 314.142 -2.035
Photon Index (Free Index): 2.66 +/- 0.41
Photon Flux (Free Index): 7.52e-07 +/- 3.58e-07
Energy Flux (Free Index): 1.87e-04 +/- 7.96e-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/222805/cmap_HighResolution_617500801_617760001_4FGL_J2056.5-0202_daily_bin1459.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='6.85e-07', energy_flux2='1.87e-04', photon_flux_error='2.87e-07', dlogl='6.54e-02', energy_flux='1.95e-04', photon_flux2='7.52e-07', job_status='DONE', time_completed='2021-09-25 22:27:37.672810', photon_index_error2='0.41', photon_index2='2.66', ts='10.71', fit_tolerance='1e-08', GAL='0.93', photon_index_error='0.00', energy_flux_error2='7.96e-05', EG='0.01', time_epoch_completed='1632634057.67', return_code='0', job_id='222805', GAL2='0.93', EG2='0.01', return_code2='0', energy_flux_error='8.19e-05', photon_flux_error2='3.58e-07', ts2='10.60', photon_index='2.52' WHERE bin_id='1459' AND source_name='4FGL J2056.5-0202' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 25 22:27:37 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0243>
Subject: Job 222805: <4FGL_J2056.5-0202_daily_bin1459> in cluster <slac> Done

Job <4FGL_J2056.5-0202_daily_bin1459> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Sat Sep 25 22:15:38 2021
Job was executed on host(s) <bullet0243>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep 25 22:17:30 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:17:30 2021
Terminated at Sat Sep 25 22:27:38 2021
Results reported at Sat Sep 25 22:27:38 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2056.5-0202_daily_bin1459 314.142 -2.0355 617500801 617760001 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 :                                   385.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             271.38 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   608 sec.
    Turnaround time :                            720 sec.

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

