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


Performing analysis on: 4FGL_J2256.0-2740_daily_bin892
RA = 344.025, Dec = -27.6739
tmin = 470534401, tmax = 470793601
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='592486', job_status='RUN', time_executed='2021-09-29 02:47:48.958350', time_epoch_executed='1632908868.96' WHERE source_name='4FGL J2256.0-2740' and cadence='daily' and bin_id='892'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/592486

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/592486/ft1_4FGL_J2256.0-2740_daily_bin892.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/592486/ft2_4FGL_J2256.0-2740_daily_bin892.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/592486/ft1_4FGL_J2256.0-2740_daily_bin892.fits outfile=/scratch/kocevski/592486/ft1_filteredMKT_4FGL_J2256.0-2740_daily_bin892.fits ra=344.025 dec=-27.6739 rad=12.0 tmin=470534401.0 tmax=470793601.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.51
user 3.26
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/592486/ft1_filtered_4FGL_J2256.0-2740_daily_bin892.fits" evtable="EVENTS" scfile=/scratch/kocevski/592486/ft2_4FGL_J2256.0-2740_daily_bin892.fits sctable="SC_DATA" outfile=/scratch/kocevski/592486/ltcube_470534401_470793601_4FGL_J2256.0-2740_daily_bin892.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/592486/ft2_4FGL_J2256.0-2740_daily_bin892.fits
.....................!
real 11.73
user 11.36
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/592486/ft1_filtered_4FGL_J2256.0-2740_daily_bin892.fits evtable="EVENTS" scfile=/scratch/kocevski/592486/ft2_4FGL_J2256.0-2740_daily_bin892.fits sctable="SC_DATA" expcube=/scratch/kocevski/592486/ltcube_470534401_470793601_4FGL_J2256.0-2740_daily_bin892.fits outfile=/scratch/kocevski/592486/expmap_470534401_470793601_4FGL_J2256.0-2740_daily_bin892.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/592486/ltcube_470534401_470793601_4FGL_J2256.0-2740_daily_bin892.fits
.....................!
real 190.45
user 184.70
sys 5.44

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/592486/ft1_filtered_4FGL_J2256.0-2740_daily_bin892.fits scfile=/scratch/kocevski/592486/ft2_4FGL_J2256.0-2740_daily_bin892.fits outfile=/scratch/kocevski/592486/cmap_470534401_470793601_4FGL_J2256.0-2740_daily_bin892.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.55
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/592486/ft1_filtered_4FGL_J2256.0-2740_daily_bin892.fits scfile=/scratch/kocevski/592486/ft2_4FGL_J2256.0-2740_daily_bin892.fits outfile=/scratch/kocevski/592486/cmap_HighResolution_470534401_470793601_4FGL_J2256.0-2740_daily_bin892.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.54
user 0.37
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/592486/ft1_filtered_4FGL_J2256.0-2740_daily_bin892.fits evtable="EVENTS" scfile=/scratch/kocevski/592486/ft2_4FGL_J2256.0-2740_daily_bin892.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/592486/Model_4FGL_J2256.0-2740_daily_bin892.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/592486/ft1_filtered_4FGL_J2256.0-2740_daily_bin892.fits....................!
real 49.11
user 47.85
sys 1.16

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/592486/ft1_filtered_4FGL_J2256.0-2740_daily_bin892.fits', '/scratch/kocevski/592486/ft2_4FGL_J2256.0-2740_daily_bin892.fits', expMap='/scratch/kocevski/592486/expmap_470534401_470793601_4FGL_J2256.0-2740_daily_bin892.fits', expCube='/scratch/kocevski/592486/ltcube_470534401_470793601_4FGL_J2256.0-2740_daily_bin892.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/592486/Model_4FGL_J2256.0-2740_daily_bin892.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/592486/ft1_filtered_4FGL_J2256.0-2740_daily_bin892.fits
Spacecraft file(s): /scratch/kocevski/592486/ft2_4FGL_J2256.0-2740_daily_bin892.fits
Exposure map: /scratch/kocevski/592486/expmap_470534401_470793601_4FGL_J2256.0-2740_daily_bin892.fits
Exposure cube: /scratch/kocevski/592486/ltcube_470534401_470793601_4FGL_J2256.0-2740_daily_bin892.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/592486/Model_4FGL_J2256.0-2740_daily_bin892.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) = 6593.54771194

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    6.9762       1.0000         .10000E-03   10000.    
     5 'Prefactor '    10.418       1.0000         .10000E-03   10000.    
     6 'norm      '    .16546E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    20.303       1.0000         .10000E-03   10000.    
     8 'Prefactor '    7.0140       1.0000         .10000E-03   10000.    
     9 'norm      '    .10041E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    12.599       1.0000         .10000E-03   10000.    
    12 'norm      '    .53201       1.0000         .10000E-03   10000.    
    13 'Prefactor '    10.864       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .22065E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .33497E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .11200E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    .55418       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.0941       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=   6593.511     FROM MIGRAD    STATUS=CONVERGED    488 CALLS     2430 TOTAL
                     EDM=   .38E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    14.550        .14187E-05** at limit **
   2  Prefactor     .10001E-03    4.4807       -.99569E-06** at limit **
   3  norm          .10000E-03    9.9132        .37233E-06** at limit **
   4  Prefactor     6.9758        11.253        .17998E-06    .64739E-04
   5  Prefactor     10.411        10.194       -.60536E-06   -.12530E-03
   6  norm          .10041E-03    .93853        .66667E-06** at limit **
   7  Prefactor     20.321        30.095       -.18651E-05   -.14426E-03
   8  Prefactor     7.0155        6.0635       -.41472E-06   -.32866E-04
   9  norm          .10000E-03    1.5936        .10999E-06** at limit **
  10  Prefactor     .10000E-03    4.6960        .40003E-07** at limit **
  11  Prefactor     12.587        9.1336       -.90943E-06    .13020E-04
  12  norm          .53082        .63070        .18153E-06    .50431E-03
  13  Prefactor     10.839        21.993       -.40888E-05   -.53646E-04
  14  Prefactor     .10000E-03    2.8522        .21235E-07** at limit **
  15  Prefactor     .10000E-03    18.980       -.18794E-05** at limit **
  16  norm          .10000E-03    2.2333       -.45632E-08** at limit **
  17  Prefactor     .10000E-03    32.817        .23999E-05** at limit **
  18  norm          .10000E-03    .47054       -.10156E-07** at limit **
  19  Prefactor     .10000E-03    15.175        .87126E-06** at limit **
  20  Prefactor     .10000E-03    23.641       -.14156E-05** at limit **
  21  Normalizat    .55424        .14350        .11484E-06   -.30366E-04
  22  Prefactor     1.0941        .14171       -.37300E-06   -.35321E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.000100011
  norm       = 0.0001
  Prefactor  = 6.97584
  Prefactor  = 10.4111
  norm       = 0.000100407
  Prefactor  = 20.3211
  Prefactor  = 7.01548
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 12.5871
  norm       = 0.530818
  Prefactor  = 10.8394
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.554238
  Prefactor  = 1.09413
 **********
 **   18 **HESSE 
 **********

 FCN=   6593.511     FROM HESSE     STATUS=OK           352 CALLS     2782 TOTAL
                     EDM=   .18E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    14.742        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10001E-03    11.194        .31887E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    9.9571        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     6.9758        11.208        .15189E-03   -1.5180    
   5  Prefactor     10.411        10.243        .12413E-03   -1.5063    
   6  norm          .10041E-03    2.3399        .25356E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     20.321        38.408        .88891E-04   -1.4806    
   8  Prefactor     7.0155        6.0662        .15148E-03   -1.5178    
   9  norm          .10000E-03    1.6532        .19998E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    4.7028        .17173E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     12.587        9.0990        .11285E-03   -1.4998    
  12  norm          .53082        .60182        .50092E-03   -1.5562    
  13  Prefactor     10.839        22.103        .12156E-03   -1.5049    
  14  Prefactor     .10000E-03    2.8578        .13393E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    19.053        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    13.707        .23625E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    33.216        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    .47257        .54389E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    15.257        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    23.660        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    .55424        .16860        .25600E-03   -1.0996    
  22  Prefactor     1.0941        .16780        .19323E-03   -.89654    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.76246e-09
Minuit parameter uncertainties:
  1  4.30826e-05
  2  0.000714244
  3  1.20133e-05
  4  11.2118
  5  10.2443
  6  0.00195272
  7  38.4547
  8  6.06676
  9  1.01479e-05
  10  1.63803e-05
  11  9.10004
  12  0.601825
  13  22.1196
  14  8.5278e-07
  15  0.000201448
  16  0.000116429
  17  9.09698e-05
  18  1.9715e-07
  19  2.68405e-05
  20  3.71681e-05
  21  0.16876
  22  0.167877
Done.

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

Extracting fit parameters...

4FGL J2256.0-2740
   Spectrum: PowerLaw
340    Prefactor:  1.259e+01  9.100e+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

GAL_V02
   Spectrum: PowerLaw
558    Prefactor:  1.094e+00  1.679e-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:  5.542e-01  1.688e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.70
Ra Dec: 344.025 -27.674
Photon Index (Fixed Index): 3.02 +/- 0.00
Photon Flux (Fixed Index): 8.61e-08 +/- 6.22e-08
Energy Flux (Fixed Index): 1.70e-05 +/- 1.23e-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) = 6593.30385288
delta logL = 0.207080833537

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6593.30281828
delta logL = 0.20811543913

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    10.953       1.0000         .10000E-03   10000.    
     2 'Index     '    3.5580       1.0000          .0000       10.000    
     3 'Normalizat'    .53668       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1096       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6593.303     FROM MIGRAD    STATUS=CONVERGED     98 CALLS      307 TOTAL
                     EDM=   .97E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     10.955        7.6817        .60528E-03    .22355E-03
   2  Index         3.5577        1.0028        .10783E-01    .16298E-03
   3  Normalizat    .53690        .16573        .25984E-03    .50316E-05
   4  Prefactor     1.1093        .16812        .19212E-03    .88881E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 10.9551
  Index      = 3.55772
  Normalizat = 0.536902
  Prefactor  = 1.10933
 **********
 **   18 **HESSE 
 **********

 FCN=   6593.303     FROM HESSE     STATUS=OK            27 CALLS      334 TOTAL
                     EDM=   .14E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     10.955        7.3390        .12106E-03   -1.5046    
   2  Index         3.5577        .95834        .21565E-02   -.29261    
   3  Normalizat    .53690        .16599        .10393E-04   -1.1073    
   4  Prefactor     1.1093        .16828        .38424E-04   -.89169    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.37958e-12
Minuit parameter uncertainties:
  1  7.33962
  2  0.964858
  3  0.166138
  4  0.168357
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/592486': 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) = 6593.30281727
delta logL = 0.208116450706

Extracting fit parameters...

4FGL J2256.0-2740
   Spectrum: PowerLaw
340    Prefactor:  1.096e+01  7.340e+00  1.000e-04  1.000e+04 ( 1.000e-11)
341        Index:  3.558e+00  9.649e-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:  1.109e+00  1.684e-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:  5.369e-01  1.661e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.40
Ra Dec: 344.025 -27.674
Photon Index (Free Index): 3.56 +/- 0.96
Photon Flux (Free Index): 9.44e-08 +/- 4.88e-08
Energy Flux (Free Index): 1.55e-05 +/- 8.61e-06

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/592486/cmap_HighResolution_470534401_470793601_4FGL_J2256.0-2740_daily_bin892.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='8.61e-08', energy_flux2='1.55e-05', photon_flux_error='6.22e-08', dlogl='2.08e-01', energy_flux='1.70e-05', photon_flux2='9.44e-08', job_status='DONE', time_completed='2021-09-29 02:57:57.657669', photon_index_error2='0.96', photon_index2='3.56', ts='4.70', fit_tolerance='1e-08', GAL='1.09', photon_index_error='0.00', energy_flux_error2='8.61e-06', EG='0.55', time_epoch_completed='1632909477.66', return_code='0', job_id='592486', GAL2='1.11', EG2='0.54', return_code2='0', energy_flux_error='1.23e-05', photon_flux_error2='4.88e-08', ts2='5.40', photon_index='3.02' WHERE bin_id='892' AND source_name='4FGL J2256.0-2740' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 02:57:57 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0235>
Subject: Job 592486: <4FGL_J2256.0-2740_daily_bin892> in cluster <slac> Done

Job <4FGL_J2256.0-2740_daily_bin892> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Sep 29 02:45:29 2021
Job was executed on host(s) <bullet0235>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 02:45:31 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:45:31 2021
Terminated at Wed Sep 29 02:57:58 2021
Results reported at Wed Sep 29 02:57:58 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2256.0-2740_daily_bin892 344.025 -27.6739 470534401 470793601 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 :                                   586.00 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             303.70 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   746 sec.
    Turnaround time :                            749 sec.

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

