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


Performing analysis on: 4FGL_J2256.0-2740_daily_bin1072
RA = 344.025, Dec = -27.6739
tmin = 517190401, tmax = 517449601
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='592755', job_status='RUN', time_executed='2021-09-29 02:49:38.205894', time_epoch_executed='1632908978.21' WHERE source_name='4FGL J2256.0-2740' and cadence='daily' and bin_id='1072'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/592755

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/592755/ft1_4FGL_J2256.0-2740_daily_bin1072.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/592755/ft2_4FGL_J2256.0-2740_daily_bin1072.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/592755/ft1_4FGL_J2256.0-2740_daily_bin1072.fits outfile=/scratch/kocevski/592755/ft1_filteredMKT_4FGL_J2256.0-2740_daily_bin1072.fits ra=344.025 dec=-27.6739 rad=12.0 tmin=517190401.0 tmax=517449601.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.60
user 4.41
sys 0.18

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/592755/ft2_4FGL_J2256.0-2740_daily_bin1072.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/592755/ft1_filteredMKT_4FGL_J2256.0-2740_daily_bin1072.fits evtable="EVENTS" outfile="/scratch/kocevski/592755/ft1_filtered_4FGL_J2256.0-2740_daily_bin1072.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/592755/ft1_filtered_4FGL_J2256.0-2740_daily_bin1072.fits" evtable="EVENTS" scfile=/scratch/kocevski/592755/ft2_4FGL_J2256.0-2740_daily_bin1072.fits sctable="SC_DATA" outfile=/scratch/kocevski/592755/ltcube_517190401_517449601_4FGL_J2256.0-2740_daily_bin1072.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/592755/ft2_4FGL_J2256.0-2740_daily_bin1072.fits
.....................!
real 11.65
user 11.26
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/592755/ft1_filtered_4FGL_J2256.0-2740_daily_bin1072.fits evtable="EVENTS" scfile=/scratch/kocevski/592755/ft2_4FGL_J2256.0-2740_daily_bin1072.fits sctable="SC_DATA" expcube=/scratch/kocevski/592755/ltcube_517190401_517449601_4FGL_J2256.0-2740_daily_bin1072.fits outfile=/scratch/kocevski/592755/expmap_517190401_517449601_4FGL_J2256.0-2740_daily_bin1072.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/592755/ltcube_517190401_517449601_4FGL_J2256.0-2740_daily_bin1072.fits
.....................!
real 189.83
user 184.31
sys 5.22

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/592755/ft1_filtered_4FGL_J2256.0-2740_daily_bin1072.fits scfile=/scratch/kocevski/592755/ft2_4FGL_J2256.0-2740_daily_bin1072.fits outfile=/scratch/kocevski/592755/cmap_517190401_517449601_4FGL_J2256.0-2740_daily_bin1072.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.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/592755/ft1_filtered_4FGL_J2256.0-2740_daily_bin1072.fits scfile=/scratch/kocevski/592755/ft2_4FGL_J2256.0-2740_daily_bin1072.fits outfile=/scratch/kocevski/592755/cmap_HighResolution_517190401_517449601_4FGL_J2256.0-2740_daily_bin1072.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/592755/ft1_filtered_4FGL_J2256.0-2740_daily_bin1072.fits evtable="EVENTS" scfile=/scratch/kocevski/592755/ft2_4FGL_J2256.0-2740_daily_bin1072.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/592755/Model_4FGL_J2256.0-2740_daily_bin1072.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/592755/ft1_filtered_4FGL_J2256.0-2740_daily_bin1072.fits.....................!
real 47.47
user 46.08
sys 1.20

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10105E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10095E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    10.401       1.0000         .10000E-03   10000.    
     6 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .27296E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    2.5471       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10033E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    11.317       1.0000         .10000E-03   10000.    
    12 'norm      '    .78860       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    12.359       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10058E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    5.0090       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .11651E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    5.3085       1.0000         .10000E-03   10000.    
    19 'Prefactor '    2.0604       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.3081       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .72103       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=   5879.416     FROM MIGRAD    STATUS=CONVERGED    499 CALLS     2403 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    15.851        .12860E-07** at limit **
   2  Prefactor     .10000E-03    9.0035        .14904E-05** at limit **
   3  norm          .10000E-03    9.4856       -.18452E-05** at limit **
   4  Prefactor     .10000E-03    9.4757        .31723E-06** at limit **
   5  Prefactor     10.383        11.370        .78714E-06   -.11622E-04
   6  norm          .10000E-03    .83152        .36010E-07** at limit **
   7  Prefactor     .10008E-03    199.99        .14987E-04** at limit **
   8  Prefactor     .10000E-03    9.0402       -.19445E-06** at limit **
   9  norm          2.5464        3.2819        .77684E-07   -.12684E-03
  10  Prefactor     .10000E-03    7.3760        .34057E-07** at limit **
  11  Prefactor     11.294        13.128        .55503E-06   -.69768E-04
  12  norm          .78946        .93503       -.46428E-07   -.23375E-03
  13  Prefactor     .10000E-03    10.162        .10561E-05** at limit **
  14  Prefactor     12.359        13.296       -.43578E-07   -.59194E-04
  15  Prefactor     .10000E-03    9.9657       -.48762E-06** at limit **
  16  norm          5.0092        6.1053        .14415E-05    .82662E-03
  17  Prefactor     .10002E-03    345.68       -.54598E-05** at limit **
  18  norm          5.3099        4.0630        .21856E-05   -.20176E-02
  19  Prefactor     2.0341        31.410       -.55637E-05   -.20938E-03
  20  Prefactor     .10000E-03    86.786        .74620E-06** at limit **
  21  Normalizat    1.3083        .18376       -.10145E-05   -.62882E-04
  22  Prefactor     .72090        .17155       -.14015E-07   -.12173E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 10.383
  norm       = 0.0001
  Prefactor  = 0.000100081
  Prefactor  = 0.0001
  norm       = 2.54643
  Prefactor  = 0.0001
  Prefactor  = 11.2944
  norm       = 0.78946
  Prefactor  = 0.000100001
  Prefactor  = 12.3593
  Prefactor  = 0.0001
  norm       = 5.00916
  Prefactor  = 0.000100017
  norm       = 5.30989
  Prefactor  = 2.03412
  Prefactor  = 0.000100001
  Normalizat = 1.30828
  Prefactor  = 0.720896
 **********
 **   18 **HESSE 
 **********

 FCN=   5879.416     FROM HESSE     STATUS=OK           340 CALLS     2743 TOTAL
                     EDM=   .45E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    16.016        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    9.4174        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    9.7071        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    9.5101        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     10.383        11.332        .12424E-03   -1.5063    
   6  norm          .10000E-03    .83690        .68239E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10008E-03    211.56        .42858E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    9.1219        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          2.5464        3.2543        .14770E-03   -1.5389    
  10  Prefactor     .10000E-03    7.3826        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     11.294        13.838        .11909E-03   -1.5036    
  12  norm          .78946        .94151        .53017E-03   -1.5530    
  13  Prefactor     .10000E-03    10.227        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     12.359        13.297        .11394E-03   -1.5005    
  15  Prefactor     .10000E-03    10.151        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          5.0092        6.2561        .17968E-03   -1.5260    
  17  Prefactor     .10002E-03    363.34        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          5.3099        4.3327        .68128E-03   -1.5247    
  19  Prefactor     2.0341        32.593        .28789E-03   -1.5423    
  20  Prefactor     .10000E-03    86.981        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    1.3083        .22732        .21824E-03   -.83320    
  22  Prefactor     .72090        .21064        .27230E-03   -1.0271    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.45632e-09
Minuit parameter uncertainties:
  1  3.39988e-06
  2  0.000192647
  3  0.000286325
  4  4.74395e-05
  5  11.3341
  6  2.00086e-06
  7  0.00831736
  8  3.12013e-05
  9  3.25448
  10  6.25581e-06
  11  13.8421
  12  0.941531
  13  0.000166048
  14  13.3005
  15  8.52499e-05
  16  6.2569
  17  0.00500278
  18  4.33298
  19  16.2948
  20  0.000419195
  21  0.227499
  22  0.210875
Done.

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

Extracting fit parameters...

4FGL J2256.0-2740
   Spectrum: PowerLaw
340    Prefactor:  1.129e+01  1.384e+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.209e-01  2.109e-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.308e+00  2.275e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.89
Ra Dec: 344.025 -27.674
Photon Index (Fixed Index): 3.02 +/- 0.00
Photon Flux (Fixed Index): 7.73e-08 +/- 9.46e-08
Energy Flux (Fixed Index): 1.53e-05 +/- 1.87e-05

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

Saving results to:
/scratch/kocevski/592755/likelihoodResults_517190401_517449601_4FGL_J2256.0-2740_daily_bin1072.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) = 5879.38911631
delta logL = 0.0273276114967

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5879.38775484
delta logL = 0.0286890839525

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    11.295       1.0000         .10000E-03   10000.    
     2 'Index     '    2.7799       1.0000          .0000       10.000    
     3 'Normalizat'    1.3195       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .71214       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=   5879.388     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      208 TOTAL
                     EDM=   .89E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     11.354        10.401        .29801E-02    .64768E-03
   2  Index         2.7811        .77967        .22662       -.78593E-04
   3  Normalizat    1.3191        .17974        .49196E-01   -.41027E-04
   4  Prefactor     .71236        .17002        .61876E-01    .20541E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 11.354
  Index      = 2.78106
  Normalizat = 1.3191
  Prefactor  = 0.712358
 **********
 **   18 **HESSE 
 **********

 FCN=   5879.388     FROM HESSE     STATUS=OK            31 CALLS      239 TOTAL
                     EDM=   .26E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     11.354        9.0896        .11920E-03   -1.5034    
   2  Index         2.7811        .91452        .11160E-01   -.45982    
   3  Normalizat    1.3191        .22393        .21749E-03   -.82998    
   4  Prefactor     .71236        .20866        .27370E-03   -1.0304    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.57846e-10
Minuit parameter uncertainties:
  1  9.09066
  2  0.920993
  3  0.224094
  4  0.208894
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/592755': 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) = 5879.38773422
delta logL = 0.0287097001165

Extracting fit parameters...

4FGL J2256.0-2740
   Spectrum: PowerLaw
340    Prefactor:  1.135e+01  9.091e+00  1.000e-04  1.000e+04 ( 1.000e-11)
341        Index:  2.781e+00  9.210e-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.124e-01  2.089e-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.319e+00  2.241e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.00
Ra Dec: 344.025 -27.674
Photon Index (Free Index): 2.78 +/- 0.92
Photon Flux (Free Index): 7.15e-08 +/- 6.30e-08
Energy Flux (Free Index): 1.62e-05 +/- 1.35e-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/592755/cmap_HighResolution_517190401_517449601_4FGL_J2256.0-2740_daily_bin1072.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.54e-02', comment='SUCCESS', photon_flux='7.73e-08', energy_flux2='1.62e-05', photon_flux_error='9.46e-08', dlogl='2.87e-02', energy_flux='1.53e-05', photon_flux2='7.15e-08', job_status='DONE', time_completed='2021-09-29 02:59:51.537846', photon_index_error2='0.92', photon_index2='2.78', ts='1.89', fit_tolerance='1e-08', GAL='0.72', photon_index_error='0.00', photon_flux_upper_limit='1.92e-07', energy_flux_error2='1.35e-05', EG='1.31', time_epoch_completed='1632909591.54', return_code='0', job_id='592755', GAL2='0.71', EG2='1.32', return_code2='0', energy_flux_error='1.87e-05', photon_flux_error2='6.30e-08', ts2='2.00', photon_index='3.02' WHERE bin_id='1072' AND source_name='4FGL J2256.0-2740' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 02:59:51 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0268>
Subject: Job 592755: <4FGL_J2256.0-2740_daily_bin1072> in cluster <slac> Done

Job <4FGL_J2256.0-2740_daily_bin1072> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Sep 29 02:45:49 2021
Job was executed on host(s) <bullet0268>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 02:45:50 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:50 2021
Terminated at Wed Sep 29 02:59:52 2021
Results reported at Wed Sep 29 02:59:52 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2256.0-2740_daily_bin1072 344.025 -27.6739 517190401 517449601 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 :                                   611.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             270.36 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   841 sec.
    Turnaround time :                            843 sec.

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

