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


Performing analysis on: 4FGL_J2256.0-2740_daily_bin681
RA = 344.025, Dec = -27.6739
tmin = 415843201, tmax = 416102401
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='591157', job_status='RUN', time_executed='2021-09-29 02:42:59.830520', time_epoch_executed='1632908579.83' WHERE source_name='4FGL J2256.0-2740' and cadence='daily' and bin_id='681'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/591157

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/591157/ft1_4FGL_J2256.0-2740_daily_bin681.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/591157/ft2_4FGL_J2256.0-2740_daily_bin681.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/591157/ft1_4FGL_J2256.0-2740_daily_bin681.fits outfile=/scratch/kocevski/591157/ft1_filteredMKT_4FGL_J2256.0-2740_daily_bin681.fits ra=344.025 dec=-27.6739 rad=12.0 tmin=415843201.0 tmax=416102401.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 5.86
user 5.58
sys 0.23

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/591157/ft1_filtered_4FGL_J2256.0-2740_daily_bin681.fits" evtable="EVENTS" scfile=/scratch/kocevski/591157/ft2_4FGL_J2256.0-2740_daily_bin681.fits sctable="SC_DATA" outfile=/scratch/kocevski/591157/ltcube_415843201_416102401_4FGL_J2256.0-2740_daily_bin681.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/591157/ft2_4FGL_J2256.0-2740_daily_bin681.fits
.....................!
real 11.86
user 11.50
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/591157/ft1_filtered_4FGL_J2256.0-2740_daily_bin681.fits evtable="EVENTS" scfile=/scratch/kocevski/591157/ft2_4FGL_J2256.0-2740_daily_bin681.fits sctable="SC_DATA" expcube=/scratch/kocevski/591157/ltcube_415843201_416102401_4FGL_J2256.0-2740_daily_bin681.fits outfile=/scratch/kocevski/591157/expmap_415843201_416102401_4FGL_J2256.0-2740_daily_bin681.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/591157/ltcube_415843201_416102401_4FGL_J2256.0-2740_daily_bin681.fits
.....................!
real 190.52
user 185.89
sys 4.26

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/591157/ft1_filtered_4FGL_J2256.0-2740_daily_bin681.fits scfile=/scratch/kocevski/591157/ft2_4FGL_J2256.0-2740_daily_bin681.fits outfile=/scratch/kocevski/591157/cmap_415843201_416102401_4FGL_J2256.0-2740_daily_bin681.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.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/591157/ft1_filtered_4FGL_J2256.0-2740_daily_bin681.fits scfile=/scratch/kocevski/591157/ft2_4FGL_J2256.0-2740_daily_bin681.fits outfile=/scratch/kocevski/591157/cmap_HighResolution_415843201_416102401_4FGL_J2256.0-2740_daily_bin681.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.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/591157/ft1_filtered_4FGL_J2256.0-2740_daily_bin681.fits evtable="EVENTS" scfile=/scratch/kocevski/591157/ft2_4FGL_J2256.0-2740_daily_bin681.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/591157/Model_4FGL_J2256.0-2740_daily_bin681.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/591157/ft1_filtered_4FGL_J2256.0-2740_daily_bin681.fits.....................!
real 34.34
user 32.97
sys 1.19

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    27.285       1.0000         .10000E-03   10000.    
     2 'Prefactor '    1.3272       1.0000         .10000E-03   10000.    
     3 'norm      '    .17480E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    13.684       1.0000         .10000E-03   10000.    
     5 'Prefactor '    10.312       1.0000         .10000E-03   10000.    
     6 'norm      '    .10135E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .46131E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10516E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10012E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    11.833       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10428E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .57297       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .15070E-02   1.0000         .10000E-03   10000.    
    14 'Prefactor '    16.515       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .16358E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    12.627       1.0000         .10000E-03   10000.    
    17 'Prefactor '    86.750       1.0000         .10000E-03   10000.    
    18 'norm      '    .10088E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .21131E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    37.964       1.0000         .10000E-03   10000.    
    21 'Normalizat'    .90821       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .90119       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=   3727.250     FROM MIGRAD    STATUS=CONVERGED    499 CALLS     2838 TOTAL
                     EDM=   .66E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     27.295        27.166       -.43299E-07    .10976E-04
   2  Prefactor     1.3260        10.043        .87855E-05    .17503E-04
   3  norm          .10000E-03    7.8803       -.97971E-07** at limit **
   4  Prefactor     13.769        24.112       -.26404E-06    .21455E-04
   5  Prefactor     10.318        9.2832       -.73580E-07    .16157E-04
   6  norm          .10000E-03    1.3197       -.23780E-06** at limit **
   7  Prefactor     .10000E-03    14.558       -.20494E-06** at limit **
   8  Prefactor     .10000E-03    9.1998       -.57989E-06** at limit **
   9  norm          .10000E-03    1.4686       -.12466E-06** at limit **
  10  Prefactor     11.840        10.127       -.45208E-07    .26048E-04
  11  Prefactor     .10000E-03    3.2282       -.22174E-06** at limit **
  12  norm          .57308        .47618       -.36346E-07    .13606E-04
  13  Prefactor     .10000E-03    21.348       -.20117E-06** at limit **
  14  Prefactor     16.514        14.852       -.69877E-06    .16975E-04
  15  Prefactor     .10000E-03    7.9277       -.47213E-06** at limit **
  16  norm          12.625        8.5925       -.49938E-06    .14653E-04
  17  Prefactor     86.930        57.249        .49080E-05   -.24043E-04
  18  norm          .10000E-03    1.2929        .22239E-07** at limit **
  19  Prefactor     .10000E-03    56.042        .31062E-05** at limit **
  20  Prefactor     38.743        135.61       -.37961E-04   -.11423E-05
  21  Normalizat    .90778        .20935       -.22400E-05    .10591E-03
  22  Prefactor     .90129        .20589        .36462E-05   -.28254E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 27.2948
  Prefactor  = 1.32601
  norm       = 0.0001
  Prefactor  = 13.7686
  Prefactor  = 10.3175
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 11.8395
  Prefactor  = 0.0001
  norm       = 0.573076
  Prefactor  = 0.0001
  Prefactor  = 16.514
  Prefactor  = 0.0001
  norm       = 12.6254
  Prefactor  = 86.93
  norm       = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 38.7428
  Normalizat = 0.907776
  Prefactor  = 0.901291
 **********
 **   18 **HESSE 
 **********

 FCN=   3727.250     FROM HESSE     STATUS=OK           344 CALLS     3182 TOTAL
                     EDM=   .15E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     27.295        27.185        .76695E-04   -1.4663    
   2  Prefactor     1.3260        10.059        .18214E-02   -1.5478    
   3  norm          .10000E-03    7.8835        .16740E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     13.769        24.171        .10828E-03   -1.4966    
   5  Prefactor     10.318        9.2839        .12477E-03   -1.5065    
   6  norm          .10000E-03    1.3619        .13695E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    14.583        .21197E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    9.3465        .18083E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    1.4732        .72233E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     11.840        10.120        .11646E-03   -1.5020    
  11  Prefactor     .10000E-03    3.2435        .10699E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .57308        .47211        .36733E-04   -1.5557    
  13  Prefactor     .10000E-03    21.358        .20467E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     16.514        14.851        .98556E-04   -1.4895    
  15  Prefactor     .10000E-03    8.0504        .16778E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          12.625        8.5921        .11272E-03   -1.4997    
  17  Prefactor     86.930        57.335        .21567E-03   -1.3841    
  18  norm          .10000E-03    1.3012        .67781E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    56.488        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     38.743        136.08        .32524E-03   -1.4462    
  21  Normalizat    .90778        .24754        .22752E-03   -.96187    
  22  Prefactor     .90129        .24308        .23157E-03   -.96096    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.45136e-10
Minuit parameter uncertainties:
  1  27.1974
  2  7.30569
  3  6.45603e-06
  4  24.1882
  5  9.28518
  6  6.38037e-06
  7  1.74385e-05
  8  4.2663e-05
  9  2.80003e-06
  10  10.1216
  11  5.78626e-06
  12  0.472117
  13  2.19844e-05
  14  14.8539
  15  2.55498e-05
  16  8.5929
  17  57.3716
  18  2.15804e-06
  19  0.000675439
  20  137.194
  21  0.247854
  22  0.243372
Done.

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

Extracting fit parameters...

4FGL J2256.0-2740
   Spectrum: PowerLaw
340    Prefactor:  1.000e-04  5.786e-06  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.013e-01  2.434e-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:  9.078e-01  2.479e-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: 8.68e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.95e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/591157/likelihoodResults_415843201_416102401_4FGL_J2256.0-2740_daily_bin681.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): 102
logL (Free Index) = 3727.25150894
delta logL = -0.00146589321412

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 3727.25004302
delta logL = 2.25572875934e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    3.0139       1.0000          .0000       10.000    
     3 'Normalizat'    .90778       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .90131       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=   3727.250     FROM MIGRAD    STATUS=FAILED       131 CALLS      278 TOTAL
                     EDM=   .58E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    252.57        .49858E-01** at limit **
   2  Index         1.7196        5.7874        .50000        .29707E-04
   3  Normalizat    .90777        .65293E-01    .22753E-03   -.73198E-05
   4  Prefactor     .90129        .66024E-01    .23158E-03   -.70202E-05
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   3727.250     FROM SIMPLEX   STATUS=UNCHANGED    153 CALLS      431 TOTAL
                     EDM=   .80E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    252.57        .66233E-03** at limit **
   2  Index         1.7196        5.7874        .69194E-05    .29707E-04
   3  Normalizat    .90777        .65293E-01    .62263E-07   -.73198E-05
   4  Prefactor     .90129        .66024E-01    .19177E-07   -.70202E-05
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   3727.250     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      481 TOTAL
                     EDM=   .57E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    701.36        .17727E-02** at limit **
   2  Index         1.6214        8.3785        .50000       -.20876E-05
   3  Normalizat    .90778        .23598        .91014E-05    .12691E-03
   4  Prefactor     .90129        .24077        .92631E-05    .10592E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.62137
  Normalizat = 0.907775
  Prefactor  = 0.901292
 **********
 **   18 **HESSE 
 **********

 FCN=   3727.250     FROM HESSE     STATUS=OK            29 CALLS      510 TOTAL
                     EDM=   .23E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    21.087        .70910E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.6214        5.7475        .50000       -.74195    
   3  Normalizat    .90778        .23590        .18203E-05   -.96187    
   4  Prefactor     .90129        .24064        .18526E-05   -.96096    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.31028e-10
Minuit parameter uncertainties:
  1  6.98514e-05
  2  25.3826
  3  0.236172
  4  0.240925
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/591157': 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) = 3727.25003
delta logL = 1.30404946503e-05

Extracting fit parameters...

4FGL J2256.0-2740
   Spectrum: PowerLaw
340    Prefactor:  1.000e-04  6.985e-05  1.000e-04  1.000e+04 ( 1.000e-11)
341        Index:  1.621e+00  2.538e+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.013e-01  2.409e-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:  9.078e-01  2.362e-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/591157/cmap_HighResolution_415843201_416102401_4FGL_J2256.0-2740_daily_bin681.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.95e-03', job_status='DONE', photon_flux_upper_limit='8.68e-08', time_completed='2021-09-29 02:52:05.740212', job_id='591157', GAL2='0.90', fit_tolerance='1e-08', EG2='0.91', EG='0.91', time_epoch_completed='1632909125.74', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.90', dlogl='1.30e-05', ts2='-0.00', photon_index_error='0.00', photon_index='3.02' WHERE bin_id='681' AND source_name='4FGL J2256.0-2740' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 02:52:05 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0222>
Subject: Job 591157: <4FGL_J2256.0-2740_daily_bin681> in cluster <slac> Done

Job <4FGL_J2256.0-2740_daily_bin681> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Wed Sep 29 02:40:50 2021
Job was executed on host(s) <bullet0222>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 02:40:52 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:40:52 2021
Terminated at Wed Sep 29 02:52:06 2021
Results reported at Wed Sep 29 02:52:06 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2256.0-2740_daily_bin681 344.025 -27.6739 415843201 416102401 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 :                                   541.42 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             313.80 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   673 sec.
    Turnaround time :                            676 sec.

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

