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


Performing analysis on: 4FGL_J2256.0-2740_daily_bin982
RA = 344.025, Dec = -27.6739
tmin = 493862401, tmax = 494121601
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='592621', job_status='RUN', time_executed='2021-09-29 02:47:45.029691', time_epoch_executed='1632908865.03' WHERE source_name='4FGL J2256.0-2740' and cadence='daily' and bin_id='982'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/592621

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/592621/ft1_4FGL_J2256.0-2740_daily_bin982.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/592621/ft2_4FGL_J2256.0-2740_daily_bin982.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/592621/ft1_4FGL_J2256.0-2740_daily_bin982.fits outfile=/scratch/kocevski/592621/ft1_filteredMKT_4FGL_J2256.0-2740_daily_bin982.fits ra=344.025 dec=-27.6739 rad=12.0 tmin=493862401.0 tmax=494121601.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.57
user 3.36
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/592621/ft1_filtered_4FGL_J2256.0-2740_daily_bin982.fits" evtable="EVENTS" scfile=/scratch/kocevski/592621/ft2_4FGL_J2256.0-2740_daily_bin982.fits sctable="SC_DATA" outfile=/scratch/kocevski/592621/ltcube_493862401_494121601_4FGL_J2256.0-2740_daily_bin982.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/592621/ft2_4FGL_J2256.0-2740_daily_bin982.fits
.....................!
real 12.08
user 11.71
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/592621/ft1_filtered_4FGL_J2256.0-2740_daily_bin982.fits evtable="EVENTS" scfile=/scratch/kocevski/592621/ft2_4FGL_J2256.0-2740_daily_bin982.fits sctable="SC_DATA" expcube=/scratch/kocevski/592621/ltcube_493862401_494121601_4FGL_J2256.0-2740_daily_bin982.fits outfile=/scratch/kocevski/592621/expmap_493862401_494121601_4FGL_J2256.0-2740_daily_bin982.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/592621/ltcube_493862401_494121601_4FGL_J2256.0-2740_daily_bin982.fits
.....................!
real 190.81
user 185.77
sys 4.73

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/592621/ft1_filtered_4FGL_J2256.0-2740_daily_bin982.fits scfile=/scratch/kocevski/592621/ft2_4FGL_J2256.0-2740_daily_bin982.fits outfile=/scratch/kocevski/592621/cmap_493862401_494121601_4FGL_J2256.0-2740_daily_bin982.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.35
sys 0.16

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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/592621/ft1_filtered_4FGL_J2256.0-2740_daily_bin982.fits evtable="EVENTS" scfile=/scratch/kocevski/592621/ft2_4FGL_J2256.0-2740_daily_bin982.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/592621/Model_4FGL_J2256.0-2740_daily_bin982.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/592621/ft1_filtered_4FGL_J2256.0-2740_daily_bin982.fits.....................!
real 44.63
user 43.33
sys 1.22

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    13.622       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    22.687       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    1.5721       1.0000         .10000E-03   10000.    
     6 'norm      '    2.0581       1.0000         .10000E-03   10000.    
     7 'Prefactor '    25.310       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .39535E-02   1.0000         .10000E-03   10000.    
     9 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    6.2863       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10046E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    16.224       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    5.0053       1.0000         .10000E-03   10000.    
    16 'norm      '    11.489       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    .74784       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.0133       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=   5877.130     FROM MIGRAD    STATUS=CONVERGED    476 CALLS     2367 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     13.619        13.708        .96628E-06   -.61771E-04
   2  Prefactor     .10000E-03    6.5512       -.20877E-06** at limit **
   3  norm          22.687        16.739       -.75449E-07   -.32904E-04
   4  Prefactor     .10000E-03    6.8051        .70035E-07** at limit **
   5  Prefactor     1.5685        7.5832        .22921E-05   -.76101E-04
   6  norm          2.0570        2.7722       -.70317E-06   -.73710E-04
   7  Prefactor     25.376        43.018        .35903E-05    .32247E-03
   8  Prefactor     .10036E-03    5.6555        .17682E-05** at limit **
   9  norm          .10000E-03    1.1012        .10289E-07** at limit **
  10  Prefactor     6.2874        6.7735       -.87499E-06    .41334E-04
  11  Prefactor     .10000E-03    4.2002       -.25222E-06** at limit **
  12  norm          .10000E-03    .13468       -.26889E-06** at limit **
  13  Prefactor     16.251        41.642        .24484E-05    .97144E-04
  14  Prefactor     .10000E-03    3.5114       -.60096E-08** at limit **
  15  Prefactor     5.0062        7.2383        .60205E-05   -.36684E-03
  16  norm          11.488        7.0244        .16102E-06   -.17482E-04
  17  Prefactor     .10000E-03    33.614       -.38657E-06** at limit **
  18  norm          .10000E-03    1.5548       -.86003E-07** at limit **
  19  Prefactor     .10000E-03    15.144       -.81092E-07** at limit **
  20  Prefactor     .10000E-03    52.893        .12250E-06** at limit **
  21  Normalizat    .74793        .16021       -.44916E-05   -.13046E-03
  22  Prefactor     1.0133        .15681        .20559E-05   -.49899E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 13.6195
  Prefactor  = 0.0001
  norm       = 22.6874
  Prefactor  = 0.0001
  Prefactor  = 1.56846
  norm       = 2.05704
  Prefactor  = 25.3762
  Prefactor  = 0.000100365
  norm       = 0.0001
  Prefactor  = 6.2874
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 16.2505
  Prefactor  = 0.0001
  Prefactor  = 5.00621
  norm       = 11.4879
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.747935
  Prefactor  = 1.01334
 **********
 **   18 **HESSE 
 **********

 FCN=   5877.130     FROM HESSE     STATUS=OK           338 CALLS     2705 TOTAL
                     EDM=   .84E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     13.619        13.700        .54263E-03   -1.4970    
   2  Prefactor     .10000E-03    6.8419        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          22.687        16.733        .84095E-04   -1.4755    
   4  Prefactor     .10000E-03    6.8187        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     1.5685        7.5289        .33900E-03   -1.5457    
   6  norm          2.0570        2.8041        .10719E-03   -1.5421    
   7  Prefactor     25.376        44.051        .79625E-04   -1.4700    
   8  Prefactor     .10036E-03    55.622        .33683E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    1.1083        .78532E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     6.2874        6.7478        .16010E-03   -1.5206    
  11  Prefactor     .10000E-03    4.2718        .15312E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    .14560        .55442E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     16.251        41.673        .99437E-04   -1.4902    
  14  Prefactor     .10000E-03    3.5182        .14030E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     5.0062        7.3243        .89873E-03   -1.5260    
  16  norm          11.488        7.0229        .11819E-03   -1.5030    
  17  Prefactor     .10000E-03    33.736        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    1.5967        .18655E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    15.186        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    52.950        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    .74793        .18217        .23445E-03   -1.0203    
  22  Prefactor     1.0133        .18417        .20855E-03   -.92286    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.43639e-09
Minuit parameter uncertainties:
  1  13.7028
  2  2.24004e-05
  3  16.7361
  4  2.37472e-05
  5  6.87395
  6  2.80432
  7  44.1072
  8  0.00901387
  9  4.7948e-06
  10  6.74866
  11  9.04808e-05
  12  5.36133e-06
  13  41.7482
  14  3.12333e-06
  15  7.32564
  16  7.02342
  17  5.3415e-05
  18  8.98126e-06
  19  3.34983e-05
  20  0.000193966
  21  0.182319
  22  0.184284
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
558    Prefactor:  1.013e+00  1.843e-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.479e-01  1.823e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/592621/likelihoodResults_493862401_494121601_4FGL_J2256.0-2740_daily_bin982.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5877.13089074
delta logL = -0.00111624609053

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5877.12977445
delta logL = 3.61578713637e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    3.0376       1.0000          .0000       10.000    
     3 'Normalizat'    .74795       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0134       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5610E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   5877.120     FROM MIGRAD    STATUS=FAILED       159 CALLS      308 TOTAL
                     EDM=   .31E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .21465E-01    2.9806        .82965E-02    .36543E-02
   2  Index         8.7956        6.9208        .20000        .14073E-03
   3  Normalizat    .73964        .18954E-01    .23445E-03   -.30088E-03
   4  Prefactor     1.0190        .19428E-01    .20855E-03   -.32316E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   5877.120     FROM SIMPLEX   STATUS=UNCHANGED     75 CALLS      383 TOTAL
                     EDM=   .19E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .21465E-01    2.9806        .10964E-03    .36543E-02
   2  Index         8.7956        6.9208        .21998E-01    .14073E-03
   3  Normalizat    .73964        .18954E-01    .14034E-03   -.30088E-03
   4  Prefactor     1.0190        .19428E-01    .54379E-04   -.32316E-03
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5877.120     FROM MIGRAD    STATUS=CONVERGED     33 CALLS      416 TOTAL
                     EDM=   .10E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .21462E-01    47.042        .51406E-03    .10440E-02
   2  Index         8.7958        7.1440        .40000E-01    .12673E-05
   3  Normalizat    .73964        .87410E-01    .93781E-05   -.22305E-03
   4  Prefactor     1.0190        .83362E-01    .41709E-04   -.27317E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0214617
  Index      = 8.79585
  Normalizat = 0.739643
  Prefactor  = 1.01903
 **********
 **   18 **HESSE 
 **********

 FCN=   5877.120     FROM HESSE     STATUS=OK            27 CALLS      443 TOTAL
                     EDM=   .10E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .21462E-01    2.7300        .20563E-04   -1.5679    
   2  Index         8.7958        9.2909        .16000E-02    .86204    
   3  Normalizat    .73964        .18798        .18756E-05   -1.0235    
   4  Prefactor     1.0190        .18756        .83419E-05   -.92098    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.04311e-10
Minuit parameter uncertainties:
  1  0.483
  2  27.4101
  3  0.188147
  4  0.187675
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/592621': 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) = 5877.12033341
delta logL = 0.00944107533815

Extracting fit parameters...

4FGL J2256.0-2740
   Spectrum: PowerLaw
340    Prefactor:  2.146e-02  4.830e-01  1.000e-04  1.000e+04 ( 1.000e-11)
341        Index:  8.796e+00  2.741e+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.019e+00  1.877e-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.396e-01  1.881e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 344.025 -27.674

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/592621/cmap_HighResolution_493862401_494121601_4FGL_J2256.0-2740_daily_bin982.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.10e-03', job_status='DONE', photon_flux_upper_limit='7.62e-08', time_completed='2021-09-29 02:58:17.381876', job_id='592621', GAL2='1.02', fit_tolerance='1e-08', EG2='0.74', EG='0.75', time_epoch_completed='1632909497.38', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.01', dlogl='9.44e-03', ts2='0.02', photon_index_error='0.00', photon_index='3.02' WHERE bin_id='982' AND source_name='4FGL J2256.0-2740' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 02:58:17 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0240>
Subject: Job 592621: <4FGL_J2256.0-2740_daily_bin982> in cluster <slac> Done

Job <4FGL_J2256.0-2740_daily_bin982> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Sep 29 02:45:40 2021
Job was executed on host(s) <bullet0240>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 02:45:41 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:41 2021
Terminated at Wed Sep 29 02:58:18 2021
Results reported at Wed Sep 29 02:58:18 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2256.0-2740_daily_bin982 344.025 -27.6739 493862401 494121601 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 :                                   611.04 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             288.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   756 sec.
    Turnaround time :                            758 sec.

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

