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


Performing analysis on: 4FGL_J2056.5-0202_daily_bin1037
RA = 314.142, Dec = -2.0355
tmin = 508118401, tmax = 508377601
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='221175', job_status='RUN', time_executed='2021-09-25 22:13:14.614782', time_epoch_executed='1632633194.61' WHERE source_name='4FGL J2056.5-0202' and cadence='daily' and bin_id='1037'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/221175

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/221175/ft1_4FGL_J2056.5-0202_daily_bin1037.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/221175/ft2_4FGL_J2056.5-0202_daily_bin1037.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/221175/ft1_4FGL_J2056.5-0202_daily_bin1037.fits outfile=/scratch/kocevski/221175/ft1_filteredMKT_4FGL_J2056.5-0202_daily_bin1037.fits ra=314.142 dec=-2.0355 rad=12.0 tmin=508118401.0 tmax=508377601.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.70
user 3.47
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/221175/ft1_filtered_4FGL_J2056.5-0202_daily_bin1037.fits" evtable="EVENTS" scfile=/scratch/kocevski/221175/ft2_4FGL_J2056.5-0202_daily_bin1037.fits sctable="SC_DATA" outfile=/scratch/kocevski/221175/ltcube_508118401_508377601_4FGL_J2056.5-0202_daily_bin1037.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/221175/ft2_4FGL_J2056.5-0202_daily_bin1037.fits
.....................!
real 14.79
user 14.37
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/221175/ft1_filtered_4FGL_J2056.5-0202_daily_bin1037.fits evtable="EVENTS" scfile=/scratch/kocevski/221175/ft2_4FGL_J2056.5-0202_daily_bin1037.fits sctable="SC_DATA" expcube=/scratch/kocevski/221175/ltcube_508118401_508377601_4FGL_J2056.5-0202_daily_bin1037.fits outfile=/scratch/kocevski/221175/expmap_508118401_508377601_4FGL_J2056.5-0202_daily_bin1037.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/221175/ltcube_508118401_508377601_4FGL_J2056.5-0202_daily_bin1037.fits
.....................!
real 191.54
user 185.58
sys 5.38

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/221175/ft1_filtered_4FGL_J2056.5-0202_daily_bin1037.fits scfile=/scratch/kocevski/221175/ft2_4FGL_J2056.5-0202_daily_bin1037.fits outfile=/scratch/kocevski/221175/cmap_508118401_508377601_4FGL_J2056.5-0202_daily_bin1037.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.39
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/221175/ft1_filtered_4FGL_J2056.5-0202_daily_bin1037.fits scfile=/scratch/kocevski/221175/ft2_4FGL_J2056.5-0202_daily_bin1037.fits outfile=/scratch/kocevski/221175/cmap_HighResolution_508118401_508377601_4FGL_J2056.5-0202_daily_bin1037.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.56
user 0.38
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/221175/ft1_filtered_4FGL_J2056.5-0202_daily_bin1037.fits evtable="EVENTS" scfile=/scratch/kocevski/221175/ft2_4FGL_J2056.5-0202_daily_bin1037.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/221175/Model_4FGL_J2056.5-0202_daily_bin1037.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/221175/ft1_filtered_4FGL_J2056.5-0202_daily_bin1037.fits.....................!
real 90.29
user 88.31
sys 1.20

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    7.5286       1.0000         .10000E-03   10000.    
     2 'Prefactor '    11.688       1.0000         .10000E-03   10000.    
     3 'norm      '    .68402       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    1.9436       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10144E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .18042E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    5.8599       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    18.704       1.0000         .10000E-03   10000.    
    13 'Prefactor '    36.191       1.0000         .10000E-03   10000.    
    14 'Prefactor '    6.5683       1.0000         .10000E-03   10000.    
    15 'Prefactor '    5.9811       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .49448       1.0000         .10000E-03   10000.    
    17 'Prefactor '    38.374       1.0000         .10000E-03   10000.    
    18 'Prefactor '    56.128       1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.2880       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .92621       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=   8897.004     FROM MIGRAD    STATUS=CONVERGED    400 CALLS     2049 TOTAL
                     EDM=   .51E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.5236        18.893        .26388E-06   -.59106E-05
   2  Prefactor     11.686        10.888        .81130E-07   -.10388E-04
   3  norm          .68407        1.2724        .79645E-06    .18835E-03
   4  Prefactor     .10000E-03    16.359       -.23404E-07** at limit **
   5  norm          1.9437        2.1473       -.17198E-07   -.40175E-04
   6  Prefactor     .10000E-03    1.3930        .97543E-07** at limit **
   7  Prefactor     .10000E-03    26.635        .86543E-06** at limit **
   8  Prefactor     .10000E-03    16.833        .46410E-07** at limit **
   9  Prefactor     .10000E-03    36.810       -.34182E-05** at limit **
  10  Prefactor     5.8135        22.088        .13386E-05    .10439E-06
  11  Prefactor     .10000E-03    27.243       -.21708E-06** at limit **
  12  Prefactor     18.707        21.226       -.10567E-06   -.13241E-05
  13  Prefactor     36.195        24.070       -.16475E-07    .96831E-05
  14  Prefactor     6.5620        27.489        .79076E-06    .24017E-05
  15  Prefactor     5.9817        5.6216        .66674E-07    .86493E-05
  16  Prefactor     .49637        1.9688       -.48851E-07   -.43440E-04
  17  Prefactor     38.330        41.064        .26298E-06   -.29165E-04
  18  Prefactor     56.121        42.712        .16708E-06   -.34210E-05
  19  Normalizat    1.2875        .25136        .14614E-05   -.10618E-03
  20  Prefactor     .92644        .10027       -.98239E-06    .35103E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.52362
  Prefactor  = 11.6864
  norm       = 0.68407
  Prefactor  = 0.0001
  norm       = 1.94373
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.81348
  Prefactor  = 0.0001
  Prefactor  = 18.7069
  Prefactor  = 36.1951
  Prefactor  = 6.56199
  Prefactor  = 5.9817
  Prefactor  = 0.496374
  Prefactor  = 38.3298
  Prefactor  = 56.1208
  Normalizat = 1.28751
  Prefactor  = 0.926436
 **********
 **   18 **HESSE 
 **********

 FCN=   8897.004     FROM HESSE     STATUS=OK           297 CALLS     2346 TOTAL
                     EDM=   .14E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.5236        18.904        .14616E-03   -1.5159    
   2  Prefactor     11.686        10.889        .11718E-03   -1.5024    
   3  norm          .68407        1.2876        .13837E-03   -1.5543    
   4  Prefactor     .10000E-03    16.519        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          1.9437        2.1453        .14135E-03   -1.5429    
   6  Prefactor     .10000E-03    1.3988        .10871E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    27.682        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    16.846        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    37.383        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     5.8135        22.154        .16590E-03   -1.5226    
  11  Prefactor     .10000E-03    27.263        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     18.707        21.293        .92609E-04   -1.4843    
  13  Prefactor     36.195        24.085        .66617E-04   -1.4504    
  14  Prefactor     6.5620        26.714        .15658E-03   -1.5196    
  15  Prefactor     5.9817        5.6198        .16419E-03   -1.5219    
  16  Prefactor     .49637        1.8880        .23515E-03   -1.5567    
  17  Prefactor     38.330        40.702        .64701E-04   -1.4469    
  18  Prefactor     56.121        42.617        .53544E-04   -1.4208    
  19  Normalizat    1.2875        .29045        .36515E-03   -.83940    
  20  Prefactor     .92644        .11541        .17335E-03   -.95223    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.3624e-10
Minuit parameter uncertainties:
  1  18.9188
  2  10.8913
  3  1.28762
  4  0.00010756
  5  2.14534
  6  5.6791e-07
  7  1.10294e-06
  8  7.59078e-06
  9  0.00011757
  10  22.1849
  11  2.13043e-05
  12  21.3015
  13  24.0911
  14  26.5002
  15  5.62026
  16  1.88818
  17  40.7311
  18  42.6405
  19  0.290815
  20  0.115436
Done.

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

Extracting fit parameters...

4FGL J2056.5-0202
   Spectrum: PowerLaw
326    Prefactor:  1.000e-04  5.679e-07  1.000e-04  1.000e+04 ( 1.000e-12)
327        Index:  2.517e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
328        Scale:  7.173e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
586    Prefactor:  9.264e-01  1.154e-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.288e+00  2.908e-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.56e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.11e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/221175/likelihoodResults_508118401_508377601_4FGL_J2056.5-0202_daily_bin1037.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): 0
logL (Free Index) = 8897.0069292
delta logL = -0.00339382823222

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8897.00353545
delta logL = -7.91296770331e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5116       1.0000          .0000       10.000    
     3 'Normalizat'    1.2875       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .92641       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=   8897.004     FROM MIGRAD    STATUS=CONVERGED     91 CALLS      228 TOTAL
                     EDM=   .31E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    2.4157        .10886E-02** at limit **
   2  Index         2.1846        7.6612        .93978E-01   -.96777E-08
   3  Normalizat    1.2875        .27364        .36514E-03    .12454E-03
   4  Prefactor     .92644        .11317        .17335E-03    .29249E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.18458
  Normalizat = 1.28751
  Prefactor  = 0.926435
 **********
 **   18 **HESSE 
 **********

 FCN=   8897.004     FROM HESSE     STATUS=OK            23 CALLS      251 TOTAL
                     EDM=   .30E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1.4619        .21772E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1846        8.7211        .37591E-02   -.59811    
   3  Normalizat    1.2875        .27390        .14606E-04   -.83940    
   4  Prefactor     .92644        .11327        .34671E-04   -.95223    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.03073e-11
Minuit parameter uncertainties:
  1  3.16506e-07
  2  174.38
  3  0.274204
  4  0.113302
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/221175': 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) = 8897.00353383
delta logL = 1.54111694428e-06

Extracting fit parameters...

4FGL J2056.5-0202
   Spectrum: PowerLaw
326    Prefactor:  1.000e-04  3.165e-07  1.000e-04  1.000e+04 ( 1.000e-12)
327        Index:  2.185e+00  1.744e+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.264e-01  1.133e-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.288e+00  2.742e-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/221175/cmap_HighResolution_508118401_508377601_4FGL_J2056.5-0202_daily_bin1037.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.11e-03', job_status='DONE', photon_flux_upper_limit='6.56e-08', time_completed='2021-09-25 22:26:39.186729', job_id='221175', GAL2='0.93', fit_tolerance='1e-08', EG2='1.29', EG='1.29', time_epoch_completed='1632633999.19', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.93', dlogl='1.54e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.52' WHERE bin_id='1037' AND source_name='4FGL J2056.5-0202' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 25 22:26:39 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0014>
Subject: Job 221175: <4FGL_J2056.5-0202_daily_bin1037> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2056.5-0202_daily_bin1037 314.142 -2.0355 508118401 508377601 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 :                                   795.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             315.69 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   946 sec.
    Turnaround time :                            971 sec.

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

