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


Performing analysis on: 4FGL_J2256.0-2740_daily_bin1160
RA = 344.025, Dec = -27.6739
tmin = 540000001, tmax = 540259201
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='593846', job_status='RUN', time_executed='2021-09-29 02:51:56.939066', time_epoch_executed='1632909116.94' WHERE source_name='4FGL J2256.0-2740' and cadence='daily' and bin_id='1160'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/593846

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/593846/ft1_4FGL_J2256.0-2740_daily_bin1160.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/593846/ft2_4FGL_J2256.0-2740_daily_bin1160.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/593846/ft1_4FGL_J2256.0-2740_daily_bin1160.fits outfile=/scratch/kocevski/593846/ft1_filteredMKT_4FGL_J2256.0-2740_daily_bin1160.fits ra=344.025 dec=-27.6739 rad=12.0 tmin=540000001.0 tmax=540259201.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.58
user 3.32
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/593846/ft2_4FGL_J2256.0-2740_daily_bin1160.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/593846/ft1_filteredMKT_4FGL_J2256.0-2740_daily_bin1160.fits evtable="EVENTS" outfile="/scratch/kocevski/593846/ft1_filtered_4FGL_J2256.0-2740_daily_bin1160.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/593846/ft1_filtered_4FGL_J2256.0-2740_daily_bin1160.fits" evtable="EVENTS" scfile=/scratch/kocevski/593846/ft2_4FGL_J2256.0-2740_daily_bin1160.fits sctable="SC_DATA" outfile=/scratch/kocevski/593846/ltcube_540000001_540259201_4FGL_J2256.0-2740_daily_bin1160.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/593846/ft2_4FGL_J2256.0-2740_daily_bin1160.fits
.....................!
real 11.91
user 11.51
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/593846/ft1_filtered_4FGL_J2256.0-2740_daily_bin1160.fits evtable="EVENTS" scfile=/scratch/kocevski/593846/ft2_4FGL_J2256.0-2740_daily_bin1160.fits sctable="SC_DATA" expcube=/scratch/kocevski/593846/ltcube_540000001_540259201_4FGL_J2256.0-2740_daily_bin1160.fits outfile=/scratch/kocevski/593846/expmap_540000001_540259201_4FGL_J2256.0-2740_daily_bin1160.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/593846/ltcube_540000001_540259201_4FGL_J2256.0-2740_daily_bin1160.fits
.....................!
real 191.54
user 185.66
sys 5.50

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/593846/ft1_filtered_4FGL_J2256.0-2740_daily_bin1160.fits scfile=/scratch/kocevski/593846/ft2_4FGL_J2256.0-2740_daily_bin1160.fits outfile=/scratch/kocevski/593846/cmap_540000001_540259201_4FGL_J2256.0-2740_daily_bin1160.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.53
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/593846/ft1_filtered_4FGL_J2256.0-2740_daily_bin1160.fits scfile=/scratch/kocevski/593846/ft2_4FGL_J2256.0-2740_daily_bin1160.fits outfile=/scratch/kocevski/593846/cmap_HighResolution_540000001_540259201_4FGL_J2256.0-2740_daily_bin1160.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.39
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    6.9399       1.0000         .10000E-03   10000.    
     3 'norm      '    .10029E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    16.049       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .12939E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .14586E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .13495E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .28947E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    13.625       1.0000         .10000E-03   10000.    
    11 'Prefactor '    21.911       1.0000         .10000E-03   10000.    
    12 'norm      '    1.3886       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    4.8640       1.0000         .10000E-03   10000.    
    16 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    9.7708       1.0000         .10000E-03   10000.    
    18 'norm      '    3.7681       1.0000         .10000E-03   10000.    
    19 'Prefactor '    3.7281       1.0000         .10000E-03   10000.    
    20 'Prefactor '    35.539       1.0000         .10000E-03   10000.    
    21 'Normalizat'    .92336       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.1818       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=   5524.902     FROM MIGRAD    STATUS=CONVERGED    498 CALLS     2479 TOTAL
                     EDM=   .55E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    9.3533        .22435E-06** at limit **
   2  Prefactor     6.9349        9.4320        .33484E-05   -.37207E-03
   3  norm          .10000E-03    15.520        .29897E-06** at limit **
   4  Prefactor     16.044        21.825       -.12910E-05   -.54390E-05
   5  Prefactor     .10000E-03    5.7034        .16787E-06** at limit **
   6  norm          .10000E-03    1.5173        .36344E-06** at limit **
   7  Prefactor     .10000E-03    137.62        .10532E-05** at limit **
   8  Prefactor     .10000E-03    7.0258        .28832E-06** at limit **
   9  norm          .10004E-03    3.2289       -.20419E-06** at limit **
  10  Prefactor     13.616        21.822        .37661E-07    .10640E-03
  11  Prefactor     21.903        17.535       -.85206E-06    .13423E-03
  12  norm          1.3889        1.0193        .12658E-08    .16131E-03
  13  Prefactor     .10000E-03    19.734        .25000E-08** at limit **
  14  Prefactor     .10000E-03    8.6713        .77206E-07** at limit **
  15  Prefactor     4.8729        17.185        .60841E-06   -.54631E-04
  16  norm          .10000E-03    6.2105       -.61694E-07** at limit **
  17  Prefactor     9.7451        72.376       -.68118E-05   -.90701E-04
  18  norm          3.7674        3.9669        .16539E-06   -.48399E-04
  19  Prefactor     3.7127        43.104        .14852E-05    .10098E-04
  20  Prefactor     35.493        111.47       -.91672E-05   -.93351E-04
  21  Normalizat    .92398        .21268        .12220E-05   -.12933E-03
  22  Prefactor     1.1812        .19661       -.17464E-05    .42041E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 6.93489
  norm       = 0.0001
  Prefactor  = 16.0442
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  norm       = 0.000100039
  Prefactor  = 13.6162
  Prefactor  = 21.9033
  norm       = 1.38895
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.87286
  norm       = 0.0001
  Prefactor  = 9.74508
  norm       = 3.7674
  Prefactor  = 3.71269
  Prefactor  = 35.493
  Normalizat = 0.923979
  Prefactor  = 1.18125
 **********
 **   18 **HESSE 
 **********

 FCN=   5524.902     FROM HESSE     STATUS=OK           346 CALLS     2825 TOTAL
                     EDM=   .31E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    9.3820        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     6.9349        9.7539        .76145E-03   -1.5181    
   3  norm          .10000E-03    15.554        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     16.044        21.793        .99977E-04   -1.4907    
   5  Prefactor     .10000E-03    5.7278        .17335E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    2.4864        .17612E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    139.08        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    33.699        .37191E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10004E-03    17.678        .23507E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     13.616        21.545        .10851E-03   -1.4970    
  11  Prefactor     21.903        17.412        .85570E-04   -1.4772    
  12  norm          1.3889        1.0233        .47623E-04   -1.5472    
  13  Prefactor     .10000E-03    19.744        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    8.6920        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     4.8729        16.814        .18239E-03   -1.5266    
  16  norm          .10000E-03    6.2944        .18085E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     9.7451        76.675        .12820E-03   -1.5084    
  18  norm          3.7674        3.9521        .14251E-03   -1.5320    
  19  Prefactor     3.7127        42.811        .20913E-03   -1.5323    
  20  Prefactor     35.493        115.22        .67224E-04   -1.4516    
  21  Normalizat    .92398        .25569        .26506E-03   -.95623    
  22  Prefactor     1.1812        .23682        .23644E-03   -.86910    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.09183e-09
Minuit parameter uncertainties:
  1  6.54847e-06
  2  9.75618
  3  1.97861e-05
  4  21.8035
  5  1.01951e-06
  6  6.36002e-06
  7  6.62014e-05
  8  0.000498836
  9  0.00166303
  10  21.5571
  11  17.4163
  12  1.02335
  13  7.45864e-06
  14  2.03947e-06
  15  16.8299
  16  1.73847e-05
  17  54.7666
  18  3.95236
  19  25.2369
  20  115.954
  21  0.256022
  22  0.237029
Done.

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

Extracting fit parameters...

4FGL J2256.0-2740
   Spectrum: PowerLaw
340    Prefactor:  2.190e+01  1.742e+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:  1.181e+00  2.370e-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.240e-01  2.560e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.04
Ra Dec: 344.025 -27.674
Photon Index (Fixed Index): 3.02 +/- 0.00
Photon Flux (Fixed Index): 1.50e-07 +/- 1.19e-07
Energy Flux (Fixed Index): 2.96e-05 +/- 2.35e-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) = 5524.86432063
delta logL = 0.0379996220408

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5524.8613718
delta logL = 0.0409484555703

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    22.563       1.0000         .10000E-03   10000.    
     2 'Index     '    2.8416       1.0000          .0000       10.000    
     3 'Normalizat'    .93480       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1717       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=   5524.861     FROM MIGRAD    STATUS=CONVERGED     45 CALLS      202 TOTAL
                     EDM=   .22E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     22.563        14.832        .21082E-02    .88265E-03
   2  Index         2.8416        .65845        .21225       -.16363E-03
   3  Normalizat    .93482        .19424        .45345E-01    .34740E-04
   4  Prefactor     1.1717        .19122        .53649E-01   -.26703E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 22.5626
  Index      = 2.84156
  Normalizat = 0.934822
  Prefactor  = 1.17173
 **********
 **   18 **HESSE 
 **********

 FCN=   5524.861     FROM HESSE     STATUS=OK            31 CALLS      233 TOTAL
                     EDM=   .84E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     22.563        11.276        .84326E-04   -1.4758    
   2  Index         2.8416        .59763        .78750E-02   -.44636    
   3  Normalizat    .93482        .23695        .26369E-03   -.95247    
   4  Prefactor     1.1717        .23140        .23721E-03   -.87206    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.40112e-10
Minuit parameter uncertainties:
  1  11.277
  2  0.599395
  3  0.237211
  4  0.231596
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/593846': 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) = 5524.86137178
delta logL = 0.0409484718921

Extracting fit parameters...

4FGL J2256.0-2740
   Spectrum: PowerLaw
340    Prefactor:  2.256e+01  1.128e+01  1.000e-04  1.000e+04 ( 1.000e-11)
341        Index:  2.842e+00  5.994e-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.172e+00  2.316e-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.348e-01  2.372e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.46
Ra Dec: 344.025 -27.674
Photon Index (Free Index): 2.84 +/- 0.60
Photon Flux (Free Index): 1.45e-07 +/- 7.47e-08
Energy Flux (Free Index): 3.16e-05 +/- 1.73e-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/593846/cmap_HighResolution_540000001_540259201_4FGL_J2256.0-2740_daily_bin1160.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.50e-07', energy_flux2='3.16e-05', photon_flux_error='1.19e-07', dlogl='4.09e-02', energy_flux='2.96e-05', photon_flux2='1.45e-07', job_status='DONE', time_completed='2021-09-29 03:01:07.301772', photon_index_error2='0.60', photon_index2='2.84', ts='5.04', fit_tolerance='1e-08', GAL='1.18', photon_index_error='0.00', energy_flux_error2='1.73e-05', EG='0.92', time_epoch_completed='1632909667.3', return_code='0', job_id='593846', GAL2='1.17', EG2='0.93', return_code2='0', energy_flux_error='2.35e-05', photon_flux_error2='7.47e-08', ts2='5.46', photon_index='3.02' WHERE bin_id='1160' AND source_name='4FGL J2256.0-2740' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 03:01:07 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0049>
Subject: Job 593846: <4FGL_J2256.0-2740_daily_bin1160> in cluster <slac> Done

Job <4FGL_J2256.0-2740_daily_bin1160> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Wed Sep 29 02:50:14 2021
Job was executed on host(s) <bullet0049>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 02:50:15 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:50:15 2021
Terminated at Wed Sep 29 03:01:08 2021
Results reported at Wed Sep 29 03:01:08 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2256.0-2740_daily_bin1160 344.025 -27.6739 540000001 540259201 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 :                                   547.63 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             338.24 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   652 sec.
    Turnaround time :                            654 sec.

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

