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


Performing analysis on: 4FGL_J2256.0-2740_daily_bin575
RA = 344.025, Dec = -27.6739
tmin = 388368001, tmax = 388627201
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='590994', job_status='RUN', time_executed='2021-09-29 02:44:05.090266', time_epoch_executed='1632908645.09' WHERE source_name='4FGL J2256.0-2740' and cadence='daily' and bin_id='575'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/590994

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/590994/ft1_4FGL_J2256.0-2740_daily_bin575.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/590994/ft2_4FGL_J2256.0-2740_daily_bin575.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/590994/ft1_4FGL_J2256.0-2740_daily_bin575.fits outfile=/scratch/kocevski/590994/ft1_filteredMKT_4FGL_J2256.0-2740_daily_bin575.fits ra=344.025 dec=-27.6739 rad=12.0 tmin=388368001.0 tmax=388627201.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.45
user 4.18
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/590994/ft1_filtered_4FGL_J2256.0-2740_daily_bin575.fits" evtable="EVENTS" scfile=/scratch/kocevski/590994/ft2_4FGL_J2256.0-2740_daily_bin575.fits sctable="SC_DATA" outfile=/scratch/kocevski/590994/ltcube_388368001_388627201_4FGL_J2256.0-2740_daily_bin575.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/590994/ft2_4FGL_J2256.0-2740_daily_bin575.fits
.....................!
real 11.91
user 11.58
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/590994/ft1_filtered_4FGL_J2256.0-2740_daily_bin575.fits evtable="EVENTS" scfile=/scratch/kocevski/590994/ft2_4FGL_J2256.0-2740_daily_bin575.fits sctable="SC_DATA" expcube=/scratch/kocevski/590994/ltcube_388368001_388627201_4FGL_J2256.0-2740_daily_bin575.fits outfile=/scratch/kocevski/590994/expmap_388368001_388627201_4FGL_J2256.0-2740_daily_bin575.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/590994/ltcube_388368001_388627201_4FGL_J2256.0-2740_daily_bin575.fits
.....................!
real 190.84
user 186.39
sys 4.15

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/590994/ft1_filtered_4FGL_J2256.0-2740_daily_bin575.fits scfile=/scratch/kocevski/590994/ft2_4FGL_J2256.0-2740_daily_bin575.fits outfile=/scratch/kocevski/590994/cmap_388368001_388627201_4FGL_J2256.0-2740_daily_bin575.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/590994/ft1_filtered_4FGL_J2256.0-2740_daily_bin575.fits scfile=/scratch/kocevski/590994/ft2_4FGL_J2256.0-2740_daily_bin575.fits outfile=/scratch/kocevski/590994/cmap_HighResolution_388368001_388627201_4FGL_J2256.0-2740_daily_bin575.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/590994/ft1_filtered_4FGL_J2256.0-2740_daily_bin575.fits evtable="EVENTS" scfile=/scratch/kocevski/590994/ft2_4FGL_J2256.0-2740_daily_bin575.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/590994/Model_4FGL_J2256.0-2740_daily_bin575.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/590994/ft1_filtered_4FGL_J2256.0-2740_daily_bin575.fits.....................!
real 50.13
user 48.67
sys 1.26

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10051E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .82174       1.0000         .10000E-03   10000.    
     3 'norm      '    .10102E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10464E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    2.3540       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10040E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    14.797       1.0000         .10000E-03   10000.    
     9 'norm      '    .31076       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10187E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    19.689       1.0000         .10000E-03   10000.    
    12 'norm      '    .24453       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10151E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10049E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    1.7690       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10044E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    43.335       1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.0103       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .88789       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=   6305.020     FROM MIGRAD    STATUS=CONVERGED    468 CALLS     2357 TOTAL
                     EDM=   .48E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    5.3857       -.55187E-07** at limit **
   2  Prefactor     .82561        3.8810        .71610E-06   -.41012E-03
   3  norm          .10000E-03    5.3915       -.15001E-07** at limit **
   4  Prefactor     .10000E-03    9.6287       -.49599E-07** at limit **
   5  Prefactor     .10000E-03    6.0669       -.10094E-06** at limit **
   6  norm          2.3541        1.5642       -.92683E-08   -.70466E-05
   7  Prefactor     .10000E-03    12.431       -.16348E-07** at limit **
   8  Prefactor     14.799        10.656        .13337E-06   -.15025E-03
   9  norm          .29477        2.3428        .60096E-07    .16277E-03
  10  Prefactor     .10000E-03    4.3642        .64977E-07** at limit **
  11  Prefactor     19.710        11.007       -.17568E-05   -.42997E-03
  12  norm          .24325        .76164        .90006E-06   -.15116E-03
  13  Prefactor     .10000E-03    21.335       -.10689E-06** at limit **
  14  Prefactor     .10000E-03    18.473       -.11685E-06** at limit **
  15  Prefactor     .10000E-03    5.3767        .14335E-06** at limit **
  16  norm          .10000E-03    2.2673       -.24498E-07** at limit **
  17  Prefactor     .10000E-03    19.033        .44903E-07** at limit **
  18  norm          1.7686        2.2801        .16450E-06   -.17152E-03
  19  Prefactor     .10000E-03    14.448        .42325E-06** at limit **
  20  Prefactor     43.419        89.346        .16993E-05    .51641E-04
  21  Normalizat    1.0102        .17728       -.17280E-05   -.64911E-04
  22  Prefactor     .88805        .16523        .12155E-05   -.38798E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.825607
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.35413
  Prefactor  = 0.0001
  Prefactor  = 14.7989
  norm       = 0.29477
  Prefactor  = 0.0001
  Prefactor  = 19.7103
  norm       = 0.243254
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 1.76862
  Prefactor  = 0.0001
  Prefactor  = 43.4186
  Normalizat = 1.01016
  Prefactor  = 0.888051
 **********
 **   18 **HESSE 
 **********

 FCN=   6305.020     FROM HESSE     STATUS=OK           342 CALLS     2699 TOTAL
                     EDM=   .22E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    5.3940        .17995E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .82561        15.343        .28939E-02   -1.5526    
   3  norm          .10000E-03    5.3952        .18007E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    9.6586        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    6.1406        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          2.3541        1.5619        .78535E-04   -1.5401    
   7  Prefactor     .10000E-03    12.443        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     14.799        10.690        .10412E-03   -1.4938    
   9  norm          .29477        8.5613        .20824E-02   -1.5599    
  10  Prefactor     .10000E-03    4.3673        .16193E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     19.710        12.080        .90265E-04   -1.4820    
  12  norm          .24325        .83910        .78351E-03   -1.5609    
  13  Prefactor     .10000E-03    21.354        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    18.728        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    5.4067        .17956E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    2.2779        .11676E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    19.058        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          1.7686        2.2605        .13140E-03   -1.5442    
  19  Prefactor     .10000E-03    14.481        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     43.419        89.400        .60900E-04   -1.4389    
  21  Normalizat    1.0102        .20889        .22650E-03   -.92691    
  22  Prefactor     .88805        .19554        .23650E-03   -.96560    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.21411e-08
Minuit parameter uncertainties:
  1  9.21658e-06
  2  7.1199
  3  5.51328e-06
  4  1.54673e-05
  5  2.34984e-05
  6  1.56188
  7  5.18827e-06
  8  10.6914
  9  3.17713
  10  4.38885e-06
  11  12.0818
  12  0.839144
  13  6.99297e-09
  14  7.06905e-05
  15  9.51284e-06
  16  2.78204e-06
  17  3.28202e-05
  18  2.26056
  19  5.6699e-05
  20  89.6778
  21  0.209063
  22  0.195696
Done.

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

Extracting fit parameters...

4FGL J2256.0-2740
   Spectrum: PowerLaw
340    Prefactor:  1.971e+01  1.208e+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:  8.881e-01  1.957e-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.010e+00  2.091e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 8.55
Ra Dec: 344.025 -27.674
Photon Index (Fixed Index): 3.02 +/- 0.00
Photon Flux (Fixed Index): 1.35e-07 +/- 8.25e-08
Energy Flux (Fixed Index): 2.66e-05 +/- 1.63e-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) = 6304.36133249
delta logL = 0.658486878719

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6304.36068362
delta logL = 0.659135754047

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    15.774       1.0000         .10000E-03   10000.    
     2 'Index     '    3.8540       1.0000          .0000       10.000    
     3 'Normalizat'    .96728       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .92539       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6304.361     FROM MIGRAD    STATUS=CONVERGED     99 CALLS      306 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     15.771        10.272        .50422E-03   -.60990E-04
   2  Index         3.8537        1.0150        .85273E-02    .18637E-03
   3  Normalizat    .96736        .19965        .23070E-03   -.11768E-03
   4  Prefactor     .92540        .19370        .23240E-03   -.12185E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 15.7714
  Index      = 3.85365
  Normalizat = 0.967358
  Prefactor  = 0.925396
 **********
 **   18 **HESSE 
 **********

 FCN=   6304.361     FROM HESSE     STATUS=OK            27 CALLS      333 TOTAL
                     EDM=   .14E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     15.771        9.5914        .20169E-04   -1.4913    
   2  Index         3.8537        .94819        .17055E-02   -.23133    
   3  Normalizat    .96736        .20001        .92280E-05   -.94132    
   4  Prefactor     .92540        .19386        .92961E-05   -.95259    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.36926e-11
Minuit parameter uncertainties:
  1  9.59236
  2  0.954297
  3  0.200165
  4  0.194001
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/590994': 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) = 6304.36068283
delta logL = 0.659136543302

Extracting fit parameters...

4FGL J2256.0-2740
   Spectrum: PowerLaw
340    Prefactor:  1.577e+01  9.592e+00  1.000e-04  1.000e+04 ( 1.000e-11)
341        Index:  3.854e+00  9.543e-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:  9.254e-01  1.940e-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.674e-01  2.002e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 10.33
Ra Dec: 344.025 -27.674
Photon Index (Free Index): 3.85 +/- 0.95
Photon Flux (Free Index): 1.58e-07 +/- 6.12e-08
Energy Flux (Free Index): 2.42e-05 +/- 1.01e-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/590994/cmap_HighResolution_388368001_388627201_4FGL_J2256.0-2740_daily_bin575.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.35e-07', energy_flux2='2.42e-05', photon_flux_error='8.25e-08', dlogl='6.59e-01', energy_flux='2.66e-05', photon_flux2='1.58e-07', job_status='DONE', time_completed='2021-09-29 02:53:43.669408', photon_index_error2='0.95', photon_index2='3.85', ts='8.55', fit_tolerance='1e-08', GAL='0.89', photon_index_error='0.00', energy_flux_error2='1.01e-05', EG='1.01', time_epoch_completed='1632909223.67', return_code='0', job_id='590994', GAL2='0.93', EG2='0.97', return_code2='0', energy_flux_error='1.63e-05', photon_flux_error2='6.12e-08', ts2='10.33', photon_index='3.02' WHERE bin_id='575' AND source_name='4FGL J2256.0-2740' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 02:53:43 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0224>
Subject: Job 590994: <4FGL_J2256.0-2740_daily_bin575> in cluster <slac> Done

Job <4FGL_J2256.0-2740_daily_bin575> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Wed Sep 29 02:40:40 2021
Job was executed on host(s) <bullet0224>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 02:40:41 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:41 2021
Terminated at Wed Sep 29 02:53:44 2021
Results reported at Wed Sep 29 02:53:44 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2256.0-2740_daily_bin575 344.025 -27.6739 388368001 388627201 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 :                                   577.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             266.46 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   782 sec.
    Turnaround time :                            784 sec.

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

