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


Performing analysis on: 4FGL_J2056.5-0202_daily_bin1378
RA = 314.142, Dec = -2.0355
tmin = 596505601, tmax = 596764801
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='222676', job_status='RUN', time_executed='2021-09-25 22:18:49.681897', time_epoch_executed='1632633529.68' WHERE source_name='4FGL J2056.5-0202' and cadence='daily' and bin_id='1378'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/222676

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/222676/ft1_4FGL_J2056.5-0202_daily_bin1378.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/222676/ft2_4FGL_J2056.5-0202_daily_bin1378.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/222676/ft1_4FGL_J2056.5-0202_daily_bin1378.fits outfile=/scratch/kocevski/222676/ft1_filteredMKT_4FGL_J2056.5-0202_daily_bin1378.fits ra=314.142 dec=-2.0355 rad=12.0 tmin=596505601.0 tmax=596764801.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.91
user 2.70
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/222676/ft1_filtered_4FGL_J2056.5-0202_daily_bin1378.fits" evtable="EVENTS" scfile=/scratch/kocevski/222676/ft2_4FGL_J2056.5-0202_daily_bin1378.fits sctable="SC_DATA" outfile=/scratch/kocevski/222676/ltcube_596505601_596764801_4FGL_J2056.5-0202_daily_bin1378.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/222676/ft2_4FGL_J2056.5-0202_daily_bin1378.fits
.....................!
real 13.48
user 13.15
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/222676/ft1_filtered_4FGL_J2056.5-0202_daily_bin1378.fits evtable="EVENTS" scfile=/scratch/kocevski/222676/ft2_4FGL_J2056.5-0202_daily_bin1378.fits sctable="SC_DATA" expcube=/scratch/kocevski/222676/ltcube_596505601_596764801_4FGL_J2056.5-0202_daily_bin1378.fits outfile=/scratch/kocevski/222676/expmap_596505601_596764801_4FGL_J2056.5-0202_daily_bin1378.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/222676/ltcube_596505601_596764801_4FGL_J2056.5-0202_daily_bin1378.fits
.....................!
real 159.34
user 154.85
sys 4.10

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/222676/ft1_filtered_4FGL_J2056.5-0202_daily_bin1378.fits scfile=/scratch/kocevski/222676/ft2_4FGL_J2056.5-0202_daily_bin1378.fits outfile=/scratch/kocevski/222676/cmap_596505601_596764801_4FGL_J2056.5-0202_daily_bin1378.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.47
user 0.32
sys 0.15

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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/222676/ft1_filtered_4FGL_J2056.5-0202_daily_bin1378.fits evtable="EVENTS" scfile=/scratch/kocevski/222676/ft2_4FGL_J2056.5-0202_daily_bin1378.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/222676/Model_4FGL_J2056.5-0202_daily_bin1378.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/222676/ft1_filtered_4FGL_J2056.5-0202_daily_bin1378.fits.....................!
real 61.16
user 59.81
sys 1.21

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    47.308       1.0000         .10000E-03   10000.    
     2 'Prefactor '    1.8970       1.0000         .10000E-03   10000.    
     3 'norm      '    5.0046       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    4.5930       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    4.9556       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10005E-03   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 '    2.7869       1.0000         .10000E-03   10000.    
    13 'Prefactor '    10.020       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .11990E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .32772E-02   1.0000         .10000E-03   10000.    
    17 'Prefactor '    34.098       1.0000         .10000E-03   10000.    
    18 'Prefactor '    68.785       1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.1430       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .97653       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=   7122.170     FROM MIGRAD    STATUS=CONVERGED    430 CALLS     2083 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     47.305        38.095       -.97371E-06    .17688E-04
   2  Prefactor     1.8935        6.7651        .27507E-05   -.89420E-03
   3  norm          5.0049        1.6589        .37435E-07   -.26340E-06
   4  Prefactor     .10000E-03    6.6500        .13849E-07** at limit **
   5  norm          4.5930        3.8159        .70778E-07    .37249E-05
   6  Prefactor     .10000E-03    2.3222        .79724E-08** at limit **
   7  Prefactor     4.9524        15.116        .17364E-05   -.10761E-04
   8  Prefactor     .10000E-03    116.67        .12845E-06** at limit **
   9  Prefactor     .10000E-03    4.3504        .44477E-08** at limit **
  10  Prefactor     .10000E-03    6.7794        .18643E-07** at limit **
  11  Prefactor     .10000E-03    36.251        .34355E-05** at limit **
  12  Prefactor     2.7887        28.517       -.16875E-06   -.69577E-05
  13  Prefactor     10.020        15.980        .31711E-06    .11933E-04
  14  Prefactor     .10000E-03    24.515        .53076E-06** at limit **
  15  Prefactor     .10000E-03    3.7014        .44172E-07** at limit **
  16  Prefactor     .10020E-03    1.5146       -.16675E-05** at limit **
  17  Prefactor     34.105        38.812        .43609E-05    .28834E-03
  18  Prefactor     68.803        62.557        .12487E-04    .27058E-03
  19  Normalizat    1.1430        .26809       -.31983E-05    .41014E-03
  20  Prefactor     .97657        .10723        .39559E-06    .35609E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 47.3053
  Prefactor  = 1.89352
  norm       = 5.00485
  Prefactor  = 0.0001
  norm       = 4.59301
  Prefactor  = 0.0001
  Prefactor  = 4.95243
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.78873
  Prefactor  = 10.0198
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001002
  Prefactor  = 34.1052
  Prefactor  = 68.8033
  Normalizat = 1.14296
  Prefactor  = 0.97657
 **********
 **   18 **HESSE 
 **********

 FCN=   7122.170     FROM HESSE     STATUS=OK           289 CALLS     2372 TOTAL
                     EDM=   .14E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     47.305        38.150        .58297E-04   -1.4331    
   2  Prefactor     1.8935        26.794        .15101E-02   -1.5433    
   3  norm          5.0049        1.6583        .60574E-04   -1.5260    
   4  Prefactor     .10000E-03    6.7107        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          4.5930        3.8176        .14599E-03   -1.5279    
   6  Prefactor     .10000E-03    2.3360        .12554E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     4.9524        15.117        .18066E-03   -1.5263    
   8  Prefactor     .10000E-03    117.53        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    4.3521        .17192E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    6.7858        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    36.203        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     2.7887        28.382        .24374E-03   -1.5374    
  13  Prefactor     10.020        15.977        .12659E-03   -1.5075    
  14  Prefactor     .10000E-03    24.523        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    16.448        .31378E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10020E-03    38.337        .18458E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     34.105        38.875        .68625E-04   -1.4539    
  18  Prefactor     68.803        63.026        .48398E-04   -1.4047    
  19  Normalizat    1.1430        .31883        .37627E-03   -.88384    
  20  Prefactor     .97657        .13105        .16977E-03   -.93515    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.41038e-08
Minuit parameter uncertainties:
  1  38.17
  2  14.2531
  3  1.65833
  4  5.17051e-06
  5  3.81784
  6  4.92712e-06
  7  15.1282
  8  0.000198141
  9  1.43423e-06
  10  1.5214e-06
  11  6.93885e-05
  12  17.8038
  13  15.9842
  14  6.64143e-05
  15  1.26577e-05
  16  0.00553675
  17  38.9039
  18  63.0869
  19  0.319373
  20  0.131088
Done.

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

Extracting fit parameters...

4FGL J2056.5-0202
   Spectrum: PowerLaw
326    Prefactor:  1.000e-04  4.927e-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.766e-01  1.311e-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.143e+00  3.194e-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: 9.33e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.27e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/222676/likelihoodResults_596505601_596764801_4FGL_J2056.5-0202_daily_bin1378.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) = 7122.17186141
delta logL = -0.00204010020934

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7122.16982128
delta logL = 2.84908310277e-08

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.5276       1.0000          .0000       10.000    
     3 'Normalizat'    1.1429       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .97656       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=   7122.170     FROM MIGRAD    STATUS=CONVERGED     85 CALLS      238 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    494.81        .12607E-02** at limit **
   2  Index         2.5382        5.1300        .50000       -.40688E-04
   3  Normalizat    1.1430        .16388        .37627E-03   -.88889E-04
   4  Prefactor     .97657        .69435E-01    .16977E-03   -.12797E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100004
  Index      = 2.53824
  Normalizat = 1.14295
  Prefactor  = 0.976573
 **********
 **   18 **HESSE 
 **********

 FCN=   7122.170     FROM HESSE     STATUS=OK            29 CALLS      267 TOTAL
                     EDM=   .26E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    2.5462        .25214E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.5382        6.2688        .50000       -.51479    
   3  Normalizat    1.1430        .29804        .15051E-04   -.88384    
   4  Prefactor     .97657        .12650        .33955E-04   -.93515    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.6187e-09
Minuit parameter uncertainties:
  1  0.000199459
  2  4.52512
  3  0.298479
  4  0.126534
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/222676': 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) = 7122.16982112
delta logL = 1.90276296053e-07

Extracting fit parameters...

4FGL J2056.5-0202
   Spectrum: PowerLaw
326    Prefactor:  1.000e-04  1.995e-04  1.000e-04  1.000e+04 ( 1.000e-12)
327        Index:  2.538e+00  4.525e+00  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.766e-01  1.265e-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.143e+00  2.985e-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/222676/cmap_HighResolution_596505601_596764801_4FGL_J2056.5-0202_daily_bin1378.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.27e-03', job_status='DONE', photon_flux_upper_limit='9.33e-08', time_completed='2021-09-25 22:28:25.346106', job_id='222676', GAL2='0.98', fit_tolerance='1e-08', EG2='1.14', EG='1.14', time_epoch_completed='1632634105.35', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.98', dlogl='1.90e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.52' WHERE bin_id='1378' AND source_name='4FGL J2056.5-0202' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 25 22:28:25 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0026>
Subject: Job 222676: <4FGL_J2056.5-0202_daily_bin1378> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2056.5-0202_daily_bin1378 314.142 -2.0355 596505601 596764801 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 :                                   564.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             233.52 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   752 sec.
    Turnaround time :                            781 sec.

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

