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


Performing analysis on: 4FGL_J2256.0-2740_daily_bin499
RA = 344.025, Dec = -27.6739
tmin = 368668801, tmax = 368928001
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='590870', job_status='RUN', time_executed='2021-09-29 02:44:34.311726', time_epoch_executed='1632908674.31' WHERE source_name='4FGL J2256.0-2740' and cadence='daily' and bin_id='499'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/590870

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/590870/ft1_4FGL_J2256.0-2740_daily_bin499.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/590870/ft2_4FGL_J2256.0-2740_daily_bin499.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/590870/ft1_4FGL_J2256.0-2740_daily_bin499.fits outfile=/scratch/kocevski/590870/ft1_filteredMKT_4FGL_J2256.0-2740_daily_bin499.fits ra=344.025 dec=-27.6739 rad=12.0 tmin=368668801.0 tmax=368928001.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.30
user 3.07
sys 0.20

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/590870/ft2_4FGL_J2256.0-2740_daily_bin499.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/590870/ft2_4FGL_J2256.0-2740_daily_bin499.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/590870/ft1_filteredMKT_4FGL_J2256.0-2740_daily_bin499.fits evtable="EVENTS" outfile="/scratch/kocevski/590870/ft1_filtered_4FGL_J2256.0-2740_daily_bin499.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.49
user 0.32
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/590870/ft1_filtered_4FGL_J2256.0-2740_daily_bin499.fits" evtable="EVENTS" scfile=/scratch/kocevski/590870/ft2_4FGL_J2256.0-2740_daily_bin499.fits sctable="SC_DATA" outfile=/scratch/kocevski/590870/ltcube_368668801_368928001_4FGL_J2256.0-2740_daily_bin499.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/590870/ft2_4FGL_J2256.0-2740_daily_bin499.fits
.....................!
real 11.67
user 11.31
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/590870/ft1_filtered_4FGL_J2256.0-2740_daily_bin499.fits evtable="EVENTS" scfile=/scratch/kocevski/590870/ft2_4FGL_J2256.0-2740_daily_bin499.fits sctable="SC_DATA" expcube=/scratch/kocevski/590870/ltcube_368668801_368928001_4FGL_J2256.0-2740_daily_bin499.fits outfile=/scratch/kocevski/590870/expmap_368668801_368928001_4FGL_J2256.0-2740_daily_bin499.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/590870/ltcube_368668801_368928001_4FGL_J2256.0-2740_daily_bin499.fits
.....................!
real 191.29
user 185.62
sys 5.32

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 175 point sources and 0 extended sources

Setting source of interest to:
4FGL J2256.0-2740 @ 344.025 -27.6739

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/590870/ft1_filtered_4FGL_J2256.0-2740_daily_bin499.fits scfile=/scratch/kocevski/590870/ft2_4FGL_J2256.0-2740_daily_bin499.fits outfile=/scratch/kocevski/590870/cmap_368668801_368928001_4FGL_J2256.0-2740_daily_bin499.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=344.025 yref=-27.6739 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.50
user 0.34
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/590870/ft1_filtered_4FGL_J2256.0-2740_daily_bin499.fits scfile=/scratch/kocevski/590870/ft2_4FGL_J2256.0-2740_daily_bin499.fits outfile=/scratch/kocevski/590870/cmap_HighResolution_368668801_368928001_4FGL_J2256.0-2740_daily_bin499.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=344.025 yref=-27.6739 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.37
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/590870/ft1_filtered_4FGL_J2256.0-2740_daily_bin499.fits evtable="EVENTS" scfile=/scratch/kocevski/590870/ft2_4FGL_J2256.0-2740_daily_bin499.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/590870/Model_4FGL_J2256.0-2740_daily_bin499.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/590870/ft1_filtered_4FGL_J2256.0-2740_daily_bin499.fits.....................!
real 50.02
user 48.54
sys 1.26

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/590870/ft1_filtered_4FGL_J2256.0-2740_daily_bin499.fits', '/scratch/kocevski/590870/ft2_4FGL_J2256.0-2740_daily_bin499.fits', expMap='/scratch/kocevski/590870/expmap_368668801_368928001_4FGL_J2256.0-2740_daily_bin499.fits', expCube='/scratch/kocevski/590870/ltcube_368668801_368928001_4FGL_J2256.0-2740_daily_bin499.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/590870/Model_4FGL_J2256.0-2740_daily_bin499.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2256.0-2740'

4FGL J2256.0-2740
   Spectrum: PowerLaw
340    Prefactor:  5.060e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-11)
341        Index:  3.023e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
342        Scale:  2.384e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/590870/ft1_filtered_4FGL_J2256.0-2740_daily_bin499.fits
Spacecraft file(s): /scratch/kocevski/590870/ft2_4FGL_J2256.0-2740_daily_bin499.fits
Exposure map: /scratch/kocevski/590870/expmap_368668801_368928001_4FGL_J2256.0-2740_daily_bin499.fits
Exposure cube: /scratch/kocevski/590870/ltcube_368668801_368928001_4FGL_J2256.0-2740_daily_bin499.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/590870/Model_4FGL_J2256.0-2740_daily_bin499.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) = 6391.67216808

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    18.539       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .11806E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    30.846       1.0000         .10000E-03   10000.    
     4 'Prefactor '    14.486       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10571E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10016E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10090E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    9.0340       1.0000         .10000E-03   10000.    
     9 'norm      '    .10056E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10576E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    22.519       1.0000         .10000E-03   10000.    
    12 'norm      '    2.4061       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .29348E-02   1.0000         .10000E-03   10000.    
    14 'Prefactor '    12.531       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10064E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    3.2217       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    .94736       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .89270       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5610E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6391.618     FROM MIGRAD    STATUS=CONVERGED    483 CALLS     2358 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     18.540        15.897        .71722E-07   -.20266E-04
   2  Prefactor     .10007E-03    10.793        .42496E-05** at limit **
   3  norm          30.844        23.030       -.22758E-07    .15314E-04
   4  Prefactor     14.481        20.645        .53269E-06   -.81776E-05
   5  Prefactor     .10000E-03    13.032       -.67078E-06** at limit **
   6  norm          .10000E-03    .62176       -.64240E-08** at limit **
   7  Prefactor     .10000E-03    14.904        .19914E-07** at limit **
   8  Prefactor     9.0255        11.414        .32508E-07   -.19176E-04
   9  norm          .10000E-03    1.6178       -.12213E-06** at limit **
  10  Prefactor     .10000E-03    32.688       -.65485E-06** at limit **
  11  Prefactor     22.521        11.027        .18056E-05    .16215E-02
  12  norm          2.4068        .95459       -.21114E-06    .18710E-02
  13  Prefactor     .10001E-03    188.92       -.21068E-05** at limit **
  14  Prefactor     12.532        10.397        .39084E-07    .20814E-05
  15  Prefactor     .10000E-03    5.0387       -.18489E-06** at limit **
  16  norm          3.2218        6.0704        .40065E-06   -.18084E-03
  17  Prefactor     .10000E-03    11.158        .16159E-06** at limit **
  18  norm          .10000E-03    .73089        .24570E-07** at limit **
  19  Prefactor     .10000E-03    8.7216       -.76800E-08** at limit **
  20  Prefactor     .10000E-03    21.687       -.13614E-05** at limit **
  21  Normalizat    .94751        .17138       -.83899E-06   -.25547E-03
  22  Prefactor     .89235        .16431       -.24132E-07   -.33033E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 18.5396
  Prefactor  = 0.00010007
  norm       = 30.8439
  Prefactor  = 14.481
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 9.02552
  norm       = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 22.5215
  norm       = 2.40679
  Prefactor  = 0.000100008
  Prefactor  = 12.5323
  Prefactor  = 0.0001
  norm       = 3.22177
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100005
  Normalizat = 0.947511
  Prefactor  = 0.892352
 **********
 **   18 **HESSE 
 **********

 FCN=   6391.618     FROM HESSE     STATUS=OK           336 CALLS     2694 TOTAL
                     EDM=   .55E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     18.540        15.909        .93021E-04   -1.4847    
   2  Prefactor     .10007E-03    17.812        .29545E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          30.844        23.031        .72142E-04   -1.4597    
   4  Prefactor     14.481        20.558        .10523E-03   -1.4947    
   5  Prefactor     .10000E-03    13.306        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    .62583        .61547E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    14.921        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     9.0255        11.462        .13335E-03   -1.5107    
   9  norm          .10000E-03    1.6349        .99363E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    33.840        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     22.521        12.048        .42203E-03   -1.4758    
  12  norm          2.4068        .97969        .37051E-04   -1.5398    
  13  Prefactor     .10001E-03    193.99        .39704E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     12.532        10.398        .11316E-03   -1.5000    
  15  Prefactor     .10000E-03    5.1126        .17531E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          3.2218        6.1271        .22569E-03   -1.5349    
  17  Prefactor     .10000E-03    11.179        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    .74094        .66740E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    8.7397        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    21.985        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    .94751        .20667        .23571E-03   -.94810    
  22  Prefactor     .89235        .19798        .24152E-03   -.96409    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.52447e-09
Minuit parameter uncertainties:
  1  15.9127
  2  0.00222678
  3  23.0377
  4  20.5681
  5  0.000236997
  6  6.5893e-07
  7  1.00681e-05
  8  11.4647
  9  1.25702e-05
  10  0.000261029
  11  12.049
  12  0.979699
  13  0.00250219
  14  10.3992
  15  3.36607e-05
  16  6.12826
  17  7.11959e-05
  18  1.41e-06
  19  5.63769e-06
  20  0.000640098
  21  0.206848
  22  0.198135
Done.

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

Extracting fit parameters...

4FGL J2256.0-2740
   Spectrum: PowerLaw
340    Prefactor:  2.252e+01  1.205e+01  1.000e-04  1.000e+04 ( 1.000e-11)
341        Index:  3.023e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
342        Scale:  2.384e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
558    Prefactor:  8.924e-01  1.981e-01  0.000e+00  1.000e+01 ( 1.000e+00)
559        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
560        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
557   Normalization:  9.475e-01  2.068e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 7.68
Ra Dec: 344.025 -27.674
Photon Index (Fixed Index): 3.02 +/- 0.00
Photon Flux (Fixed Index): 1.54e-07 +/- 8.23e-08
Energy Flux (Fixed Index): 3.04e-05 +/- 1.63e-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) = 6391.60446049
delta logL = 0.0131114917322

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6391.60283116
delta logL = 0.0147408253697

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    22.091       1.0000         .10000E-03   10000.    
     2 'Index     '    3.1147       1.0000          .0000       10.000    
     3 'Normalizat'    .94283       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .89654       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5610E+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=   6391.603     FROM MIGRAD    STATUS=CONVERGED     91 CALLS      240 TOTAL
                     EDM=   .47E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     22.089        9.5893        .85221E-04   -.27481E-04
   2  Index         3.1149        .55427        .78060E-02   -.36410E-05
   3  Normalizat    .94268        .20152        .23623E-03   -.17902E-04
   4  Prefactor     .89659        .19761        .24104E-03    .14904E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 22.0889
  Index      = 3.11485
  Normalizat = 0.942679
  Prefactor  = 0.896587
 **********
 **   18 **HESSE 
 **********

 FCN=   6391.603     FROM HESSE     STATUS=OK            25 CALLS      265 TOTAL
                     EDM=   .47E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     22.089        9.5007        .34089E-05   -1.4768    
   2  Index         3.1149        .54909        .31224E-03   -.38659    
   3  Normalizat    .94268        .20186        .94493E-05   -.94976    
   4  Prefactor     .89659        .19788        .96416E-05   -.96260    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.69391e-12
Minuit parameter uncertainties:
  1  9.50133
  2  0.55038
  3  0.20202
  4  0.198037
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/590870': 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) = 6391.60283033
delta logL = 0.0147416499813

Extracting fit parameters...

4FGL J2256.0-2740
   Spectrum: PowerLaw
340    Prefactor:  2.209e+01  9.501e+00  1.000e-04  1.000e+04 ( 1.000e-11)
341        Index:  3.115e+00  5.504e-01  0.000e+00  1.000e+01 (-1.000e+00)
342        Scale:  2.384e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
558    Prefactor:  8.966e-01  1.980e-01  0.000e+00  1.000e+01 ( 1.000e+00)
559        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
560        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
557   Normalization:  9.427e-01  2.020e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 8.41
Ra Dec: 344.025 -27.674
Photon Index (Free Index): 3.11 +/- 0.55
Photon Flux (Free Index): 1.57e-07 +/- 6.48e-08
Energy Flux (Free Index): 2.97e-05 +/- 1.29e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/590870/cmap_HighResolution_368668801_368928001_4FGL_J2256.0-2740_daily_bin499.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.54e-07', energy_flux2='2.97e-05', photon_flux_error='8.23e-08', dlogl='1.47e-02', energy_flux='3.04e-05', photon_flux2='1.57e-07', job_status='DONE', time_completed='2021-09-29 02:54:06.627709', photon_index_error2='0.55', photon_index2='3.11', ts='7.68', fit_tolerance='1e-08', GAL='0.89', photon_index_error='0.00', energy_flux_error2='1.29e-05', EG='0.95', time_epoch_completed='1632909246.63', return_code='0', job_id='590870', GAL2='0.90', EG2='0.94', return_code2='0', energy_flux_error='1.63e-05', photon_flux_error2='6.48e-08', ts2='8.41', photon_index='3.02' WHERE bin_id='499' AND source_name='4FGL J2256.0-2740' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 02:54:06 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0041>
Subject: Job 590870: <4FGL_J2256.0-2740_daily_bin499> in cluster <slac> Done

Job <4FGL_J2256.0-2740_daily_bin499> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Wed Sep 29 02:40:31 2021
Job was executed on host(s) <bullet0041>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 02:40:32 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep 29 02:40:32 2021
Terminated at Wed Sep 29 02:54:07 2021
Results reported at Wed Sep 29 02:54:07 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2256.0-2740_daily_bin499 344.025 -27.6739 368668801 368928001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2256.0-2740 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   571.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             227.04 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   814 sec.
    Turnaround time :                            816 sec.

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

