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


Performing analysis on: 4FGL_J2256.0-2740_daily_bin594
RA = 344.025, Dec = -27.6739
tmin = 393292801, tmax = 393552001
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='591022', job_status='RUN', time_executed='2021-09-29 02:43:24.449256', time_epoch_executed='1632908604.45' WHERE source_name='4FGL J2256.0-2740' and cadence='daily' and bin_id='594'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/591022

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/591022/ft1_4FGL_J2256.0-2740_daily_bin594.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/591022/ft2_4FGL_J2256.0-2740_daily_bin594.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/591022/ft1_4FGL_J2256.0-2740_daily_bin594.fits outfile=/scratch/kocevski/591022/ft1_filteredMKT_4FGL_J2256.0-2740_daily_bin594.fits ra=344.025 dec=-27.6739 rad=12.0 tmin=393292801.0 tmax=393552001.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 4.65
user 4.40
sys 0.23

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/591022/ft1_filtered_4FGL_J2256.0-2740_daily_bin594.fits evtable="EVENTS" scfile=/scratch/kocevski/591022/ft2_4FGL_J2256.0-2740_daily_bin594.fits sctable="SC_DATA" expcube=/scratch/kocevski/591022/ltcube_393292801_393552001_4FGL_J2256.0-2740_daily_bin594.fits outfile=/scratch/kocevski/591022/expmap_393292801_393552001_4FGL_J2256.0-2740_daily_bin594.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/591022/ltcube_393292801_393552001_4FGL_J2256.0-2740_daily_bin594.fits
.....................!
real 191.57
user 186.29
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/591022/ft1_filtered_4FGL_J2256.0-2740_daily_bin594.fits scfile=/scratch/kocevski/591022/ft2_4FGL_J2256.0-2740_daily_bin594.fits outfile=/scratch/kocevski/591022/cmap_393292801_393552001_4FGL_J2256.0-2740_daily_bin594.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/591022/ft1_filtered_4FGL_J2256.0-2740_daily_bin594.fits scfile=/scratch/kocevski/591022/ft2_4FGL_J2256.0-2740_daily_bin594.fits outfile=/scratch/kocevski/591022/cmap_HighResolution_393292801_393552001_4FGL_J2256.0-2740_daily_bin594.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/591022/ft1_filtered_4FGL_J2256.0-2740_daily_bin594.fits evtable="EVENTS" scfile=/scratch/kocevski/591022/ft2_4FGL_J2256.0-2740_daily_bin594.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/591022/Model_4FGL_J2256.0-2740_daily_bin594.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/591022/ft1_filtered_4FGL_J2256.0-2740_daily_bin594.fits.....................!
real 45.48
user 44.15
sys 1.24

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    12.393       1.0000         .10000E-03   10000.    
     2 'Prefactor '    2.3159       1.0000         .10000E-03   10000.    
     3 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    24.240       1.0000         .10000E-03   10000.    
     5 'Prefactor '    12.000       1.0000         .10000E-03   10000.    
     6 'norm      '    3.9751       1.0000         .10000E-03   10000.    
     7 'Prefactor '    8.7478       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    6.3990       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10059E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    22.695       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    4.2438       1.0000         .10000E-03   10000.    
    16 'norm      '    17.840       1.0000         .10000E-03   10000.    
    17 'Prefactor '    5.8116       1.0000         .10000E-03   10000.    
    18 'norm      '    8.3103       1.0000         .10000E-03   10000.    
    19 'Prefactor '    23.046       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.3994       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .54620       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=   5506.932     FROM MIGRAD    STATUS=CONVERGED    465 CALLS     2353 TOTAL
                     EDM=   .92E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     12.393        17.942       -.78908E-06   -.40141E-04
   2  Prefactor     2.3159        5.2771       -.56994E-06   -.56873E-03
   3  norm          .10000E-03    30.389       -.50699E-05** at limit **
   4  Prefactor     24.239        14.290        .56861E-06   -.11305E-05
   5  Prefactor     11.999        15.035       -.93484E-05   -.24316E-03
   6  norm          3.9747        2.6021       -.33709E-05    .73904E-03
   7  Prefactor     8.7811        60.984        .88674E-04   -.12855E-05
   8  Prefactor     .10000E-03    5.4819       -.59485E-06** at limit **
   9  norm          6.4013        4.7518       -.10837E-05   -.33259E-03
  10  Prefactor     .10000E-03    5.8560       -.27460E-06** at limit **
  11  Prefactor     .10000E-03    3.4350       -.16673E-06** at limit **
  12  norm          .10000E-03    .22681        .87725E-08** at limit **
  13  Prefactor     22.646        55.737       -.88622E-04   -.81184E-05
  14  Prefactor     .10000E-03    3.2090       -.17964E-06** at limit **
  15  Prefactor     4.2443        4.7056       -.63515E-06   -.10372E-04
  16  norm          17.839        11.159       -.23699E-05   -.24214E-03
  17  Prefactor     5.8439        121.78        .11215E-03   -.16321E-05
  18  norm          8.3104        4.1301        .24529E-06   -.12953E-03
  19  Prefactor     23.038        35.118       -.10479E-04   -.35114E-04
  20  Prefactor     .10000E-03    39.049        .62680E-05** at limit **
  21  Normalizat    1.3994        .19404       -.41987E-05    .15559E-03
  22  Prefactor     .54626        .17388        .68063E-05   -.32185E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 12.3925
  Prefactor  = 2.31593
  norm       = 0.0001
  Prefactor  = 24.2389
  Prefactor  = 11.9992
  norm       = 3.97467
  Prefactor  = 8.78105
  Prefactor  = 0.0001
  norm       = 6.40135
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 22.6461
  Prefactor  = 0.0001
  Prefactor  = 4.2443
  norm       = 17.8391
  Prefactor  = 5.84388
  norm       = 8.31039
  Prefactor  = 23.0382
  Prefactor  = 0.0001
  Normalizat = 1.39935
  Prefactor  = 0.546264
 **********
 **   18 **HESSE 
 **********

 FCN=   5506.932     FROM HESSE     STATUS=OK           348 CALLS     2701 TOTAL
                     EDM=   .25E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     12.393        17.944        .11379E-03   -1.5004    
   2  Prefactor     2.3159        5.2625        .24754E-03   -1.5404    
   3  norm          .10000E-03    30.587        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     24.239        14.290        .81361E-04   -1.4723    
   5  Prefactor     11.999        15.079        .11564E-03   -1.5015    
   6  norm          3.9747        2.6116        .83405E-04   -1.5309    
   7  Prefactor     8.7811        61.004        .13552E-03   -1.5115    
   8  Prefactor     .10000E-03    5.5331        .16964E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          6.4013        4.6148        .12827E-03   -1.5202    
  10  Prefactor     .10000E-03    5.8670        .17522E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    3.4519        .13400E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    .38285        .66401E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     22.646        55.919        .84080E-04   -1.4756    
  14  Prefactor     .10000E-03    3.2102        .12983E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     4.2443        4.6939        .16403E-03   -1.5296    
  16  norm          17.839        11.156        .94824E-04   -1.4863    
  17  Prefactor     5.8439        122.65        .16660E-03   -1.5224    
  18  norm          8.3104        4.1296        .99424E-04   -1.5131    
  19  Prefactor     23.038        35.297        .83439E-04   -1.4748    
  20  Prefactor     .10000E-03    39.058        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    1.3994        .23329        .20948E-03   -.80647    
  22  Prefactor     .54626        .20443        .30306E-03   -1.0990    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.47581e-09
Minuit parameter uncertainties:
  1  17.9515
  2  5.26353
  3  0.000236684
  4  14.2918
  5  15.0837
  6  2.61168
  7  46.357
  8  4.34095e-05
  9  4.61502
  10  3.17221e-06
  11  1.72654e-05
  12  4.64602e-06
  13  56.0492
  14  6.88176e-07
  15  4.69432
  16  11.1569
  17  53.6704
  18  4.12975
  19  35.3293
  20  3.72061e-06
  21  0.233468
  22  0.204708
Done.

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

Extracting fit parameters...

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

EG_v02
   Spectrum: FileFunction
557   Normalization:  1.399e+00  2.335e-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.32e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.66e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/591022/likelihoodResults_393292801_393552001_4FGL_J2256.0-2740_daily_bin594.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) = 5506.93309894
delta logL = -0.00137681448632

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5506.93172399
delta logL = -1.85999306268e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11163E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    3.0171       1.0000          .0000       10.000    
     3 'Normalizat'    1.3995       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .54617       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.

 FCN=   5506.932     FROM MIGRAD    STATUS=CONVERGED     99 CALLS      254 TOTAL
                     EDM=   .64E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    664.98        .13418E-02** at limit **
   2  Index         2.7775        5.8247        .50000       -.12353E-06
   3  Normalizat    1.3993        .93236E-01    .20948E-03    .17299E-03
   4  Prefactor     .54627        .88472E-01    .30306E-03    .11562E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.77747
  Normalizat = 1.39935
  Prefactor  = 0.546271
 **********
 **   18 **HESSE 
 **********

 FCN=   5506.932     FROM HESSE     STATUS=OK            29 CALLS      283 TOTAL
                     EDM=   .51E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    3.9855        .26837E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.7775        8.5714        .50000       -.46062    
   3  Normalizat    1.3993        .21116        .41895E-04   -.80648    
   4  Prefactor     .54627        .20033        .12122E-04   -1.0990    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.06931e-11
Minuit parameter uncertainties:
  1  2.31987e-05
  2  104.269
  3  0.211294
  4  0.200586
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/591022': 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) = 5506.93172167
delta logL = 4.62606294604e-07

Extracting fit parameters...

4FGL J2256.0-2740
   Spectrum: PowerLaw
340    Prefactor:  1.000e-04  2.320e-05  1.000e-04  1.000e+04 ( 1.000e-11)
341        Index:  2.777e+00  1.043e+02  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:  5.463e-01  2.006e-01  0.000e+00  1.000e+01 ( 1.000e+00)
559        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
560        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
557   Normalization:  1.399e+00  2.113e-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/591022/cmap_HighResolution_393292801_393552001_4FGL_J2256.0-2740_daily_bin594.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.66e-03', job_status='DONE', photon_flux_upper_limit='8.32e-08', time_completed='2021-09-29 02:53:25.601508', job_id='591022', GAL2='0.55', fit_tolerance='1e-08', EG2='1.40', EG='1.40', time_epoch_completed='1632909205.6', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.55', dlogl='4.63e-07', ts2='-0.00', photon_index_error='0.00', photon_index='3.02' WHERE bin_id='594' AND source_name='4FGL J2256.0-2740' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 02:53:25 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0078>
Subject: Job 591022: <4FGL_J2256.0-2740_daily_bin594> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2256.0-2740_daily_bin594 344.025 -27.6739 393292801 393552001 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 :                                   598.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             273.42 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   763 sec.
    Turnaround time :                            765 sec.

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

