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


Performing analysis on: 4FGL_J2256.0-2740_daily_bin549
RA = 344.025, Dec = -27.6739
tmin = 381628801, tmax = 381888001
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='590954', job_status='RUN', time_executed='2021-09-29 02:42:58.082161', time_epoch_executed='1632908578.08' WHERE source_name='4FGL J2256.0-2740' and cadence='daily' and bin_id='549'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/590954

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/590954/ft1_4FGL_J2256.0-2740_daily_bin549.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/590954/ft2_4FGL_J2256.0-2740_daily_bin549.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/590954/ft1_4FGL_J2256.0-2740_daily_bin549.fits outfile=/scratch/kocevski/590954/ft1_filteredMKT_4FGL_J2256.0-2740_daily_bin549.fits ra=344.025 dec=-27.6739 rad=12.0 tmin=381628801.0 tmax=381888001.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 4.16
user 3.92
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/590954/ft1_filtered_4FGL_J2256.0-2740_daily_bin549.fits" evtable="EVENTS" scfile=/scratch/kocevski/590954/ft2_4FGL_J2256.0-2740_daily_bin549.fits sctable="SC_DATA" outfile=/scratch/kocevski/590954/ltcube_381628801_381888001_4FGL_J2256.0-2740_daily_bin549.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/590954/ft2_4FGL_J2256.0-2740_daily_bin549.fits
.....................!
real 12.06
user 11.70
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/590954/ft1_filtered_4FGL_J2256.0-2740_daily_bin549.fits evtable="EVENTS" scfile=/scratch/kocevski/590954/ft2_4FGL_J2256.0-2740_daily_bin549.fits sctable="SC_DATA" expcube=/scratch/kocevski/590954/ltcube_381628801_381888001_4FGL_J2256.0-2740_daily_bin549.fits outfile=/scratch/kocevski/590954/expmap_381628801_381888001_4FGL_J2256.0-2740_daily_bin549.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/590954/ltcube_381628801_381888001_4FGL_J2256.0-2740_daily_bin549.fits
.....................!
real 190.50
user 185.91
sys 4.27

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/590954/ft1_filtered_4FGL_J2256.0-2740_daily_bin549.fits scfile=/scratch/kocevski/590954/ft2_4FGL_J2256.0-2740_daily_bin549.fits outfile=/scratch/kocevski/590954/cmap_381628801_381888001_4FGL_J2256.0-2740_daily_bin549.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.52
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/590954/ft1_filtered_4FGL_J2256.0-2740_daily_bin549.fits scfile=/scratch/kocevski/590954/ft2_4FGL_J2256.0-2740_daily_bin549.fits outfile=/scratch/kocevski/590954/cmap_HighResolution_381628801_381888001_4FGL_J2256.0-2740_daily_bin549.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.53
user 0.39
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/590954/ft1_filtered_4FGL_J2256.0-2740_daily_bin549.fits evtable="EVENTS" scfile=/scratch/kocevski/590954/ft2_4FGL_J2256.0-2740_daily_bin549.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/590954/Model_4FGL_J2256.0-2740_daily_bin549.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/590954/ft1_filtered_4FGL_J2256.0-2740_daily_bin549.fits.....................!
real 39.69
user 38.50
sys 1.11

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    14.476       1.0000         .10000E-03   10000.    
     3 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .15593E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    50.421       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    9.0846       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    25.831       1.0000         .10000E-03   10000.    
    12 'norm      '    .10013E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    7.7229       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    5.8969       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    1.5298       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    37.302       1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.2259       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .87248       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=   4478.718     FROM MIGRAD    STATUS=CONVERGED    482 CALLS     2399 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    8.5358        .12799E-06** at limit **
   2  Prefactor     14.477        12.576       -.29749E-07    .10813E-04
   3  norm          .10000E-03    28.653        .28531E-05** at limit **
   4  Prefactor     .10000E-03    10.459       -.17253E-05** at limit **
   5  Prefactor     .10013E-03    22.293       -.78027E-05** at limit **
   6  norm          .10000E-03    1.2989       -.20352E-06** at limit **
   7  Prefactor     50.438        78.514        .21919E-04    .12886E-03
   8  Prefactor     .10000E-03    7.6882        .17387E-07** at limit **
   9  norm          9.0836        7.1713        .52602E-06   -.25190E-03
  10  Prefactor     .10001E-03    24.123       -.65834E-05** at limit **
  11  Prefactor     25.833        14.979       -.30002E-05    .32242E-03
  12  norm          .10000E-03    .43155        .35854E-06** at limit **
  13  Prefactor     7.7223        41.614       -.65792E-06    .36547E-05
  14  Prefactor     .10000E-03    14.986       -.65951E-06** at limit **
  15  Prefactor     .10000E-03    11.339        .32840E-05** at limit **
  16  norm          5.8972        8.4256       -.87659E-07   -.91908E-04
  17  Prefactor     .10000E-03    19.733        .47770E-05** at limit **
  18  norm          1.5297        2.7912       -.14858E-06   -.37813E-03
  19  Prefactor     .10000E-03    13.034       -.20442E-05** at limit **
  20  Prefactor     37.300        62.201       -.25787E-05    .59240E-04
  21  Normalizat    1.2257        .23372       -.39070E-06    .57571E-03
  22  Prefactor     .87269        .21497       -.12880E-06    .42498E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 14.4771
  norm       = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 0.000100128
  norm       = 0.0001
  Prefactor  = 50.4382
  Prefactor  = 0.0001
  norm       = 9.08361
  Prefactor  = 0.000100007
  Prefactor  = 25.8334
  norm       = 0.0001
  Prefactor  = 7.72235
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 5.89723
  Prefactor  = 0.000100003
  norm       = 1.52965
  Prefactor  = 0.000100001
  Prefactor  = 37.2995
  Normalizat = 1.22571
  Prefactor  = 0.872687
 **********
 **   18 **HESSE 
 **********

 FCN=   4478.718     FROM HESSE     STATUS=OK           338 CALLS     2737 TOTAL
                     EDM=   .30E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    8.5469        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     14.477        12.601        .10527E-03   -1.4947    
   3  norm          .10000E-03    28.638        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    10.442        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10013E-03    178.46        .55294E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    1.3067        .74504E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     50.438        78.732        .56477E-04   -1.4286    
   8  Prefactor     .10000E-03    7.7378        .18121E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          9.0836        7.1359        .13297E-03   -1.5105    
  10  Prefactor     .10001E-03    23.712        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     25.833        14.346        .78819E-04   -1.4691    
  12  norm          .10000E-03    .52583        .78848E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     7.7223        41.615        .14430E-03   -1.5152    
  14  Prefactor     .10000E-03    15.057        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    11.296        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          5.8972        8.4252        .16537E-03   -1.5222    
  17  Prefactor     .10000E-03    19.540        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          1.5297        2.7673        .14619E-03   -1.5461    
  19  Prefactor     .10000E-03    13.003        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     37.300        62.187        .65621E-04   -1.4486    
  21  Normalizat    1.2257        .28563        .24487E-03   -.85812    
  22  Prefactor     .87269        .26118        .26908E-03   -.97102    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.96759e-09
Minuit parameter uncertainties:
  1  9.42069e-06
  2  12.6035
  3  0.000486245
  4  0.000127565
  5  0.0095793
  6  2.47205e-05
  7  78.8948
  8  9.80129e-06
  9  7.13657
  10  0.000817647
  11  14.3482
  12  2.55349e-05
  13  35.8919
  14  6.19363e-05
  15  0.000206134
  16  8.4269
  17  0.000461877
  18  2.76753
  19  0.000172677
  20  62.2956
  21  0.285998
  22  0.26155
Done.

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

Extracting fit parameters...

4FGL J2256.0-2740
   Spectrum: PowerLaw
340    Prefactor:  2.583e+01  1.435e+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.727e-01  2.615e-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:  1.226e+00  2.860e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 6.40
Ra Dec: 344.025 -27.674
Photon Index (Fixed Index): 3.02 +/- 0.00
Photon Flux (Fixed Index): 1.77e-07 +/- 9.80e-08
Energy Flux (Fixed Index): 3.49e-05 +/- 1.94e-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) = 4478.71238499
delta logL = 0.00524454557672

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4478.71220018
delta logL = 0.00542936177681

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    25.834       1.0000         .10000E-03   10000.    
     2 'Index     '    2.9620       1.0000          .0000       10.000    
     3 'Normalizat'    1.2309       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .86858       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.

 FCN=   4478.712     FROM MIGRAD    STATUS=CONVERGED     59 CALLS      203 TOTAL
                     EDM=   .83E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     25.911        14.731        .19704E-02    .22329E-04
   2  Index         2.9619        .60078        .18312       -.18991E-04
   3  Normalizat    1.2305        .22864        .55287E-01    .45424E-05
   4  Prefactor     .86875        .21396        .44603E-01    .11045E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 25.9109
  Index      = 2.96191
  Normalizat = 1.23049
  Prefactor  = 0.868746
 **********
 **   18 **HESSE 
 **********

 FCN=   4478.712     FROM HESSE     STATUS=OK            33 CALLS      236 TOTAL
                     EDM=   .11E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     25.911        12.821        .78815E-04   -1.4689    
   2  Index         2.9619        .57421        .73636E-02   -.41984    
   3  Normalizat    1.2305        .28143        .24447E-03   -.85666    
   4  Prefactor     .86875        .26114        .26960E-03   -.97242    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.07951e-10
Minuit parameter uncertainties:
  1  12.8225
  2  0.575733
  3  0.281783
  4  0.261516
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/590954': 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) = 4478.712182
delta logL = 0.00544754050406

Extracting fit parameters...

4FGL J2256.0-2740
   Spectrum: PowerLaw
340    Prefactor:  2.591e+01  1.282e+01  1.000e-04  1.000e+04 ( 1.000e-11)
341        Index:  2.962e+00  5.757e-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.687e-01  2.615e-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:  1.230e+00  2.818e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.59
Ra Dec: 344.025 -27.674
Photon Index (Free Index): 2.96 +/- 0.58
Photon Flux (Free Index): 1.73e-07 +/- 9.14e-08
Energy Flux (Free Index): 3.53e-05 +/- 1.79e-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/590954/cmap_HighResolution_381628801_381888001_4FGL_J2256.0-2740_daily_bin549.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.77e-07', energy_flux2='3.53e-05', photon_flux_error='9.80e-08', dlogl='5.45e-03', energy_flux='3.49e-05', photon_flux2='1.73e-07', job_status='DONE', time_completed='2021-09-29 02:51:14.416810', photon_index_error2='0.58', photon_index2='2.96', ts='6.40', fit_tolerance='1e-08', GAL='0.87', photon_index_error='0.00', energy_flux_error2='1.79e-05', EG='1.23', time_epoch_completed='1632909074.42', return_code='0', job_id='590954', GAL2='0.87', EG2='1.23', return_code2='0', energy_flux_error='1.94e-05', photon_flux_error2='9.14e-08', ts2='6.59', photon_index='3.02' WHERE bin_id='549' AND source_name='4FGL J2256.0-2740' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 02:51:14 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0290>
Subject: Job 590954: <4FGL_J2256.0-2740_daily_bin549> in cluster <slac> Done

Job <4FGL_J2256.0-2740_daily_bin549> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Wed Sep 29 02:40:37 2021
Job was executed on host(s) <bullet0290>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 02:40:38 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:38 2021
Terminated at Wed Sep 29 02:51:15 2021
Results reported at Wed Sep 29 02:51:15 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2256.0-2740_daily_bin549 344.025 -27.6739 381628801 381888001 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 :                                   494.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             263.55 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   636 sec.
    Turnaround time :                            638 sec.

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

