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


Performing analysis on: 4FGL_J2256.0-2740_daily_bin1251
RA = 344.025, Dec = -27.6739
tmin = 563587201, tmax = 563846401
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='593979', job_status='RUN', time_executed='2021-09-29 02:50:43.387612', time_epoch_executed='1632909043.39' WHERE source_name='4FGL J2256.0-2740' and cadence='daily' and bin_id='1251'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/593979

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/593979/ft1_4FGL_J2256.0-2740_daily_bin1251.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/593979/ft2_4FGL_J2256.0-2740_daily_bin1251.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/593979/ft1_4FGL_J2256.0-2740_daily_bin1251.fits outfile=/scratch/kocevski/593979/ft1_filteredMKT_4FGL_J2256.0-2740_daily_bin1251.fits ra=344.025 dec=-27.6739 rad=12.0 tmin=563587201.0 tmax=563846401.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.55
sys 0.18

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

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

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/593979/ft1_filtered_4FGL_J2256.0-2740_daily_bin1251.fits" evtable="EVENTS" scfile=/scratch/kocevski/593979/ft2_4FGL_J2256.0-2740_daily_bin1251.fits sctable="SC_DATA" outfile=/scratch/kocevski/593979/ltcube_563587201_563846401_4FGL_J2256.0-2740_daily_bin1251.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/593979/ft2_4FGL_J2256.0-2740_daily_bin1251.fits
.....................!
real 12.20
user 11.87
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/593979/ft1_filtered_4FGL_J2256.0-2740_daily_bin1251.fits evtable="EVENTS" scfile=/scratch/kocevski/593979/ft2_4FGL_J2256.0-2740_daily_bin1251.fits sctable="SC_DATA" expcube=/scratch/kocevski/593979/ltcube_563587201_563846401_4FGL_J2256.0-2740_daily_bin1251.fits outfile=/scratch/kocevski/593979/expmap_563587201_563846401_4FGL_J2256.0-2740_daily_bin1251.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/593979/ltcube_563587201_563846401_4FGL_J2256.0-2740_daily_bin1251.fits
.....................!
real 191.84
user 186.62
sys 4.91

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

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

This is gtbin version HEAD
real 0.53
user 0.37
sys 0.14

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

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

This is gtbin version HEAD
real 0.53
user 0.36
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .13400E-01   1.0000         .10000E-03   10000.    
     2 'Prefactor '    6.4981       1.0000         .10000E-03   10000.    
     3 'norm      '    .10013E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    14.318       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10033E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10021E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10164E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    3.0544       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    23.787       1.0000         .10000E-03   10000.    
    12 'norm      '    .78764       1.0000         .10000E-03   10000.    
    13 'Prefactor '    33.624       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    10.496       1.0000         .10000E-03   10000.    
    16 'norm      '    .30401E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    22.274       1.0000         .10000E-03   10000.    
    18 'norm      '    3.2871       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.1395       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .97277       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=   6082.957     FROM MIGRAD    STATUS=CONVERGED    597 CALLS     2521 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .15650        9.8137        .13640        .12254E-03
   2  Prefactor     6.5007        7.3226        .39359E-02    .34626E-02
   3  norm          .10000E-03    9.3370        .90712E-02** at limit **
   4  Prefactor     14.310        22.486        .26463E-02    .31958E-04
   5  Prefactor     .10000E-03    14.058        .90712E-02** at limit **
   6  norm          .10000E-03    1.3124        .90712E-02** at limit **
   7  Prefactor     .10000E-03    42.943        .90712E-02** at limit **
   8  Prefactor     .10000E-03    5.5972        .90712E-02** at limit **
   9  norm          3.0541        3.0676        .58033E-02   -.26050E-04
  10  Prefactor     .10000E-03    5.7341        .90712E-02** at limit **
  11  Prefactor     23.794        13.666        .20533E-02    .94531E-03
  12  norm          .78757        .71688        .11439E-01    .41224E-03
  13  Prefactor     33.637        43.400        .17276E-02    .20090E-04
  14  Prefactor     .10000E-03    3.5219        .90712E-02** at limit **
  15  Prefactor     10.496        12.228        .30918E-02    .52438E-04
  16  norm          .10000E-03    4.8228        .58041E-01** at limit **
  17  Prefactor     22.282        42.480        .21218E-02   -.11981E-04
  18  norm          3.2880        3.3512        .55831E-02    .35825E-03
  19  Prefactor     .10000E-03    21.130        .90712E-02** at limit **
  20  Prefactor     .10001E-03    172.79        .90712E-02** at limit **
  21  Normalizat    1.1391        .19388        .56105E-01    .89188E-04
  22  Prefactor     .97299        .18029        .45926E-01    .98055E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.156497
  Prefactor  = 6.50074
  norm       = 0.0001
  Prefactor  = 14.3104
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.05411
  Prefactor  = 0.0001
  Prefactor  = 23.7936
  norm       = 0.787573
  Prefactor  = 33.6365
  Prefactor  = 0.0001
  Prefactor  = 10.4961
  norm       = 0.0001
  Prefactor  = 22.2816
  norm       = 3.28798
  Prefactor  = 0.0001
  Prefactor  = 0.000100007
  Normalizat = 1.13913
  Prefactor  = 0.972988
 **********
 **   18 **HESSE 
 **********

 FCN=   6082.957     FROM HESSE     STATUS=OK           354 CALLS     2875 TOTAL
                     EDM=   .43E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .15650        19.135        .81948E-01   -1.5629    
   2  Prefactor     6.5007        7.3216        .78719E-03   -1.5198    
   3  norm          .10000E-03    9.3463        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     14.310        22.488        .10585E-03   -1.4951    
   5  Prefactor     .10000E-03    14.236        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    1.3475        .17436E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    43.023        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    5.6188        .18016E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          3.0541        3.0643        .12998E-03   -1.5358    
  10  Prefactor     .10000E-03    5.7355        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     23.794        13.652        .41065E-03   -1.4732    
  12  norm          .78757        .68482        .51754E-04   -1.5530    
  13  Prefactor     33.637        43.419        .69105E-04   -1.4547    
  14  Prefactor     .10000E-03    3.5226        .14295E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     10.496        12.172        .12367E-03   -1.5060    
  16  norm          .10000E-03    11.495        .33162E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     22.282        42.561        .84871E-04   -1.4764    
  18  norm          3.2880        3.3438        .13889E-03   -1.5345    
  19  Prefactor     .10000E-03    21.190        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10001E-03    173.74        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    1.1391        .23517        .24810E-03   -.88505    
  22  Prefactor     .97299        .21702        .25719E-03   -.93635    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.28284e-10
Minuit parameter uncertainties:
  1  3.46098
  2  7.32257
  3  5.90479e-05
  4  22.5011
  5  5.34478e-05
  6  9.54758e-07
  7  0.000158653
  8  1.04667e-05
  9  3.06451
  10  1.15761e-05
  11  13.6538
  12  0.684825
  13  43.4603
  14  2.30195e-05
  15  12.1745
  16  1.78056e-05
  17  42.6192
  18  3.344
  19  0.000177571
  20  0.00228927
  21  0.235384
  22  0.217219
Done.

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

Extracting fit parameters...

4FGL J2256.0-2740
   Spectrum: PowerLaw
340    Prefactor:  2.379e+01  1.365e+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.730e-01  2.172e-01  0.000e+00  1.000e+01 ( 1.000e+00)
559        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
560        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
557   Normalization:  1.139e+00  2.354e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 6.33
Ra Dec: 344.025 -27.674
Photon Index (Fixed Index): 3.02 +/- 0.00
Photon Flux (Fixed Index): 1.63e-07 +/- 9.33e-08
Energy Flux (Fixed Index): 3.21e-05 +/- 1.84e-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) = 6082.04194735
delta logL = 0.914660351809

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6082.04045196
delta logL = 0.916155739578

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    19.120       1.0000         .10000E-03   10000.    
     2 'Index     '    4.0335       1.0000          .0000       10.000    
     3 'Normalizat'    1.0737       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0235       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=   6082.040     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      266 TOTAL
                     EDM=   .33E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     19.109        123.97        .22899E-02    .80428E-04
   2  Index         4.0321        6.9956        .20546        .49729E-04
   3  Normalizat    1.0742        .97399E-01    .57494E-01    .10855E-04
   4  Prefactor     1.0232        .10232        .41811E-01    .10276E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 19.109
  Index      = 4.03214
  Normalizat = 1.07422
  Prefactor  = 1.02316
 **********
 **   18 **HESSE 
 **********

 FCN=   6082.040     FROM HESSE     STATUS=OK            33 CALLS      299 TOTAL
                     EDM=   .28E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     19.109        12.110        .91596E-04   -1.4833    
   2  Index         4.0321        .96484        .86385E-02   -.19480    
   3  Normalizat    1.0742        .23351        .25425E-03   -.90584    
   4  Prefactor     1.0232        .21981        .25168E-03   -.91962    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.77266e-12
Minuit parameter uncertainties:
  1  12.1119
  2  0.971171
  3  0.233738
  4  0.220003
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/593979': 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) = 6082.04044545
delta logL = 0.916162258062

Extracting fit parameters...

4FGL J2256.0-2740
   Spectrum: PowerLaw
340    Prefactor:  1.911e+01  1.211e+01  1.000e-04  1.000e+04 ( 1.000e-11)
341        Index:  4.032e+00  9.712e-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.023e+00  2.200e-01  0.000e+00  1.000e+01 ( 1.000e+00)
559        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
560        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
557   Normalization:  1.074e+00  2.337e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 8.91
Ra Dec: 344.025 -27.674
Photon Index (Free Index): 4.03 +/- 0.97
Photon Flux (Free Index): 2.10e-07 +/- 8.71e-08
Energy Flux (Free Index): 3.13e-05 +/- 1.34e-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/593979/cmap_HighResolution_563587201_563846401_4FGL_J2256.0-2740_daily_bin1251.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.63e-07', energy_flux2='3.13e-05', photon_flux_error='9.33e-08', dlogl='9.16e-01', energy_flux='3.21e-05', photon_flux2='2.10e-07', job_status='DONE', time_completed='2021-09-29 03:00:26.585833', photon_index_error2='0.97', photon_index2='4.03', ts='6.33', fit_tolerance='1e-08', GAL='0.97', photon_index_error='0.00', energy_flux_error2='1.34e-05', EG='1.14', time_epoch_completed='1632909626.59', return_code='0', job_id='593979', GAL2='1.02', EG2='1.07', return_code2='0', energy_flux_error='1.84e-05', photon_flux_error2='8.71e-08', ts2='8.91', photon_index='3.02' WHERE bin_id='1251' AND source_name='4FGL J2256.0-2740' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 03:00:26 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0116>
Subject: Job 593979: <4FGL_J2256.0-2740_daily_bin1251> in cluster <slac> Done

Job <4FGL_J2256.0-2740_daily_bin1251> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Wed Sep 29 02:50:23 2021
Job was executed on host(s) <bullet0116>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 02:50: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:50:25 2021
Terminated at Wed Sep 29 03:00:27 2021
Results reported at Wed Sep 29 03:00:27 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2256.0-2740_daily_bin1251 344.025 -27.6739 563587201 563846401 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 :                                   573.16 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             350.55 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   601 sec.
    Turnaround time :                            604 sec.

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

