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


Performing analysis on: 4FGL_J2256.0-2740_daily_bin872
RA = 344.025, Dec = -27.6739
tmin = 465350401, tmax = 465609601
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='592455', job_status='RUN', time_executed='2021-09-29 02:48:38.867029', time_epoch_executed='1632908918.87' WHERE source_name='4FGL J2256.0-2740' and cadence='daily' and bin_id='872'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/592455

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/592455/ft1_4FGL_J2256.0-2740_daily_bin872.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/592455/ft2_4FGL_J2256.0-2740_daily_bin872.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/592455/ft1_4FGL_J2256.0-2740_daily_bin872.fits outfile=/scratch/kocevski/592455/ft1_filteredMKT_4FGL_J2256.0-2740_daily_bin872.fits ra=344.025 dec=-27.6739 rad=12.0 tmin=465350401.0 tmax=465609601.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.42
user 3.19
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/592455/ft2_4FGL_J2256.0-2740_daily_bin872.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/592455/ft1_filteredMKT_4FGL_J2256.0-2740_daily_bin872.fits evtable="EVENTS" outfile="/scratch/kocevski/592455/ft1_filtered_4FGL_J2256.0-2740_daily_bin872.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/592455/ft1_filtered_4FGL_J2256.0-2740_daily_bin872.fits" evtable="EVENTS" scfile=/scratch/kocevski/592455/ft2_4FGL_J2256.0-2740_daily_bin872.fits sctable="SC_DATA" outfile=/scratch/kocevski/592455/ltcube_465350401_465609601_4FGL_J2256.0-2740_daily_bin872.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/592455/ft2_4FGL_J2256.0-2740_daily_bin872.fits
.....................!
real 11.96
user 11.61
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/592455/ft1_filtered_4FGL_J2256.0-2740_daily_bin872.fits evtable="EVENTS" scfile=/scratch/kocevski/592455/ft2_4FGL_J2256.0-2740_daily_bin872.fits sctable="SC_DATA" expcube=/scratch/kocevski/592455/ltcube_465350401_465609601_4FGL_J2256.0-2740_daily_bin872.fits outfile=/scratch/kocevski/592455/expmap_465350401_465609601_4FGL_J2256.0-2740_daily_bin872.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/592455/ltcube_465350401_465609601_4FGL_J2256.0-2740_daily_bin872.fits
.....................!
real 190.52
user 185.20
sys 4.97

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/592455/ft1_filtered_4FGL_J2256.0-2740_daily_bin872.fits scfile=/scratch/kocevski/592455/ft2_4FGL_J2256.0-2740_daily_bin872.fits outfile=/scratch/kocevski/592455/cmap_465350401_465609601_4FGL_J2256.0-2740_daily_bin872.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.54
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/592455/ft1_filtered_4FGL_J2256.0-2740_daily_bin872.fits scfile=/scratch/kocevski/592455/ft2_4FGL_J2256.0-2740_daily_bin872.fits outfile=/scratch/kocevski/592455/cmap_HighResolution_465350401_465609601_4FGL_J2256.0-2740_daily_bin872.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.39
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10049E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    49.114       1.0000         .10000E-03   10000.    
     4 'Prefactor '    14.353       1.0000         .10000E-03   10000.    
     5 'Prefactor '    13.688       1.0000         .10000E-03   10000.    
     6 'norm      '    3.2821       1.0000         .10000E-03   10000.    
     7 'Prefactor '    11.519       1.0000         .10000E-03   10000.    
     8 'Prefactor '    7.9215       1.0000         .10000E-03   10000.    
     9 'norm      '    .37664       1.0000         .10000E-03   10000.    
    10 'Prefactor '    6.7477       1.0000         .10000E-03   10000.    
    11 'Prefactor '    9.8289       1.0000         .10000E-03   10000.    
    12 'norm      '    .20737E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .19313E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .44199       1.0000         .10000E-03   10000.    
    17 'Prefactor '    32.012       1.0000         .10000E-03   10000.    
    18 'norm      '    2.2127       1.0000         .10000E-03   10000.    
    19 'Prefactor '    10.884       1.0000         .10000E-03   10000.    
    20 'Prefactor '    5.0636       1.0000         .10000E-03   10000.    
    21 'Normalizat'    .77909       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .96420       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=   7033.504     FROM MIGRAD    STATUS=CONVERGED    491 CALLS     3048 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    4.7539       -.12209E-07** at limit **
   2  Prefactor     .10000E-03    6.4725        .43829E-06** at limit **
   3  norm          49.113        20.903       -.99676E-07   -.54629E-04
   4  Prefactor     14.352        14.877       -.23416E-07   -.23809E-04
   5  Prefactor     13.686        10.988        .13584E-05   -.20300E-03
   6  norm          3.2836        2.1997        .51755E-06   -.47060E-03
   7  Prefactor     11.494        34.097       -.52574E-05   -.19640E-03
   8  Prefactor     7.9177        8.5624        .21706E-05   -.40411E-03
   9  norm          .37042        2.1599       -.34307E-06    .43915E-03
  10  Prefactor     6.7508        18.488        .45269E-06   -.28070E-03
  11  Prefactor     9.8151        9.2076       -.11869E-05   -.11218E-02
  12  norm          .10000E-03    .27140        .28965E-06** at limit **
  13  Prefactor     .10000E-03    20.382        .14957E-06** at limit **
  14  Prefactor     .10000E-03    4.3015        .14841E-06** at limit **
  15  Prefactor     .10000E-03    5.0064        .97018E-06** at limit **
  16  norm          .44204        5.8713        .38816E-05   -.27850E-03
  17  Prefactor     31.987        38.447       -.18336E-05   -.31346E-03
  18  norm          2.2125        2.2736        .19255E-06   -.10631E-03
  19  Prefactor     10.881        18.145       -.63725E-07   -.54416E-04
  20  Prefactor     5.0640        57.389        .93463E-06   -.23031E-05
  21  Normalizat    .77948        .15658        .13692E-05   -.46411E-03
  22  Prefactor     .96381        .15151       -.23997E-05   -.12450E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 49.1125
  Prefactor  = 14.3521
  Prefactor  = 13.6857
  norm       = 3.28357
  Prefactor  = 11.4939
  Prefactor  = 7.91775
  norm       = 0.37042
  Prefactor  = 6.75084
  Prefactor  = 9.81515
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 0.442038
  Prefactor  = 31.9872
  norm       = 2.21251
  Prefactor  = 10.881
  Prefactor  = 5.06396
  Normalizat = 0.779482
  Prefactor  = 0.963813
 **********
 **   18 **HESSE 
 **********

 FCN=   7033.504     FROM HESSE     STATUS=OK           352 CALLS     3400 TOTAL
                     EDM=   .31E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    4.7674        .17862E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    6.6644        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          49.113        20.892        .57220E-04   -1.4305    
   4  Prefactor     14.352        14.877        .10572E-03   -1.4950    
   5  Prefactor     13.686        10.988        .54132E-03   -1.4968    
   6  norm          3.2836        2.2347        .80004E-04   -1.5346    
   7  Prefactor     11.494        34.834        .11804E-03   -1.5030    
   8  Prefactor     7.9177        8.5714        .71231E-03   -1.5145    
   9  norm          .37042        7.7955        .20538E-02   -1.5586    
  10  Prefactor     6.7508        18.832        .15447E-03   -1.5188    
  11  Prefactor     9.8151        8.8771        .12782E-03   -1.5081    
  12  norm          .10000E-03    4.2502        .72491E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    20.405        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    4.3086        .16989E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    13.402        .34026E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .44204        5.8383        .38802E-03   -1.5575    
  17  Prefactor     31.987        39.083        .70820E-04   -1.4576    
  18  norm          2.2125        2.2566        .12077E-03   -1.5410    
  19  Prefactor     10.881        18.115        .12144E-03   -1.5048    
  20  Prefactor     5.0640        57.412        .17869E-03   -1.5258    
  21  Normalizat    .77948        .18659        .23910E-03   -1.0083    
  22  Prefactor     .96381        .17902        .22034E-03   -.93946    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.11595e-09
Minuit parameter uncertainties:
  1  2.08584e-05
  2  7.52903e-06
  3  20.895
  4  14.8809
  5  10.9901
  6  2.23474
  7  34.8958
  8  8.57277
  9  3.39864
  10  18.8483
  11  8.87831
  12  6.84996e-05
  13  3.39559e-05
  14  1.40518e-05
  15  0.000202384
  16  3.21296
  17  39.1138
  18  2.25664
  19  18.1245
  20  34.1429
  21  0.186744
  22  0.179131
Done.

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

Extracting fit parameters...

4FGL J2256.0-2740
   Spectrum: PowerLaw
340    Prefactor:  9.815e+00  8.878e+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

GAL_V02
   Spectrum: PowerLaw
558    Prefactor:  9.638e-01  1.791e-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.795e-01  1.867e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.59
Ra Dec: 344.025 -27.674
Photon Index (Fixed Index): 3.02 +/- 0.00
Photon Flux (Fixed Index): 6.72e-08 +/- 6.06e-08
Energy Flux (Fixed Index): 1.33e-05 +/- 1.20e-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) = 7033.25517533
delta logL = 0.249171074779

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7033.24682178
delta logL = 0.257524624722

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    10.437       1.0000         .10000E-03   10000.    
     2 'Index     '    2.6258       1.0000          .0000       10.000    
     3 'Normalizat'    .79017       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .95328       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=   7033.247     FROM MIGRAD    STATUS=CONVERGED     43 CALLS      201 TOTAL
                     EDM=   .55E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     10.437        6.2478        .31005E-02   -.11495E-02
   2  Index         2.6258        .47612        .20994        .13090E-04
   3  Normalizat    .79017        .14426        .43482E-01    .55171E-04
   4  Prefactor     .95328        .14634        .45681E-01   -.34061E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 10.4374
  Index      = 2.62583
  Normalizat = 0.790173
  Prefactor  = 0.95328
 **********
 **   18 **HESSE 
 **********

 FCN=   7033.247     FROM HESSE     STATUS=OK            33 CALLS      234 TOTAL
                     EDM=   .59E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     10.437        5.7130        .12402E-03   -1.5062    
   2  Index         2.6258        .50143        .80674E-02   -.49478    
   3  Normalizat    .79017        .17251        .23757E-03   -1.0043    
   4  Prefactor     .95328        .17446        .22132E-03   -.94303    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.9226e-10
Minuit parameter uncertainties:
  1  5.71328
  2  0.502518
  3  0.172631
  4  0.174565
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/592455': 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) = 7033.24682178
delta logL = 0.25752462484

Extracting fit parameters...

4FGL J2256.0-2740
   Spectrum: PowerLaw
340    Prefactor:  1.044e+01  5.713e+00  1.000e-04  1.000e+04 ( 1.000e-11)
341        Index:  2.626e+00  5.025e-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.533e-01  1.746e-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.902e-01  1.726e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.15
Ra Dec: 344.025 -27.674
Photon Index (Free Index): 2.63 +/- 0.50
Photon Flux (Free Index): 6.29e-08 +/- 3.58e-08
Energy Flux (Free Index): 1.61e-05 +/- 9.93e-06

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/592455/cmap_HighResolution_465350401_465609601_4FGL_J2256.0-2740_daily_bin872.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='6.72e-08', energy_flux2='1.61e-05', photon_flux_error='6.06e-08', dlogl='2.58e-01', energy_flux='1.33e-05', photon_flux2='6.29e-08', job_status='DONE', time_completed='2021-09-29 02:59:43.343016', photon_index_error2='0.50', photon_index2='2.63', ts='4.59', fit_tolerance='1e-08', GAL='0.96', photon_index_error='0.00', energy_flux_error2='9.93e-06', EG='0.78', time_epoch_completed='1632909583.34', return_code='0', job_id='592455', GAL2='0.95', EG2='0.79', return_code2='0', energy_flux_error='1.20e-05', photon_flux_error2='3.58e-08', ts2='5.15', photon_index='3.02' WHERE bin_id='872' AND source_name='4FGL J2256.0-2740' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 02:59:43 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0043>
Subject: Job 592455: <4FGL_J2256.0-2740_daily_bin872> in cluster <slac> Done

Job <4FGL_J2256.0-2740_daily_bin872> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Sep 29 02:45:27 2021
Job was executed on host(s) <bullet0043>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 02:45:28 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:28 2021
Terminated at Wed Sep 29 02:59:43 2021
Results reported at Wed Sep 29 02:59:43 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2256.0-2740_daily_bin872 344.025 -27.6739 465350401 465609601 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 :                                   656.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             271.89 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   855 sec.
    Turnaround time :                            856 sec.

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

