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


Performing analysis on: 4FGL_J2056.5-0202_daily_bin949
RA = 314.142, Dec = -2.0355
tmin = 485308801, tmax = 485568001
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='219961', job_status='RUN', time_executed='2021-09-25 22:09:01.002569', time_epoch_executed='1632632941.0' WHERE source_name='4FGL J2056.5-0202' and cadence='daily' and bin_id='949'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/219961

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/219961/ft1_4FGL_J2056.5-0202_daily_bin949.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/219961/ft2_4FGL_J2056.5-0202_daily_bin949.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/219961/ft1_4FGL_J2056.5-0202_daily_bin949.fits outfile=/scratch/kocevski/219961/ft1_filteredMKT_4FGL_J2056.5-0202_daily_bin949.fits ra=314.142 dec=-2.0355 rad=12.0 tmin=485308801.0 tmax=485568001.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.76
user 5.50
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/219961/ft1_filtered_4FGL_J2056.5-0202_daily_bin949.fits" evtable="EVENTS" scfile=/scratch/kocevski/219961/ft2_4FGL_J2056.5-0202_daily_bin949.fits sctable="SC_DATA" outfile=/scratch/kocevski/219961/ltcube_485308801_485568001_4FGL_J2056.5-0202_daily_bin949.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/219961/ft2_4FGL_J2056.5-0202_daily_bin949.fits
.....................!
real 14.39
user 13.98
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/219961/ft1_filtered_4FGL_J2056.5-0202_daily_bin949.fits evtable="EVENTS" scfile=/scratch/kocevski/219961/ft2_4FGL_J2056.5-0202_daily_bin949.fits sctable="SC_DATA" expcube=/scratch/kocevski/219961/ltcube_485308801_485568001_4FGL_J2056.5-0202_daily_bin949.fits outfile=/scratch/kocevski/219961/expmap_485308801_485568001_4FGL_J2056.5-0202_daily_bin949.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/219961/ltcube_485308801_485568001_4FGL_J2056.5-0202_daily_bin949.fits
.....................!
real 191.74
user 186.47
sys 4.85

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/219961/ft1_filtered_4FGL_J2056.5-0202_daily_bin949.fits scfile=/scratch/kocevski/219961/ft2_4FGL_J2056.5-0202_daily_bin949.fits outfile=/scratch/kocevski/219961/cmap_485308801_485568001_4FGL_J2056.5-0202_daily_bin949.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.58
user 0.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/219961/ft1_filtered_4FGL_J2056.5-0202_daily_bin949.fits scfile=/scratch/kocevski/219961/ft2_4FGL_J2056.5-0202_daily_bin949.fits outfile=/scratch/kocevski/219961/cmap_HighResolution_485308801_485568001_4FGL_J2056.5-0202_daily_bin949.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.59
user 0.40
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/219961/ft1_filtered_4FGL_J2056.5-0202_daily_bin949.fits evtable="EVENTS" scfile=/scratch/kocevski/219961/ft2_4FGL_J2056.5-0202_daily_bin949.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/219961/Model_4FGL_J2056.5-0202_daily_bin949.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/219961/ft1_filtered_4FGL_J2056.5-0202_daily_bin949.fits.....................!
real 89.90
user 88.16
sys 1.26

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    19.353       1.0000         .10000E-03   10000.    
     3 'norm      '    11.613       1.0000         .10000E-03   10000.    
     4 'Prefactor '    2.0073       1.0000         .10000E-03   10000.    
     5 'norm      '    1.9322       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10132E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10111E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    24.260       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    25.916       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    53.977       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.1457       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .85607       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=   9182.982     FROM MIGRAD    STATUS=CONVERGED    418 CALLS     2026 TOTAL
                     EDM=   .24E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    65.286        .39290E-05** at limit **
   2  Prefactor     19.351        13.506       -.50497E-07   -.58340E-04
   3  norm          11.613        2.0252       -.23882E-06   -.93790E-04
   4  Prefactor     2.0077        16.071        .10821E-04   -.11329E-04
   5  norm          1.9322        3.0543        .15205E-06   -.88192E-05
   6  Prefactor     .10000E-03    2.2936       -.38772E-07** at limit **
   7  Prefactor     .10000E-03    12.288       -.24293E-06** at limit **
   8  Prefactor     24.258        32.117        .27136E-06   -.38865E-06
   9  Prefactor     .10000E-03    12.189        .36682E-06** at limit **
  10  Prefactor     .10000E-03    8.0612        .15966E-07** at limit **
  11  Prefactor     .10000E-03    20.716        .14507E-05** at limit **
  12  Prefactor     25.918        17.130        .11871E-06    .14868E-04
  13  Prefactor     .10000E-03    8.5548       -.10051E-06** at limit **
  14  Prefactor     .10000E-03    17.158       -.10171E-05** at limit **
  15  Prefactor     .10000E-03    2.7355       -.40142E-08** at limit **
  16  Prefactor     .10000E-03    .76831        .13786E-06** at limit **
  17  Prefactor     53.984        33.931       -.17115E-06    .31084E-04
  18  Prefactor     .10000E-03    52.894       -.39554E-05** at limit **
  19  Normalizat    1.1453        .22299       -.90676E-06   -.50304E-04
  20  Prefactor     .85622        .91880E-01    .13174E-06   -.13161E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 19.3511
  norm       = 11.6128
  Prefactor  = 2.00773
  norm       = 1.9322
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 24.2582
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 25.9183
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 53.9838
  Prefactor  = 0.0001
  Normalizat = 1.14534
  Prefactor  = 0.856219
 **********
 **   18 **HESSE 
 **********

 FCN=   9182.982     FROM HESSE     STATUS=OK           289 CALLS     2315 TOTAL
                     EDM=   .37E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    65.563        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     19.351        13.538        .91044E-04   -1.4828    
   3  norm          11.613        2.0307        .52111E-04   -1.5026    
   4  Prefactor     2.0077        16.171        .14612E-02   -1.5425    
   5  norm          1.9322        3.0403        .20336E-03   -1.5430    
   6  Prefactor     .10000E-03    2.4024        .28333E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    12.508        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     24.258        32.129        .81328E-04   -1.4723    
   9  Prefactor     .10000E-03    12.220        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    8.0689        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    20.762        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     25.918        17.150        .78690E-04   -1.4689    
  13  Prefactor     .10000E-03    8.5644        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    17.173        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    2.7487        .15476E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    .77821        .82022E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     53.984        34.206        .54595E-04   -1.4237    
  18  Prefactor     .10000E-03    53.046        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    1.1453        .27144        .36309E-03   -.88309    
  20  Prefactor     .85622        .11247        .17264E-03   -.97688    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.69143e-10
Minuit parameter uncertainties:
  1  9.3938e-05
  2  13.5405
  3  2.03076
  4  11.3999
  5  3.0405
  6  3.39962e-06
  7  1.5172e-05
  8  32.1515
  9  3.47962e-07
  10  2.60218e-06
  11  5.19965e-05
  12  17.1535
  13  5.39037e-07
  14  3.13778e-06
  15  1.04634e-06
  16  7.42448e-06
  17  34.2181
  18  6.74188e-05
  19  0.271773
  20  0.112502
Done.

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

Extracting fit parameters...

4FGL J2056.5-0202
   Spectrum: PowerLaw
326    Prefactor:  1.000e-04  3.400e-06  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:  8.562e-01  1.125e-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.145e+00  2.718e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 314.142 -2.035
Photon Flux Upper Limit: 6.35e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.94e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/219961/likelihoodResults_485308801_485568001_4FGL_J2056.5-0202_daily_bin949.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) = 9182.98377778
delta logL = -0.00198776923025

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 9182.98178918
delta logL = 8.3847589849e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4854       1.0000          .0000       10.000    
     3 'Normalizat'    1.1453       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .85622       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=   9182.982     FROM MIGRAD    STATUS=CONVERGED    103 CALLS      261 TOTAL
                     EDM=   .43E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    36.814        .29478E-02** at limit **
   2  Index         2.0686        5.2163        .50000        .13874E-05
   3  Normalizat    1.1453        .18377E-01    .36309E-03   -.28274E-03
   4  Prefactor     .85622        .77234E-02    .17264E-03   -.59590E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.06864
  Normalizat = 1.14534
  Prefactor  = 0.856218
 **********
 **   18 **HESSE 
 **********

 FCN=   9182.982     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      290 TOTAL
                     EDM=   .20E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    169.84        .58955E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.0686        6.9863        .50000       -.62645    
   3  Normalizat    1.1453        .41376E-01    .14524E-04   -.88309    
   4  Prefactor     .85622        .17390E-01    .34528E-04   -.97688    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.97791e-08
Minuit parameter uncertainties:
  1  0.000102657
  2  454.721
  3  0.0413772
  4  0.0173896
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/219961': 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) = 9182.98178403
delta logL = 5.98654150963e-06

Extracting fit parameters...

4FGL J2056.5-0202
   Spectrum: PowerLaw
326    Prefactor:  1.000e-04  1.027e-04  1.000e-04  1.000e+04 ( 1.000e-12)
327        Index:  2.069e+00  4.547e+02  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:  8.562e-01  1.739e-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.145e+00  4.138e-02  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 -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/219961/cmap_HighResolution_485308801_485568001_4FGL_J2056.5-0202_daily_bin949.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.94e-03', job_status='DONE', photon_flux_upper_limit='6.35e-08', time_completed='2021-09-25 22:22:08.761017', job_id='219961', GAL2='0.86', fit_tolerance='1e-08', EG2='1.15', EG='1.15', time_epoch_completed='1632633728.76', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.86', dlogl='5.99e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.52' WHERE bin_id='949' AND source_name='4FGL J2056.5-0202' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 25 22:22:08 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0171>
Subject: Job 219961: <4FGL_J2056.5-0202_daily_bin949> in cluster <slac> Done

Job <4FGL_J2056.5-0202_daily_bin949> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Sat Sep 25 22:05:46 2021
Job was executed on host(s) <bullet0171>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep 25 22:06:39 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:06:39 2021
Terminated at Sat Sep 25 22:22:09 2021
Results reported at Sat Sep 25 22:22:09 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2056.5-0202_daily_bin949 314.142 -2.0355 485308801 485568001 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 :                                   785.01 sec.
    Max Memory :                                 1160 MB
    Average Memory :                             339.97 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   930 sec.
    Turnaround time :                            983 sec.

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

