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


Performing analysis on: 4FGL_J2256.0-2740_daily_bin1360
RA = 344.025, Dec = -27.6739
tmin = 591840001, tmax = 592099201
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='594142', job_status='RUN', time_executed='2021-09-29 02:51:08.785227', time_epoch_executed='1632909068.79' WHERE source_name='4FGL J2256.0-2740' and cadence='daily' and bin_id='1360'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/594142

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/594142/ft1_4FGL_J2256.0-2740_daily_bin1360.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/594142/ft2_4FGL_J2256.0-2740_daily_bin1360.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/594142/ft1_4FGL_J2256.0-2740_daily_bin1360.fits outfile=/scratch/kocevski/594142/ft1_filteredMKT_4FGL_J2256.0-2740_daily_bin1360.fits ra=344.025 dec=-27.6739 rad=12.0 tmin=591840001.0 tmax=592099201.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 5.21
user 4.95
sys 0.23

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/594142/ft2_4FGL_J2256.0-2740_daily_bin1360.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/594142/ft1_filteredMKT_4FGL_J2256.0-2740_daily_bin1360.fits evtable="EVENTS" outfile="/scratch/kocevski/594142/ft1_filtered_4FGL_J2256.0-2740_daily_bin1360.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.48
user 0.33
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/594142/ft1_filtered_4FGL_J2256.0-2740_daily_bin1360.fits" evtable="EVENTS" scfile=/scratch/kocevski/594142/ft2_4FGL_J2256.0-2740_daily_bin1360.fits sctable="SC_DATA" outfile=/scratch/kocevski/594142/ltcube_591840001_592099201_4FGL_J2256.0-2740_daily_bin1360.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/594142/ft2_4FGL_J2256.0-2740_daily_bin1360.fits
.....................!
real 11.83
user 11.46
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/594142/ft1_filtered_4FGL_J2256.0-2740_daily_bin1360.fits evtable="EVENTS" scfile=/scratch/kocevski/594142/ft2_4FGL_J2256.0-2740_daily_bin1360.fits sctable="SC_DATA" expcube=/scratch/kocevski/594142/ltcube_591840001_592099201_4FGL_J2256.0-2740_daily_bin1360.fits outfile=/scratch/kocevski/594142/expmap_591840001_592099201_4FGL_J2256.0-2740_daily_bin1360.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/594142/ltcube_591840001_592099201_4FGL_J2256.0-2740_daily_bin1360.fits
.....................!
real 190.78
user 185.17
sys 5.29

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/594142/ft1_filtered_4FGL_J2256.0-2740_daily_bin1360.fits scfile=/scratch/kocevski/594142/ft2_4FGL_J2256.0-2740_daily_bin1360.fits outfile=/scratch/kocevski/594142/cmap_591840001_592099201_4FGL_J2256.0-2740_daily_bin1360.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=344.025 yref=-27.6739 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.53
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/594142/ft1_filtered_4FGL_J2256.0-2740_daily_bin1360.fits scfile=/scratch/kocevski/594142/ft2_4FGL_J2256.0-2740_daily_bin1360.fits outfile=/scratch/kocevski/594142/cmap_HighResolution_591840001_592099201_4FGL_J2256.0-2740_daily_bin1360.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.53
user 0.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/594142/ft1_filtered_4FGL_J2256.0-2740_daily_bin1360.fits evtable="EVENTS" scfile=/scratch/kocevski/594142/ft2_4FGL_J2256.0-2740_daily_bin1360.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/594142/Model_4FGL_J2256.0-2740_daily_bin1360.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/594142/ft1_filtered_4FGL_J2256.0-2740_daily_bin1360.fits.....................!
real 32.63
user 31.36
sys 1.20

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    15.875       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    18.044       1.0000         .10000E-03   10000.    
     4 'Prefactor '    38.101       1.0000         .10000E-03   10000.    
     5 'Prefactor '    58.021       1.0000         .10000E-03   10000.    
     6 'norm      '    8.8521       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .97936E-02   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10351E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    7.1938       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10034E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    43.705       1.0000         .10000E-03   10000.    
    12 'norm      '    .11000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10096E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10102E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10036E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    2.2302       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .11135E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    14.123       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .96375E-01   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10122E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    .99172       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .74343       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=   3323.780     FROM MIGRAD    STATUS=CONVERGED    540 CALLS     2465 TOTAL
                     EDM=   .96E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     15.862        29.668       -.14373E-06   -.57665E-04
   2  Prefactor     .10000E-03    3.6067       -.11887E-06** at limit **
   3  norm          18.017        28.789       -.72384E-06   -.15938E-03
   4  Prefactor     38.081        31.994       -.18892E-06   -.11652E-03
   5  Prefactor     58.024        34.410        .94760E-06    .83318E-04
   6  norm          8.8522        5.1406       -.65955E-07    .13410E-03
   7  Prefactor     .10001E-03    403.05        .30578E-05** at limit **
   8  Prefactor     .10000E-03    17.150       -.14490E-06** at limit **
   9  norm          7.1951        8.6103        .31781E-05    .47387E-03
  10  Prefactor     .10000E-03    70.990       -.16598E-05** at limit **
  11  Prefactor     43.687        21.586       -.58849E-06    .53848E-03
  12  norm          .10000E-03    1.2495       -.39220E-06** at limit **
  13  Prefactor     .10000E-03    30.048       -.62050E-08** at limit **
  14  Prefactor     .10000E-03    5.9591        .43512E-07** at limit **
  15  Prefactor     .10000E-03    8.0495        .28633E-07** at limit **
  16  norm          2.2330        12.561        .14622E-05    .19608E-04
  17  Prefactor     .10000E-03    90.257        .74413E-06** at limit **
  18  norm          14.125        6.5014       -.21327E-06    .54831E-03
  19  Prefactor     .13859E-03    93.698       -.58566E-05** at limit **
  20  Prefactor     .10000E-03    50.936        .73790E-07** at limit **
  21  Normalizat    .99172        .25702       -.52598E-06    .16940E-03
  22  Prefactor     .74348        .22978       -.47007E-06    .16080E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 15.8619
  Prefactor  = 0.0001
  norm       = 18.0169
  Prefactor  = 38.0808
  Prefactor  = 58.0244
  norm       = 8.85224
  Prefactor  = 0.000100007
  Prefactor  = 0.0001
  norm       = 7.19512
  Prefactor  = 0.000100002
  Prefactor  = 43.6874
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.23303
  Prefactor  = 0.0001
  norm       = 14.1247
  Prefactor  = 0.000138589
  Prefactor  = 0.0001
  Normalizat = 0.991719
  Prefactor  = 0.743484
 **********
 **   18 **HESSE 
 **********

 FCN=   3323.780     FROM HESSE     STATUS=OK           342 CALLS     2807 TOTAL
                     EDM=   .18E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     15.862        29.707        .10052E-03   -1.4911    
   2  Prefactor     .10000E-03    3.6089        .10692E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          18.017        28.967        .94288E-04   -1.4859    
   4  Prefactor     38.081        32.081        .64932E-04   -1.4473    
   5  Prefactor     58.024        34.423        .52668E-04   -1.4183    
   6  norm          8.8522        5.1366        .92369E-04   -1.5113    
   7  Prefactor     .10001E-03    404.71        .18144E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    17.309        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          7.1951        8.5188        .74777E-03   -1.5171    
  10  Prefactor     .10000E-03    72.098        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     43.687        18.724        .60642E-04   -1.4385    
  12  norm          .10000E-03    2.7282        .10719E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    30.054        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    5.9620        .13746E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    8.0602        .15967E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          2.2330        12.520        .27529E-03   -1.5409    
  17  Prefactor     .10000E-03    90.740        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          14.125        6.5182        .91445E-04   -1.4956    
  19  Prefactor     .13859E-03    85.318        .12848       -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    50.940        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    .99172        .30376        .26084E-03   -.93308    
  22  Prefactor     .74348        .27010        .27284E-03   -1.0185    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.7975e-09
Minuit parameter uncertainties:
  1  29.7346
  2  9.82913e-07
  3  28.9899
  4  32.0956
  5  34.4347
  6  5.13689
  7  0.00350147
  8  3.80178e-06
  9  8.52025
  10  0.000747867
  11  18.7262
  12  8.31427e-07
  13  2.07952e-06
  14  1.6658e-06
  15  1.49738e-06
  16  10.5779
  17  0.000296089
  18  6.51848
  19  0.114922
  20  3.18003e-05
  21  0.304293
  22  0.270579
Done.

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

Extracting fit parameters...

4FGL J2256.0-2740
   Spectrum: PowerLaw
340    Prefactor:  4.369e+01  1.873e+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.435e-01  2.706e-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.917e-01  3.043e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 12.98
Ra Dec: 344.025 -27.674
Photon Index (Fixed Index): 3.02 +/- 0.00
Photon Flux (Fixed Index): 2.99e-07 +/- 1.28e-07
Energy Flux (Fixed Index): 5.90e-05 +/- 2.53e-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) = 3323.60757239
delta logL = 0.172127357383

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3323.60068735
delta logL = 0.179012398013

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    43.109       1.0000         .10000E-03   10000.    
     2 'Index     '    2.7604       1.0000          .0000       10.000    
     3 'Normalizat'    1.0177       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .72388       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=   3323.601     FROM MIGRAD    STATUS=CONVERGED     48 CALLS      196 TOTAL
                     EDM=   .24E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     43.109        16.613        .15265E-02    .19343E-02
   2  Index         2.7604        .39567        .11595       -.28350E-04
   3  Normalizat    1.0179        .25003        .43709E-01    .39087E-05
   4  Prefactor     .72371        .22698        .62396E-01    .10305E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 43.1091
  Index      = 2.7604
  Normalizat = 1.01789
  Prefactor  = 0.723706
 **********
 **   18 **HESSE 
 **********

 FCN=   3323.601     FROM HESSE     STATUS=OK            31 CALLS      227 TOTAL
                     EDM=   .25E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     43.109        16.903        .61058E-04   -1.4394    
   2  Index         2.7604        .41746        .49416E-02   -.46444    
   3  Normalizat    1.0179        .29607        .25799E-03   -.92433    
   4  Prefactor     .72371        .26692        .27601E-03   -1.0260    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.47277e-09
Minuit parameter uncertainties:
  1  16.9045
  2  0.418073
  3  0.296547
  4  0.267395
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/594142': 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) = 3323.60068712
delta logL = 0.179012627279

Extracting fit parameters...

4FGL J2256.0-2740
   Spectrum: PowerLaw
340    Prefactor:  4.311e+01  1.690e+01  1.000e-04  1.000e+04 ( 1.000e-11)
341        Index:  2.760e+00  4.181e-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.237e-01  2.674e-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.018e+00  2.965e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 13.64
Ra Dec: 344.025 -27.674
Photon Index (Free Index): 2.76 +/- 0.42
Photon Flux (Free Index): 2.70e-07 +/- 1.17e-07
Energy Flux (Free Index): 6.21e-05 +/- 2.47e-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/594142/cmap_HighResolution_591840001_592099201_4FGL_J2256.0-2740_daily_bin1360.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.99e-07', energy_flux2='6.21e-05', photon_flux_error='1.28e-07', dlogl='1.79e-01', energy_flux='5.90e-05', photon_flux2='2.70e-07', job_status='DONE', time_completed='2021-09-29 02:59:28.491507', photon_index_error2='0.42', photon_index2='2.76', ts='12.98', fit_tolerance='1e-08', GAL='0.74', photon_index_error='0.00', energy_flux_error2='2.47e-05', EG='0.99', time_epoch_completed='1632909568.49', return_code='0', job_id='594142', GAL2='0.72', EG2='1.02', return_code2='0', energy_flux_error='2.53e-05', photon_flux_error2='1.17e-07', ts2='13.64', photon_index='3.02' WHERE bin_id='1360' AND source_name='4FGL J2256.0-2740' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 02:59:28 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0047>
Subject: Job 594142: <4FGL_J2256.0-2740_daily_bin1360> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2256.0-2740_daily_bin1360 344.025 -27.6739 591840001 592099201 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 :                                   455.53 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             249.75 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   531 sec.
    Turnaround time :                            533 sec.

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

