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


Performing analysis on: 4FGL_J2056.5-0202_daily_bin469
RA = 314.142, Dec = -2.0355
tmin = 360892801, tmax = 361152001
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='218176', job_status='RUN', time_executed='2021-09-25 22:04:00.733071', time_epoch_executed='1632632640.73' WHERE source_name='4FGL J2056.5-0202' and cadence='daily' and bin_id='469'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/218176

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/218176/ft1_4FGL_J2056.5-0202_daily_bin469.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/218176/ft2_4FGL_J2056.5-0202_daily_bin469.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/218176/ft1_4FGL_J2056.5-0202_daily_bin469.fits outfile=/scratch/kocevski/218176/ft1_filteredMKT_4FGL_J2056.5-0202_daily_bin469.fits ra=314.142 dec=-2.0355 rad=12.0 tmin=360892801.0 tmax=361152001.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.60
user 3.30
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/218176/ft1_filtered_4FGL_J2056.5-0202_daily_bin469.fits" evtable="EVENTS" scfile=/scratch/kocevski/218176/ft2_4FGL_J2056.5-0202_daily_bin469.fits sctable="SC_DATA" outfile=/scratch/kocevski/218176/ltcube_360892801_361152001_4FGL_J2056.5-0202_daily_bin469.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/218176/ft2_4FGL_J2056.5-0202_daily_bin469.fits
.....................!
real 13.09
user 12.71
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/218176/ft1_filtered_4FGL_J2056.5-0202_daily_bin469.fits evtable="EVENTS" scfile=/scratch/kocevski/218176/ft2_4FGL_J2056.5-0202_daily_bin469.fits sctable="SC_DATA" expcube=/scratch/kocevski/218176/ltcube_360892801_361152001_4FGL_J2056.5-0202_daily_bin469.fits outfile=/scratch/kocevski/218176/expmap_360892801_361152001_4FGL_J2056.5-0202_daily_bin469.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/218176/ltcube_360892801_361152001_4FGL_J2056.5-0202_daily_bin469.fits
.....................!
real 191.29
user 185.96
sys 4.97

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/218176/ft1_filtered_4FGL_J2056.5-0202_daily_bin469.fits scfile=/scratch/kocevski/218176/ft2_4FGL_J2056.5-0202_daily_bin469.fits outfile=/scratch/kocevski/218176/cmap_360892801_361152001_4FGL_J2056.5-0202_daily_bin469.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/218176/ft1_filtered_4FGL_J2056.5-0202_daily_bin469.fits scfile=/scratch/kocevski/218176/ft2_4FGL_J2056.5-0202_daily_bin469.fits outfile=/scratch/kocevski/218176/cmap_HighResolution_360892801_361152001_4FGL_J2056.5-0202_daily_bin469.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.54
user 0.38
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/218176/ft1_filtered_4FGL_J2056.5-0202_daily_bin469.fits evtable="EVENTS" scfile=/scratch/kocevski/218176/ft2_4FGL_J2056.5-0202_daily_bin469.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/218176/Model_4FGL_J2056.5-0202_daily_bin469.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/218176/ft1_filtered_4FGL_J2056.5-0202_daily_bin469.fits.....................!
real 108.29
user 105.87
sys 1.46

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/218176/ft1_filtered_4FGL_J2056.5-0202_daily_bin469.fits', '/scratch/kocevski/218176/ft2_4FGL_J2056.5-0202_daily_bin469.fits', expMap='/scratch/kocevski/218176/expmap_360892801_361152001_4FGL_J2056.5-0202_daily_bin469.fits', expCube='/scratch/kocevski/218176/ltcube_360892801_361152001_4FGL_J2056.5-0202_daily_bin469.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/218176/Model_4FGL_J2056.5-0202_daily_bin469.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/218176/ft1_filtered_4FGL_J2056.5-0202_daily_bin469.fits
Spacecraft file(s): /scratch/kocevski/218176/ft2_4FGL_J2056.5-0202_daily_bin469.fits
Exposure map: /scratch/kocevski/218176/expmap_360892801_361152001_4FGL_J2056.5-0202_daily_bin469.fits
Exposure cube: /scratch/kocevski/218176/ltcube_360892801_361152001_4FGL_J2056.5-0202_daily_bin469.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/218176/Model_4FGL_J2056.5-0202_daily_bin469.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 102
logL (Fixed Index) = 11035.8367695

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .57687E-02   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .84477E-02   1.0000         .10000E-03   10000.    
     3 'norm      '    .26917       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10740E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    7.8418       1.0000         .10000E-03   10000.    
     6 'Prefactor '    8.4609       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .13839E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .11919E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10127E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10055E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10918E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    8.8280       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .16151E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10549E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    1.3558       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .16916E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .14362E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.3190       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .87552       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=   11035.72     FROM MIGRAD    STATUS=CONVERGED    447 CALLS     1777 TOTAL
                     EDM=   .78E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    55.607        .51818E-04** at limit **
   2  Prefactor     .10159E-03    8.3260       -.17711E-05** at limit **
   3  norm          .26966        .72542       -.56030E-06   -.15930E-02
   4  Prefactor     .10000E-03    3.5108       -.31208E-08** at limit **
   5  norm          7.8194        3.5848       -.23351E-07   -.52676E-04
   6  Prefactor     8.4501        4.4841       -.12946E-06   -.11828E-03
   7  Prefactor     .10000E-03    5.3680        .31263E-06** at limit **
   8  Prefactor     .10000E-03    39.438       -.28026E-04** at limit **
   9  Prefactor     .10000E-03    5.8955       -.19153E-05** at limit **
  10  Prefactor     .10000E-03    6.3034        .23144E-05** at limit **
  11  Prefactor     .10000E-03    14.154       -.41462E-05** at limit **
  12  Prefactor     8.7717        13.712       -.32244E-05   -.44929E-04
  13  Prefactor     .10000E-03    19.563        .79395E-05** at limit **
  14  Prefactor     .10000E-03    14.359       -.33328E-05** at limit **
  15  Prefactor     .10000E-03    1.6751        .59816E-07** at limit **
  16  Prefactor     1.3552        1.6865       -.33309E-06   -.13452E-02
  17  Prefactor     .10000E-03    7.3497       -.12898E-05** at limit **
  18  Prefactor     .10000E-03    11.806        .38134E-05** at limit **
  19  Normalizat    1.3194        .19438        .11318E-05    .16627E-03
  20  Prefactor     .87546        .80669E-01   -.16273E-06    .42695E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Prefactor  = 0.000101591
  norm       = 0.269659
  Prefactor  = 0.0001
  norm       = 7.81939
  Prefactor  = 8.45014
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 8.77174
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.35521
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.31938
  Prefactor  = 0.875459
 **********
 **   18 **HESSE 
 **********

 FCN=   11035.72     FROM HESSE     STATUS=OK           295 CALLS     2072 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    55.311        .18998E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10159E-03    11.792        .82763E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .26966        .93956        .13911E-02   -1.5604    
   4  Prefactor     .10000E-03    3.5181        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          7.8194        3.5837        .13010E-03   -1.5149    
   6  Prefactor     8.4501        4.4925        .13782E-03   -1.5127    
   7  Prefactor     .10000E-03    5.3939        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    39.522        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    5.9038        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    6.3106        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    14.162        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     8.7717        13.751        .13490E-03   -1.5116    
  13  Prefactor     .10000E-03    19.746        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    14.373        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    1.6815        .13277E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     1.3552        1.6706        .14661E-03   -1.5475    
  17  Prefactor     .10000E-03    7.3575        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    11.814        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    1.3194        .23408        .33393E-03   -.82990    
  20  Prefactor     .87546        .97800E-01    .16924E-03   -.97004    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.67991e-09
Minuit parameter uncertainties:
  1  0.000483707
  2  0.00866434
  3  0.939614
  4  8.20693e-06
  5  3.58377
  6  4.49272
  7  1.64968e-06
  8  6.25378e-05
  9  2.19551e-06
  10  1.63581e-06
  11  1.5838e-07
  12  13.7563
  13  4.99998e-05
  14  1.23078e-05
  15  1.20271e-06
  16  1.67063
  17  3.09534e-08
  18  1.58443e-06
  19  0.234272
  20  0.0978191
Done.

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

Extracting fit parameters...

4FGL J2056.5-0202
   Spectrum: PowerLaw
326    Prefactor:  8.450e+00  4.493e+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:  8.755e-01  9.782e-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:  1.319e+00  2.343e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 6.87
Ra Dec: 314.142 -2.035
Photon Index (Fixed Index): 2.52 +/- 0.00
Photon Flux (Fixed Index): 7.95e-08 +/- 4.22e-08
Energy Flux (Fixed Index): 2.26e-05 +/- 1.20e-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) = 11035.5628162
delta logL = 0.161236965425

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 11035.5570393
delta logL = 0.167013836723

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    7.0121       1.0000         .10000E-03   10000.    
     2 'Index     '    2.8048       1.0000          .0000       10.000    
     3 'Normalizat'    1.2969       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .88107       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=   11035.56     FROM MIGRAD    STATUS=CONVERGED     48 CALLS      243 TOTAL
                     EDM=   .87E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.0121        50.063        .37874E-02    .14349E-02
   2  Index         2.8048        2.8734        .18567        .15941E-03
   3  Normalizat    1.2969        .76449E-01    .75981E-01    .20831E-04
   4  Prefactor     .88108        .28882E-01    .44763E-01    .53687E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.01206
  Index      = 2.80478
  Normalizat = 1.29693
  Prefactor  = 0.881079
 **********
 **   18 **HESSE 
 **********

 FCN=   11035.56     FROM HESSE     STATUS=OK            33 CALLS      276 TOTAL
                     EDM=   .42E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.0121        4.9915        .12931E-03   -1.5178    
   2  Index         2.8048        .54459        .63139E-02   -.45453    
   3  Normalizat    1.2969        .23265        .33627E-03   -.83658    
   4  Prefactor     .88108        .97213E-01    .16873E-03   -.96805    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.20892e-09
Minuit parameter uncertainties:
  1  4.99178
  2  0.545932
  3  0.232841
  4  0.0972316
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/218176': 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) = 11035.5570393
delta logL = 0.167013839216

Extracting fit parameters...

4FGL J2056.5-0202
   Spectrum: PowerLaw
326    Prefactor:  7.012e+00  4.992e+00  1.000e-04  1.000e+04 ( 1.000e-12)
327        Index:  2.805e+00  5.459e-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:  8.811e-01  9.723e-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:  1.297e+00  2.328e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 7.24
Ra Dec: 314.142 -2.035
Photon Index (Free Index): 2.80 +/- 0.55
Photon Flux (Free Index): 9.77e-08 +/- 5.40e-08
Energy Flux (Free Index): 2.18e-05 +/- 1.09e-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/218176/cmap_HighResolution_360892801_361152001_4FGL_J2056.5-0202_daily_bin469.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='7.95e-08', energy_flux2='2.18e-05', photon_flux_error='4.22e-08', dlogl='1.67e-01', energy_flux='2.26e-05', photon_flux2='9.77e-08', job_status='DONE', time_completed='2021-09-25 22:16:33.947958', photon_index_error2='0.55', photon_index2='2.80', ts='6.87', fit_tolerance='1e-08', GAL='0.88', photon_index_error='0.00', energy_flux_error2='1.09e-05', EG='1.32', time_epoch_completed='1632633393.95', return_code='0', job_id='218176', GAL2='0.88', EG2='1.30', return_code2='0', energy_flux_error='1.20e-05', photon_flux_error2='5.40e-08', ts2='7.24', photon_index='2.52' WHERE bin_id='469' AND source_name='4FGL J2056.5-0202' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 25 22:16:33 PDT 2021


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

Job <4FGL_J2056.5-0202_daily_bin469> was submitted from host <rhel6-64o> by user <kocevski> in cluster <slac> at Sat Sep 25 22:00:23 2021
Job was executed on host(s) <bullet0149>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep 25 22:00:34 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:00:34 2021
Terminated at Sat Sep 25 22:16:34 2021
Results reported at Sat Sep 25 22:16:34 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2056.5-0202_daily_bin469 314.142 -2.0355 360892801 361152001 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 :                                   751.20 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             306.06 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   960 sec.
    Turnaround time :                            971 sec.

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

