/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 156 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 = 7484
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J2256.0-2740_daily_bin161
RA = 344.025, Dec = -27.6739
tmin = 281059201, tmax = 281318401
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='589331', job_status='RUN', time_executed='2021-09-29 02:38:10.076339', time_epoch_executed='1632908290.08' WHERE source_name='4FGL J2256.0-2740' and cadence='daily' and bin_id='161'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/589331

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/589331/ft1_4FGL_J2256.0-2740_daily_bin161.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/589331/ft2_4FGL_J2256.0-2740_daily_bin161.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/589331/ft1_4FGL_J2256.0-2740_daily_bin161.fits outfile=/scratch/kocevski/589331/ft1_filteredMKT_4FGL_J2256.0-2740_daily_bin161.fits ra=344.025 dec=-27.6739 rad=12.0 tmin=281059201.0 tmax=281318401.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 4.52
user 4.26
sys 0.22

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

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

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/589331/ft1_filtered_4FGL_J2256.0-2740_daily_bin161.fits" evtable="EVENTS" scfile=/scratch/kocevski/589331/ft2_4FGL_J2256.0-2740_daily_bin161.fits sctable="SC_DATA" outfile=/scratch/kocevski/589331/ltcube_281059201_281318401_4FGL_J2256.0-2740_daily_bin161.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/589331/ft2_4FGL_J2256.0-2740_daily_bin161.fits
.....................!
real 11.63
user 11.26
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/589331/ft1_filtered_4FGL_J2256.0-2740_daily_bin161.fits evtable="EVENTS" scfile=/scratch/kocevski/589331/ft2_4FGL_J2256.0-2740_daily_bin161.fits sctable="SC_DATA" expcube=/scratch/kocevski/589331/ltcube_281059201_281318401_4FGL_J2256.0-2740_daily_bin161.fits outfile=/scratch/kocevski/589331/expmap_281059201_281318401_4FGL_J2256.0-2740_daily_bin161.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/589331/ltcube_281059201_281318401_4FGL_J2256.0-2740_daily_bin161.fits
.....................!
real 190.43
user 185.46
sys 4.59

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/589331/ft1_filtered_4FGL_J2256.0-2740_daily_bin161.fits scfile=/scratch/kocevski/589331/ft2_4FGL_J2256.0-2740_daily_bin161.fits outfile=/scratch/kocevski/589331/cmap_281059201_281318401_4FGL_J2256.0-2740_daily_bin161.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.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/589331/ft1_filtered_4FGL_J2256.0-2740_daily_bin161.fits scfile=/scratch/kocevski/589331/ft2_4FGL_J2256.0-2740_daily_bin161.fits outfile=/scratch/kocevski/589331/cmap_HighResolution_281059201_281318401_4FGL_J2256.0-2740_daily_bin161.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.55
user 0.38
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/589331/ft1_filtered_4FGL_J2256.0-2740_daily_bin161.fits evtable="EVENTS" scfile=/scratch/kocevski/589331/ft2_4FGL_J2256.0-2740_daily_bin161.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/589331/Model_4FGL_J2256.0-2740_daily_bin161.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/589331/ft1_filtered_4FGL_J2256.0-2740_daily_bin161.fits.....................!
real 51.66
user 50.30
sys 1.21

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    31.531       1.0000         .10000E-03   10000.    
     2 'Prefactor '    3.3582       1.0000         .10000E-03   10000.    
     3 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    18.863       1.0000         .10000E-03   10000.    
     6 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    37.457       1.0000         .10000E-03   10000.    
     8 'Prefactor '    24.868       1.0000         .10000E-03   10000.    
     9 'norm      '    1.7504       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    21.033       1.0000         .10000E-03   10000.    
    12 'norm      '    .67662       1.0000         .10000E-03   10000.    
    13 'Prefactor '    9.8423       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    21.707       1.0000         .10000E-03   10000.    
    17 'Prefactor '    35.037       1.0000         .10000E-03   10000.    
    18 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    3.4715       1.0000         .10000E-03   10000.    
    20 'Prefactor '    40.068       1.0000         .10000E-03   10000.    
    21 'Normalizat'    .71861       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .93991       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=   6629.462     FROM MIGRAD    STATUS=CONVERGED    439 CALLS     2327 TOTAL
                     EDM=   .79E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     31.533        16.338        .18731E-05    .54118E-05
   2  Prefactor     3.3587        3.8303       -.10266E-05   -.10640E-04
   3  norm          .10000E-03    7.5583       -.32478E-05** at limit **
   4  Prefactor     .10000E-03    9.2078        .48706E-05** at limit **
   5  Prefactor     18.864        10.801       -.24608E-06    .29609E-04
   6  norm          .10000E-03    .81152       -.37037E-06** at limit **
   7  Prefactor     37.464        38.013        .11355E-04    .99210E-04
   8  Prefactor     24.868        11.656       -.14035E-07    .68860E-04
   9  norm          1.7504        2.1671        .39203E-07   -.16984E-03
  10  Prefactor     .10000E-03    9.5189        .31442E-05** at limit **
  11  Prefactor     21.036        10.847        .30821E-05    .29179E-03
  12  norm          .67652        .75304       -.88630E-06   -.23478E-02
  13  Prefactor     9.8422        25.735       -.34790E-06   -.11292E-04
  14  Prefactor     .10000E-03    5.9795        .51936E-06** at limit **
  15  Prefactor     .10000E-03    10.098       -.55153E-05** at limit **
  16  norm          21.707        8.6675       -.16295E-08   -.12313E-04
  17  Prefactor     35.041        36.697        .62531E-05   -.23031E-05
  18  norm          .10000E-03    .85856       -.65064E-07** at limit **
  19  Prefactor     3.4753        29.259        .14658E-04   -.47825E-04
  20  Prefactor     40.070        70.804        .36707E-05   -.15259E-04
  21  Normalizat    .71851        .16786       -.56325E-05    .25962E-03
  22  Prefactor     .94000        .15283        .14455E-05   -.10849E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 31.5327
  Prefactor  = 3.35873
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 18.8639
  norm       = 0.0001
  Prefactor  = 37.4639
  Prefactor  = 24.8683
  norm       = 1.75041
  Prefactor  = 0.000100001
  Prefactor  = 21.0357
  norm       = 0.676521
  Prefactor  = 9.84218
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 21.7067
  Prefactor  = 35.0408
  norm       = 0.0001
  Prefactor  = 3.47526
  Prefactor  = 40.0703
  Normalizat = 0.718514
  Prefactor  = 0.940002
 **********
 **   18 **HESSE 
 **********

 FCN=   6629.462     FROM HESSE     STATUS=OK           348 CALLS     2675 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     31.533        16.320        .71356E-04   -1.4584    
   2  Prefactor     3.3587        3.8319        .16525E-03   -1.5341    
   3  norm          .10000E-03    7.5802        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    9.2420        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     18.864        10.805        .92218E-04   -1.4839    
   6  norm          .10000E-03    .82132        .71624E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     37.464        37.918        .65486E-04   -1.4483    
   8  Prefactor     24.868        11.697        .80328E-04   -1.4710    
   9  norm          1.7504        2.1471        .12688E-03   -1.5443    
  10  Prefactor     .10000E-03    9.4795        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     21.036        10.667        .87335E-04   -1.4790    
  12  norm          .67652        .71188        .53467E-03   -1.5543    
  13  Prefactor     9.8422        25.731        .12773E-03   -1.5080    
  14  Prefactor     .10000E-03    6.0108        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    10.330        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          21.707        8.6683        .85971E-04   -1.4776    
  17  Prefactor     35.041        36.701        .67703E-04   -1.4523    
  18  norm          .10000E-03    .86778        .73588E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     3.4753        28.573        .21704E-03   -1.5335    
  20  Prefactor     40.070        70.785        .63324E-04   -1.4441    
  21  Normalizat    .71851        .19615        .25549E-03   -1.0317    
  22  Prefactor     .94000        .18025        .22426E-03   -.94757    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.54033e-09
Minuit parameter uncertainties:
  1  16.3225
  2  3.83213
  3  2.35414e-05
  4  3.28077e-05
  5  10.8065
  6  2.95405e-05
  7  37.942
  8  11.6979
  9  2.14722
  10  0.000146132
  11  10.6678
  12  0.711888
  13  25.7595
  14  1.26649e-05
  15  3.97326e-05
  16  8.66883
  17  36.7246
  18  6.38681e-06
  19  19.9425
  20  70.934
  21  0.196341
  22  0.18036
Done.

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

Extracting fit parameters...

4FGL J2256.0-2740
   Spectrum: PowerLaw
340    Prefactor:  2.104e+01  1.067e+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:  9.400e-01  1.804e-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.185e-01  1.963e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 10.35
Ra Dec: 344.025 -27.674
Photon Index (Fixed Index): 3.02 +/- 0.00
Photon Flux (Fixed Index): 1.44e-07 +/- 7.29e-08
Energy Flux (Fixed Index): 2.84e-05 +/- 1.44e-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) = 6629.45882113
delta logL = 0.0031876607045

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6629.45865416
delta logL = 0.0033546369541

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    21.116       1.0000         .10000E-03   10000.    
     2 'Index     '    2.9824       1.0000          .0000       10.000    
     3 'Normalizat'    .72110       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .93787       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=   6629.459     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      196 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     21.133        10.166        .21791E-02    .15072E-02
   2  Index         2.9845        .53810        .17689       -.17246E-04
   3  Normalizat    .72062        .15426        .42572E-01    .19820E-04
   4  Prefactor     .93826        .15166        .45486E-01    .24111E-06
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 21.1329
  Index      = 2.98454
  Normalizat = 0.72062
  Prefactor  = 0.938264
 **********
 **   18 **HESSE 
 **********

 FCN=   6629.459     FROM HESSE     STATUS=OK            33 CALLS      229 TOTAL
                     EDM=   .62E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     21.133        8.0992        .43582E-03   -1.4788    
   2  Index         2.9845        .46196        .72472E-02   -.41489    
   3  Normalizat    .72062        .18220        .25515E-03   -1.0308    
   4  Prefactor     .93826        .17811        .22444E-03   -.94817    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.1926e-11
Minuit parameter uncertainties:
  1  8.09961
  2  0.462753
  3  0.182349
  4  0.178219
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/589331': 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) = 6629.45863908
delta logL = 0.00336971328579

Extracting fit parameters...

4FGL J2256.0-2740
   Spectrum: PowerLaw
340    Prefactor:  2.113e+01  8.100e+00  1.000e-04  1.000e+04 ( 1.000e-11)
341        Index:  2.985e+00  4.628e-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:  9.383e-01  1.782e-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.206e-01  1.823e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 10.80
Ra Dec: 344.025 -27.674
Photon Index (Free Index): 2.98 +/- 0.46
Photon Flux (Free Index): 1.43e-07 +/- 5.63e-08
Energy Flux (Free Index): 2.87e-05 +/- 1.14e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/589331/cmap_HighResolution_281059201_281318401_4FGL_J2256.0-2740_daily_bin161.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.44e-07', energy_flux2='2.87e-05', photon_flux_error='7.29e-08', dlogl='3.37e-03', energy_flux='2.84e-05', photon_flux2='1.43e-07', job_status='DONE', time_completed='2021-09-29 02:47:54.066511', photon_index_error2='0.46', photon_index2='2.98', ts='10.35', fit_tolerance='1e-08', GAL='0.94', photon_index_error='0.00', energy_flux_error2='1.14e-05', EG='0.72', time_epoch_completed='1632908874.07', return_code='0', job_id='589331', GAL2='0.94', EG2='0.72', return_code2='0', energy_flux_error='1.44e-05', photon_flux_error2='5.63e-08', ts2='10.80', photon_index='3.02' WHERE bin_id='161' AND source_name='4FGL J2256.0-2740' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 02:47:54 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0220>
Subject: Job 589331: <4FGL_J2256.0-2740_daily_bin161> in cluster <slac> Done

Job <4FGL_J2256.0-2740_daily_bin161> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Sep 29 02:35:25 2021
Job was executed on host(s) <bullet0220>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 02:35:25 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:35:25 2021
Terminated at Wed Sep 29 02:47:54 2021
Results reported at Wed Sep 29 02:47:54 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2256.0-2740_daily_bin161 344.025 -27.6739 281059201 281318401 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 :                                   582.01 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             270.83 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   749 sec.
    Turnaround time :                            749 sec.

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

