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 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 = 7654
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J2256.0-2740_daily_bin1685
RA = 344.025, Dec = -27.6739
tmin = 676080001, tmax = 676339201
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='384779', job_status='RUN', time_executed='2022-06-08 01:11:35.849199', time_epoch_executed='1654675895.85' WHERE source_name='4FGL J2256.0-2740' and cadence='daily' and bin_id='1685'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/384779

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/384779/ft1_4FGL_J2256.0-2740_daily_bin1685.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/384779/ft2_4FGL_J2256.0-2740_daily_bin1685.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/384779/ft1_4FGL_J2256.0-2740_daily_bin1685.fits outfile=/scratch/kocevski/384779/ft1_filteredMKT_4FGL_J2256.0-2740_daily_bin1685.fits ra=344.025 dec=-27.6739 rad=12.0 tmin=676080001.0 tmax=676339201.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.64
user 3.37
sys 0.21

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

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

Number of photons that the gtmktime cut: 773

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/384779/ft1_filtered_4FGL_J2256.0-2740_daily_bin1685.fits" evtable="EVENTS" scfile=/scratch/kocevski/384779/ft2_4FGL_J2256.0-2740_daily_bin1685.fits sctable="SC_DATA" outfile=/scratch/kocevski/384779/ltcube_676080001_676339201_4FGL_J2256.0-2740_daily_bin1685.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/384779/ft2_4FGL_J2256.0-2740_daily_bin1685.fits
.....................!
real 15.62
user 15.22
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/384779/ft1_filtered_4FGL_J2256.0-2740_daily_bin1685.fits evtable="EVENTS" scfile=/scratch/kocevski/384779/ft2_4FGL_J2256.0-2740_daily_bin1685.fits sctable="SC_DATA" expcube=/scratch/kocevski/384779/ltcube_676080001_676339201_4FGL_J2256.0-2740_daily_bin1685.fits outfile=/scratch/kocevski/384779/expmap_676080001_676339201_4FGL_J2256.0-2740_daily_bin1685.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/384779/ltcube_676080001_676339201_4FGL_J2256.0-2740_daily_bin1685.fits
.....................!
real 191.80
user 186.53
sys 4.66

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/384779/ft1_filtered_4FGL_J2256.0-2740_daily_bin1685.fits scfile=/scratch/kocevski/384779/ft2_4FGL_J2256.0-2740_daily_bin1685.fits outfile=/scratch/kocevski/384779/cmap_676080001_676339201_4FGL_J2256.0-2740_daily_bin1685.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.57
user 0.39
sys 0.15

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    14.152       1.0000         .10000E-03   10000.    
     2 'Prefactor '    6.5867       1.0000         .10000E-03   10000.    
     3 'norm      '    5.8672       1.0000         .10000E-03   10000.    
     4 'Prefactor '    9.0952       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .15217E-01   1.0000         .10000E-03   10000.    
     6 'norm      '    .60445       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .13487E-02   1.0000         .10000E-03   10000.    
     8 'Prefactor '    35.069       1.0000         .10000E-03   10000.    
     9 'norm      '    .93654       1.0000         .10000E-03   10000.    
    10 'Prefactor '    31.225       1.0000         .10000E-03   10000.    
    11 'Prefactor '    6.6878       1.0000         .10000E-03   10000.    
    12 'norm      '    .57197       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .12750E-02   1.0000         .10000E-03   10000.    
    14 'Prefactor '    3.3110       1.0000         .10000E-03   10000.    
    15 'Prefactor '    30.677       1.0000         .10000E-03   10000.    
    16 'norm      '    6.2297       1.0000         .10000E-03   10000.    
    17 'Prefactor '    1.2248       1.0000         .10000E-03   10000.    
    18 'norm      '    4.7066       1.0000         .10000E-03   10000.    
    19 'Prefactor '    5.8563       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .22434E-01   1.0000         .10000E-03   10000.    
    21 'Normalizat'    .55912       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.2672       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=   8426.399     FROM MIGRAD    STATUS=CONVERGED    521 CALLS     1808 TOTAL
                     EDM=   .11E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  8.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     14.130        13.126       -.82128E-07   -.11804E-04
   2  Prefactor     6.5648        6.6393       -.50612E-06   -.25565E-07
   3  norm          6.0176        12.701       -.44176E-06   -.13446E-04
   4  Prefactor     9.2157        12.391       -.39448E-06   -.41705E-04
   5  Prefactor     .10001E-03    22.045       -.48142E-05** at limit **
   6  norm          .60266        1.3094       -.50341E-06    .25466E-03
   7  Prefactor     .10000E-03    67.280        .57795E-06** at limit **
   8  Prefactor     35.216        10.760        .94090E-07    .40101E-04
   9  norm          .93015        3.6095       -.90570E-07    .60334E-04
  10  Prefactor     30.822        22.403        .16718E-06   -.83710E-05
  11  Prefactor     6.9463        15.487       -.98992E-06   -.48477E-04
  12  norm          .57000        .64919        .23063E-06    .45311E-03
  13  Prefactor     .10000E-03    18.255        .34950E-06** at limit **
  14  Prefactor     3.2250        8.9921       -.19381E-05   -.29478E-04
  15  Prefactor     30.624        13.304        .14128E-07   -.17552E-04
  16  norm          6.2342        5.1289       -.86624E-07    .34575E-04
  17  Prefactor     .96087        109.90       -.12292E-04    .54158E-04
  18  norm          4.7078        2.1313       -.23781E-08   -.43170E-05
  19  Prefactor     5.8095        17.094       -.33480E-06   -.26465E-04
  20  Prefactor     .10000E-03    86.195        .21746E-05** at limit **
  21  Normalizat    .55833        .15758        .65641E-06   -.75674E-04
  22  Prefactor     1.2679        .15141       -.22193E-06   -.16658E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 14.1296
  Prefactor  = 6.56475
  norm       = 6.01759
  Prefactor  = 9.21571
  Prefactor  = 0.000100007
  norm       = 0.602661
  Prefactor  = 0.000100002
  Prefactor  = 35.2163
  norm       = 0.930154
  Prefactor  = 30.8219
  Prefactor  = 6.94626
  norm       = 0.57
  Prefactor  = 0.0001
  Prefactor  = 3.22504
  Prefactor  = 30.6245
  norm       = 6.23416
  Prefactor  = 0.960866
  norm       = 4.70779
  Prefactor  = 5.80948
  Prefactor  = 0.0001
  Normalizat = 0.558326
  Prefactor  = 1.26787
 **********
 **   18 **HESSE 
 **********

 FCN=   8426.399     FROM HESSE     STATUS=OK           360 CALLS     2168 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     14.130        13.129        .10647E-03   -1.4956    
   2  Prefactor     6.5648        6.6408        .78181E-03   -1.5195    
   3  norm          6.0176        12.661        .16579E-03   -1.5217    
   4  Prefactor     9.2157        12.389        .13290E-03   -1.5101    
   5  Prefactor     .10001E-03    37.746        .43290E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .60266        1.2296        .15192E-02   -1.5553    
   7  Prefactor     .10000E-03    68.643        .20552E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     35.216        10.756        .67671E-04   -1.4520    
   9  norm          .93015        3.4401        .28487E-03   -1.5515    
  10  Prefactor     30.822        21.877        .71704E-04   -1.4597    
  11  Prefactor     6.9463        14.651        .15516E-03   -1.5181    
  12  norm          .57000        .60811        .60680E-04   -1.5557    
  13  Prefactor     .10000E-03    18.309        .20594E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     3.2250        8.9931        .11124E-02   -1.5349    
  15  Prefactor     30.624        13.004        .72341E-04   -1.4601    
  16  norm          6.2342        5.1235        .80417E-03   -1.5209    
  17  Prefactor     .96087        194.06        .81136E-02   -1.5512    
  18  norm          4.7078        2.1275        .86028E-04   -1.5274    
  19  Prefactor     5.8095        17.062        .16595E-03   -1.5226    
  20  Prefactor     .10000E-03    86.502        .18269E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    .55833        .18444        .30436E-03   -1.0978    
  22  Prefactor     1.2679        .18112        .21550E-03   -.84268    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.05134e-09
Minuit parameter uncertainties:
  1  13.1316
  2  6.64158
  3  12.6669
  4  12.3921
  5  0.00104871
  6  1.22967
  7  0.000687327
  8  10.7564
  9  3.44088
  10  21.8829
  11  14.6581
  12  0.608113
  13  9.78669e-06
  14  8.99684
  15  13.0056
  16  5.12383
  17  27.3996
  18  2.12752
  19  17.0759
  20  0.000199328
  21  0.184647
  22  0.181214
Done.

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

Extracting fit parameters...

4FGL J2256.0-2740
   Spectrum: PowerLaw
340    Prefactor:  6.946e+00  1.466e+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.268e+00  1.812e-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:  5.583e-01  1.846e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/384779/likelihoodResults_676080001_676339201_4FGL_J2256.0-2740_daily_bin1685.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) = 8426.10020016
delta logL = 0.298388361922

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8426.07861583
delta logL = 0.319972696585

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    8.4396       1.0000         .10000E-03   10000.    
     2 'Index     '    2.3590       1.0000          .0000       10.000    
     3 'Normalizat'    .56836       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2568       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=   8426.079     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      210 TOTAL
                     EDM=   .63E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     8.4396        7.7813        .34498E-02   -.30077E-02
   2  Index         2.3590        .40452        .24065       -.78244E-04
   3  Normalizat    .56836        .14376        .68175E-01    .45005E-04
   4  Prefactor     1.2568        .14751        .48898E-01   -.58905E-07
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 8.43963
  Index      = 2.35904
  Normalizat = 0.568362
  Prefactor  = 1.25681
 **********
 **   18 **HESSE 
 **********

 FCN=   8426.079     FROM HESSE     STATUS=OK            31 CALLS      241 TOTAL
                     EDM=   .12E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     8.4396        7.8780        .13799E-03   -1.5127    
   2  Index         2.3590        .61308        .82630E-02   -.55647    
   3  Normalizat    .56836        .17089        .30174E-03   -1.0934    
   4  Prefactor     1.2568        .17504        .21616E-03   -.84600    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.2111e-08
Minuit parameter uncertainties:
  1  7.87898
  2  0.615226
  3  0.171052
  4  0.17512
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/384779': 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) = 8426.07861577
delta logL = 0.319972752475

Extracting fit parameters...

4FGL J2256.0-2740
   Spectrum: PowerLaw
340    Prefactor:  8.440e+00  7.879e+00  1.000e-04  1.000e+04 ( 1.000e-11)
341        Index:  2.359e+00  6.152e-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.257e+00  1.751e-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:  5.684e-01  1.711e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.48
Ra Dec: 344.025 -27.674
Photon Index (Free Index): 2.36 +/- 0.62
Photon Flux (Free Index): 4.82e-08 +/- 4.63e-08
Energy Flux (Free Index): 1.67e-05 +/- 1.72e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/384779/cmap_HighResolution_676080001_676339201_4FGL_J2256.0-2740_daily_bin1685.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.19e-02', comment='SUCCESS', energy_flux2='1.67e-05', dlogl='3.20e-01', photon_flux2='4.82e-08', job_status='DONE', time_completed='2022-06-08 01:23:12.424223', photon_index_error2='0.62', photon_index2='2.36', ts='0.76', fit_tolerance='1e-08', GAL='1.27', photon_index_error='0.00', photon_flux_upper_limit='1.49e-07', energy_flux_error2='1.72e-05', EG='0.56', time_epoch_completed='1654676592.42', return_code='0', job_id='384779', GAL2='1.26', EG2='0.57', return_code2='0', photon_flux_error2='4.63e-08', ts2='1.48', photon_index='3.02' WHERE bin_id='1685' AND source_name='4FGL J2256.0-2740' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Jun  8 01:23:12 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0280>
Subject: Job 384779: <4FGL_J2256.0-2740_daily_bin1685> in cluster <slac> Done

Job <4FGL_J2256.0-2740_daily_bin1685> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Wed Jun  8 01:10:16 2022
Job was executed on host(s) <bullet0280>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Jun  8 01:11:00 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Jun  8 01:11:00 2022
Terminated at Wed Jun  8 01:23:13 2022
Results reported at Wed Jun  8 01:23:13 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2256.0-2740_daily_bin1685 344.025 -27.6739 676080001 676339201 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 :                                   698.14 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             322.85 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   732 sec.
    Turnaround time :                            777 sec.

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

