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


Performing analysis on: 4FGL_J2256.0-2740_daily_bin1247
RA = 344.025, Dec = -27.6739
tmin = 562550401, tmax = 562809601
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='593972', job_status='RUN', time_executed='2021-09-29 02:52:05.205738', time_epoch_executed='1632909125.21' WHERE source_name='4FGL J2256.0-2740' and cadence='daily' and bin_id='1247'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/593972

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/593972/ft1_4FGL_J2256.0-2740_daily_bin1247.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/593972/ft2_4FGL_J2256.0-2740_daily_bin1247.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/593972/ft1_4FGL_J2256.0-2740_daily_bin1247.fits outfile=/scratch/kocevski/593972/ft1_filteredMKT_4FGL_J2256.0-2740_daily_bin1247.fits ra=344.025 dec=-27.6739 rad=12.0 tmin=562550401.0 tmax=562809601.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.44
user 3.22
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/593972/ft1_filtered_4FGL_J2256.0-2740_daily_bin1247.fits" evtable="EVENTS" scfile=/scratch/kocevski/593972/ft2_4FGL_J2256.0-2740_daily_bin1247.fits sctable="SC_DATA" outfile=/scratch/kocevski/593972/ltcube_562550401_562809601_4FGL_J2256.0-2740_daily_bin1247.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/593972/ft2_4FGL_J2256.0-2740_daily_bin1247.fits
.....................!
real 11.98
user 11.60
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/593972/ft1_filtered_4FGL_J2256.0-2740_daily_bin1247.fits evtable="EVENTS" scfile=/scratch/kocevski/593972/ft2_4FGL_J2256.0-2740_daily_bin1247.fits sctable="SC_DATA" expcube=/scratch/kocevski/593972/ltcube_562550401_562809601_4FGL_J2256.0-2740_daily_bin1247.fits outfile=/scratch/kocevski/593972/expmap_562550401_562809601_4FGL_J2256.0-2740_daily_bin1247.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/593972/ltcube_562550401_562809601_4FGL_J2256.0-2740_daily_bin1247.fits
.....................!
real 192.16
user 186.56
sys 5.21

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/593972/ft1_filtered_4FGL_J2256.0-2740_daily_bin1247.fits scfile=/scratch/kocevski/593972/ft2_4FGL_J2256.0-2740_daily_bin1247.fits outfile=/scratch/kocevski/593972/cmap_562550401_562809601_4FGL_J2256.0-2740_daily_bin1247.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.35
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/593972/ft1_filtered_4FGL_J2256.0-2740_daily_bin1247.fits scfile=/scratch/kocevski/593972/ft2_4FGL_J2256.0-2740_daily_bin1247.fits outfile=/scratch/kocevski/593972/cmap_HighResolution_562550401_562809601_4FGL_J2256.0-2740_daily_bin1247.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/593972/ft1_filtered_4FGL_J2256.0-2740_daily_bin1247.fits evtable="EVENTS" scfile=/scratch/kocevski/593972/ft2_4FGL_J2256.0-2740_daily_bin1247.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/593972/Model_4FGL_J2256.0-2740_daily_bin1247.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/593972/ft1_filtered_4FGL_J2256.0-2740_daily_bin1247.fits.....................!
real 32.00
user 30.14
sys 1.33

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    3.8461       1.0000         .10000E-03   10000.    
     3 'norm      '    17.585       1.0000         .10000E-03   10000.    
     4 'Prefactor '    54.196       1.0000         .10000E-03   10000.    
     5 'Prefactor '    4.5854       1.0000         .10000E-03   10000.    
     6 'norm      '    4.7754       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .13976E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10196E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10129E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    29.728       1.0000         .10000E-03   10000.    
    12 'norm      '    1.0134       1.0000         .10000E-03   10000.    
    13 'Prefactor '    65.799       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .21473       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10093E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10252E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    38.656       1.0000         .10000E-03   10000.    
    18 'norm      '    2.5794       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10059E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    29.493       1.0000         .10000E-03   10000.    
    21 'Normalizat'    .95103       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .72772       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=   3215.710     FROM MIGRAD    STATUS=CONVERGED    473 CALLS     2344 TOTAL
                     EDM=   .14E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  8.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    8.6724        .19606E-05** at limit **
   2  Prefactor     3.8470        6.1728       -.63631E-06   -.41358E-04
   3  norm          17.582        24.489       -.19154E-06   -.13035E-04
   4  Prefactor     54.198        32.732       -.79528E-06    .35558E-05
   5  Prefactor     4.5804        11.421        .31938E-05   -.21119E-04
   6  norm          4.7717        3.4527        .76363E-06   -.18007E-03
   7  Prefactor     .10000E-03    139.50        .23570E-04** at limit **
   8  Prefactor     .10000E-03    8.0004       -.16203E-05** at limit **
   9  norm          .10000E-03    3.2665       -.13021E-06** at limit **
  10  Prefactor     .10000E-03    9.1921       -.13757E-05** at limit **
  11  Prefactor     29.725        14.629        .60961E-06   -.78987E-04
  12  norm          1.0130        .98325       -.30425E-06   -.70162E-03
  13  Prefactor     65.817        59.736       -.42885E-05   -.26825E-04
  14  Prefactor     .27570        113.32       -.35654E-04    .12385E-04
  15  Prefactor     .10000E-03    5.4613        .34863E-07** at limit **
  16  norm          .10000E-03    11.211       -.10816E-05** at limit **
  17  Prefactor     38.658        52.842       -.16797E-05    .10796E-04
  18  norm          2.5804        4.5323       -.14141E-05   -.15940E-03
  19  Prefactor     .10000E-03    53.955        .11004E-05** at limit **
  20  Prefactor     29.477        80.219        .46000E-05    .16472E-04
  21  Normalizat    .95052        .23075        .72530E-06    .72519E-04
  22  Prefactor     .72818        .21549        .21757E-05    .13280E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 3.84696
  norm       = 17.5821
  Prefactor  = 54.198
  Prefactor  = 4.58041
  norm       = 4.77171
  Prefactor  = 0.000100005
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 29.7251
  norm       = 1.01299
  Prefactor  = 65.8165
  Prefactor  = 0.2757
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 38.6583
  norm       = 2.5804
  Prefactor  = 0.0001
  Prefactor  = 29.477
  Normalizat = 0.950522
  Prefactor  = 0.728183
 **********
 **   18 **HESSE 
 **********

 FCN=   3215.710     FROM HESSE     STATUS=OK           346 CALLS     2690 TOTAL
                     EDM=   .27E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    8.6902        .16321E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     3.8470        6.1655        .17283E-03   -1.5316    
   3  norm          17.582        24.490        .95510E-04   -1.4869    
   4  Prefactor     54.198        32.749        .54485E-04   -1.4234    
   5  Prefactor     4.5804        11.422        .18798E-03   -1.5280    
   6  norm          4.7717        3.4428        .85663E-04   -1.5271    
   7  Prefactor     .10000E-03    136.44        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    8.0644        .15676E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    3.2860        .99962E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    9.2207        .16806E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     29.725        14.797        .73483E-04   -1.4617    
  12  norm          1.0130        .96827        .44452E-04   -1.5507    
  13  Prefactor     65.817        59.996        .24738E-03   -1.4084    
  14  Prefactor     .27570        112.19        .36036E-02   -1.5603    
  15  Prefactor     .10000E-03    5.4659        .12935E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    11.401        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     38.658        53.075        .64466E-04   -1.4464    
  18  norm          2.5804        4.5535        .15247E-03   -1.5387    
  19  Prefactor     .10000E-03    54.318        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     29.477        80.387        .73775E-04   -1.4622    
  21  Normalizat    .95052        .27413        .22781E-03   -.94707    
  22  Prefactor     .72818        .25433        .24996E-03   -1.0243    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.67539e-10
Minuit parameter uncertainties:
  1  1.07235e-05
  2  6.16647
  3  24.5042
  4  32.7596
  5  11.4271
  6  3.44296
  7  0.00159641
  8  4.38852e-05
  9  2.61557e-05
  10  5.62759e-05
  11  14.799
  12  0.968289
  13  60.0516
  14  11.1422
  15  2.17423e-05
  16  3.94391e-05
  17  53.1404
  18  4.55412
  19  0.00016164
  20  80.6845
  21  0.274535
  22  0.254741
Done.

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

Extracting fit parameters...

4FGL J2256.0-2740
   Spectrum: PowerLaw
340    Prefactor:  2.973e+01  1.480e+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:  7.282e-01  2.547e-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.505e-01  2.745e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 9.47
Ra Dec: 344.025 -27.674
Photon Index (Fixed Index): 3.02 +/- 0.00
Photon Flux (Fixed Index): 2.03e-07 +/- 1.01e-07
Energy Flux (Fixed Index): 4.01e-05 +/- 2.00e-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) = 3215.2234651
delta logL = 0.486056837494

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3215.22280085
delta logL = 0.486721085085

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    24.985       1.0000         .10000E-03   10000.    
     2 'Index     '    3.6975       1.0000          .0000       10.000    
     3 'Normalizat'    .91187       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .75909       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=   3215.223     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      256 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     24.973        181.82        .20035E-02    .13369E-03
   2  Index         3.6966        6.6895        .15026        .44743E-04
   3  Normalizat    .91210        .16962        .45053E-01    .33555E-04
   4  Prefactor     .75895        .17783        .43182E-01    .43590E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 24.9728
  Index      = 3.69655
  Normalizat = 0.912099
  Prefactor  = 0.75895
 **********
 **   18 **HESSE 
 **********

 FCN=   3215.223     FROM HESSE     STATUS=OK            33 CALLS      289 TOTAL
                     EDM=   .14E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     24.973        12.995        .80140E-04   -1.4708    
   2  Index         3.6966        .78907        .64300E-02   -.26374    
   3  Normalizat    .91210        .26434        .23179E-03   -.96036    
   4  Prefactor     .75895        .25294        .24545E-03   -1.0126    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.39784e-11
Minuit parameter uncertainties:
  1  12.9962
  2  0.792626
  3  0.264713
  4  0.253325
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/593972': 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) = 3215.22279769
delta logL = 0.486724249877

Extracting fit parameters...

4FGL J2256.0-2740
   Spectrum: PowerLaw
340    Prefactor:  2.497e+01  1.300e+01  1.000e-04  1.000e+04 ( 1.000e-11)
341        Index:  3.697e+00  7.926e-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:  7.589e-01  2.533e-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.121e-01  2.647e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 11.03
Ra Dec: 344.025 -27.674
Photon Index (Free Index): 3.70 +/- 0.79
Photon Flux (Free Index): 2.30e-07 +/- 9.13e-08
Energy Flux (Free Index): 3.66e-05 +/- 1.50e-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/593972/cmap_HighResolution_562550401_562809601_4FGL_J2256.0-2740_daily_bin1247.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.03e-07', energy_flux2='3.66e-05', photon_flux_error='1.01e-07', dlogl='4.87e-01', energy_flux='4.01e-05', photon_flux2='2.30e-07', job_status='DONE', time_completed='2021-09-29 02:59:35.802260', photon_index_error2='0.79', photon_index2='3.70', ts='9.47', fit_tolerance='1e-08', GAL='0.73', photon_index_error='0.00', energy_flux_error2='1.50e-05', EG='0.95', time_epoch_completed='1632909575.8', return_code='0', job_id='593972', GAL2='0.76', EG2='0.91', return_code2='0', energy_flux_error='2.00e-05', photon_flux_error2='9.13e-08', ts2='11.03', photon_index='3.02' WHERE bin_id='1247' AND source_name='4FGL J2256.0-2740' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 02:59:35 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0104>
Subject: Job 593972: <4FGL_J2256.0-2740_daily_bin1247> in cluster <slac> Done

Job <4FGL_J2256.0-2740_daily_bin1247> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Wed Sep 29 02:50:22 2021
Job was executed on host(s) <bullet0104>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 02:50:23 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:50:23 2021
Terminated at Wed Sep 29 02:59:36 2021
Results reported at Wed Sep 29 02:59:36 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2256.0-2740_daily_bin1247 344.025 -27.6739 562550401 562809601 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 :                                   446.00 sec.
    Max Memory :                                 1226 MB
    Average Memory :                             261.83 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   553 sec.
    Turnaround time :                            554 sec.

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

