aklog: Couldn't determine realm of user:aklog: No credentials cache found  while getting realm
/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 54 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 = 7544
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J2256.0-2740_daily_bin1689
RA = 344.025, Dec = -27.6739
tmin = 677116801, tmax = 677376001
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='994201', job_status='RUN', time_executed='2022-06-20 01:04:17.476879', time_epoch_executed='1655712257.48' WHERE source_name='4FGL J2256.0-2740' and cadence='daily' and bin_id='1689'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/994201

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/994201/ft1_4FGL_J2256.0-2740_daily_bin1689.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/994201/ft2_4FGL_J2256.0-2740_daily_bin1689.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/994201/ft1_4FGL_J2256.0-2740_daily_bin1689.fits outfile=/scratch/kocevski/994201/ft1_filteredMKT_4FGL_J2256.0-2740_daily_bin1689.fits ra=344.025 dec=-27.6739 rad=12.0 tmin=677116801.0 tmax=677376001.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 2.75
user 2.54
sys 0.20

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

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

Number of photons that the gtmktime cut: 559

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/994201/ft1_filtered_4FGL_J2256.0-2740_daily_bin1689.fits" evtable="EVENTS" scfile=/scratch/kocevski/994201/ft2_4FGL_J2256.0-2740_daily_bin1689.fits sctable="SC_DATA" outfile=/scratch/kocevski/994201/ltcube_677116801_677376001_4FGL_J2256.0-2740_daily_bin1689.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/994201/ft2_4FGL_J2256.0-2740_daily_bin1689.fits
.....................!
real 16.32
user 15.93
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/994201/ft1_filtered_4FGL_J2256.0-2740_daily_bin1689.fits evtable="EVENTS" scfile=/scratch/kocevski/994201/ft2_4FGL_J2256.0-2740_daily_bin1689.fits sctable="SC_DATA" expcube=/scratch/kocevski/994201/ltcube_677116801_677376001_4FGL_J2256.0-2740_daily_bin1689.fits outfile=/scratch/kocevski/994201/expmap_677116801_677376001_4FGL_J2256.0-2740_daily_bin1689.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/994201/ltcube_677116801_677376001_4FGL_J2256.0-2740_daily_bin1689.fits
.....................!
real 192.12
user 186.71
sys 4.98

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/994201/ft1_filtered_4FGL_J2256.0-2740_daily_bin1689.fits scfile=/scratch/kocevski/994201/ft2_4FGL_J2256.0-2740_daily_bin1689.fits outfile=/scratch/kocevski/994201/cmap_677116801_677376001_4FGL_J2256.0-2740_daily_bin1689.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.56
user 0.40
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/994201/ft1_filtered_4FGL_J2256.0-2740_daily_bin1689.fits scfile=/scratch/kocevski/994201/ft2_4FGL_J2256.0-2740_daily_bin1689.fits outfile=/scratch/kocevski/994201/cmap_HighResolution_677116801_677376001_4FGL_J2256.0-2740_daily_bin1689.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.57
user 0.40
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    15.301       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10056E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    25.147       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    2.6982       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10068E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    3.5211       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10221E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    35.492       1.0000         .10000E-03   10000.    
    12 'norm      '    1.6136       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    22.937       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10132E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    9.8690       1.0000         .10000E-03   10000.    
    17 'Prefactor '    87.402       1.0000         .10000E-03   10000.    
    18 'norm      '    19.828       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    .81017       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.3259       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=   6047.187     FROM MIGRAD    STATUS=CONVERGED    476 CALLS     2341 TOTAL
                     EDM=   .36E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     15.300        18.669        .33360E-06   -.13685E-04
   2  Prefactor     .10000E-03    10.188        .32125E-06** at limit **
   3  norm          .10000E-03    16.429        .20797E-05** at limit **
   4  Prefactor     25.154        21.635        .12231E-05   -.18412E-05
   5  Prefactor     .10000E-03    4.5880       -.79479E-07** at limit **
   6  norm          2.6975        2.3424       -.51625E-07   -.38767E-03
   7  Prefactor     .10000E-03    49.882        .19468E-04** at limit **
   8  Prefactor     .10000E-03    15.631       -.59047E-06** at limit **
   9  norm          3.5205        3.9910       -.67339E-07   -.16778E-03
  10  Prefactor     .10000E-03    12.441       -.87115E-06** at limit **
  11  Prefactor     35.516        15.494       -.27361E-06   -.76780E-04
  12  norm          1.6127        1.0897        .48645E-07   -.46203E-03
  13  Prefactor     .10000E-03    75.684       -.11426E-04** at limit **
  14  Prefactor     22.935        15.659        .20020E-06   -.41816E-05
  15  Prefactor     .10000E-03    6.7578        .31531E-07** at limit **
  16  norm          9.8708        8.9500       -.47908E-06   -.53763E-04
  17  Prefactor     87.414        53.929        .95247E-05    .16613E-05
  18  norm          19.829        4.9867       -.15433E-05   -.13442E-04
  19  Prefactor     .10000E-03    20.500       -.55018E-06** at limit **
  20  Prefactor     .10000E-03    40.595       -.11097E-04** at limit **
  21  Normalizat    .80910        .21562       -.11693E-05   -.71906E-06
  22  Prefactor     1.3270        .20870        .56850E-06   -.68571E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 15.2999
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 25.1542
  Prefactor  = 0.0001
  norm       = 2.69754
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.5205
  Prefactor  = 0.0001
  Prefactor  = 35.5159
  norm       = 1.61266
  Prefactor  = 0.0001
  Prefactor  = 22.9346
  Prefactor  = 0.0001
  norm       = 9.87082
  Prefactor  = 87.4139
  norm       = 19.8294
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.809104
  Prefactor  = 1.32697
 **********
 **   18 **HESSE 
 **********

 FCN=   6047.187     FROM HESSE     STATUS=OK           340 CALLS     2681 TOTAL
                     EDM=   .79E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     15.300        18.671        .10239E-03   -1.4925    
   2  Prefactor     .10000E-03    10.440        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    16.468        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     25.154        21.643        .79883E-04   -1.4704    
   5  Prefactor     .10000E-03    4.5963        .16266E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          2.6975        2.3424        .10729E-03   -1.5379    
   7  Prefactor     .10000E-03    50.035        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    15.842        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          3.5205        3.9790        .15605E-03   -1.5333    
  10  Prefactor     .10000E-03    12.464        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     35.516        15.841        .67269E-04   -1.4515    
  12  norm          1.6127        1.0960        .49612E-04   -1.5454    
  13  Prefactor     .10000E-03    75.843        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     22.935        15.662        .83637E-04   -1.4750    
  15  Prefactor     .10000E-03    6.7712        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          9.8708        8.9502        .12756E-03   -1.5080    
  17  Prefactor     87.414        54.149        .42975E-04   -1.3835    
  18  norm          19.829        4.9909        .83617E-04   -1.4817    
  19  Prefactor     .10000E-03    20.554        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    40.605        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    .80910        .26705        .31080E-03   -.99732    
  22  Prefactor     1.3270        .25902        .24964E-03   -.82508    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.92034e-11
Minuit parameter uncertainties:
  1  18.6781
  2  4.90826e-06
  3  4.53567e-07
  4  21.6501
  5  9.2553e-07
  6  2.34245
  7  6.41491e-06
  8  5.27501e-07
  9  3.97925
  10  1.59357e-05
  11  15.8426
  12  1.09597
  13  3.37326e-07
  14  15.6648
  15  9.42128e-06
  16  8.9514
  17  54.1796
  18  4.991
  19  0.000112543
  20  1.02908e-05
  21  0.267482
  22  0.25927
Done.

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

Extracting fit parameters...

4FGL J2256.0-2740
   Spectrum: PowerLaw
340    Prefactor:  3.552e+01  1.584e+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.327e+00  2.593e-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:  8.091e-01  2.675e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 13.24
Ra Dec: 344.025 -27.674
Photon Index (Fixed Index): 3.02 +/- 0.00
Photon Flux (Fixed Index): 2.43e-07 +/- 1.08e-07
Energy Flux (Fixed Index): 4.80e-05 +/- 2.14e-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) = 6047.17419024
delta logL = 0.0132449752919

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6047.17301186
delta logL = 0.0144233522824

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    35.910       1.0000         .10000E-03   10000.    
     2 'Index     '    2.9468       1.0000          .0000       10.000    
     3 'Normalizat'    .81658       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3205       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=   6047.173     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      204 TOTAL
                     EDM=   .37E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     35.910        15.189        .16719E-02   -.24718E-02
   2  Index         2.9468        .50711        .15950       -.26542E-04
   3  Normalizat    .81634        .20960        .69960E-01    .21343E-04
   4  Prefactor     1.3208        .20729        .56562E-01    .11266E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 35.9105
  Index      = 2.94678
  Normalizat = 0.81634
  Prefactor  = 1.32079
 **********
 **   18 **HESSE 
 **********

 FCN=   6047.173     FROM HESSE     STATUS=OK            31 CALLS      235 TOTAL
                     EDM=   .26E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     35.910        12.206        .66876E-04   -1.4509    
   2  Index         2.9468        .43861        .65569E-02   -.42316    
   3  Normalizat    .81634        .26100        .30956E-03   -.99465    
   4  Prefactor     1.3208        .25680        .25010E-03   -.82691    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.5693e-09
Minuit parameter uncertainties:
  1  12.2067
  2  0.439289
  3  0.261399
  4  0.25705
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/994201': 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) = 6047.17301113
delta logL = 0.0144240810987

Extracting fit parameters...

4FGL J2256.0-2740
   Spectrum: PowerLaw
340    Prefactor:  3.591e+01  1.221e+01  1.000e-04  1.000e+04 ( 1.000e-11)
341        Index:  2.947e+00  4.393e-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.321e+00  2.570e-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:  8.163e-01  2.614e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 13.96
Ra Dec: 344.025 -27.674
Photon Index (Free Index): 2.95 +/- 0.44
Photon Flux (Free Index): 2.39e-07 +/- 8.35e-08
Energy Flux (Free Index): 4.90e-05 +/- 1.77e-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/994201/cmap_HighResolution_677116801_677376001_4FGL_J2256.0-2740_daily_bin1689.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.43e-07', energy_flux2='4.90e-05', photon_flux_error='1.08e-07', dlogl='1.44e-02', energy_flux='4.80e-05', photon_flux2='2.39e-07', job_status='DONE', time_completed='2022-06-20 01:13:46.920468', photon_index_error2='0.44', photon_index2='2.95', ts='13.24', fit_tolerance='1e-08', GAL='1.33', photon_index_error='0.00', energy_flux_error2='1.77e-05', EG='0.81', time_epoch_completed='1655712826.92', return_code='0', job_id='994201', GAL2='1.32', EG2='0.82', return_code2='0', energy_flux_error='2.14e-05', photon_flux_error2='8.35e-08', ts2='13.96', photon_index='3.02' WHERE bin_id='1689' AND source_name='4FGL J2256.0-2740' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Jun 20 01:13:46 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0030>
Subject: Job 994201: <4FGL_J2256.0-2740_daily_bin1689> in cluster <slac> Done

Job <4FGL_J2256.0-2740_daily_bin1689> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Mon Jun 20 01:00:37 2022
Job was executed on host(s) <bullet0030>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Jun 20 01:03:12 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Jun 20 01:03:12 2022
Terminated at Mon Jun 20 01:13:47 2022
Results reported at Mon Jun 20 01:13:47 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2256.0-2740_daily_bin1689 344.025 -27.6739 677116801 677376001 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 :                                   571.61 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             310.48 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   635 sec.
    Turnaround time :                            790 sec.

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

