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


Performing analysis on: 4FGL_J2256.0-2740_daily_bin802
RA = 344.025, Dec = -27.6739
tmin = 447206401, tmax = 447465601
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='592350', job_status='RUN', time_executed='2021-09-29 02:48:25.264434', time_epoch_executed='1632908905.26' WHERE source_name='4FGL J2256.0-2740' and cadence='daily' and bin_id='802'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/592350

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/592350/ft1_4FGL_J2256.0-2740_daily_bin802.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/592350/ft2_4FGL_J2256.0-2740_daily_bin802.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/592350/ft1_4FGL_J2256.0-2740_daily_bin802.fits outfile=/scratch/kocevski/592350/ft1_filteredMKT_4FGL_J2256.0-2740_daily_bin802.fits ra=344.025 dec=-27.6739 rad=12.0 tmin=447206401.0 tmax=447465601.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.40
user 3.18
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/592350/ft1_filtered_4FGL_J2256.0-2740_daily_bin802.fits" evtable="EVENTS" scfile=/scratch/kocevski/592350/ft2_4FGL_J2256.0-2740_daily_bin802.fits sctable="SC_DATA" outfile=/scratch/kocevski/592350/ltcube_447206401_447465601_4FGL_J2256.0-2740_daily_bin802.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/592350/ft2_4FGL_J2256.0-2740_daily_bin802.fits
.....................!
real 11.89
user 11.56
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/592350/ft1_filtered_4FGL_J2256.0-2740_daily_bin802.fits evtable="EVENTS" scfile=/scratch/kocevski/592350/ft2_4FGL_J2256.0-2740_daily_bin802.fits sctable="SC_DATA" expcube=/scratch/kocevski/592350/ltcube_447206401_447465601_4FGL_J2256.0-2740_daily_bin802.fits outfile=/scratch/kocevski/592350/expmap_447206401_447465601_4FGL_J2256.0-2740_daily_bin802.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/592350/ltcube_447206401_447465601_4FGL_J2256.0-2740_daily_bin802.fits
.....................!
real 191.67
user 186.10
sys 5.25

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/592350/ft1_filtered_4FGL_J2256.0-2740_daily_bin802.fits scfile=/scratch/kocevski/592350/ft2_4FGL_J2256.0-2740_daily_bin802.fits outfile=/scratch/kocevski/592350/cmap_447206401_447465601_4FGL_J2256.0-2740_daily_bin802.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.56
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/592350/ft1_filtered_4FGL_J2256.0-2740_daily_bin802.fits scfile=/scratch/kocevski/592350/ft2_4FGL_J2256.0-2740_daily_bin802.fits outfile=/scratch/kocevski/592350/cmap_HighResolution_447206401_447465601_4FGL_J2256.0-2740_daily_bin802.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=344.025 yref=-27.6739 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.56
user 0.39
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/592350/ft1_filtered_4FGL_J2256.0-2740_daily_bin802.fits evtable="EVENTS" scfile=/scratch/kocevski/592350/ft2_4FGL_J2256.0-2740_daily_bin802.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/592350/Model_4FGL_J2256.0-2740_daily_bin802.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/592350/ft1_filtered_4FGL_J2256.0-2740_daily_bin802.fits.....................!
real 48.73
user 47.44
sys 1.20

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    8.7769       1.0000         .10000E-03   10000.    
     2 'Prefactor '    1.3801       1.0000         .10000E-03   10000.    
     3 'norm      '    8.9326       1.0000         .10000E-03   10000.    
     4 'Prefactor '    8.0432       1.0000         .10000E-03   10000.    
     5 'Prefactor '    28.482       1.0000         .10000E-03   10000.    
     6 'norm      '    1.8078       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10239E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .14745       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .11736E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10410E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    1.0706       1.0000         .10000E-03   10000.    
    16 'norm      '    11.210       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .11038E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .23810       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .11445E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    .67409       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.1272       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.

 FCN=   6528.228     FROM MIGRAD    STATUS=CONVERGED    521 CALLS     2144 TOTAL
                     EDM=   .18E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     8.7706        17.102         .0000       -.78899E-03
   2  Prefactor     1.3757        8.5102         .0000        .11549E-02
   3  norm          8.9303        15.157         .0000       -.65347E-04
   4  Prefactor     8.0415        15.079         .0000       -.47456E-02
   5  Prefactor     28.482        11.713         .0000       -.10715E-02
   6  norm          1.8076        1.8157         .0000        .10890E-02
   7  Prefactor     .10000E-03    18.416         .0000    ** at limit **
   8  Prefactor     .10000E-03    1.9430         .0000    ** at limit **
   9  norm          .10000E-03    1.6329         .0000    ** at limit **
  10  Prefactor     .10000E-03    3.6294         .0000    ** at limit **
  11  Prefactor     .10000E-03    3.1913         .0000    ** at limit **
  12  norm          .14817        .31020         .0000        .12207E-02
  13  Prefactor     .10000E-03    26.455         .0000    ** at limit **
  14  Prefactor     .10000E-03    5.7513         .0000    ** at limit **
  15  Prefactor     1.0598        8.9000         .0000        .31147E-01
  16  norm          11.207        7.1304         .0000       -.76200E-02
  17  Prefactor     .10000E-03    14.194         .0000    ** at limit **
  18  norm          .10000E-03    1.0937         .0000    ** at limit **
  19  Prefactor     .11100        17.423         .0000        .19301E-03
  20  Prefactor     .10002E-03    96.609         .0000    ** at limit **
  21  Normalizat    .67422        .15987         .0000        .11533E-03
  22  Prefactor     1.1272        .15999         .0000        .20285E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 8.77065
  Prefactor  = 1.37572
  norm       = 8.93026
  Prefactor  = 8.04154
  Prefactor  = 28.482
  norm       = 1.80761
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.148171
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 1.05978
  norm       = 11.2072
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.111002
  Prefactor  = 0.000100016
  Normalizat = 0.674216
  Prefactor  = 1.12722
 **********
 **   18 **HESSE 
 **********

 FCN=   6528.228     FROM HESSE     STATUS=OK           348 CALLS     2492 TOTAL
                     EDM=   .10E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     8.7706        17.082        .13530E-03   -1.5116    
   2  Prefactor     1.3757        8.4887        .37054E-03   -1.5473    
   3  norm          8.9303        15.144        .13411E-03   -1.5110    
   4  Prefactor     8.0415        15.018        .14137E-03   -1.5141    
   5  Prefactor     28.482        11.707        .75070E-04   -1.4640    
   6  norm          1.8076        1.7976        .10456E-03   -1.5439    
   7  Prefactor     .10000E-03    18.452        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    1.9451        .10998E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    4.0218        .19843E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    3.6344        .15022E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    3.2137        .14004E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .14817        .24293        .56891E-03   -1.5631    
  13  Prefactor     .10000E-03    26.493        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    5.7716        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     1.0598        7.9067        .20793E-02   -1.5502    
  16  norm          11.207        7.1283        .11966E-03   -1.5038    
  17  Prefactor     .10000E-03    14.216        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    1.8594        .16232E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .11100        19.634        .92743E-01   -1.5641    
  20  Prefactor     .10002E-03    97.130        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    .67422        .18800        .25132E-03   -1.0492    
  22  Prefactor     1.1272        .18991        .20629E-03   -.88601    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.03621e-07
Minuit parameter uncertainties:
  1  17.092
  2  6.83582
  3  15.1506
  4  15.0249
  5  11.7084
  6  1.79766
  7  0.000102729
  8  1.13453e-05
  9  3.24164e-06
  10  7.41822e-06
  11  3.35186e-06
  12  0.242928
  13  0.000412813
  14  6.18467e-05
  15  5.79022
  16  7.12883
  17  5.96385e-05
  18  7.20829e-06
  19  2.95222
  20  0.00251077
  21  0.188184
  22  0.190029
Done.

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

Extracting fit parameters...

4FGL J2256.0-2740
   Spectrum: PowerLaw
340    Prefactor:  1.000e-04  3.352e-06  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.127e+00  1.900e-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:  6.742e-01  1.882e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 344.025 -27.674
Photon Flux Upper Limit: 6.30e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.05e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/592350/likelihoodResults_447206401_447465601_4FGL_J2256.0-2740_daily_bin802.txt

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): 102
logL (Free Index) = 6528.22932297
delta logL = -0.00148339481439

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6528.22783992
delta logL = -3.37987330568e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10115E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    3.0119       1.0000          .0000       10.000    
     3 'Normalizat'    .67413       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1273       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5610E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6528.228     FROM MIGRAD    STATUS=CONVERGED    101 CALLS      250 TOTAL
                     EDM=   .18E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    9.8492        .48646E-01** at limit **
   2  Index         2.6918        7.5631        .50000       -.38563E-07
   3  Normalizat    .67422        .74473E-02    .25132E-03   -.69793E-03
   4  Prefactor     1.1272        .77706E-02    .20629E-03   -.86068E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.6918
  Normalizat = 0.674216
  Prefactor  = 1.12722
 **********
 **   18 **HESSE 
 **********

 FCN=   6528.228     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      281 TOTAL
                     EDM=   .53E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    307.69        .23656E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.6918        5.7118        .50000       -.47984    
   3  Normalizat    .67422        .37618E-01    .50264E-04   -1.0492    
   4  Prefactor     1.1272        .39246E-01    .41259E-04   -.88601    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 5.26093e-09
Minuit parameter uncertainties:
  1  0.00044822
  2  732.638
  3  0.0376194
  4  0.0392472
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/592350': 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): 102
logL (Free Index) = 6528.22783835
delta logL = 1.22918663692e-06

Extracting fit parameters...

4FGL J2256.0-2740
   Spectrum: PowerLaw
340    Prefactor:  1.000e-04  4.482e-04  1.000e-04  1.000e+04 ( 1.000e-11)
341        Index:  2.692e+00  7.326e+02  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.127e+00  3.925e-02  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:  6.742e-01  3.762e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 344.025 -27.674

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/592350/cmap_HighResolution_447206401_447465601_4FGL_J2256.0-2740_daily_bin802.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.05e-03', job_status='DONE', photon_flux_upper_limit='6.30e-08', time_completed='2021-09-29 02:58:59.402760', job_id='592350', GAL2='1.13', fit_tolerance='1e-08', EG2='0.67', EG='0.67', time_epoch_completed='1632909539.4', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.13', dlogl='1.23e-06', ts2='-0.00', photon_index_error='0.00', photon_index='3.02' WHERE bin_id='802' AND source_name='4FGL J2256.0-2740' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 02:58:59 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0047>
Subject: Job 592350: <4FGL_J2256.0-2740_daily_bin802> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2256.0-2740_daily_bin802 344.025 -27.6739 447206401 447465601 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 :                                   622.44 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             271.52 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   819 sec.
    Turnaround time :                            821 sec.

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

