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


Performing analysis on: 4FGL_J2256.0-2740_daily_bin1253
RA = 344.025, Dec = -27.6739
tmin = 564105601, tmax = 564364801
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='593981', job_status='RUN', time_executed='2021-09-29 02:52:37.070900', time_epoch_executed='1632909157.07' WHERE source_name='4FGL J2256.0-2740' and cadence='daily' and bin_id='1253'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/593981

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/593981/ft1_4FGL_J2256.0-2740_daily_bin1253.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/593981/ft2_4FGL_J2256.0-2740_daily_bin1253.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/593981/ft1_4FGL_J2256.0-2740_daily_bin1253.fits outfile=/scratch/kocevski/593981/ft1_filteredMKT_4FGL_J2256.0-2740_daily_bin1253.fits ra=344.025 dec=-27.6739 rad=12.0 tmin=564105601.0 tmax=564364801.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.27
user 3.03
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/593981/ft2_4FGL_J2256.0-2740_daily_bin1253.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/593981/ft1_filteredMKT_4FGL_J2256.0-2740_daily_bin1253.fits evtable="EVENTS" outfile="/scratch/kocevski/593981/ft1_filtered_4FGL_J2256.0-2740_daily_bin1253.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.33
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/593981/ft1_filtered_4FGL_J2256.0-2740_daily_bin1253.fits" evtable="EVENTS" scfile=/scratch/kocevski/593981/ft2_4FGL_J2256.0-2740_daily_bin1253.fits sctable="SC_DATA" outfile=/scratch/kocevski/593981/ltcube_564105601_564364801_4FGL_J2256.0-2740_daily_bin1253.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/593981/ft2_4FGL_J2256.0-2740_daily_bin1253.fits
.....................!
real 12.07
user 11.71
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/593981/ft1_filtered_4FGL_J2256.0-2740_daily_bin1253.fits evtable="EVENTS" scfile=/scratch/kocevski/593981/ft2_4FGL_J2256.0-2740_daily_bin1253.fits sctable="SC_DATA" expcube=/scratch/kocevski/593981/ltcube_564105601_564364801_4FGL_J2256.0-2740_daily_bin1253.fits outfile=/scratch/kocevski/593981/expmap_564105601_564364801_4FGL_J2256.0-2740_daily_bin1253.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/593981/ltcube_564105601_564364801_4FGL_J2256.0-2740_daily_bin1253.fits
.....................!
real 191.15
user 186.36
sys 4.49

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/593981/ft1_filtered_4FGL_J2256.0-2740_daily_bin1253.fits scfile=/scratch/kocevski/593981/ft2_4FGL_J2256.0-2740_daily_bin1253.fits outfile=/scratch/kocevski/593981/cmap_564105601_564364801_4FGL_J2256.0-2740_daily_bin1253.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.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/593981/ft1_filtered_4FGL_J2256.0-2740_daily_bin1253.fits scfile=/scratch/kocevski/593981/ft2_4FGL_J2256.0-2740_daily_bin1253.fits outfile=/scratch/kocevski/593981/cmap_HighResolution_564105601_564364801_4FGL_J2256.0-2740_daily_bin1253.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.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/593981/ft1_filtered_4FGL_J2256.0-2740_daily_bin1253.fits evtable="EVENTS" scfile=/scratch/kocevski/593981/ft2_4FGL_J2256.0-2740_daily_bin1253.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/593981/Model_4FGL_J2256.0-2740_daily_bin1253.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/593981/ft1_filtered_4FGL_J2256.0-2740_daily_bin1253.fits.....................!
real 38.81
user 37.43
sys 1.29

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10165E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    8.7645       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10090E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    5.2370       1.0000         .10000E-03   10000.    
     6 'norm      '    .48799       1.0000         .10000E-03   10000.    
     7 'Prefactor '    94.728       1.0000         .10000E-03   10000.    
     8 'Prefactor '    13.128       1.0000         .10000E-03   10000.    
     9 'norm      '    .10021E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .15300       1.0000         .10000E-03   10000.    
    11 'Prefactor '    20.746       1.0000         .10000E-03   10000.    
    12 'norm      '    .73855       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    3.4769       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    3.5812       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10755E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    91.815       1.0000         .10000E-03   10000.    
    20 'Prefactor '    58.032       1.0000         .10000E-03   10000.    
    21 'Normalizat'    .60477       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.3862       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5610E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   4308.302     FROM MIGRAD    STATUS=CONVERGED    105 CALLS     2071 TOTAL
                     EDM=   .60E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    47.409        .13480E-04** at limit **
   2  Prefactor     .10000E-03    7.7178       -.17627E-05** at limit **
   3  norm          8.7607        1.0450        .14525E-07   -.12203E-03
   4  Prefactor     .10000E-03    14.886        .55696E-05** at limit **
   5  Prefactor     5.2359        8.0205       -.54840E-06    .34182E-02
   6  norm          .48818        3.4185       -.12309E-05    .99859E-05
   7  Prefactor     94.747        1.5745        .39435E-07   -.20696E-02
   8  Prefactor     13.124        1.8853        .93660E-07    .32485E-03
   9  norm          .10000E-03    2.8429       -.29036E-05** at limit **
  10  Prefactor     .10005E-03    441.08       -.10232E-04** at limit **
  11  Prefactor     20.828        5.3600        .89858E-06   -.22763E-02
  12  norm          .73750        .82426        .97934E-06   -.34182E-03
  13  Prefactor     .10007E-03    64.619       -.96941E-05** at limit **
  14  Prefactor     3.4745        4.9630       -.58355E-06   -.46918E-02
  15  Prefactor     .10000E-03    5.4527        .77905E-06** at limit **
  16  norm          3.5827        1.3134       -.55954E-07   -.13479E-03
  17  Prefactor     .10029E-03    85.470       -.78669E-05** at limit **
  18  norm          .10000E-03    1.4338        .33047E-07** at limit **
  19  Prefactor     91.805        1.1433       -.17847E-07    .42746E-03
  20  Prefactor     58.039        1.2624        .24666E-07   -.18452E-02
  21  Normalizat    .60435        .26720       -.49487E-05   -.12467E-04
  22  Prefactor     1.3866        .26309        .30738E-05   -.27943E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  norm       = 8.76072
  Prefactor  = 0.0001
  Prefactor  = 5.23591
  norm       = 0.488184
  Prefactor  = 94.7475
  Prefactor  = 13.1238
  norm       = 0.0001
  Prefactor  = 0.000100048
  Prefactor  = 20.8276
  norm       = 0.737503
  Prefactor  = 0.000100072
  Prefactor  = 3.4745
  Prefactor  = 0.0001
  norm       = 3.58265
  Prefactor  = 0.000100291
  norm       = 0.0001
  Prefactor  = 91.8049
  Prefactor  = 58.0391
  Normalizat = 0.604352
  Prefactor  = 1.38664
 **********
 **   18 **HESSE 
 **********

 FCN=   4308.302     FROM HESSE     STATUS=OK           394 CALLS     2465 TOTAL
                     EDM=   .29E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    47.250        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    7.6733        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          8.7607        26.160        .33849E-02   -1.5116    
   4  Prefactor     .10000E-03    14.874        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     5.2359        9.6721        .43912E-02   -1.5250    
   6  norm          .48818        11.810        .11222E-01   -1.5568    
   7  Prefactor     94.747        103.79        .10324E-02   -1.3758    
   8  Prefactor     13.124        17.113        .27638E-02   -1.4983    
   9  norm          .10000E-03    2.8307        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10005E-03    36.300        .97609E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     20.828        18.653        .21984E-02   -1.4795    
  12  norm          .73750        1.1778        .12209E-01   -1.5536    
  13  Prefactor     .10007E-03    65.873        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     3.4745        8.5274        .54215E-02   -1.5335    
  15  Prefactor     .10000E-03    5.4437        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          3.5827        21.918        .53386E-02   -1.5329    
  17  Prefactor     .10029E-03    94.521        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    1.4224        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     91.805        48.202        .10485E-02   -1.3789    
  20  Prefactor     58.039        133.38        .13166E-02   -1.4183    
  21  Normalizat    .60435        .24389        .74438E-01   -1.0780    
  22  Prefactor     1.3866        .22467        .49999E-01   -.80766    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.85959e-07
Minuit parameter uncertainties:
  1  0.000646879
  2  1.25646e-05
  3  26.1945
  4  6.06012e-05
  5  9.675
  6  4.80293
  7  103.992
  8  17.1192
  9  1.36407e-05
  10  0.00264249
  11  18.6584
  12  1.17782
  13  0.00435249
  14  8.53038
  15  4.63946e-06
  16  17.7323
  17  0.0105113
  18  8.4391e-08
  19  48.2224
  20  134.079
  21  0.244323
  22  0.224827
Done.

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

Extracting fit parameters...

4FGL J2256.0-2740
   Spectrum: PowerLaw
340    Prefactor:  2.083e+01  1.866e+01  1.000e-04  1.000e+04 ( 1.000e-11)
341        Index:  3.023e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
342        Scale:  2.384e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
558    Prefactor:  1.387e+00  2.248e-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:  6.044e-01  2.443e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.03
Ra Dec: 344.025 -27.674
Photon Index (Fixed Index): 3.02 +/- 0.00
Photon Flux (Fixed Index): 1.43e-07 +/- 1.27e-07
Energy Flux (Fixed Index): 2.81e-05 +/- 2.52e-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) = 4308.14165721
delta logL = 0.159885976452

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4308.1365869
delta logL = 0.164956287433

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    21.570       1.0000         .10000E-03   10000.    
     2 'Index     '    2.6874       1.0000          .0000       10.000    
     3 'Normalizat'    .62253       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3700       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=   4308.137     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      205 TOTAL
                     EDM=   .15E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     21.570        11.921        .21560E-02    .46764E-02
   2  Index         2.6873        .49803        .17164       -.29901E-04
   3  Normalizat    .62180        .22697        .73451E-01    .46393E-04
   4  Prefactor     1.3706        .22047        .50215E-01    .18158E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 21.5704
  Index      = 2.68731
  Normalizat = 0.621799
  Prefactor  = 1.37062
 **********
 **   18 **HESSE 
 **********

 FCN=   4308.137     FROM HESSE     STATUS=OK            29 CALLS      234 TOTAL
                     EDM=   .13E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     21.570        11.338        .86242E-04   -1.4779    
   2  Index         2.6873        .52946        .68059E-02   -.48086    
   3  Normalizat    .62180        .27064        .32515E-03   -1.0707    
   4  Prefactor     1.3706        .26280        .22199E-03   -.81231    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.2826e-08
Minuit parameter uncertainties:
  1  11.3393
  2  0.530728
  3  0.271219
  4  0.263058
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/593981': 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) = 4308.13658303
delta logL = 0.164960152049

Extracting fit parameters...

4FGL J2256.0-2740
   Spectrum: PowerLaw
340    Prefactor:  2.157e+01  1.134e+01  1.000e-04  1.000e+04 ( 1.000e-11)
341        Index:  2.687e+00  5.307e-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.371e+00  2.631e-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:  6.218e-01  2.712e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.50
Ra Dec: 344.025 -27.674
Photon Index (Free Index): 2.69 +/- 0.53
Photon Flux (Free Index): 1.32e-07 +/- 7.35e-08
Energy Flux (Free Index): 3.21e-05 +/- 1.85e-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/593981/cmap_HighResolution_564105601_564364801_4FGL_J2256.0-2740_daily_bin1253.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.43e-07', energy_flux2='3.21e-05', photon_flux_error='1.27e-07', dlogl='1.65e-01', energy_flux='2.81e-05', photon_flux2='1.32e-07', job_status='DONE', time_completed='2021-09-29 03:00:35.576348', photon_index_error2='0.53', photon_index2='2.69', ts='5.03', fit_tolerance='1e-08', GAL='1.39', photon_index_error='0.00', energy_flux_error2='1.85e-05', EG='0.60', time_epoch_completed='1632909635.58', return_code='0', job_id='593981', GAL2='1.37', EG2='0.62', return_code2='0', energy_flux_error='2.52e-05', photon_flux_error2='7.35e-08', ts2='5.50', photon_index='3.02' WHERE bin_id='1253' AND source_name='4FGL J2256.0-2740' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 03:00:35 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0298>
Subject: Job 593981: <4FGL_J2256.0-2740_daily_bin1253> in cluster <slac> Done

Job <4FGL_J2256.0-2740_daily_bin1253> 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) <bullet0298>, 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:36 2021
Results reported at Wed Sep 29 03:00:36 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2256.0-2740_daily_bin1253 344.025 -27.6739 564105601 564364801 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 :                                   473.22 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             266.42 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   610 sec.
    Turnaround time :                            613 sec.

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

