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


Performing analysis on: 4FGL_J2256.0-2740_daily_bin1162
RA = 344.025, Dec = -27.6739
tmin = 540518401, tmax = 540777601
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='593848', job_status='RUN', time_executed='2021-09-29 02:50:27.930053', time_epoch_executed='1632909027.93' WHERE source_name='4FGL J2256.0-2740' and cadence='daily' and bin_id='1162'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/593848

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/593848/ft1_4FGL_J2256.0-2740_daily_bin1162.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/593848/ft2_4FGL_J2256.0-2740_daily_bin1162.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/593848/ft1_4FGL_J2256.0-2740_daily_bin1162.fits outfile=/scratch/kocevski/593848/ft1_filteredMKT_4FGL_J2256.0-2740_daily_bin1162.fits ra=344.025 dec=-27.6739 rad=12.0 tmin=540518401.0 tmax=540777601.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.68
user 3.41
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/593848/ft1_filtered_4FGL_J2256.0-2740_daily_bin1162.fits" evtable="EVENTS" scfile=/scratch/kocevski/593848/ft2_4FGL_J2256.0-2740_daily_bin1162.fits sctable="SC_DATA" outfile=/scratch/kocevski/593848/ltcube_540518401_540777601_4FGL_J2256.0-2740_daily_bin1162.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/593848/ft2_4FGL_J2256.0-2740_daily_bin1162.fits
.....................!
real 11.90
user 11.55
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/593848/ft1_filtered_4FGL_J2256.0-2740_daily_bin1162.fits evtable="EVENTS" scfile=/scratch/kocevski/593848/ft2_4FGL_J2256.0-2740_daily_bin1162.fits sctable="SC_DATA" expcube=/scratch/kocevski/593848/ltcube_540518401_540777601_4FGL_J2256.0-2740_daily_bin1162.fits outfile=/scratch/kocevski/593848/expmap_540518401_540777601_4FGL_J2256.0-2740_daily_bin1162.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/593848/ltcube_540518401_540777601_4FGL_J2256.0-2740_daily_bin1162.fits
.....................!
real 191.32
user 185.59
sys 5.37

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/593848/ft1_filtered_4FGL_J2256.0-2740_daily_bin1162.fits scfile=/scratch/kocevski/593848/ft2_4FGL_J2256.0-2740_daily_bin1162.fits outfile=/scratch/kocevski/593848/cmap_540518401_540777601_4FGL_J2256.0-2740_daily_bin1162.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/593848/ft1_filtered_4FGL_J2256.0-2740_daily_bin1162.fits scfile=/scratch/kocevski/593848/ft2_4FGL_J2256.0-2740_daily_bin1162.fits outfile=/scratch/kocevski/593848/cmap_HighResolution_540518401_540777601_4FGL_J2256.0-2740_daily_bin1162.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.59
user 0.37
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/593848/ft1_filtered_4FGL_J2256.0-2740_daily_bin1162.fits evtable="EVENTS" scfile=/scratch/kocevski/593848/ft2_4FGL_J2256.0-2740_daily_bin1162.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/593848/Model_4FGL_J2256.0-2740_daily_bin1162.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/593848/ft1_filtered_4FGL_J2256.0-2740_daily_bin1162.fits.....................!
real 42.36
user 40.97
sys 1.25

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    11.228       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    3.6462       1.0000         .10000E-03   10000.    
     6 'norm      '    2.7886       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    17.768       1.0000         .10000E-03   10000.    
    12 'norm      '    1.6874       1.0000         .10000E-03   10000.    
    13 'Prefactor '    55.638       1.0000         .10000E-03   10000.    
    14 'Prefactor '    11.721       1.0000         .10000E-03   10000.    
    15 'Prefactor '    8.8288       1.0000         .10000E-03   10000.    
    16 'norm      '    10.035       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    4.4808       1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.1653       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.0718       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=   4798.320     FROM MIGRAD    STATUS=CONVERGED    473 CALLS     2334 TOTAL
                     EDM=   .22E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     11.221        23.912       -.16023E-07   -.18704E-04
   2  Prefactor     .10000E-03    5.8177        .67360E-06** at limit **
   3  norm          .10000E-03    7.1680        .78657E-07** at limit **
   4  Prefactor     .10000E-03    41.435        .20651E-05** at limit **
   5  Prefactor     3.6396        25.273        .32876E-06    .11486E-04
   6  norm          2.7880        2.2869       -.55179E-07   -.11472E-03
   7  Prefactor     .10000E-03    68.402        .35635E-06** at limit **
   8  Prefactor     .10000E-03    9.7865        .52123E-06** at limit **
   9  norm          .10000E-03    2.1807        .11409E-06** at limit **
  10  Prefactor     .10000E-03    9.5465        .32554E-07** at limit **
  11  Prefactor     17.763        15.687       -.77014E-06   -.22560E-04
  12  norm          1.6881        1.0750        .12098E-06   -.69876E-04
  13  Prefactor     55.615        80.504       -.92997E-06   -.14867E-04
  14  Prefactor     11.707        22.336        .61124E-07   -.14257E-04
  15  Prefactor     8.8274        13.856        .98120E-07   -.53246E-05
  16  norm          10.034        10.372       -.14571E-06   -.25933E-04
  17  Prefactor     .10000E-03    33.959        .32210E-07** at limit **
  18  norm          .10000E-03    1.4898       -.61929E-07** at limit **
  19  Prefactor     .10000E-03    14.494       -.10176E-05** at limit **
  20  Prefactor     4.2654        1017.1       -.46668E-04   -.22551E-04
  21  Normalizat    1.1656        .27286        .58916E-05   -.28341E-03
  22  Prefactor     1.0715        .24843       -.61033E-05   -.69395E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 11.2214
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 3.63955
  norm       = 2.78799
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 17.7626
  norm       = 1.68806
  Prefactor  = 55.6147
  Prefactor  = 11.7069
  Prefactor  = 8.8274
  norm       = 10.0339
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.26538
  Normalizat = 1.16563
  Prefactor  = 1.07153
 **********
 **   18 **HESSE 
 **********

 FCN=   4798.320     FROM HESSE     STATUS=OK           342 CALLS     2676 TOTAL
                     EDM=   .55E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     11.221        23.929        .11956E-03   -1.5038    
   2  Prefactor     .10000E-03    5.8834        .16343E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    7.1693        .18114E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    42.031        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     3.6396        25.249        .21156E-03   -1.5326    
   6  norm          2.7880        2.2856        .91732E-04   -1.5374    
   7  Prefactor     .10000E-03    68.531        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    9.8722        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    2.1948        .99842E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    9.5522        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     17.763        15.990        .95016E-04   -1.4865    
  12  norm          1.6881        1.0954        .44618E-04   -1.5448    
  13  Prefactor     55.615        80.620        .53778E-04   -1.4215    
  14  Prefactor     11.707        22.349        .11701E-03   -1.5024    
  15  Prefactor     8.8274        13.799        .13490E-03   -1.5114    
  16  norm          10.034        10.371        .12649E-03   -1.5074    
  17  Prefactor     .10000E-03    34.012        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    1.5075        .82552E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    14.545        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     4.2654        1088.9        .19021E-02   -1.5295    
  21  Normalizat    1.1656        .28685        .26287E-03   -.87672    
  22  Prefactor     1.0715        .26157        .26039E-03   -.90382    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.47027e-10
Minuit parameter uncertainties:
  1  23.9499
  2  3.25959e-05
  3  4.83842e-06
  4  0.000310867
  5  19.1837
  6  2.28569
  7  2.57284e-05
  8  2.54752e-05
  9  5.8993e-06
  10  1.33052e-05
  11  15.9938
  12  1.09546
  13  80.7786
  14  22.3652
  15  13.8039
  16  10.3728
  17  2.73037e-05
  18  1.79676e-06
  19  8.02219e-05
  20  138.937
  21  0.28724
  22  0.261882
Done.

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

Extracting fit parameters...

4FGL J2256.0-2740
   Spectrum: PowerLaw
340    Prefactor:  1.776e+01  1.599e+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.072e+00  2.619e-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.166e+00  2.872e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.71
Ra Dec: 344.025 -27.674
Photon Index (Fixed Index): 3.02 +/- 0.00
Photon Flux (Fixed Index): 1.22e-07 +/- 1.09e-07
Energy Flux (Fixed Index): 2.40e-05 +/- 2.16e-05

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

Saving results to:
/scratch/kocevski/593848/likelihoodResults_540518401_540777601_4FGL_J2256.0-2740_daily_bin1162.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) = 4798.28541026
delta logL = 0.0350093953939

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4798.28383654
delta logL = 0.0365831115423

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    17.625       1.0000         .10000E-03   10000.    
     2 'Index     '    2.7746       1.0000          .0000       10.000    
     3 'Normalizat'    1.1807       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0601       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=   4798.284     FROM MIGRAD    STATUS=CONVERGED     58 CALLS      210 TOTAL
                     EDM=   .70E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     17.579        13.319        .23851E-02    .61880E-04
   2  Index         2.7686        .70141        .22676       -.46296E-04
   3  Normalizat    1.1813        .22249        .59107E-01    .64157E-05
   4  Prefactor     1.0596        .21042        .59157E-01   -.59136E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 17.5794
  Index      = 2.76858
  Normalizat = 1.18134
  Prefactor  = 1.05963
 **********
 **   18 **HESSE 
 **********

 FCN=   4798.284     FROM HESSE     STATUS=OK            33 CALLS      243 TOTAL
                     EDM=   .56E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     17.579        12.479        .95403E-04   -1.4869    
   2  Index         2.7686        .86219        .96168E-02   -.46261    
   3  Normalizat    1.1813        .27874        .26140E-03   -.87181    
   4  Prefactor     1.0596        .26042        .26161E-03   -.90767    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.63037e-12
Minuit parameter uncertainties:
  1  12.4812
  2  0.867619
  3  0.279091
  4  0.26073
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/593848': 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) = 4798.28381118
delta logL = 0.0366084690932

Extracting fit parameters...

4FGL J2256.0-2740
   Spectrum: PowerLaw
340    Prefactor:  1.758e+01  1.248e+01  1.000e-04  1.000e+04 ( 1.000e-11)
341        Index:  2.769e+00  8.676e-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.060e+00  2.607e-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.181e+00  2.791e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.91
Ra Dec: 344.025 -27.674
Photon Index (Free Index): 2.77 +/- 0.87
Photon Flux (Free Index): 1.10e-07 +/- 8.89e-08
Energy Flux (Free Index): 2.52e-05 +/- 1.82e-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/593848/cmap_HighResolution_540518401_540777601_4FGL_J2256.0-2740_daily_bin1162.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.26e-02', comment='SUCCESS', photon_flux='1.22e-07', energy_flux2='2.52e-05', photon_flux_error='1.09e-07', dlogl='3.66e-02', energy_flux='2.40e-05', photon_flux2='1.10e-07', job_status='DONE', time_completed='2021-09-29 02:59:39.449217', photon_index_error2='0.87', photon_index2='2.77', ts='2.71', fit_tolerance='1e-08', GAL='1.07', photon_index_error='0.00', photon_flux_upper_limit='2.82e-07', energy_flux_error2='1.82e-05', EG='1.17', time_epoch_completed='1632909579.45', return_code='0', job_id='593848', GAL2='1.06', EG2='1.18', return_code2='0', energy_flux_error='2.16e-05', photon_flux_error2='8.89e-08', ts2='2.91', photon_index='3.02' WHERE bin_id='1162' AND source_name='4FGL J2256.0-2740' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 02:59:39 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0057>
Subject: Job 593848: <4FGL_J2256.0-2740_daily_bin1162> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2256.0-2740_daily_bin1162 344.025 -27.6739 540518401 540777601 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 :                                   547.27 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             334.74 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   564 sec.
    Turnaround time :                            566 sec.

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

