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


Performing analysis on: 4FGL_J2056.5-0202_daily_bin1580
RA = 314.142, Dec = -2.0355
tmin = 648864001, tmax = 649123201
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='223005', job_status='RUN', time_executed='2021-09-25 22:23:09.161648', time_epoch_executed='1632633789.16' WHERE source_name='4FGL J2056.5-0202' and cadence='daily' and bin_id='1580'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/223005

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/223005/ft1_4FGL_J2056.5-0202_daily_bin1580.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/223005/ft2_4FGL_J2056.5-0202_daily_bin1580.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/223005/ft1_4FGL_J2056.5-0202_daily_bin1580.fits outfile=/scratch/kocevski/223005/ft1_filteredMKT_4FGL_J2056.5-0202_daily_bin1580.fits ra=314.142 dec=-2.0355 rad=12.0 tmin=648864001.0 tmax=649123201.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.47
user 2.26
sys 0.18

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/223005/ft1_filtered_4FGL_J2056.5-0202_daily_bin1580.fits" evtable="EVENTS" scfile=/scratch/kocevski/223005/ft2_4FGL_J2056.5-0202_daily_bin1580.fits sctable="SC_DATA" outfile=/scratch/kocevski/223005/ltcube_648864001_649123201_4FGL_J2056.5-0202_daily_bin1580.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/223005/ft2_4FGL_J2056.5-0202_daily_bin1580.fits
.....................!
real 12.59
user 12.19
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/223005/ft1_filtered_4FGL_J2056.5-0202_daily_bin1580.fits evtable="EVENTS" scfile=/scratch/kocevski/223005/ft2_4FGL_J2056.5-0202_daily_bin1580.fits sctable="SC_DATA" expcube=/scratch/kocevski/223005/ltcube_648864001_649123201_4FGL_J2056.5-0202_daily_bin1580.fits outfile=/scratch/kocevski/223005/expmap_648864001_649123201_4FGL_J2056.5-0202_daily_bin1580.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/223005/ltcube_648864001_649123201_4FGL_J2056.5-0202_daily_bin1580.fits
.....................!
real 157.92
user 151.85
sys 4.70

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/223005/ft1_filtered_4FGL_J2056.5-0202_daily_bin1580.fits scfile=/scratch/kocevski/223005/ft2_4FGL_J2056.5-0202_daily_bin1580.fits outfile=/scratch/kocevski/223005/cmap_648864001_649123201_4FGL_J2056.5-0202_daily_bin1580.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.34
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/223005/ft1_filtered_4FGL_J2056.5-0202_daily_bin1580.fits scfile=/scratch/kocevski/223005/ft2_4FGL_J2056.5-0202_daily_bin1580.fits outfile=/scratch/kocevski/223005/cmap_HighResolution_648864001_649123201_4FGL_J2056.5-0202_daily_bin1580.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.51
user 0.33
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/223005/ft1_filtered_4FGL_J2056.5-0202_daily_bin1580.fits evtable="EVENTS" scfile=/scratch/kocevski/223005/ft2_4FGL_J2056.5-0202_daily_bin1580.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/223005/Model_4FGL_J2056.5-0202_daily_bin1580.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/223005/ft1_filtered_4FGL_J2056.5-0202_daily_bin1580.fits.......................................!
real 15.22
user 14.04
sys 1.02

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/223005/ft1_filtered_4FGL_J2056.5-0202_daily_bin1580.fits', '/scratch/kocevski/223005/ft2_4FGL_J2056.5-0202_daily_bin1580.fits', expMap='/scratch/kocevski/223005/expmap_648864001_649123201_4FGL_J2056.5-0202_daily_bin1580.fits', expCube='/scratch/kocevski/223005/ltcube_648864001_649123201_4FGL_J2056.5-0202_daily_bin1580.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/223005/Model_4FGL_J2056.5-0202_daily_bin1580.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/223005/ft1_filtered_4FGL_J2056.5-0202_daily_bin1580.fits
Spacecraft file(s): /scratch/kocevski/223005/ft2_4FGL_J2056.5-0202_daily_bin1580.fits
Exposure map: /scratch/kocevski/223005/expmap_648864001_649123201_4FGL_J2056.5-0202_daily_bin1580.fits
Exposure cube: /scratch/kocevski/223005/ltcube_648864001_649123201_4FGL_J2056.5-0202_daily_bin1580.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/223005/Model_4FGL_J2056.5-0202_daily_bin1580.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 537.728617102

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 535.456297346

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .67400E-02   1.0000         .10000E-03   10000.    
     2 'Prefactor '    69.091       1.0000         .10000E-03   10000.    
     3 'norm      '    4.1836       1.0000         .10000E-03   10000.    
     4 'Prefactor '    2.0503       1.0000         .10000E-03   10000.    
     5 'norm      '    2.2625       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10393E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .85743       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .84346E-01   1.0000         .10000E-03   10000.    
     9 'Prefactor '    24.738       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .96866E-02   1.0000         .10000E-03   10000.    
    11 'Prefactor '    2.1411       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .62599E-02   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .28305E-01   1.0000         .10000E-03   10000.    
    14 'Prefactor '    168.81       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .11632E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10166E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    237.10       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .58475E-01   1.0000         .10000E-03   10000.    
    19 'Normalizat'    .10038E-01   1.0000         .10000E-01   10.000    
    20 'Prefactor '    .61051       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.
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   535.4488     FROM MIGRAD    STATUS=CONVERGED    186 CALLS      555 TOTAL
                     EDM=   .59E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .14263E-03    107.93        .93802E-02** at limit **
   2  Prefactor     72.682        77.525        .12073E-02    .23791E-04
   3  norm          4.1836        1.0073         .0000         .0000    
   4  Prefactor     2.0503        1.0333         .0000         .0000    
   5  norm          2.2625        1.0268         .0000         .0000    
   6  Prefactor     .10000E-03    .20571       -.22836E-05** at limit **
   7  Prefactor     .10260E-03    .40019        .49677E-05** at limit **
   8  Prefactor     .10342E-03    .22261       -.51689E-05** at limit **
   9  Prefactor     25.535        1.0161       -.33925E-05   -.44962E-04
  10  Prefactor     .10000E-03    .20573       -.69008E-06** at limit **
  11  Prefactor     .10008E-03    .12397       -.16427E-04** at limit **
  12  Prefactor     .10001E-03    .22268        .90167E-06** at limit **
  13  Prefactor     .10000E-03    .20993       -.98823E-06** at limit **
  14  Prefactor     163.66        .98488       -.12603E-04   -.28916E-03
  15  Prefactor     .10000E-03    .20571       -.18886E-05** at limit **
  16  Prefactor     .10000E-03    .20571       -.15185E-05** at limit **
  17  Prefactor     237.18        1.0002        .67875E-06   -.78819E-02
  18  Prefactor     .10000E-03    .21675       -.15813E-04** at limit **
  19  Normalizat    .10000E-01    .25506        .14644E-03** at limit **
  20  Prefactor     .60720        .95626        .26645E-05   -.10128E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000142629
  Prefactor  = 72.6816
  norm       = 4.18361
  Prefactor  = 2.05029
  norm       = 2.26251
  Prefactor  = 0.0001
  Prefactor  = 0.000102597
  Prefactor  = 0.000103418
  Prefactor  = 25.5348
  Prefactor  = 0.0001
  Prefactor  = 0.00010008
  Prefactor  = 0.000100011
  Prefactor  = 0.0001
  Prefactor  = 163.656
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 237.181
  Prefactor  = 0.000100001
  Normalizat = 0.01
  Prefactor  = 0.607197
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   535.4488     FROM HESSE     STATUS=FAILED        15 CALLS      570 TOTAL
                     EDM=   .59E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .14263E-03    107.93        .93802E-02   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     72.682        77.525        .12073E-02   -1.4001    
   3  norm          540.10        535.86         .0000       -1.5299    
   4  Prefactor     2.0503        1.0333         .0000       -1.5422    
   5  norm          2.2625        1.0268         .0000       -1.5407    
   6  Prefactor     .10000E-03    .20571       -.22836E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10260E-03    .40019        .49677E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10342E-03    .22261       -.51689E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     25.535        1.0161       -.33925E-05   -1.4697    
  10  Prefactor     .10000E-03    .20573       -.69008E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10008E-03    .12397       -.16427E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10001E-03    .22268        .90167E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    .20993       -.98823E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     163.66        .98488       -.12603E-04   -1.3142    
  15  Prefactor     .10000E-03    .20571       -.18886E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    .20571       -.15185E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     237.18        1.0002        .67875E-06   -1.2616    
  18  Prefactor     .10000E-03    .21675       -.15813E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    .10000E-01    .25506        .14644E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .60720        .95626        .26645E-05   -1.0728    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 5.91568e-10
Minuit parameter uncertainties:
  1  0.135904
  2  77.6329
  3  1.00732
  4  1.03335
  5  1.02678
  6  5.63938e-07
  7  0.00203908
  8  0.00174468
  9  1.01614
  10  1.99493e-07
  11  0.000199024
  12  9.73572e-05
  13  3.67602e-07
  14  0.984878
  15  1.03921e-07
  16  1.00109e-06
  17  1.00017
  18  2.21712e-05
  19  2.10485e-06
  20  0.983853
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 535.448784491

Extracting fit parameters...

4FGL J2056.5-0202
   Spectrum: PowerLaw
326    Prefactor:  1.000e-04  5.639e-07  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:  6.072e-01  9.839e-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  2.105e-06  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 314.142 -2.035
Photon Flux Upper Limit: 2.30e-06 ph cm-2 s-1
Energy Flux Upper Limit: 1.79e-01 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/223005/likelihoodResults_648864001_649123201_4FGL_J2056.5-0202_daily_bin1580.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) = 535.448893309
delta logL = -0.000108818148533

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 535.44878756
delta logL = -3.06972663111e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10043E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    3.1551       1.0000          .0000       10.000    
     3 'Normalizat'    .10008E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    .60720       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=   535.4488     FROM MIGRAD    STATUS=CONVERGED    100 CALLS      293 TOTAL
                     EDM=   .33E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10802E-03    65.042        .11403E-01** at limit **
   2  Index         2.9777        7.5231        .50000        .86604E-05
   3  Normalizat    .10000E-01    .76451E-02    .12058E-01** at limit **
   4  Prefactor     .60720        .91169E-02    .13079E-03   -.78014E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.00010802
  Index      = 2.97767
  Normalizat = 0.01
  Prefactor  = 0.607197
 **********
 **   18 **HESSE 
 **********

 FCN=   535.4488     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      322 TOTAL
                     EDM=   .27E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10802E-03    528.32        .12386E-02   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.9777        8.1702        .50000       -.41640    
   3  Normalizat    .10000E-01    .65341E-01    .24115E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .60720        .26611E-01    .52315E-05   -1.0728    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.74312e-08
Minuit parameter uncertainties:
  1  0.131362
  2  1223.95
  3  3.16254e-06
  4  0.0266113
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/223005': 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) = 535.448785171
delta logL = -6.80151515553e-07

Extracting fit parameters...

4FGL J2056.5-0202
   Spectrum: PowerLaw
326    Prefactor:  1.080e-04  1.314e-01  1.000e-04  1.000e+04 ( 1.000e-12)
327        Index:  2.978e+00  1.224e+03  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:  6.072e-01  2.661e-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:  1.000e-02  3.163e-06  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 314.142 -2.035

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/223005/cmap_HighResolution_648864001_649123201_4FGL_J2056.5-0202_daily_bin1580.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.79e-01', job_status='DONE', photon_flux_upper_limit='2.30e-06', time_completed='2021-09-25 22:27:50.886510', job_id='223005', GAL2='0.61', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1632634070.89', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='101', GAL='0.61', dlogl='-6.80e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.52' WHERE bin_id='1580' AND source_name='4FGL J2056.5-0202' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 25 22:27:50 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0189>
Subject: Job 223005: <4FGL_J2056.5-0202_daily_bin1580> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2056.5-0202_daily_bin1580 314.142 -2.0355 648864001 649123201 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 :                                   272.49 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             226.06 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   504 sec.
    Turnaround time :                            715 sec.

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

