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


Performing analysis on: 4FGL_J2056.5-0202_daily_bin1113
RA = 314.142, Dec = -2.0355
tmin = 527817601, tmax = 528076801
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='221293', job_status='RUN', time_executed='2021-09-25 22:15:15.690118', time_epoch_executed='1632633315.69' WHERE source_name='4FGL J2056.5-0202' and cadence='daily' and bin_id='1113'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/221293

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/221293/ft1_4FGL_J2056.5-0202_daily_bin1113.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/221293/ft2_4FGL_J2056.5-0202_daily_bin1113.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/221293/ft1_4FGL_J2056.5-0202_daily_bin1113.fits outfile=/scratch/kocevski/221293/ft1_filteredMKT_4FGL_J2056.5-0202_daily_bin1113.fits ra=314.142 dec=-2.0355 rad=12.0 tmin=527817601.0 tmax=528076801.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.55
user 3.30
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/221293/ft1_filtered_4FGL_J2056.5-0202_daily_bin1113.fits" evtable="EVENTS" scfile=/scratch/kocevski/221293/ft2_4FGL_J2056.5-0202_daily_bin1113.fits sctable="SC_DATA" outfile=/scratch/kocevski/221293/ltcube_527817601_528076801_4FGL_J2056.5-0202_daily_bin1113.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/221293/ft2_4FGL_J2056.5-0202_daily_bin1113.fits
.....................!
real 17.47
user 16.91
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/221293/ft1_filtered_4FGL_J2056.5-0202_daily_bin1113.fits evtable="EVENTS" scfile=/scratch/kocevski/221293/ft2_4FGL_J2056.5-0202_daily_bin1113.fits sctable="SC_DATA" expcube=/scratch/kocevski/221293/ltcube_527817601_528076801_4FGL_J2056.5-0202_daily_bin1113.fits outfile=/scratch/kocevski/221293/expmap_527817601_528076801_4FGL_J2056.5-0202_daily_bin1113.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/221293/ltcube_527817601_528076801_4FGL_J2056.5-0202_daily_bin1113.fits
.....................!
real 193.57
user 187.73
sys 4.83

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/221293/ft1_filtered_4FGL_J2056.5-0202_daily_bin1113.fits scfile=/scratch/kocevski/221293/ft2_4FGL_J2056.5-0202_daily_bin1113.fits outfile=/scratch/kocevski/221293/cmap_527817601_528076801_4FGL_J2056.5-0202_daily_bin1113.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.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/221293/ft1_filtered_4FGL_J2056.5-0202_daily_bin1113.fits scfile=/scratch/kocevski/221293/ft2_4FGL_J2056.5-0202_daily_bin1113.fits outfile=/scratch/kocevski/221293/cmap_HighResolution_527817601_528076801_4FGL_J2056.5-0202_daily_bin1113.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.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/221293/ft1_filtered_4FGL_J2056.5-0202_daily_bin1113.fits evtable="EVENTS" scfile=/scratch/kocevski/221293/ft2_4FGL_J2056.5-0202_daily_bin1113.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/221293/Model_4FGL_J2056.5-0202_daily_bin1113.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/221293/ft1_filtered_4FGL_J2056.5-0202_daily_bin1113.fits.....................!
real 70.02
user 68.45
sys 1.16

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.9723       1.0000         .10000E-03   10000.    
     2 'Prefactor '    7.3366       1.0000         .10000E-03   10000.    
     3 'norm      '    18.061       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10255E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    18.006       1.0000         .10000E-03   10000.    
     7 'Prefactor '    1.4723       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    29.930       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .12460E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    52.426       1.0000         .10000E-03   10000.    
    13 'Prefactor '    11.610       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    6.6771       1.0000         .10000E-03   10000.    
    16 'Prefactor '    3.7170       1.0000         .10000E-03   10000.    
    17 'Prefactor '    21.936       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    .37141       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.0868       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=   6970.063     FROM MIGRAD    STATUS=CONVERGED    419 CALLS     2043 TOTAL
                     EDM=   .20E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.9443        41.736       -.36668E-05   -.89282E-04
   2  Prefactor     7.3392        10.690        .84615E-07    .23623E-04
   3  norm          18.061        2.9272        .23628E-07    .25666E-03
   4  Prefactor     .10000E-03    18.927       -.29989E-06** at limit **
   5  norm          .10000E-03    1.0738        .32884E-08** at limit **
   6  Prefactor     18.004        7.3755        .38937E-06   -.17374E-03
   7  Prefactor     1.4648        43.940        .31041E-05   -.11636E-04
   8  Prefactor     .10000E-03    19.980        .34017E-06** at limit **
   9  Prefactor     29.923        23.184        .36910E-06    .26745E-04
  10  Prefactor     .10000E-03    102.90        .71275E-06** at limit **
  11  Prefactor     .10000E-03    18.185        .11386E-06** at limit **
  12  Prefactor     52.414        25.268       -.35010E-07   -.15438E-04
  13  Prefactor     11.608        12.013        .10737E-06    .73670E-05
  14  Prefactor     .10000E-03    43.115       -.29102E-06** at limit **
  15  Prefactor     6.6763        7.4950        .52966E-06    .17711E-03
  16  Prefactor     3.7165        2.4534        .72659E-06   -.91572E-03
  17  Prefactor     21.937        28.421       -.26350E-06    .12034E-04
  18  Prefactor     .10000E-03    30.642       -.16352E-06** at limit **
  19  Normalizat    .37193        .35206       -.59142E-05   -.46220E-04
  20  Prefactor     1.0866        .13923        .11069E-05    .41063E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.94429
  Prefactor  = 7.33915
  norm       = 18.0612
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 18.0042
  Prefactor  = 1.46476
  Prefactor  = 0.0001
  Prefactor  = 29.9231
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 52.4138
  Prefactor  = 11.6085
  Prefactor  = 0.0001
  Prefactor  = 6.67634
  Prefactor  = 3.71651
  Prefactor  = 21.9375
  Prefactor  = 0.0001
  Normalizat = 0.371934
  Prefactor  = 1.0866
 **********
 **   18 **HESSE 
 **********

 FCN=   6970.063     FROM HESSE     STATUS=OK           295 CALLS     2338 TOTAL
                     EDM=   .41E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.9443        44.857        .15193E-03   -1.5181    
   2  Prefactor     7.3392        10.715        .14808E-03   -1.5166    
   3  norm          18.061        2.9120        .54678E-04   -1.4858    
   4  Prefactor     .10000E-03    19.039        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    1.0753        .84485E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     18.004        7.3546        .47193E-03   -1.4859    
   7  Prefactor     1.4648        43.111        .35408E-03   -1.5466    
   8  Prefactor     .10000E-03    20.028        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     29.923        22.916        .73235E-04   -1.4613    
  10  Prefactor     .10000E-03    103.74        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    18.195        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     52.414        25.159        .55392E-04   -1.4259    
  13  Prefactor     11.608        11.988        .11757E-03   -1.5026    
  14  Prefactor     .10000E-03    43.406        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     6.6763        7.5371        .15529E-03   -1.5191    
  16  Prefactor     3.7165        2.4794        .50842E-03   -1.5322    
  17  Prefactor     21.937        28.124        .85520E-04   -1.4771    
  18  Prefactor     .10000E-03    30.773        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    .37193        .32482        .60506E-03   -1.1878    
  20  Prefactor     1.0866        .13274        .15635E-03   -.89896    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.07105e-10
Minuit parameter uncertainties:
  1  35.3372
  2  10.7183
  3  2.91206
  4  4.13347e-05
  5  1.76182e-08
  6  7.35497
  7  15.9051
  8  6.22565e-05
  9  22.9232
  10  8.09038e-07
  11  2.13798e-05
  12  25.1639
  13  11.9906
  14  7.79143e-05
  15  7.53815
  16  2.47949
  17  28.1407
  18  4.50191e-05
  19  0.326477
  20  0.132783
Done.

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

Extracting fit parameters...

4FGL J2056.5-0202
   Spectrum: PowerLaw
326    Prefactor:  1.800e+01  7.355e+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

GAL_V02
   Spectrum: PowerLaw
586    Prefactor:  1.087e+00  1.328e-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:  3.719e-01  3.265e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 10.96
Ra Dec: 314.142 -2.035
Photon Index (Fixed Index): 2.52 +/- 0.00
Photon Flux (Fixed Index): 1.69e-07 +/- 6.91e-08
Energy Flux (Fixed Index): 4.82e-05 +/- 1.97e-05

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) = 6969.80522029
delta logL = 0.257750800376

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6969.80218358
delta logL = 0.260787505284

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    12.803       1.0000         .10000E-03   10000.    
     2 'Index     '    2.8993       1.0000          .0000       10.000    
     3 'Normalizat'    .31322       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1050       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=   6969.802     FROM MIGRAD    STATUS=CONVERGED     83 CALLS      291 TOTAL
                     EDM=   .59E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     12.805        11.161        .10786E-03   -.60405E-03
   2  Index         2.8994        .66814        .45107E-02   -.11877E-03
   3  Normalizat    .31346        .31414        .65622E-03    .13226E-03
   4  Prefactor     1.1048        .13248        .15522E-03    .96752E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 12.8045
  Index      = 2.89936
  Normalizat = 0.313458
  Prefactor  = 1.10484
 **********
 **   18 **HESSE 
 **********

 FCN=   6969.802     FROM HESSE     STATUS=OK            25 CALLS      316 TOTAL
                     EDM=   .59E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     12.805        9.7546        .43144E-05   -1.4992    
   2  Index         2.8994        .58373        .18043E-03   -.43359    
   3  Normalizat    .31346        .31188        .26249E-04   -1.2204    
   4  Prefactor     1.1048        .13163        .31044E-04   -.89312    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.90102e-10
Minuit parameter uncertainties:
  1  9.75576
  2  0.585353
  3  0.313625
  4  0.131664
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/221293': 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) = 6969.8021829
delta logL = 0.26078818705

Extracting fit parameters...

4FGL J2056.5-0202
   Spectrum: PowerLaw
326    Prefactor:  1.280e+01  9.756e+00  1.000e-04  1.000e+04 ( 1.000e-12)
327        Index:  2.899e+00  5.854e-01  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.105e+00  1.317e-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:  3.135e-01  3.136e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 11.61
Ra Dec: 314.142 -2.035
Photon Index (Free Index): 2.90 +/- 0.59
Photon Flux (Free Index): 2.04e-07 +/- 8.80e-08
Energy Flux (Free Index): 4.30e-05 +/- 1.78e-05

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/221293/cmap_HighResolution_527817601_528076801_4FGL_J2056.5-0202_daily_bin1113.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.69e-07', energy_flux2='4.30e-05', photon_flux_error='6.91e-08', dlogl='2.61e-01', energy_flux='4.82e-05', photon_flux2='2.04e-07', job_status='DONE', time_completed='2021-09-25 22:25:35.863685', photon_index_error2='0.59', photon_index2='2.90', ts='10.96', fit_tolerance='1e-08', GAL='1.09', photon_index_error='0.00', energy_flux_error2='1.78e-05', EG='0.37', time_epoch_completed='1632633935.86', return_code='0', job_id='221293', GAL2='1.10', EG2='0.31', return_code2='0', energy_flux_error='1.97e-05', photon_flux_error2='8.80e-08', ts2='11.61', photon_index='2.52' WHERE bin_id='1113' AND source_name='4FGL J2056.5-0202' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 25 22:25:35 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0250>
Subject: Job 221293: <4FGL_J2056.5-0202_daily_bin1113> in cluster <slac> Done

Job <4FGL_J2056.5-0202_daily_bin1113> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sat Sep 25 22:10:37 2021
Job was executed on host(s) <bullet0250>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep 25 22:11:27 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:11:27 2021
Terminated at Sat Sep 25 22:25:36 2021
Results reported at Sat Sep 25 22:25:36 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2056.5-0202_daily_bin1113 314.142 -2.0355 527817601 528076801 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 :                                   615.53 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             304.24 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   851 sec.
    Turnaround time :                            899 sec.

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

