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


Performing analysis on: 4FGL_J2056.5-0202_daily_bin1628
RA = 314.142, Dec = -2.0355
tmin = 661305601, tmax = 661564801
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='338106', job_status='RUN', time_executed='2021-12-19 01:37:44.551498', time_epoch_executed='1639906664.55' WHERE source_name='4FGL J2056.5-0202' and cadence='daily' and bin_id='1628'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/338106

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/338106/ft1_4FGL_J2056.5-0202_daily_bin1628.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/338106/ft2_4FGL_J2056.5-0202_daily_bin1628.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/338106/ft1_4FGL_J2056.5-0202_daily_bin1628.fits outfile=/scratch/kocevski/338106/ft1_filteredMKT_4FGL_J2056.5-0202_daily_bin1628.fits ra=314.142 dec=-2.0355 rad=12.0 tmin=661305601.0 tmax=661564801.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Done.
real 3.71
user 3.45
sys 0.24

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/338106/ft2_4FGL_J2056.5-0202_daily_bin1628.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/338106/ft1_filteredMKT_4FGL_J2056.5-0202_daily_bin1628.fits evtable="EVENTS" outfile="/scratch/kocevski/338106/ft1_filtered_4FGL_J2056.5-0202_daily_bin1628.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/338106/ft1_filtered_4FGL_J2056.5-0202_daily_bin1628.fits" evtable="EVENTS" scfile=/scratch/kocevski/338106/ft2_4FGL_J2056.5-0202_daily_bin1628.fits sctable="SC_DATA" outfile=/scratch/kocevski/338106/ltcube_661305601_661564801_4FGL_J2056.5-0202_daily_bin1628.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/338106/ft2_4FGL_J2056.5-0202_daily_bin1628.fits
.....................!
real 15.65
user 15.24
sys 0.37

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/338106/ft1_filtered_4FGL_J2056.5-0202_daily_bin1628.fits evtable="EVENTS" scfile=/scratch/kocevski/338106/ft2_4FGL_J2056.5-0202_daily_bin1628.fits sctable="SC_DATA" expcube=/scratch/kocevski/338106/ltcube_661305601_661564801_4FGL_J2056.5-0202_daily_bin1628.fits outfile=/scratch/kocevski/338106/expmap_661305601_661564801_4FGL_J2056.5-0202_daily_bin1628.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/338106/ltcube_661305601_661564801_4FGL_J2056.5-0202_daily_bin1628.fits
.....................!
real 193.82
user 188.34
sys 5.01

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/338106/ft1_filtered_4FGL_J2056.5-0202_daily_bin1628.fits scfile=/scratch/kocevski/338106/ft2_4FGL_J2056.5-0202_daily_bin1628.fits outfile=/scratch/kocevski/338106/cmap_661305601_661564801_4FGL_J2056.5-0202_daily_bin1628.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.43
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/338106/ft1_filtered_4FGL_J2056.5-0202_daily_bin1628.fits scfile=/scratch/kocevski/338106/ft2_4FGL_J2056.5-0202_daily_bin1628.fits outfile=/scratch/kocevski/338106/cmap_HighResolution_661305601_661564801_4FGL_J2056.5-0202_daily_bin1628.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.58
user 0.41
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/338106/ft1_filtered_4FGL_J2056.5-0202_daily_bin1628.fits evtable="EVENTS" scfile=/scratch/kocevski/338106/ft2_4FGL_J2056.5-0202_daily_bin1628.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/338106/Model_4FGL_J2056.5-0202_daily_bin1628.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/338106/ft1_filtered_4FGL_J2056.5-0202_daily_bin1628.fits.....................!
real 74.01
user 72.09
sys 1.66

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    78.327       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10042E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10497E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10061E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    21.640       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .28982E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    18.415       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    10.697       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10106E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    3.5507       1.0000         .10000E-03   10000.    
    16 'Prefactor '    1.2124       1.0000         .10000E-03   10000.    
    17 'Prefactor '    55.740       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    .80443       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .94845       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=   7229.340     FROM MIGRAD    STATUS=CONVERGED    436 CALLS     2059 TOTAL
                     EDM=   .67E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     78.317        44.203       -.19832E-05    .37402E-05
   2  Prefactor     .10000E-03    6.8248        .17386E-08** at limit **
   3  norm          .10000E-03    .78595        .73306E-07** at limit **
   4  Prefactor     .10000E-03    11.698        .19372E-06** at limit **
   5  norm          .10000E-03    1.2445       -.31873E-07** at limit **
   6  Prefactor     .10000E-03    1.8179       -.64433E-07** at limit **
   7  Prefactor     .10000E-03    4.7013       -.16104E-07** at limit **
   8  Prefactor     21.634        33.551        .30068E-04    .77126E-05
   9  Prefactor     .10000E-03    57.996       -.55472E-05** at limit **
  10  Prefactor     .10000E-03    8.8717       -.59286E-06** at limit **
  11  Prefactor     18.160        54.208       -.15839E-04    .43398E-05
  12  Prefactor     .10000E-03    8.7975        .63457E-06** at limit **
  13  Prefactor     10.704        25.512       -.16548E-04   -.81852E-05
  14  Prefactor     .10000E-03    18.551       -.92943E-06** at limit **
  15  Prefactor     3.5504        6.3212       -.43186E-06   -.32245E-03
  16  Prefactor     1.2151        2.1801       -.18790E-05   -.16095E-02
  17  Prefactor     55.744        38.874        .18033E-04    .76410E-04
  18  Prefactor     .10000E-03    20.510        .94482E-06** at limit **
  19  Normalizat    .80414        .24721       -.30988E-05    .69113E-04
  20  Prefactor     .94862        .10061        .64807E-06   -.28632E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 78.3168
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 21.6338
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 18.1595
  Prefactor  = 0.0001
  Prefactor  = 10.7037
  Prefactor  = 0.0001
  Prefactor  = 3.55038
  Prefactor  = 1.21511
  Prefactor  = 55.7441
  Prefactor  = 0.0001
  Normalizat = 0.804143
  Prefactor  = 0.948616
 **********
 **   18 **HESSE 
 **********

 FCN=   7229.340     FROM HESSE     STATUS=OK           289 CALLS     2348 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     78.317        44.276        .45375E-04   -1.3936    
   2  Prefactor     .10000E-03    6.8465        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    1.5212        .14513E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    11.824        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    1.2492        .92624E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    1.8256        .11192E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    4.7071        .18003E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     21.634        33.391        .86103E-04   -1.4777    
   9  Prefactor     .10000E-03    60.381        .42809E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    8.8796        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     18.160        54.160        .93334E-04   -1.4855    
  12  Prefactor     .10000E-03    8.8196        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     10.704        25.555        .12250E-03   -1.5054    
  14  Prefactor     .10000E-03    18.568        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     3.5504        6.3104        .21450E-03   -1.5331    
  16  Prefactor     1.2151        2.1478        .15846E-03   -1.5488    
  17  Prefactor     55.744        39.018        .53729E-04   -1.4213    
  18  Prefactor     .10000E-03    20.544        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    .80414        .28645        .39825E-03   -.99915    
  20  Prefactor     .94862        .11775        .15455E-03   -.94462    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.30476e-09
Minuit parameter uncertainties:
  1  44.2942
  2  5.78908e-06
  3  9.49269e-06
  4  1.39256e-05
  5  8.73138e-07
  6  8.06844e-06
  7  3.14771e-06
  8  33.4193
  9  0.000628745
  10  1.77718e-05
  11  54.3075
  12  8.18683e-06
  13  25.581
  14  1.86329e-05
  15  6.31158
  16  2.14793
  17  39.0355
  18  2.9262e-06
  19  0.28699
  20  0.117778
Done.

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

Extracting fit parameters...

4FGL J2056.5-0202
   Spectrum: PowerLaw
326    Prefactor:  1.000e-04  8.068e-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:  9.486e-01  1.178e-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:  8.041e-01  2.870e-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: 8.05e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.26e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/338106/likelihoodResults_661305601_661564801_4FGL_J2056.5-0202_daily_bin1628.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) = 7229.34217395
delta logL = -0.00261045205571

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7229.33956352
delta logL = -2.60324668488e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5148       1.0000          .0000       10.000    
     3 'Normalizat'    .80413       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .94861       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   7229.340     FROM MIGRAD    STATUS=FAILED        91 CALLS      249 TOTAL
                     EDM=   .25E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10013E-03    206.26        .11195E-02** at limit **
   2  Index         2.4759        6.1610        .50000        .86763E-05
   3  Normalizat    .80414        .72370E-01    .39825E-03    .41393E-05
   4  Prefactor     .94862        .30522E-01    .15455E-03    .18096E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   7229.340     FROM SIMPLEX   STATUS=UNCHANGED    150 CALLS      399 TOTAL
                     EDM=   .14E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10013E-03    206.26        .24496E-03** at limit **
   2  Index         2.4759        6.1610        .15793E-04    .86763E-05
   3  Normalizat    .80414        .72370E-01    .56519E-06    .41393E-05
   4  Prefactor     .94862        .30522E-01    .20865E-06    .18096E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7229.340     FROM MIGRAD    STATUS=CONVERGED     39 CALLS      438 TOTAL
                     EDM=   .36E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    2.7344        .22391E-03** at limit **
   2  Index         2.3923        8.0565        .50000       -.61868E-07
   3  Normalizat    .80414        .27399        .15930E-04    .12846E-04
   4  Prefactor     .94862        .11577        .61820E-05    .36780E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.39233
  Normalizat = 0.804141
  Prefactor  = 0.948616
 **********
 **   18 **HESSE 
 **********

 FCN=   7229.340     FROM HESSE     STATUS=OK            29 CALLS      467 TOTAL
                     EDM=   .18E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1.8629        .44782E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.3923        8.3887        .50000       -.54865    
   3  Normalizat    .80414        .27318        .31860E-05   -.99915    
   4  Prefactor     .94862        .11543        .12364E-05   -.94462    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.84984e-11
Minuit parameter uncertainties:
  1  1.34476e-05
  2  122.489
  3  0.273646
  4  0.115456
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/338106': 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) = 7229.33956331
delta logL = 1.88390004041e-07

Extracting fit parameters...

4FGL J2056.5-0202
   Spectrum: PowerLaw
326    Prefactor:  1.000e-04  1.345e-05  1.000e-04  1.000e+04 ( 1.000e-12)
327        Index:  2.392e+00  1.225e+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:  9.486e-01  1.155e-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:  8.041e-01  2.736e-01  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/338106/cmap_HighResolution_661305601_661564801_4FGL_J2056.5-0202_daily_bin1628.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.26e-03', job_status='DONE', photon_flux_upper_limit='8.05e-08', time_completed='2021-12-19 01:49:19.190128', job_id='338106', GAL2='0.95', fit_tolerance='1e-08', EG2='0.80', EG='0.80', time_epoch_completed='1639907359.19', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.95', dlogl='1.88e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.52' WHERE bin_id='1628' AND source_name='4FGL J2056.5-0202' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Dec 19 01:49:19 PST 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0129>
Subject: Job 338106: <4FGL_J2056.5-0202_daily_bin1628> in cluster <slac> Done

Job <4FGL_J2056.5-0202_daily_bin1628> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Sun Dec 19 01:35:19 2021
Job was executed on host(s) <bullet0129>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Dec 19 01:35:46 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Dec 19 01:35:46 2021
Terminated at Sun Dec 19 01:49:20 2021
Results reported at Sun Dec 19 01:49:20 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2056.5-0202_daily_bin1628 314.142 -2.0355 661305601 661564801 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 :                                   696.35 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             307.93 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   813 sec.
    Turnaround time :                            841 sec.

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

