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


Performing analysis on: 4FGL_J2256.0-2740_daily_bin820
RA = 344.025, Dec = -27.6739
tmin = 451872001, tmax = 452131201
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='592377', job_status='RUN', time_executed='2021-09-29 02:48:18.396227', time_epoch_executed='1632908898.4' WHERE source_name='4FGL J2256.0-2740' and cadence='daily' and bin_id='820'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/592377

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/592377/ft1_4FGL_J2256.0-2740_daily_bin820.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/592377/ft2_4FGL_J2256.0-2740_daily_bin820.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/592377/ft1_4FGL_J2256.0-2740_daily_bin820.fits outfile=/scratch/kocevski/592377/ft1_filteredMKT_4FGL_J2256.0-2740_daily_bin820.fits ra=344.025 dec=-27.6739 rad=12.0 tmin=451872001.0 tmax=452131201.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.37
user 3.15
sys 0.20

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

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

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/592377/ft1_filtered_4FGL_J2256.0-2740_daily_bin820.fits" evtable="EVENTS" scfile=/scratch/kocevski/592377/ft2_4FGL_J2256.0-2740_daily_bin820.fits sctable="SC_DATA" outfile=/scratch/kocevski/592377/ltcube_451872001_452131201_4FGL_J2256.0-2740_daily_bin820.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/592377/ft2_4FGL_J2256.0-2740_daily_bin820.fits
.....................!
real 11.93
user 11.54
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/592377/ft1_filtered_4FGL_J2256.0-2740_daily_bin820.fits evtable="EVENTS" scfile=/scratch/kocevski/592377/ft2_4FGL_J2256.0-2740_daily_bin820.fits sctable="SC_DATA" expcube=/scratch/kocevski/592377/ltcube_451872001_452131201_4FGL_J2256.0-2740_daily_bin820.fits outfile=/scratch/kocevski/592377/expmap_451872001_452131201_4FGL_J2256.0-2740_daily_bin820.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/592377/ltcube_451872001_452131201_4FGL_J2256.0-2740_daily_bin820.fits
.....................!
real 190.50
user 185.10
sys 5.01

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/592377/ft1_filtered_4FGL_J2256.0-2740_daily_bin820.fits scfile=/scratch/kocevski/592377/ft2_4FGL_J2256.0-2740_daily_bin820.fits outfile=/scratch/kocevski/592377/cmap_451872001_452131201_4FGL_J2256.0-2740_daily_bin820.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.52
user 0.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/592377/ft1_filtered_4FGL_J2256.0-2740_daily_bin820.fits scfile=/scratch/kocevski/592377/ft2_4FGL_J2256.0-2740_daily_bin820.fits outfile=/scratch/kocevski/592377/cmap_HighResolution_451872001_452131201_4FGL_J2256.0-2740_daily_bin820.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=344.025 yref=-27.6739 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.54
user 0.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/592377/ft1_filtered_4FGL_J2256.0-2740_daily_bin820.fits evtable="EVENTS" scfile=/scratch/kocevski/592377/ft2_4FGL_J2256.0-2740_daily_bin820.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/592377/Model_4FGL_J2256.0-2740_daily_bin820.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/592377/ft1_filtered_4FGL_J2256.0-2740_daily_bin820.fits.....................!
real 49.99
user 48.58
sys 1.27

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.7943       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .15777E-02   1.0000         .10000E-03   10000.    
     3 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    28.773       1.0000         .10000E-03   10000.    
     5 'Prefactor '    9.5504       1.0000         .10000E-03   10000.    
     6 'norm      '    2.4145       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    33.561       1.0000         .10000E-03   10000.    
     9 'norm      '    1.2300       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10182E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    17.592       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    4.1171       1.0000         .10000E-03   10000.    
    17 'Prefactor '    34.466       1.0000         .10000E-03   10000.    
    18 'norm      '    1.7159       1.0000         .10000E-03   10000.    
    19 'Prefactor '    15.361       1.0000         .10000E-03   10000.    
    20 'Prefactor '    32.579       1.0000         .10000E-03   10000.    
    21 'Normalizat'    .84654       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .68801       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=   6384.563     FROM MIGRAD    STATUS=CONVERGED    476 CALLS     2382 TOTAL
                     EDM=   .23E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  7.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.7938        8.5337       -.55296E-07    .79805E-06
   2  Prefactor     .10000E-03    43.712       -.22101E-04** at limit **
   3  norm          .10000E-03    6.9042        .34788E-06** at limit **
   4  Prefactor     28.779        18.031        .69809E-06    .42695E-04
   5  Prefactor     9.5547        7.5278       -.26694E-06   -.81179E-04
   6  norm          2.4148        1.6717       -.15421E-06   -.32901E-03
   7  Prefactor     .10000E-03    26.848        .36112E-05** at limit **
   8  Prefactor     33.575        12.565        .41300E-06    .35072E-04
   9  norm          1.2294        1.6953       -.15309E-06   -.21836E-04
  10  Prefactor     .10000E-03    2.3603        .86037E-07** at limit **
  11  Prefactor     .10000E-03    4.0263       -.22565E-06** at limit **
  12  norm          .10000E-03    .11578       -.36932E-07** at limit **
  13  Prefactor     17.593        21.584        .19599E-06    .17836E-05
  14  Prefactor     .10000E-03    8.1930       -.54655E-06** at limit **
  15  Prefactor     .10000E-03    2.3450       -.11075E-06** at limit **
  16  norm          4.1185        4.7709       -.18850E-05   -.17610E-03
  17  Prefactor     34.438        33.357       -.74306E-05   -.47900E-04
  18  norm          1.7169        2.2163       -.32667E-06   -.15293E-03
  19  Prefactor     15.368        18.721        .17919E-05    .12630E-04
  20  Prefactor     32.583        60.434        .18277E-05    .18173E-05
  21  Normalizat    .84576        .14515       -.18953E-05    .23908E-03
  22  Prefactor     .68875        .13566        .26865E-05   -.11861E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.7938
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 28.7786
  Prefactor  = 9.55472
  norm       = 2.41482
  Prefactor  = 0.0001
  Prefactor  = 33.5753
  norm       = 1.2294
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 17.5927
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 4.11851
  Prefactor  = 34.4379
  norm       = 1.71687
  Prefactor  = 15.3681
  Prefactor  = 32.5834
  Normalizat = 0.845755
  Prefactor  = 0.688748
 **********
 **   18 **HESSE 
 **********

 FCN=   6384.563     FROM HESSE     STATUS=OK           350 CALLS     2732 TOTAL
                     EDM=   .52E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.7938        8.5305        .15393E-03   -1.5187    
   2  Prefactor     .10000E-03    42.539        .26213E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    6.9136        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     28.779        17.984        .74689E-04   -1.4635    
   5  Prefactor     9.5547        7.5391        .12967E-03   -1.5090    
   6  norm          2.4148        1.6677        .82801E-04   -1.5397    
   7  Prefactor     .10000E-03    26.934        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     33.575        12.661        .69170E-04   -1.4548    
   9  norm          1.2294        1.6569        .11822E-03   -1.5486    
  10  Prefactor     .10000E-03    2.3620        .11988E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    4.1526        .31225E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    .12219        .52876E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     17.593        21.582        .95492E-04   -1.4869    
  14  Prefactor     .10000E-03    8.2814        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    2.3568        .11945E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          4.1185        4.7981        .91516E-03   -1.5302    
  17  Prefactor     34.438        33.828        .68259E-04   -1.4534    
  18  norm          1.7169        2.1935        .12661E-03   -1.5446    
  19  Prefactor     15.368        18.658        .10219E-03   -1.4924    
  20  Prefactor     32.583        60.441        .70203E-04   -1.4566    
  21  Normalizat    .84576        .16798        .21072E-03   -.98393    
  22  Prefactor     .68875        .15544        .22631E-03   -1.0397    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.21438e-10
Minuit parameter uncertainties:
  1  8.53207
  2  6.74438e-05
  3  2.34728e-06
  4  17.9875
  5  7.53988
  6  1.66775
  7  4.6076e-05
  8  12.662
  9  1.65701
  10  1.02531e-06
  11  1.47995e-05
  12  2.56828e-07
  13  21.5918
  14  1.36557e-05
  15  2.19768e-06
  16  4.79853
  17  33.8472
  18  2.19362
  19  18.6649
  20  60.5544
  21  0.168085
  22  0.155539
Done.

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

Extracting fit parameters...

4FGL J2256.0-2740
   Spectrum: PowerLaw
340    Prefactor:  1.000e-04  1.480e-05  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:  6.887e-01  1.555e-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.458e-01  1.681e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 344.025 -27.674
Photon Flux Upper Limit: 6.22e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.98e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/592377/likelihoodResults_451872001_452131201_4FGL_J2256.0-2740_daily_bin820.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): 102
logL (Free Index) = 6384.56436781
delta logL = -0.0011495422159

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6384.56322081
delta logL = -2.5344252208e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .12624E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    3.0709       1.0000          .0000       10.000    
     3 'Normalizat'    .84596       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .68857       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6383.735     FROM MIGRAD    STATUS=CONVERGED    184 CALLS      337 TOTAL
                     EDM=   .49E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .64250E-01    .61597E-01    .25235E-02   -.28125E-02
   2  Index         9.6904        1.6552        .50000        .81345E-04
   3  Normalizat    .79887        .16769        .21072E-03   -.12841E-04
   4  Prefactor     .71932        .15883        .22631E-03   -.28533E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0642499
  Index      = 9.69043
  Normalizat = 0.798869
  Prefactor  = 0.719322
 **********
 **   18 **HESSE 
 **********

 FCN=   6383.735     FROM HESSE     STATUS=OK            29 CALLS      366 TOTAL
                     EDM=   .10E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .64250E-01    .21725        .18200E-04   -1.5759    
   2  Index         9.6904        8.5819        .63082E-01    1.9245    
   3  Normalizat    .79887        .15959        .84288E-05   -1.0011    
   4  Prefactor     .71932        .15527        .90525E-05   -1.0277    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.02016e-09
Minuit parameter uncertainties:
  1  0.217249
  2  4.22954
  3  0.159681
  4  0.155367
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/592377': 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) = 6383.7350145
delta logL = 0.828203768043

Extracting fit parameters...

4FGL J2256.0-2740
   Spectrum: PowerLaw
340    Prefactor:  6.425e-02  2.172e-01  1.000e-04  1.000e+04 ( 1.000e-11)
341        Index:  9.690e+00  4.230e+00  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.193e-01  1.554e-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:  7.989e-01  1.597e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.72
Ra Dec: 344.025 -27.674
Photon Index (Free Index): 9.69 +/- 4.23
Photon Flux (Free Index): 3.45e-08 +/- 3.10e-08
Energy Flux (Free Index): 3.87e-06 +/- 3.53e-06

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/592377/cmap_HighResolution_451872001_452131201_4FGL_J2256.0-2740_daily_bin820.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.98e-03', comment='SUCCESS', energy_flux2='3.87e-06', dlogl='8.28e-01', photon_flux2='3.45e-08', job_status='DONE', time_completed='2021-09-29 02:59:15.442790', photon_index_error2='4.23', photon_index2='9.69', ts='-0.00', fit_tolerance='1e-08', GAL='0.69', photon_index_error='0.00', photon_flux_upper_limit='6.22e-08', energy_flux_error2='3.53e-06', EG='0.85', time_epoch_completed='1632909555.44', return_code='0', job_id='592377', GAL2='0.72', EG2='0.80', return_code2='0', photon_flux_error2='3.10e-08', ts2='1.72', photon_index='3.02' WHERE bin_id='820' AND source_name='4FGL J2256.0-2740' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 02:59:15 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0222>
Subject: Job 592377: <4FGL_J2256.0-2740_daily_bin820> in cluster <slac> Done

Job <4FGL_J2256.0-2740_daily_bin820> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Sep 29 02:45:20 2021
Job was executed on host(s) <bullet0222>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 02:45:22 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep 29 02:45:22 2021
Terminated at Wed Sep 29 02:59:16 2021
Results reported at Wed Sep 29 02:59:16 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2256.0-2740_daily_bin820 344.025 -27.6739 451872001 452131201 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 :                                   641.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             286.48 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   833 sec.
    Turnaround time :                            836 sec.

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

