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


Performing analysis on: 4FGL_J2256.0-2740_daily_bin786
RA = 344.025, Dec = -27.6739
tmin = 443059201, tmax = 443318401
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='592326', job_status='RUN', time_executed='2021-09-29 02:49:02.503527', time_epoch_executed='1632908942.5' WHERE source_name='4FGL J2256.0-2740' and cadence='daily' and bin_id='786'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/592326

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/592326/ft1_4FGL_J2256.0-2740_daily_bin786.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/592326/ft2_4FGL_J2256.0-2740_daily_bin786.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/592326/ft1_4FGL_J2256.0-2740_daily_bin786.fits outfile=/scratch/kocevski/592326/ft1_filteredMKT_4FGL_J2256.0-2740_daily_bin786.fits ra=344.025 dec=-27.6739 rad=12.0 tmin=443059201.0 tmax=443318401.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.88
user 3.64
sys 0.23

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/592326/ft1_filtered_4FGL_J2256.0-2740_daily_bin786.fits" evtable="EVENTS" scfile=/scratch/kocevski/592326/ft2_4FGL_J2256.0-2740_daily_bin786.fits sctable="SC_DATA" outfile=/scratch/kocevski/592326/ltcube_443059201_443318401_4FGL_J2256.0-2740_daily_bin786.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/592326/ft2_4FGL_J2256.0-2740_daily_bin786.fits
.....................!
real 14.36
user 14.01
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/592326/ft1_filtered_4FGL_J2256.0-2740_daily_bin786.fits evtable="EVENTS" scfile=/scratch/kocevski/592326/ft2_4FGL_J2256.0-2740_daily_bin786.fits sctable="SC_DATA" expcube=/scratch/kocevski/592326/ltcube_443059201_443318401_4FGL_J2256.0-2740_daily_bin786.fits outfile=/scratch/kocevski/592326/expmap_443059201_443318401_4FGL_J2256.0-2740_daily_bin786.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/592326/ltcube_443059201_443318401_4FGL_J2256.0-2740_daily_bin786.fits
.....................!
real 191.18
user 185.87
sys 4.99

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/592326/ft1_filtered_4FGL_J2256.0-2740_daily_bin786.fits scfile=/scratch/kocevski/592326/ft2_4FGL_J2256.0-2740_daily_bin786.fits outfile=/scratch/kocevski/592326/cmap_443059201_443318401_4FGL_J2256.0-2740_daily_bin786.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.35
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/592326/ft1_filtered_4FGL_J2256.0-2740_daily_bin786.fits scfile=/scratch/kocevski/592326/ft2_4FGL_J2256.0-2740_daily_bin786.fits outfile=/scratch/kocevski/592326/cmap_HighResolution_443059201_443318401_4FGL_J2256.0-2740_daily_bin786.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.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    1.8555       1.0000         .10000E-03   10000.    
     3 'norm      '    4.0280       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    13.166       1.0000         .10000E-03   10000.    
     6 'norm      '    1.2156       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    16.073       1.0000         .10000E-03   10000.    
     9 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10031E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    7.3151       1.0000         .10000E-03   10000.    
    15 'Prefactor '    3.8640       1.0000         .10000E-03   10000.    
    16 'norm      '    17.224       1.0000         .10000E-03   10000.    
    17 'Prefactor '    60.822       1.0000         .10000E-03   10000.    
    18 'norm      '    .83849       1.0000         .10000E-03   10000.    
    19 'Prefactor '    11.940       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    .60582       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .98105       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=   6927.129     FROM MIGRAD    STATUS=CONVERGED    475 CALLS     2355 TOTAL
                     EDM=   .30E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    6.0380        .12162E-07** at limit **
   2  Prefactor     1.8558        3.8296       -.17873E-06   -.78961E-04
   3  norm          4.0269        10.799       -.27232E-06   -.11428E-04
   4  Prefactor     .10000E-03    3.8177       -.51490E-09** at limit **
   5  Prefactor     13.154        9.7613       -.19513E-05   -.53435E-04
   6  norm          1.2139        1.0720        .43437E-07   -.47612E-05
   7  Prefactor     .10000E-03    33.471        .22010E-05** at limit **
   8  Prefactor     16.073        9.0278       -.28193E-07    .51850E-05
   9  norm          .10000E-03    .51559       -.18357E-08** at limit **
  10  Prefactor     .10000E-03    2.0780       -.13584E-07** at limit **
  11  Prefactor     .10000E-03    2.6125       -.52343E-07** at limit **
  12  norm          .10000E-03    .90948E-01   -.19763E-07** at limit **
  13  Prefactor     .10000E-03    13.597        .94800E-07** at limit **
  14  Prefactor     7.3152        7.6906       -.14181E-06   -.11240E-05
  15  Prefactor     3.8624        1.6853        .10061E-06   -.86021E-03
  16  norm          17.225        8.0794       -.34556E-06   -.71251E-05
  17  Prefactor     60.823        37.054        .54607E-06    .59570E-05
  18  norm          .83886        1.6752       -.50446E-07   -.20016E-03
  19  Prefactor     11.940        12.859        .11420E-06    .57713E-05
  20  Prefactor     .10000E-03    39.727       -.19591E-05** at limit **
  21  Normalizat    .60581        .13696        .64613E-06   -.72621E-05
  22  Prefactor     .98104        .13318        .12214E-07    .26329E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 1.85577
  norm       = 4.02694
  Prefactor  = 0.0001
  Prefactor  = 13.1537
  norm       = 1.21391
  Prefactor  = 0.0001
  Prefactor  = 16.0733
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.31525
  Prefactor  = 3.86239
  norm       = 17.2247
  Prefactor  = 60.8231
  norm       = 0.838858
  Prefactor  = 11.9395
  Prefactor  = 0.0001
  Normalizat = 0.605806
  Prefactor  = 0.981042
 **********
 **   18 **HESSE 
 **********

 FCN=   6927.129     FROM HESSE     STATUS=OK           350 CALLS     2705 TOTAL
                     EDM=   .60E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    6.0652        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     1.8558        3.8309        .22677E-03   -1.5436    
   3  norm          4.0269        10.797        .20093E-03   -1.5307    
   4  Prefactor     .10000E-03    3.8207        .15882E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     13.154        9.7930        .11039E-03   -1.4982    
   6  norm          1.2139        1.0848        .78383E-04   -1.5488    
   7  Prefactor     .10000E-03    34.111        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     16.073        9.0703        .99901E-04   -1.4906    
   9  norm          .10000E-03    .51649        .58357E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    2.0805        .11717E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    2.6765        .26241E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    .95394E-01    .48963E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    13.603        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     7.3152        7.6907        .14830E-03   -1.5167    
  15  Prefactor     3.8624        5.2486        .10264E-02   -1.5315    
  16  norm          17.225        8.0802        .96504E-04   -1.4878    
  17  Prefactor     60.823        37.193        .51448E-04   -1.4147    
  18  norm          .83886        1.4847        .14617E-02   -1.5525    
  19  Prefactor     11.940        12.802        .11593E-03   -1.5017    
  20  Prefactor     .10000E-03    39.781        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    .60581        .16237        .24396E-03   -1.0774    
  22  Prefactor     .98104        .15825        .19958E-03   -.93364    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.04497e-09
Minuit parameter uncertainties:
  1  1.30061e-06
  2  3.83136
  3  10.8024
  4  8.23129e-07
  5  9.79419
  6  1.08478
  7  0.000140401
  8  9.07103
  9  1.14159e-08
  10  6.27014e-08
  11  1.77915e-07
  12  1.03564e-07
  13  2.69008e-06
  14  7.69173
  15  5.24918
  16  8.08074
  17  37.2077
  18  1.48475
  19  12.8048
  20  2.37675e-05
  21  0.162494
  22  0.158321
Done.

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

Extracting fit parameters...

4FGL J2256.0-2740
   Spectrum: PowerLaw
340    Prefactor:  1.000e-04  1.779e-07  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:  9.810e-01  1.583e-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.058e-01  1.625e-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: 5.26e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.22e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/592326/likelihoodResults_443059201_443318401_4FGL_J2256.0-2740_daily_bin786.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) = 6927.1309474
delta logL = -0.0017823019698

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6927.12916557
delta logL = -4.71808561997e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10707E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    3.0557       1.0000          .0000       10.000    
     3 'Normalizat'    .60583       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .98104       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   6926.177     FROM MIGRAD    STATUS=FAILED       170 CALLS      322 TOTAL
                     EDM=   .21E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .55566E-01    2.0217        .27523E-02    .34653E-02
   2  Index        10.0000        5.8447        .50000    ** at limit **
   3  Normalizat    .55036        .75332E-01    .24396E-02   -.61997E-03
   4  Prefactor     1.0190        .71718E-01    .19958E-03   -.72791E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   6926.177     FROM SIMPLEX   STATUS=UNCHANGED    125 CALLS      447 TOTAL
                     EDM=   .36E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .55566E-01    2.0217        .16203E-05    .34653E-02
   2  Index        10.0000        5.8447        .12599E-01** at limit **
   3  Normalizat    .55036        .75332E-01    .94383E-06   -.61997E-03
   4  Prefactor     1.0190        .71718E-01    .20120E-06   -.72791E-03
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6926.177     FROM MIGRAD    STATUS=CONVERGED     38 CALLS      485 TOTAL
                     EDM=   .41E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .55566E-01    .62803E-01    .16908E-04   -.56210E-03
   2  Index        10.0000        6.7928        .50000    ** at limit **
   3  Normalizat    .55036        .15848        .97583E-04   -.63389E-03
   4  Prefactor     1.0190        .16005        .39916E-04   -.73312E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0555658
  Index      = 10
  Normalizat = 0.550359
  Prefactor  = 1.01902
 **********
 **   18 **HESSE 
 **********

 FCN=   6926.177     FROM HESSE     STATUS=OK            29 CALLS      514 TOTAL
                     EDM=   .41E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .55566E-01    .62506E-01    .67633E-06   -1.5661    
   2  Index        10.0000        6.7784        .50000        1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    .55036        .15853        .19517E-04   -1.1014    
   4  Prefactor     1.0190        .16009        .79831E-05   -.92098    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.07259e-10
Minuit parameter uncertainties:
  1  0.0625058
  2  0.000101078
  3  0.158659
  4  0.160163
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/592326': 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) = 6926.17737846
delta logL = 0.951786639332

Extracting fit parameters...

4FGL J2256.0-2740
   Spectrum: PowerLaw
340    Prefactor:  5.557e-02  6.251e-02  1.000e-04  1.000e+04 ( 1.000e-11)
341        Index:  1.000e+01  1.011e-04  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.019e+00  1.602e-01  0.000e+00  1.000e+01 ( 1.000e+00)
559        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
560        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
557   Normalization:  5.504e-01  1.587e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.01
Ra Dec: 344.025 -27.674
Photon Index (Free Index): 10.00 +/- 0.00
Photon Flux (Free Index): 3.78e-08 +/- 4.12e-08
Energy Flux (Free Index): 4.22e-06 +/- 4.63e-06

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/592326/cmap_HighResolution_443059201_443318401_4FGL_J2256.0-2740_daily_bin786.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.22e-03', comment='SUCCESS', energy_flux2='4.22e-06', dlogl='9.52e-01', photon_flux2='3.78e-08', job_status='DONE', time_completed='2021-09-29 03:00:20.018072', photon_index_error2='0.00', photon_index2='10.00', ts='-0.00', fit_tolerance='1e-08', GAL='0.98', photon_index_error='0.00', photon_flux_upper_limit='5.26e-08', energy_flux_error2='4.63e-06', EG='0.61', time_epoch_completed='1632909620.02', return_code='0', job_id='592326', GAL2='1.02', EG2='0.55', return_code2='0', photon_flux_error2='4.12e-08', ts2='2.01', photon_index='3.02' WHERE bin_id='786' AND source_name='4FGL J2256.0-2740' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 03:00:20 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0067>
Subject: Job 592326: <4FGL_J2256.0-2740_daily_bin786> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2256.0-2740_daily_bin786 344.025 -27.6739 443059201 443318401 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 :                                   675.39 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             228.11 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   902 sec.
    Turnaround time :                            903 sec.

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

