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


Performing analysis on: 4FGL_J2256.0-2740_daily_bin568
RA = 344.025, Dec = -27.6739
tmin = 386553601, tmax = 386812801
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='590984', job_status='RUN', time_executed='2021-09-29 02:44:48.486264', time_epoch_executed='1632908688.49' WHERE source_name='4FGL J2256.0-2740' and cadence='daily' and bin_id='568'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/590984

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/590984/ft1_4FGL_J2256.0-2740_daily_bin568.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/590984/ft2_4FGL_J2256.0-2740_daily_bin568.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/590984/ft1_4FGL_J2256.0-2740_daily_bin568.fits outfile=/scratch/kocevski/590984/ft1_filteredMKT_4FGL_J2256.0-2740_daily_bin568.fits ra=344.025 dec=-27.6739 rad=12.0 tmin=386553601.0 tmax=386812801.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 4.73
user 4.52
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/590984/ft1_filtered_4FGL_J2256.0-2740_daily_bin568.fits" evtable="EVENTS" scfile=/scratch/kocevski/590984/ft2_4FGL_J2256.0-2740_daily_bin568.fits sctable="SC_DATA" outfile=/scratch/kocevski/590984/ltcube_386553601_386812801_4FGL_J2256.0-2740_daily_bin568.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/590984/ft2_4FGL_J2256.0-2740_daily_bin568.fits
.....................!
real 11.69
user 11.37
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/590984/ft1_filtered_4FGL_J2256.0-2740_daily_bin568.fits evtable="EVENTS" scfile=/scratch/kocevski/590984/ft2_4FGL_J2256.0-2740_daily_bin568.fits sctable="SC_DATA" expcube=/scratch/kocevski/590984/ltcube_386553601_386812801_4FGL_J2256.0-2740_daily_bin568.fits outfile=/scratch/kocevski/590984/expmap_386553601_386812801_4FGL_J2256.0-2740_daily_bin568.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/590984/ltcube_386553601_386812801_4FGL_J2256.0-2740_daily_bin568.fits
.....................!
real 189.54
user 185.19
sys 4.01

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/590984/ft1_filtered_4FGL_J2256.0-2740_daily_bin568.fits scfile=/scratch/kocevski/590984/ft2_4FGL_J2256.0-2740_daily_bin568.fits outfile=/scratch/kocevski/590984/cmap_386553601_386812801_4FGL_J2256.0-2740_daily_bin568.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.38
sys 0.13

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

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

This is gtbin version HEAD
real 0.53
user 0.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/590984/ft1_filtered_4FGL_J2256.0-2740_daily_bin568.fits evtable="EVENTS" scfile=/scratch/kocevski/590984/ft2_4FGL_J2256.0-2740_daily_bin568.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/590984/Model_4FGL_J2256.0-2740_daily_bin568.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/590984/ft1_filtered_4FGL_J2256.0-2740_daily_bin568.fits.....................!
real 44.28
user 43.06
sys 1.14

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    15.583       1.0000         .10000E-03   10000.    
     2 'Prefactor '    7.3722       1.0000         .10000E-03   10000.    
     3 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    16.844       1.0000         .10000E-03   10000.    
     5 'Prefactor '    8.0040       1.0000         .10000E-03   10000.    
     6 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    52.568       1.0000         .10000E-03   10000.    
     8 'Prefactor '    5.9334       1.0000         .10000E-03   10000.    
     9 'norm      '    .10011E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    12.643       1.0000         .10000E-03   10000.    
    11 'Prefactor '    10.048       1.0000         .10000E-03   10000.    
    12 'norm      '    1.2744       1.0000         .10000E-03   10000.    
    13 'Prefactor '    97.640       1.0000         .10000E-03   10000.    
    14 'Prefactor '    5.9188       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    9.4633       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    2.3066       1.0000         .10000E-03   10000.    
    19 'Prefactor '    2.8720       1.0000         .10000E-03   10000.    
    20 'Prefactor '    104.93       1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.2827       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .48950       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=   5344.574     FROM MIGRAD    STATUS=CONVERGED    466 CALLS     2408 TOTAL
                     EDM=   .28E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     15.583        17.644        .15981E-06   -.33686E-04
   2  Prefactor     7.3716        9.6828        .48883E-06    .22902E-05
   3  norm          .10000E-03    6.9997        .34604E-07** at limit **
   4  Prefactor     16.843        18.240       -.29320E-07   -.21998E-04
   5  Prefactor     8.0041        8.8202        .31161E-07   -.10636E-03
   6  norm          .10000E-03    1.6319        .12573E-05** at limit **
   7  Prefactor     52.578        39.820       -.67597E-06   -.19228E-03
   8  Prefactor     5.9365        12.554        .61006E-06   -.12641E-04
   9  norm          .10000E-03    4.1653       -.51977E-07** at limit **
  10  Prefactor     12.644        17.060        .13871E-06   -.61014E-04
  11  Prefactor     10.045        11.627       -.25447E-06   -.23651E-03
  12  norm          1.2745        .67237        .36669E-07   -.39087E-03
  13  Prefactor     97.657        68.503        .25222E-05    .13636E-03
  14  Prefactor     5.9191        9.5092        .19829E-05   -.56781E-04
  15  Prefactor     .10000E-03    9.3778       -.66776E-07** at limit **
  16  norm          9.4623        8.5277        .29661E-06    .22494E-04
  17  Prefactor     .10000E-03    27.110        .41945E-07** at limit **
  18  norm          2.3067        2.5039        .45272E-07   -.95513E-04
  19  Prefactor     2.8800        60.478        .52388E-05    .58474E-04
  20  Prefactor     104.94        106.11        .17508E-05    .28787E-04
  21  Normalizat    1.2829        .19915       -.15530E-05   -.89269E-04
  22  Prefactor     .48940        .17085        .64931E-06   -.16635E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 15.5831
  Prefactor  = 7.37165
  norm       = 0.0001
  Prefactor  = 16.8433
  Prefactor  = 8.00405
  norm       = 0.000100001
  Prefactor  = 52.5779
  Prefactor  = 5.93653
  norm       = 0.0001
  Prefactor  = 12.6444
  Prefactor  = 10.0448
  norm       = 1.27445
  Prefactor  = 97.6565
  Prefactor  = 5.91909
  Prefactor  = 0.0001
  norm       = 9.46234
  Prefactor  = 0.0001
  norm       = 2.30675
  Prefactor  = 2.88003
  Prefactor  = 104.937
  Normalizat = 1.28286
  Prefactor  = 0.489397
 **********
 **   18 **HESSE 
 **********

 FCN=   5344.574     FROM HESSE     STATUS=OK           348 CALLS     2756 TOTAL
                     EDM=   .77E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     15.583        17.651        .10146E-03   -1.4918    
   2  Prefactor     7.3716        9.7225        .14772E-03   -1.5165    
   3  norm          .10000E-03    7.0029        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     16.843        18.241        .97589E-04   -1.4887    
   5  Prefactor     8.0041        8.8160        .14172E-03   -1.5142    
   6  norm          .10000E-03    2.2357        .16460E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     52.578        39.832        .55318E-04   -1.4256    
   8  Prefactor     5.9365        12.607        .16485E-03   -1.5221    
   9  norm          .10000E-03    4.3295        .29002E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     12.644        17.118        .11265E-03   -1.4997    
  11  Prefactor     10.045        11.872        .12641E-03   -1.5074    
  12  norm          1.2745        .68087        .36970E-04   -1.5482    
  13  Prefactor     97.657        70.049        .40680E-04   -1.3728    
  14  Prefactor     5.9191        9.5755        .82530E-03   -1.5221    
  15  Prefactor     .10000E-03    9.7732        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          9.4623        8.5440        .13027E-03   -1.5093    
  17  Prefactor     .10000E-03    27.179        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          2.3067        2.4786        .11200E-03   -1.5404    
  19  Prefactor     2.8800        61.564        .23985E-03   -1.5369    
  20  Prefactor     104.94        106.65        .39256E-04   -1.3656    
  21  Normalizat    1.2829        .23504        .21110E-03   -.84079    
  22  Prefactor     .48940        .20041        .30485E-03   -1.1247    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.70044e-10
Minuit parameter uncertainties:
  1  17.657
  2  9.72457
  3  3.15297e-07
  4  18.2471
  5  8.81741
  6  8.22668e-05
  7  39.8519
  8  12.6125
  9  3.46407e-06
  10  17.1244
  11  11.8743
  12  0.680873
  13  70.1088
  14  9.57801
  15  1.26941e-05
  16  8.54505
  17  2.44106e-05
  18  2.47867
  19  26.6621
  20  106.844
  21  0.235237
  22  0.200703
Done.

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

Extracting fit parameters...

4FGL J2256.0-2740
   Spectrum: PowerLaw
340    Prefactor:  1.004e+01  1.187e+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:  4.894e-01  2.007e-01  0.000e+00  1.000e+01 ( 1.000e+00)
559        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
560        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
557   Normalization:  1.283e+00  2.352e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.82
Ra Dec: 344.025 -27.674
Photon Index (Fixed Index): 3.02 +/- 0.00
Photon Flux (Fixed Index): 6.87e-08 +/- 8.11e-08
Energy Flux (Fixed Index): 1.36e-05 +/- 1.60e-05

TS (Fixed Index): 1.82
Ra Dec: 344.025 -27.674
Photon Flux Upper Limit: 1.82e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.46e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/590984/likelihoodResults_386553601_386812801_4FGL_J2256.0-2740_daily_bin568.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): 0
logL (Free Index) = 5343.25514595
delta logL = 1.31835454636

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5343.1736602
delta logL = 1.3998402935

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.5254       1.0000         .10000E-03   10000.    
     2 'Index     '    1.9557       1.0000          .0000       10.000    
     3 'Normalizat'    1.3214       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .46390       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=   5343.174     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      219 TOTAL
                     EDM=   .23E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.5216        5.3182        .39276E-02    .39497E-03
   2  Index         1.9554        .33225        .14376       -.16547E-03
   3  Normalizat    1.3214        .18106        .47185E-01    .25368E-04
   4  Prefactor     .46391        .16865        .70566E-01    .90587E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.52159
  Index      = 1.95541
  Normalizat = 1.32142
  Prefactor  = 0.463909
 **********
 **   18 **HESSE 
 **********

 FCN=   5343.174     FROM HESSE     STATUS=OK            31 CALLS      250 TOTAL
                     EDM=   .90E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.5216        7.7974        .14094E-03   -1.5197    
   2  Index         1.9554        .54247        .57147E-02   -.65470    
   3  Normalizat    1.3214        .21012        .20859E-03   -.82929    
   4  Prefactor     .46391        .19421        .31243E-03   -1.1366    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.01933e-11
Minuit parameter uncertainties:
  1  7.79863
  2  0.544178
  3  0.210256
  4  0.194485
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/590984': 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) = 5343.17366005
delta logL = 1.3998404444

Extracting fit parameters...

4FGL J2256.0-2740
   Spectrum: PowerLaw
340    Prefactor:  6.522e+00  7.799e+00  1.000e-04  1.000e+04 ( 1.000e-11)
341        Index:  1.955e+00  5.442e-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:  4.639e-01  1.945e-01  0.000e+00  1.000e+01 ( 1.000e+00)
559        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
560        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
557   Normalization:  1.321e+00  2.103e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.71
Ra Dec: 344.025 -27.674
Photon Index (Free Index): 1.96 +/- 0.54
Photon Flux (Free Index): 3.73e-08 +/- 4.20e-08
Energy Flux (Free Index): 2.88e-05 +/- 2.83e-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/590984/cmap_HighResolution_386553601_386812801_4FGL_J2256.0-2740_daily_bin568.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.46e-02', comment='SUCCESS', photon_flux='6.87e-08', energy_flux2='2.88e-05', photon_flux_error='8.11e-08', dlogl='1.40e+00', energy_flux='1.36e-05', photon_flux2='3.73e-08', job_status='DONE', time_completed='2021-09-29 02:54:33.445696', photon_index_error2='0.54', photon_index2='1.96', ts='1.82', fit_tolerance='1e-08', GAL='0.49', photon_index_error='0.00', photon_flux_upper_limit='1.82e-07', energy_flux_error2='2.83e-05', EG='1.28', time_epoch_completed='1632909273.45', return_code='0', job_id='590984', GAL2='0.46', EG2='1.32', return_code2='0', energy_flux_error='1.60e-05', photon_flux_error2='4.20e-08', ts2='4.71', photon_index='3.02' WHERE bin_id='568' AND source_name='4FGL J2256.0-2740' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 02:54:33 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0109>
Subject: Job 590984: <4FGL_J2256.0-2740_daily_bin568> in cluster <slac> Done

Job <4FGL_J2256.0-2740_daily_bin568> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Wed Sep 29 02:40:39 2021
Job was executed on host(s) <bullet0109>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 02:40:40 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep 29 02:40:40 2021
Terminated at Wed Sep 29 02:54:34 2021
Results reported at Wed Sep 29 02:54:34 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2256.0-2740_daily_bin568 344.025 -27.6739 386553601 386812801 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 :                                   585.00 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             218.29 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   833 sec.
    Turnaround time :                            835 sec.

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

