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


Performing analysis on: 4FGL_J2056.5-0202_daily_bin1634
RA = 314.142, Dec = -2.0355
tmin = 662860801, tmax = 663120001
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='771716', job_status='RUN', time_executed='2022-01-06 02:12:25.050925', time_epoch_executed='1641463945.05' WHERE source_name='4FGL J2056.5-0202' and cadence='daily' and bin_id='1634'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/771716

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/771716/ft1_4FGL_J2056.5-0202_daily_bin1634.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/771716/ft2_4FGL_J2056.5-0202_daily_bin1634.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/771716/ft1_4FGL_J2056.5-0202_daily_bin1634.fits outfile=/scratch/kocevski/771716/ft1_filteredMKT_4FGL_J2056.5-0202_daily_bin1634.fits ra=314.142 dec=-2.0355 rad=12.0 tmin=662860801.0 tmax=663120001.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.04
user 2.78
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/771716/ft1_filtered_4FGL_J2056.5-0202_daily_bin1634.fits" evtable="EVENTS" scfile=/scratch/kocevski/771716/ft2_4FGL_J2056.5-0202_daily_bin1634.fits sctable="SC_DATA" outfile=/scratch/kocevski/771716/ltcube_662860801_663120001_4FGL_J2056.5-0202_daily_bin1634.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/771716/ft2_4FGL_J2056.5-0202_daily_bin1634.fits
.....................!
real 15.09
user 14.54
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/771716/ft1_filtered_4FGL_J2056.5-0202_daily_bin1634.fits evtable="EVENTS" scfile=/scratch/kocevski/771716/ft2_4FGL_J2056.5-0202_daily_bin1634.fits sctable="SC_DATA" expcube=/scratch/kocevski/771716/ltcube_662860801_663120001_4FGL_J2056.5-0202_daily_bin1634.fits outfile=/scratch/kocevski/771716/expmap_662860801_663120001_4FGL_J2056.5-0202_daily_bin1634.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/771716/ltcube_662860801_663120001_4FGL_J2056.5-0202_daily_bin1634.fits
.....................!
real 193.82
user 187.10
sys 4.34

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/771716/ft1_filtered_4FGL_J2056.5-0202_daily_bin1634.fits scfile=/scratch/kocevski/771716/ft2_4FGL_J2056.5-0202_daily_bin1634.fits outfile=/scratch/kocevski/771716/cmap_662860801_663120001_4FGL_J2056.5-0202_daily_bin1634.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.40
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/771716/ft1_filtered_4FGL_J2056.5-0202_daily_bin1634.fits scfile=/scratch/kocevski/771716/ft2_4FGL_J2056.5-0202_daily_bin1634.fits outfile=/scratch/kocevski/771716/cmap_HighResolution_662860801_663120001_4FGL_J2056.5-0202_daily_bin1634.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.61
user 0.41
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/771716/ft1_filtered_4FGL_J2056.5-0202_daily_bin1634.fits evtable="EVENTS" scfile=/scratch/kocevski/771716/ft2_4FGL_J2056.5-0202_daily_bin1634.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/771716/Model_4FGL_J2056.5-0202_daily_bin1634.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/771716/ft1_filtered_4FGL_J2056.5-0202_daily_bin1634.fits.....................!
real 76.38
user 74.23
sys 1.23

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    65.830       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10623E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    1.0613       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10069E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    3.1842       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10069E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    46.206       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10453E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10267E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    18.414       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .11121E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    15.368       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10031E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    .92061       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .95487       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=   7174.994     FROM MIGRAD    STATUS=CONVERGED    428 CALLS     2044 TOTAL
                     EDM=   .20E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     65.848        60.433        .15746E-04   -.53813E-05
   2  Prefactor     .10000E-03    51.116        .37841E-05** at limit **
   3  norm          1.0623        1.9445       -.69472E-06   -.83181E-03
   4  Prefactor     .10000E-03    28.514       -.17013E-04** at limit **
   5  norm          3.1841        3.5236       -.10097E-06   -.26637E-04
   6  Prefactor     .10000E-03    6.9824       -.18136E-06** at limit **
   7  Prefactor     46.191        25.351       -.46976E-05    .56985E-04
   8  Prefactor     .10000E-03    10.103        .19835E-05** at limit **
   9  Prefactor     .10000E-03    9.4445       -.16934E-05** at limit **
  10  Prefactor     .10000E-03    7.7540        .22007E-06** at limit **
  11  Prefactor     .10000E-03    22.947        .14799E-04** at limit **
  12  Prefactor     .10000E-03    51.688        .64984E-05** at limit **
  13  Prefactor     .10000E-03    71.868       -.15139E-05** at limit **
  14  Prefactor     18.378        38.538       -.39882E-04   -.46638E-04
  15  Prefactor     .10000E-03    1.7946       -.23662E-07** at limit **
  16  Prefactor     .10000E-03    1.1139        .89810E-06** at limit **
  17  Prefactor     15.358        27.572       -.27553E-05   -.57406E-05
  18  Prefactor     .10000E-03    16.892       -.35893E-05** at limit **
  19  Normalizat    .92114        .25030        .12032E-04   -.23977E-03
  20  Prefactor     .95465        .10026       -.21961E-05    .67124E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 65.8476
  Prefactor  = 0.000100002
  norm       = 1.06228
  Prefactor  = 0.0001
  norm       = 3.18413
  Prefactor  = 0.0001
  Prefactor  = 46.1913
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.000100001
  Prefactor  = 18.378
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 15.3576
  Prefactor  = 0.0001
  Normalizat = 0.92114
  Prefactor  = 0.954651
 **********
 **   18 **HESSE 
 **********

 FCN=   7174.994     FROM HESSE     STATUS=OK           283 CALLS     2327 TOTAL
                     EDM=   .48E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     65.848        60.491        .49465E-04   -1.4083    
   2  Prefactor     .10000E-03    52.316        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          1.0623        1.9056        .15250E-03   -1.5502    
   4  Prefactor     .10000E-03    28.577        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          3.1841        3.5190        .16275E-03   -1.5351    
   6  Prefactor     .10000E-03    7.1983        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     46.191        25.439        .58985E-04   -1.4348    
   8  Prefactor     .10000E-03    10.104        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    9.4623        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    7.7590        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    22.978        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    53.648        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    73.508        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     18.378        38.635        .93335E-04   -1.4850    
  15  Prefactor     .10000E-03    1.8002        .11081E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    1.1651        .17504E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     15.358        27.672        .10217E-03   -1.4924    
  18  Prefactor     .10000E-03    16.897        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    .92114        .29417        .38515E-03   -.95721    
  20  Prefactor     .95465        .11956        .16175E-03   -.94257    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.75019e-09
Minuit parameter uncertainties:
  1  60.5472
  2  0.000680427
  3  1.90571
  4  1.72576e-05
  5  3.51927
  6  3.34498e-05
  7  25.4446
  8  5.01896e-06
  9  2.92639e-05
  10  1.20394e-05
  11  5.7274e-05
  12  0.000449865
  13  0.000628429
  14  38.6877
  15  1.39849e-06
  16  0.000102141
  17  27.6951
  18  7.87964e-05
  19  0.294681
  20  0.119595
Done.

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

Extracting fit parameters...

4FGL J2056.5-0202
   Spectrum: PowerLaw
326    Prefactor:  1.000e-04  3.345e-05  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.547e-01  1.196e-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:  9.211e-01  2.947e-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: 1.20e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.36e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/771716/likelihoodResults_662860801_663120001_4FGL_J2056.5-0202_daily_bin1634.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) = 7174.99452523
delta logL = -0.000663140590405

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7174.99385963
delta logL = 2.45587580139e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10834E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.6130       1.0000          .0000       10.000    
     3 'Normalizat'    .92105       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .95468       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.

 FCN=   7171.563     FROM MIGRAD    STATUS=CONVERGED    235 CALLS      403 TOTAL
                     EDM=   .59E-11    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    .23964E-02    .28116E-03** at limit **
   2  Index         9.6893        9.0043        .23157        .26172E-05
   3  Normalizat    .67376        .95130E-01    .99914E-01   -.18079E-04
   4  Prefactor     1.0220        .40745E-01    .45698E-01   -.90898E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 9.68926
  Normalizat = 0.673756
  Prefactor  = 1.02202
 **********
 **   18 **HESSE 
 **********

 FCN=   7171.563     FROM HESSE     STATUS=NOT POSDEF    41 CALLS      444 TOTAL
                     EDM=   .70E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    .14629E-01    .10934E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         9.6893        9.1002        .13181E-01    1.2164    
   3  Normalizat    .67376        .18258        .44278E-03   -1.0494    
   4  Prefactor     1.0220        .77384E-01    .15657E-03   -.91999    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 6.998e-10
Minuit parameter uncertainties:
  1  5.63744e-08
  2  3.46155
  3  0.182748
  4  0.0773927
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/771716': 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) = 7171.56263285
delta logL = 3.43122923799

Extracting fit parameters...

4FGL J2056.5-0202
   Spectrum: PowerLaw
326    Prefactor:  1.000e-04  5.637e-08  1.000e-04  1.000e+04 ( 1.000e-12)
327        Index:  9.689e+00  3.462e+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:  1.022e+00  7.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:  6.738e-01  1.827e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 7.61
Ra Dec: 314.142 -2.035
Photon Index (Free Index): 9.69 +/- 3.46
Photon Flux (Free Index): 2.32e-07 +/- 1.44e-06
Energy Flux (Free Index): 2.60e-05 +/- 1.62e-04

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/771716/cmap_HighResolution_662860801_663120001_4FGL_J2056.5-0202_daily_bin1634.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.36e-03', comment='SUCCESS', energy_flux2='2.60e-05', dlogl='3.43e+00', photon_flux2='2.32e-07', job_status='DONE', time_completed='2022-01-06 02:23:49.657677', photon_index_error2='3.46', photon_index2='9.69', ts='-0.00', fit_tolerance='1e-08', GAL='0.95', photon_index_error='0.00', photon_flux_upper_limit='1.20e-07', energy_flux_error2='1.62e-04', EG='0.92', time_epoch_completed='1641464629.66', return_code='0', job_id='771716', GAL2='1.02', EG2='0.67', return_code2='102', photon_flux_error2='1.44e-06', ts2='7.61', photon_index='2.52' WHERE bin_id='1634' AND source_name='4FGL J2056.5-0202' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Jan  6 02:23:49 PST 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0149>
Subject: Job 771716: <4FGL_J2056.5-0202_daily_bin1634> in cluster <slac> Done

Job <4FGL_J2056.5-0202_daily_bin1634> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Thu Jan  6 02:10:23 2022
Job was executed on host(s) <bullet0149>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Jan  6 02:11:22 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Jan  6 02:11:22 2022
Terminated at Thu Jan  6 02:23:50 2022
Results reported at Thu Jan  6 02:23:50 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2056.5-0202_daily_bin1634 314.142 -2.0355 662860801 663120001 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 :                                   679.35 sec.
    Max Memory :                                 1109 MB
    Average Memory :                             324.77 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   747 sec.
    Turnaround time :                            807 sec.

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

