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


Performing analysis on: 4FGL_J2256.0-2740_daily_bin769
RA = 344.025, Dec = -27.6739
tmin = 438652801, tmax = 438912001
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='592301', job_status='RUN', time_executed='2021-09-29 02:47:53.406135', time_epoch_executed='1632908873.41' WHERE source_name='4FGL J2256.0-2740' and cadence='daily' and bin_id='769'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/592301

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/592301/ft1_4FGL_J2256.0-2740_daily_bin769.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/592301/ft2_4FGL_J2256.0-2740_daily_bin769.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/592301/ft1_4FGL_J2256.0-2740_daily_bin769.fits outfile=/scratch/kocevski/592301/ft1_filteredMKT_4FGL_J2256.0-2740_daily_bin769.fits ra=344.025 dec=-27.6739 rad=12.0 tmin=438652801.0 tmax=438912001.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 6.35
user 6.04
sys 0.28

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/592301/ft1_filtered_4FGL_J2256.0-2740_daily_bin769.fits" evtable="EVENTS" scfile=/scratch/kocevski/592301/ft2_4FGL_J2256.0-2740_daily_bin769.fits sctable="SC_DATA" outfile=/scratch/kocevski/592301/ltcube_438652801_438912001_4FGL_J2256.0-2740_daily_bin769.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/592301/ft2_4FGL_J2256.0-2740_daily_bin769.fits
.....................!
real 12.59
user 12.18
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/592301/ft1_filtered_4FGL_J2256.0-2740_daily_bin769.fits evtable="EVENTS" scfile=/scratch/kocevski/592301/ft2_4FGL_J2256.0-2740_daily_bin769.fits sctable="SC_DATA" expcube=/scratch/kocevski/592301/ltcube_438652801_438912001_4FGL_J2256.0-2740_daily_bin769.fits outfile=/scratch/kocevski/592301/expmap_438652801_438912001_4FGL_J2256.0-2740_daily_bin769.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/592301/ltcube_438652801_438912001_4FGL_J2256.0-2740_daily_bin769.fits
.....................!
real 190.60
user 185.04
sys 5.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/592301/ft1_filtered_4FGL_J2256.0-2740_daily_bin769.fits scfile=/scratch/kocevski/592301/ft2_4FGL_J2256.0-2740_daily_bin769.fits outfile=/scratch/kocevski/592301/cmap_438652801_438912001_4FGL_J2256.0-2740_daily_bin769.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.54
user 0.37
sys 0.14

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

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

This is gtbin version HEAD
real 0.54
user 0.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .56332E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10019E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10174E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    2.8482       1.0000         .10000E-03   10000.    
     6 'norm      '    1.4396       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10012E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    36.149       1.0000         .10000E-03   10000.    
    11 'Prefactor '    76.479       1.0000         .10000E-03   10000.    
    12 'norm      '    .28944       1.0000         .10000E-03   10000.    
    13 'Prefactor '    38.197       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10125E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10021E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    3.9498       1.0000         .10000E-03   10000.    
    21 'Normalizat'    .40124       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.4955       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=   4239.152     FROM MIGRAD    STATUS=CONVERGED    492 CALLS     2720 TOTAL
                     EDM=   .15E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    8.7315        .55660E-07** at limit **
   2  Prefactor     .10000E-03    236.13       -.30938E-05** at limit **
   3  norm          .10000E-03    13.842        .34252E-06** at limit **
   4  Prefactor     .10000E-03    27.831        .76869E-06** at limit **
   5  Prefactor     2.8463        18.682        .53080E-06   -.12287E-04
   6  norm          1.4397        1.6504       -.67117E-07    .13208E-04
   7  Prefactor     .10000E-03    16.728       -.43659E-06** at limit **
   8  Prefactor     .10000E-03    2.7828        .75795E-07** at limit **
   9  norm          .10000E-03    3.1911       -.14561E-06** at limit **
  10  Prefactor     36.140        37.155       -.32363E-06    .13316E-03
  11  Prefactor     76.476        22.562        .51362E-06    .49987E-03
  12  norm          .28836        1.1897       -.98442E-06    .67489E-03
  13  Prefactor     38.181        50.308       -.31943E-06   -.17060E-04
  14  Prefactor     .10000E-03    6.2683        .18076E-06** at limit **
  15  Prefactor     .10000E-03    5.9281       -.19885E-06** at limit **
  16  norm          .10000E-03    2.7908        .15087E-06** at limit **
  17  Prefactor     .10000E-03    25.859        .71303E-06** at limit **
  18  norm          .10000E-03    2.0485        .65179E-06** at limit **
  19  Prefactor     .10000E-03    18.533        .13211E-05** at limit **
  20  Prefactor     3.7970        512.17        .15452E-04    .19407E-04
  21  Normalizat    .40116        .23496       -.77117E-05   -.20540E-04
  22  Prefactor     1.4956        .23861        .31223E-05   -.66251E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.8463
  norm       = 1.4397
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 36.1399
  Prefactor  = 76.476
  norm       = 0.288361
  Prefactor  = 38.1809
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.79696
  Normalizat = 0.401156
  Prefactor  = 1.49558
 **********
 **   18 **HESSE 
 **********

 FCN=   4239.152     FROM HESSE     STATUS=OK           348 CALLS     3068 TOTAL
                     EDM=   .40E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    8.7433        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    13.741        .56659E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    13.872        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    28.146        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     2.8463        18.853        .24092E-03   -1.5371    
   6  norm          1.4397        1.6479        .87014E-04   -1.5468    
   7  Prefactor     .10000E-03    16.738        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    2.7862        .10610E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    3.2034        .11345E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     36.140        37.279        .66656E-04   -1.4505    
  11  Prefactor     76.476        22.953        .45916E-04   -1.3957    
  12  norm          .28836        1.3544        .89117E-03   -1.5601    
  13  Prefactor     38.181        50.348        .64851E-04   -1.4471    
  14  Prefactor     .10000E-03    6.2792        .15926E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    5.9487        .15464E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    2.7997        .10629E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    25.973        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    2.1278        .91794E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    18.716        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     3.7970        544.79        .20297E-02   -1.5318    
  21  Normalizat    .40116        .25324        .35680E-03   -1.1724    
  22  Prefactor     1.4956        .25633        .20673E-03   -.77663    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.9596e-10
Minuit parameter uncertainties:
  1  1.75907e-06
  2  0.000142449
  3  2.46089e-05
  4  6.5126e-05
  5  14.6572
  6  1.64795
  7  2.30282e-05
  8  3.46757e-06
  9  1.00057e-05
  10  37.3034
  11  22.9561
  12  1.2497
  13  50.4045
  14  7.33213e-06
  15  1.43511e-05
  16  5.01316e-06
  17  9.19643e-05
  18  2.14978e-05
  19  0.000187957
  20  91.8267
  21  0.253964
  22  0.256549
Done.

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

Extracting fit parameters...

4FGL J2256.0-2740
   Spectrum: PowerLaw
340    Prefactor:  7.648e+01  2.296e+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:  1.496e+00  2.565e-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:  4.012e-01  2.540e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 50.90
Ra Dec: 344.025 -27.674
Photon Index (Fixed Index): 3.02 +/- 0.00
Photon Flux (Fixed Index): 5.23e-07 +/- 1.57e-07
Energy Flux (Fixed Index): 1.03e-04 +/- 3.10e-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) = 4238.33693016
delta logL = 0.814852765689

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4238.28764841
delta logL = 0.864134514676

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    81.223       1.0000         .10000E-03   10000.    
     2 'Index     '    2.6769       1.0000          .0000       10.000    
     3 'Normalizat'    .44408       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.4561       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=   4238.288     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      214 TOTAL
                     EDM=   .10E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     81.223        15.723        .11141E-02   -.52882E-03
   2  Index         2.6769        .24176        .76600E-01   -.28737E-04
   3  Normalizat    .44409        .20871        .76786E-01    .29808E-04
   4  Prefactor     1.4561        .21860        .47241E-01   -.31621E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 81.2229
  Index      = 2.67692
  Normalizat = 0.444092
  Prefactor  = 1.45608
 **********
 **   18 **HESSE 
 **********

 FCN=   4238.288     FROM HESSE     STATUS=OK            29 CALLS      243 TOTAL
                     EDM=   .82E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     81.223        15.280        .44566E-04   -1.3903    
   2  Index         2.6769        .23960        .33329E-03   -.48320    
   3  Normalizat    .44409        .23986        .34006E-03   -1.1508    
   4  Prefactor     1.4561        .25182        .20881E-03   -.78777    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.2254e-11
Minuit parameter uncertainties:
  1  15.2807
  2  0.23972
  3  0.240414
  4  0.25203
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/592301': 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) = 4238.2876484
delta logL = 0.864134517738

Extracting fit parameters...

4FGL J2256.0-2740
   Spectrum: PowerLaw
340    Prefactor:  8.122e+01  1.528e+01  1.000e-04  1.000e+04 ( 1.000e-11)
341        Index:  2.677e+00  2.397e-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:  1.456e+00  2.520e-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:  4.441e-01  2.404e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 57.36
Ra Dec: 344.025 -27.674
Photon Index (Free Index): 2.68 +/- 0.24
Photon Flux (Free Index): 4.96e-07 +/- 9.73e-08
Energy Flux (Free Index): 1.22e-04 +/- 2.84e-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/592301/cmap_HighResolution_438652801_438912001_4FGL_J2256.0-2740_daily_bin769.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='5.23e-07', energy_flux2='1.22e-04', photon_flux_error='1.57e-07', dlogl='8.64e-01', energy_flux='1.03e-04', photon_flux2='4.96e-07', job_status='DONE', time_completed='2021-09-29 02:57:04.712562', photon_index_error2='0.24', photon_index2='2.68', ts='50.90', fit_tolerance='1e-08', GAL='1.50', photon_index_error='0.00', energy_flux_error2='2.84e-05', EG='0.40', time_epoch_completed='1632909424.71', return_code='0', job_id='592301', GAL2='1.46', EG2='0.44', return_code2='0', energy_flux_error='3.10e-05', photon_flux_error2='9.73e-08', ts2='57.36', photon_index='3.02' WHERE bin_id='769' AND source_name='4FGL J2256.0-2740' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 02:57:04 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0070>
Subject: Job 592301: <4FGL_J2256.0-2740_daily_bin769> in cluster <slac> Done

Job <4FGL_J2256.0-2740_daily_bin769> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Sep 29 02:45:15 2021
Job was executed on host(s) <bullet0070>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 02:45:16 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:16 2021
Terminated at Wed Sep 29 02:57:05 2021
Results reported at Wed Sep 29 02:57:05 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2256.0-2740_daily_bin769 344.025 -27.6739 438652801 438912001 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 :                                   523.06 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             276.35 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   708 sec.
    Turnaround time :                            710 sec.

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

