/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/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 79 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 = 7401
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J2056.5-0202_daily_bin1101
RA = 314.142, Dec = -2.0355
tmin = 524707201, tmax = 524966401
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='221275', job_status='RUN', time_executed='2021-09-25 22:13:00.022912', time_epoch_executed='1632633180.02' WHERE source_name='4FGL J2056.5-0202' and cadence='daily' and bin_id='1101'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/221275

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/221275/ft1_4FGL_J2056.5-0202_daily_bin1101.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/221275/ft2_4FGL_J2056.5-0202_daily_bin1101.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/221275/ft1_4FGL_J2056.5-0202_daily_bin1101.fits outfile=/scratch/kocevski/221275/ft1_filteredMKT_4FGL_J2056.5-0202_daily_bin1101.fits ra=314.142 dec=-2.0355 rad=12.0 tmin=524707201.0 tmax=524966401.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.44
user 3.24
sys 0.17

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/221275/ft1_filtered_4FGL_J2056.5-0202_daily_bin1101.fits" evtable="EVENTS" scfile=/scratch/kocevski/221275/ft2_4FGL_J2056.5-0202_daily_bin1101.fits sctable="SC_DATA" outfile=/scratch/kocevski/221275/ltcube_524707201_524966401_4FGL_J2056.5-0202_daily_bin1101.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/221275/ft2_4FGL_J2056.5-0202_daily_bin1101.fits
.....................!
real 13.65
user 13.27
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/221275/ft1_filtered_4FGL_J2056.5-0202_daily_bin1101.fits evtable="EVENTS" scfile=/scratch/kocevski/221275/ft2_4FGL_J2056.5-0202_daily_bin1101.fits sctable="SC_DATA" expcube=/scratch/kocevski/221275/ltcube_524707201_524966401_4FGL_J2056.5-0202_daily_bin1101.fits outfile=/scratch/kocevski/221275/expmap_524707201_524966401_4FGL_J2056.5-0202_daily_bin1101.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/221275/ltcube_524707201_524966401_4FGL_J2056.5-0202_daily_bin1101.fits
.....................!
real 191.30
user 186.57
sys 4.16

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/221275/ft1_filtered_4FGL_J2056.5-0202_daily_bin1101.fits scfile=/scratch/kocevski/221275/ft2_4FGL_J2056.5-0202_daily_bin1101.fits outfile=/scratch/kocevski/221275/cmap_524707201_524966401_4FGL_J2056.5-0202_daily_bin1101.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.54
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/221275/ft1_filtered_4FGL_J2056.5-0202_daily_bin1101.fits scfile=/scratch/kocevski/221275/ft2_4FGL_J2056.5-0202_daily_bin1101.fits outfile=/scratch/kocevski/221275/cmap_HighResolution_524707201_524966401_4FGL_J2056.5-0202_daily_bin1101.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.57
user 0.39
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/221275/ft1_filtered_4FGL_J2056.5-0202_daily_bin1101.fits evtable="EVENTS" scfile=/scratch/kocevski/221275/ft2_4FGL_J2056.5-0202_daily_bin1101.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/221275/Model_4FGL_J2056.5-0202_daily_bin1101.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/221275/ft1_filtered_4FGL_J2056.5-0202_daily_bin1101.fits.....................!
real 85.67
user 84.29
sys 1.15

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    9.9820       1.0000         .10000E-03   10000.    
     3 'norm      '    6.2692       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    6.2141       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .89621E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    14.457       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    29.519       1.0000         .10000E-03   10000.    
    10 'Prefactor '    14.400       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    38.951       1.0000         .10000E-03   10000.    
    13 'Prefactor '    7.3079       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    1.6816       1.0000         .10000E-03   10000.    
    16 'Prefactor '    3.0818       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10048E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    2.7493       1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.2906       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .81965       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=   8578.807     FROM MIGRAD    STATUS=CONVERGED    420 CALLS     2044 TOTAL
                     EDM=   .31E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    63.537        .88776E-06** at limit **
   2  Prefactor     9.9813        9.2120        .79604E-07   -.76651E-06
   3  norm          6.2697        1.8029       -.62311E-09   -.23631E-05
   4  Prefactor     .10000E-03    10.766        .14098E-06** at limit **
   5  norm          6.2137        4.2872        .13655E-05    .18113E-03
   6  Prefactor     .10004E-03    3.0105       -.62775E-06** at limit **
   7  Prefactor     14.457        14.762       -.10563E-06    .27715E-04
   8  Prefactor     .10000E-03    74.865       -.83047E-06** at limit **
   9  Prefactor     29.479        29.390       -.31797E-06   -.17109E-03
  10  Prefactor     14.408        19.729        .25142E-06    .46542E-04
  11  Prefactor     .10000E-03    56.184        .10857E-05** at limit **
  12  Prefactor     38.946        19.780       -.60826E-07   -.29985E-04
  13  Prefactor     7.2991        24.482        .30847E-06   -.12926E-04
  14  Prefactor     .10000E-03    20.063        .84424E-07** at limit **
  15  Prefactor     1.6820        4.5315        .15529E-05    .60299E-04
  16  Prefactor     3.0824        2.1020        .23264E-07   -.71481E-05
  17  Prefactor     .10000E-03    38.945       -.23482E-06** at limit **
  18  Prefactor     2.7438        65.872        .92593E-06   -.66066E-05
  19  Normalizat    1.2909        .24443       -.21199E-06    .56557E-04
  20  Prefactor     .81956        .94804E-01   -.51323E-06    .12696E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Prefactor  = 9.98131
  norm       = 6.26972
  Prefactor  = 0.0001
  norm       = 6.21365
  Prefactor  = 0.000100035
  Prefactor  = 14.4565
  Prefactor  = 0.000100001
  Prefactor  = 29.4795
  Prefactor  = 14.4084
  Prefactor  = 0.000100002
  Prefactor  = 38.9462
  Prefactor  = 7.29905
  Prefactor  = 0.0001
  Prefactor  = 1.68204
  Prefactor  = 3.08239
  Prefactor  = 0.0001
  Prefactor  = 2.74375
  Normalizat = 1.29094
  Prefactor  = 0.819564
 **********
 **   18 **HESSE 
 **********

 FCN=   8578.807     FROM HESSE     STATUS=OK           297 CALLS     2341 TOTAL
                     EDM=   .26E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    64.008        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     9.9813        9.2174        .12683E-03   -1.5076    
   3  norm          6.2697        1.8012        .63717E-04   -1.5207    
   4  Prefactor     .10000E-03    10.829        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          6.2137        4.3011        .76963E-03   -1.5209    
   6  Prefactor     .10004E-03    14.475        .28784E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     14.457        14.852        .10534E-03   -1.4947    
   8  Prefactor     .10000E-03    75.421        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     29.479        29.361        .73741E-04   -1.4622    
  10  Prefactor     14.408        19.712        .10555E-03   -1.4949    
  11  Prefactor     .10000E-03    56.464        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     38.946        19.817        .64222E-04   -1.4459    
  13  Prefactor     7.2991        24.565        .14837E-03   -1.5168    
  14  Prefactor     .10000E-03    20.129        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     1.6820        4.5262        .31418E-03   -1.5449    
  16  Prefactor     3.0824        2.0969        .10617E-03   -1.5357    
  17  Prefactor     .10000E-03    39.178        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     2.7438        65.912        .24552E-03   -1.5377    
  19  Normalizat    1.2909        .29401        .35381E-03   -.83837    
  20  Prefactor     .81956        .11497        .17733E-03   -.99011    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.5793e-09
Minuit parameter uncertainties:
  1  0.000392756
  2  9.21867
  3  1.80119
  4  1.34175e-05
  5  4.30131
  6  0.00142559
  7  14.8561
  8  0.000560219
  9  29.3754
  10  19.7209
  11  0.000629774
  12  19.8207
  13  24.5991
  14  1.72151e-05
  15  4.5271
  16  2.09692
  17  0.000192343
  18  26.9287
  19  0.29439
  20  0.115009
Done.

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

Extracting fit parameters...

4FGL J2056.5-0202
   Spectrum: PowerLaw
326    Prefactor:  1.000e-04  1.426e-03  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.196e-01  1.150e-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.291e+00  2.944e-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.23e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.58e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/221275/likelihoodResults_524707201_524966401_4FGL_J2056.5-0202_daily_bin1101.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) = 8578.80722037
delta logL = -0.000328047806761

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8578.80689261
delta logL = -2.87896909867e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .13390E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.6215       1.0000          .0000       10.000    
     3 'Normalizat'    1.2914       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .81941       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=   8578.453     FROM MIGRAD    STATUS=CONVERGED    101 CALLS      275 TOTAL
                     EDM=   .44E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .84239E-01    1.3622        .72437E-02    .45818E-02
   2  Index         5.2073        2.9787        .16467        .13533E-03
   3  Normalizat    1.2174        .39284E-01    .81987E-01    .10556E-03
   4  Prefactor     .83796        .16160E-01    .43969E-01    .39404E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0842393
  Index      = 5.20731
  Normalizat = 1.21739
  Prefactor  = 0.837958
 **********
 **   18 **HESSE 
 **********

 FCN=   8578.453     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      308 TOTAL
                     EDM=   .39E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .84239E-01    6.2400        .32941E-03   -1.5650    
   2  Index         5.2073        7.4893        .90158E-02    .41474E-01
   3  Normalizat    1.2174        .17939        .36298E-03   -.86067    
   4  Prefactor     .83796        .72375E-01    .17557E-03   -.98344    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.87562e-08
Minuit parameter uncertainties:
  1  1.44933
  2  9.57119
  3  0.179486
  4  0.0723828
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/221275': 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) = 8578.45305363
delta logL = 0.353838694446

Extracting fit parameters...

4FGL J2056.5-0202
   Spectrum: PowerLaw
326    Prefactor:  8.424e-02  1.449e+00  1.000e-04  1.000e+04 ( 1.000e-12)
327        Index:  5.207e+00  9.571e+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:  8.380e-01  7.238e-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.217e+00  1.795e-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/221275/cmap_HighResolution_524707201_524966401_4FGL_J2056.5-0202_daily_bin1101.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.58e-03', job_status='DONE', photon_flux_upper_limit='1.23e-07', time_completed='2021-09-25 22:25:38.418916', job_id='221275', GAL2='0.84', fit_tolerance='1e-08', EG2='1.22', EG='1.29', time_epoch_completed='1632633938.42', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.82', dlogl='3.54e-01', ts2='0.76', photon_index_error='0.00', photon_index='2.52' WHERE bin_id='1101' AND source_name='4FGL J2056.5-0202' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 25 22:25:38 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0124>
Subject: Job 221275: <4FGL_J2056.5-0202_daily_bin1101> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2056.5-0202_daily_bin1101 314.142 -2.0355 524707201 524966401 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 :                                   746.31 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             344.24 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   854 sec.
    Turnaround time :                            904 sec.

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

