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


Performing analysis on: 4FGL_J2256.0-2740_daily_bin1314
RA = 344.025, Dec = -27.6739
tmin = 579916801, tmax = 580176001
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='594075', job_status='RUN', time_executed='2021-09-29 02:51:57.896573', time_epoch_executed='1632909117.9' WHERE source_name='4FGL J2256.0-2740' and cadence='daily' and bin_id='1314'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/594075

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/594075/ft1_4FGL_J2256.0-2740_daily_bin1314.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/594075/ft2_4FGL_J2256.0-2740_daily_bin1314.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/594075/ft1_4FGL_J2256.0-2740_daily_bin1314.fits outfile=/scratch/kocevski/594075/ft1_filteredMKT_4FGL_J2256.0-2740_daily_bin1314.fits ra=344.025 dec=-27.6739 rad=12.0 tmin=579916801.0 tmax=580176001.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.45
user 3.23
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/594075/ft1_filtered_4FGL_J2256.0-2740_daily_bin1314.fits" evtable="EVENTS" scfile=/scratch/kocevski/594075/ft2_4FGL_J2256.0-2740_daily_bin1314.fits sctable="SC_DATA" outfile=/scratch/kocevski/594075/ltcube_579916801_580176001_4FGL_J2256.0-2740_daily_bin1314.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/594075/ft2_4FGL_J2256.0-2740_daily_bin1314.fits
.....................!
real 11.94
user 11.60
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/594075/ft1_filtered_4FGL_J2256.0-2740_daily_bin1314.fits evtable="EVENTS" scfile=/scratch/kocevski/594075/ft2_4FGL_J2256.0-2740_daily_bin1314.fits sctable="SC_DATA" expcube=/scratch/kocevski/594075/ltcube_579916801_580176001_4FGL_J2256.0-2740_daily_bin1314.fits outfile=/scratch/kocevski/594075/expmap_579916801_580176001_4FGL_J2256.0-2740_daily_bin1314.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/594075/ltcube_579916801_580176001_4FGL_J2256.0-2740_daily_bin1314.fits
.....................!
real 191.55
user 185.84
sys 5.39

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/594075/ft1_filtered_4FGL_J2256.0-2740_daily_bin1314.fits scfile=/scratch/kocevski/594075/ft2_4FGL_J2256.0-2740_daily_bin1314.fits outfile=/scratch/kocevski/594075/cmap_579916801_580176001_4FGL_J2256.0-2740_daily_bin1314.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.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/594075/ft1_filtered_4FGL_J2256.0-2740_daily_bin1314.fits scfile=/scratch/kocevski/594075/ft2_4FGL_J2256.0-2740_daily_bin1314.fits outfile=/scratch/kocevski/594075/cmap_HighResolution_579916801_580176001_4FGL_J2256.0-2740_daily_bin1314.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.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/594075/ft1_filtered_4FGL_J2256.0-2740_daily_bin1314.fits evtable="EVENTS" scfile=/scratch/kocevski/594075/ft2_4FGL_J2256.0-2740_daily_bin1314.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/594075/Model_4FGL_J2256.0-2740_daily_bin1314.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/594075/ft1_filtered_4FGL_J2256.0-2740_daily_bin1314.fits....................!
real 54.82
user 53.51
sys 1.22

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    41.588       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10176E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .41386E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .86520       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .32753E-02   1.0000         .10000E-03   10000.    
     9 'norm      '    1.3137       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .73119E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    24.543       1.0000         .10000E-03   10000.    
    12 'norm      '    1.9090       1.0000         .10000E-03   10000.    
    13 'Prefactor '    12.639       1.0000         .10000E-03   10000.    
    14 'Prefactor '    18.452       1.0000         .10000E-03   10000.    
    15 'Prefactor '    7.3171       1.0000         .10000E-03   10000.    
    16 'norm      '    2.9252       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    3.1609       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10713E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    70.745       1.0000         .10000E-03   10000.    
    21 'Normalizat'    .96812       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .63247       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=   7145.103     FROM MIGRAD    STATUS=CONVERGED    479 CALLS     2393 TOTAL
                     EDM=   .78E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    10.690        .10120E-06** at limit **
   2  Prefactor     .10000E-03    1.9131        .28988E-07** at limit **
   3  norm          41.588        19.455       -.83369E-07    .65541E-04
   4  Prefactor     .10000E-03    24.763       -.47986E-06** at limit **
   5  Prefactor     .10001E-03    5.9345       -.65686E-06** at limit **
   6  norm          .86532        1.5035        .15403E-06    .17493E-03
   7  Prefactor     .10000E-03    35.929       -.63381E-06** at limit **
   8  Prefactor     .10005E-03    5.7878        .74845E-06** at limit **
   9  norm          1.3127        3.2747        .77356E-06    .65898E-04
  10  Prefactor     .10000E-03    8.5975       -.13104E-05** at limit **
  11  Prefactor     24.536        11.678        .14598E-08    .29002E-03
  12  norm          1.9089        .84620       -.16520E-06    .13537E-02
  13  Prefactor     12.635        36.379       -.13514E-05   -.58860E-04
  14  Prefactor     18.452        10.990        .12952E-06   -.51440E-04
  15  Prefactor     7.3167        9.0175        .27159E-05   -.52640E-03
  16  norm          2.9254        3.8100        .74977E-07   -.46757E-04
  17  Prefactor     .10000E-03    16.895        .99441E-07** at limit **
  18  norm          3.1611        2.6050        .97035E-07   -.62411E-04
  19  Prefactor     .10000E-03    26.756        .29880E-06** at limit **
  20  Prefactor     70.714        78.779       -.70484E-05   -.28152E-03
  21  Normalizat    .96800        .14603        .31846E-06    .46379E-04
  22  Prefactor     .63259        .13835       -.40421E-06    .10721E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 41.5883
  Prefactor  = 0.0001
  Prefactor  = 0.000100009
  norm       = 0.865323
  Prefactor  = 0.0001
  Prefactor  = 0.000100054
  norm       = 1.31269
  Prefactor  = 0.000100002
  Prefactor  = 24.5361
  norm       = 1.9089
  Prefactor  = 12.6351
  Prefactor  = 18.4519
  Prefactor  = 7.31669
  norm       = 2.92538
  Prefactor  = 0.0001
  norm       = 3.16112
  Prefactor  = 0.0001
  Prefactor  = 70.7142
  Normalizat = 0.967996
  Prefactor  = 0.632594
 **********
 **   18 **HESSE 
 **********

 FCN=   7145.103     FROM HESSE     STATUS=OK           350 CALLS     2743 TOTAL
                     EDM=   .32E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    10.751        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    1.9223        .11417E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          41.588        19.369        .62160E-04   -1.4417    
   4  Prefactor     .10000E-03    25.640        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10001E-03    28.257        .38885E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .86532        1.2410        .13019E-02   -1.5522    
   7  Prefactor     .10000E-03    36.211        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10005E-03    36.368        .38287E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          1.3127        3.1766        .21435E-03   -1.5479    
  10  Prefactor     .10000E-03    33.015        .41381E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     24.536        11.152        .40429E-03   -1.4717    
  12  norm          1.9089        .86287        .38423E-04   -1.5432    
  13  Prefactor     12.635        36.515        .11267E-03   -1.4997    
  14  Prefactor     18.452        10.995        .46620E-03   -1.4849    
  15  Prefactor     7.3167        9.4301        .74138E-03   -1.5167    
  16  norm          2.9254        3.8015        .18323E-03   -1.5366    
  17  Prefactor     .10000E-03    16.935        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          3.1611        2.5969        .11837E-03   -1.5352    
  19  Prefactor     .10000E-03    26.951        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     70.714        85.520        .47727E-04   -1.4024    
  21  Normalizat    .96800        .17256        .21215E-03   -.94110    
  22  Prefactor     .63259        .16466        .25147E-03   -1.0623    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.2365e-09
Minuit parameter uncertainties:
  1  4.92776e-06
  2  9.67103e-07
  3  19.3723
  4  0.000125469
  5  0.00098243
  6  1.24099
  7  0.000165269
  8  0.00280266
  9  3.17699
  10  0.00046005
  11  11.1531
  12  0.862874
  13  36.5794
  14  10.9959
  15  9.43203
  16  3.8018
  17  1.33679e-05
  18  2.59697
  19  0.00020311
  20  85.6696
  21  0.172661
  22  0.164788
Done.

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

Extracting fit parameters...

4FGL J2256.0-2740
   Spectrum: PowerLaw
340    Prefactor:  2.454e+01  1.115e+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:  6.326e-01  1.648e-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.680e-01  1.727e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 12.07
Ra Dec: 344.025 -27.674
Photon Index (Fixed Index): 3.02 +/- 0.00
Photon Flux (Fixed Index): 1.68e-07 +/- 7.62e-08
Energy Flux (Fixed Index): 3.31e-05 +/- 1.51e-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) = 7145.06944198
delta logL = 0.033729343957

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7145.06693651
delta logL = 0.036234810148

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    25.027       1.0000         .10000E-03   10000.    
     2 'Index     '    2.9084       1.0000          .0000       10.000    
     3 'Normalizat'    .97376       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .62788       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=   7145.067     FROM MIGRAD    STATUS=CONVERGED     49 CALLS      200 TOTAL
                     EDM=   .13E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     25.027        10.797        .20018E-02    .52546E-02
   2  Index         2.9087        .48849        .16451       -.23701E-04
   3  Normalizat    .97411        .14175        .45837E-01   -.30842E-05
   4  Prefactor     .62742        .13700        .41433E-01    .17981E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 25.0274
  Index      = 2.90867
  Normalizat = 0.974108
  Prefactor  = 0.627417
 **********
 **   18 **HESSE 
 **********

 FCN=   7145.067     FROM HESSE     STATUS=OK            31 CALLS      231 TOTAL
                     EDM=   .78E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     25.027        8.4520        .80073E-04   -1.4707    
   2  Index         2.9087        .41254        .67293E-02   -.43154    
   3  Normalizat    .97411        .17064        .21158E-03   -.93903    
   4  Prefactor     .62742        .16368        .25235E-03   -1.0644    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.76428e-09
Minuit parameter uncertainties:
  1  8.45242
  2  0.413107
  3  0.170734
  4  0.163807
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/594075': 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) = 7145.06693162
delta logL = 0.0362397032641

Extracting fit parameters...

4FGL J2256.0-2740
   Spectrum: PowerLaw
340    Prefactor:  2.503e+01  8.452e+00  1.000e-04  1.000e+04 ( 1.000e-11)
341        Index:  2.909e+00  4.131e-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:  6.274e-01  1.638e-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.741e-01  1.707e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 13.38
Ra Dec: 344.025 -27.674
Photon Index (Free Index): 2.91 +/- 0.41
Photon Flux (Free Index): 1.64e-07 +/- 5.65e-08
Energy Flux (Free Index): 3.44e-05 +/- 1.25e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/594075/cmap_HighResolution_579916801_580176001_4FGL_J2256.0-2740_daily_bin1314.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.68e-07', energy_flux2='3.44e-05', photon_flux_error='7.62e-08', dlogl='3.62e-02', energy_flux='3.31e-05', photon_flux2='1.64e-07', job_status='DONE', time_completed='2021-09-29 03:03:30.005130', photon_index_error2='0.41', photon_index2='2.91', ts='12.07', fit_tolerance='1e-08', GAL='0.63', photon_index_error='0.00', energy_flux_error2='1.25e-05', EG='0.97', time_epoch_completed='1632909810.01', return_code='0', job_id='594075', GAL2='0.63', EG2='0.97', return_code2='0', energy_flux_error='1.51e-05', photon_flux_error2='5.65e-08', ts2='13.38', photon_index='3.02' WHERE bin_id='1314' AND source_name='4FGL J2256.0-2740' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 03:03:30 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0213>
Subject: Job 594075: <4FGL_J2256.0-2740_daily_bin1314> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2256.0-2740_daily_bin1314 344.025 -27.6739 579916801 580176001 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 :                                   608.34 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             331.37 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   777 sec.
    Turnaround time :                            779 sec.

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

