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


Performing analysis on: 4FGL_J2256.0-2740_daily_bin1427
RA = 344.025, Dec = -27.6739
tmin = 609206401, tmax = 609465601
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='594240', job_status='RUN', time_executed='2021-09-29 02:52:03.556498', time_epoch_executed='1632909123.56' WHERE source_name='4FGL J2256.0-2740' and cadence='daily' and bin_id='1427'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/594240

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/594240/ft1_4FGL_J2256.0-2740_daily_bin1427.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/594240/ft2_4FGL_J2256.0-2740_daily_bin1427.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/594240/ft1_4FGL_J2256.0-2740_daily_bin1427.fits outfile=/scratch/kocevski/594240/ft1_filteredMKT_4FGL_J2256.0-2740_daily_bin1427.fits ra=344.025 dec=-27.6739 rad=12.0 tmin=609206401.0 tmax=609465601.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.00
user 2.80
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/594240/ft2_4FGL_J2256.0-2740_daily_bin1427.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/594240/ft1_filteredMKT_4FGL_J2256.0-2740_daily_bin1427.fits evtable="EVENTS" outfile="/scratch/kocevski/594240/ft1_filtered_4FGL_J2256.0-2740_daily_bin1427.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.49
user 0.33
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/594240/ft1_filtered_4FGL_J2256.0-2740_daily_bin1427.fits" evtable="EVENTS" scfile=/scratch/kocevski/594240/ft2_4FGL_J2256.0-2740_daily_bin1427.fits sctable="SC_DATA" outfile=/scratch/kocevski/594240/ltcube_609206401_609465601_4FGL_J2256.0-2740_daily_bin1427.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/594240/ft2_4FGL_J2256.0-2740_daily_bin1427.fits
.....................!
real 14.28
user 13.91
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/594240/ft1_filtered_4FGL_J2256.0-2740_daily_bin1427.fits evtable="EVENTS" scfile=/scratch/kocevski/594240/ft2_4FGL_J2256.0-2740_daily_bin1427.fits sctable="SC_DATA" expcube=/scratch/kocevski/594240/ltcube_609206401_609465601_4FGL_J2256.0-2740_daily_bin1427.fits outfile=/scratch/kocevski/594240/expmap_609206401_609465601_4FGL_J2256.0-2740_daily_bin1427.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/594240/ltcube_609206401_609465601_4FGL_J2256.0-2740_daily_bin1427.fits
.....................!
real 197.61
user 193.22
sys 4.05

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/594240/ft1_filtered_4FGL_J2256.0-2740_daily_bin1427.fits scfile=/scratch/kocevski/594240/ft2_4FGL_J2256.0-2740_daily_bin1427.fits outfile=/scratch/kocevski/594240/cmap_609206401_609465601_4FGL_J2256.0-2740_daily_bin1427.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.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/594240/ft1_filtered_4FGL_J2256.0-2740_daily_bin1427.fits scfile=/scratch/kocevski/594240/ft2_4FGL_J2256.0-2740_daily_bin1427.fits outfile=/scratch/kocevski/594240/cmap_HighResolution_609206401_609465601_4FGL_J2256.0-2740_daily_bin1427.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/594240/ft1_filtered_4FGL_J2256.0-2740_daily_bin1427.fits evtable="EVENTS" scfile=/scratch/kocevski/594240/ft2_4FGL_J2256.0-2740_daily_bin1427.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/594240/Model_4FGL_J2256.0-2740_daily_bin1427.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/594240/ft1_filtered_4FGL_J2256.0-2740_daily_bin1427.fits.....................!
real 50.65
user 49.36
sys 1.20

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .11351E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    71.287       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .55242       1.0000         .10000E-03   10000.    
     5 'Prefactor '    12.202       1.0000         .10000E-03   10000.    
     6 'norm      '    .27480E-02   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10597E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    5.7046       1.0000         .10000E-03   10000.    
     9 'norm      '    .17887E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .11698E-02   1.0000         .10000E-03   10000.    
    12 'norm      '    .46357       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    2.9511       1.0000         .10000E-03   10000.    
    16 'norm      '    11.560       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10054E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    12.746       1.0000         .10000E-03   10000.    
    20 'Prefactor '    41.483       1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.1004       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.0247       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=   6635.345     FROM MIGRAD    STATUS=CONVERGED    494 CALLS     2446 TOTAL
                     EDM=   .70E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    4.6161       -.38782E-07** at limit **
   2  Prefactor     .10005E-03    4.3756       -.90270E-06** at limit **
   3  norm          71.281        29.526       -.26441E-05    .78552E-04
   4  Prefactor     .52448        11.790       -.25640E-05   -.21283E-04
   5  Prefactor     12.203        9.7972       -.10295E-05    .32797E-04
   6  norm          .10000E-03    .99815       -.10215E-06** at limit **
   7  Prefactor     .10000E-03    50.111        .13707E-05** at limit **
   8  Prefactor     5.7041        11.415       -.24127E-05    .18262E-04
   9  norm          .10000E-03    2.1526       -.16039E-06** at limit **
  10  Prefactor     .10000E-03    4.0853        .13599E-06** at limit **
  11  Prefactor     .10001E-03    5.3977       -.99856E-08** at limit **
  12  norm          .46216        .62093       -.77295E-07   -.62406E-03
  13  Prefactor     .10000E-03    70.989        .27399E-04** at limit **
  14  Prefactor     .10000E-03    8.8604       -.86432E-07** at limit **
  15  Prefactor     2.9419        10.098       -.23933E-05   -.23913E-03
  16  norm          11.560        7.2050       -.52775E-06    .79252E-04
  17  Prefactor     .10000E-03    45.592       -.18706E-04** at limit **
  18  norm          .10000E-03    1.9747       -.57092E-07** at limit **
  19  Prefactor     12.749        32.310        .11976E-04    .58549E-04
  20  Prefactor     41.343        68.244       -.17572E-03    .86462E-05
  21  Normalizat    1.1000        .18724        .60197E-05    .19242E-03
  22  Prefactor     1.0251        .17519        .10699E-05    .56089E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.000100047
  norm       = 71.2806
  Prefactor  = 0.524485
  Prefactor  = 12.2035
  norm       = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 5.70408
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100008
  norm       = 0.462156
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 2.94188
  norm       = 11.5604
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 12.7489
  Prefactor  = 41.3434
  Normalizat = 1.10004
  Prefactor  = 1.02514
 **********
 **   18 **HESSE 
 **********

 FCN=   6635.345     FROM HESSE     STATUS=OK           356 CALLS     2802 TOTAL
                     EDM=   .36E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    4.6217        .17092E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10005E-03    27.376        .31991E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          71.281        29.494        .47547E-04   -1.4017    
   4  Prefactor     .52448        103.43        .52931E-02   -1.5563    
   5  Prefactor     12.203        9.7865        .11467E-03   -1.5009    
   6  norm          .10000E-03    1.5143        .30420E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    50.363        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     5.7041        11.434        .16818E-03   -1.5230    
   9  norm          .10000E-03    5.3674        .22327E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    4.0875        .16072E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10001E-03    22.289        .28840E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .46216        .51323        .57351E-03   -1.5572    
  13  Prefactor     .10000E-03    71.476        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    8.9156        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     2.9419        9.2363        .23641E-03   -1.5365    
  16  norm          11.560        7.2077        .11783E-03   -1.5028    
  17  Prefactor     .10000E-03    45.790        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    2.0167        .22307E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     12.749        32.356        .11220E-03   -1.4994    
  20  Prefactor     41.343        68.313        .31119E-03   -1.4421    
  21  Normalizat    1.1000        .22585        .24261E-03   -.89751    
  22  Prefactor     1.0251        .21400        .24718E-03   -.91896    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.57201e-08
Minuit parameter uncertainties:
  1  1.35093e-05
  2  0.00227855
  3  29.5005
  4  14.7553
  5  9.78773
  6  6.02495e-05
  7  0.00010437
  8  11.4388
  9  2.59283e-05
  10  1.35481e-06
  11  0.000824526
  12  0.513235
  13  0.000526164
  14  3.93349e-05
  15  9.24082
  16  7.20821
  17  4.24429e-05
  18  1.67831e-05
  19  32.4001
  20  68.4428
  21  0.226051
  22  0.214176
Done.

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

Extracting fit parameters...

4FGL J2256.0-2740
   Spectrum: PowerLaw
340    Prefactor:  1.000e-04  8.245e-04  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.025e+00  2.142e-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.100e+00  2.261e-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: 1.06e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.51e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/594240/likelihoodResults_609206401_609465601_4FGL_J2256.0-2740_daily_bin1427.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) = 6635.34561002
delta logL = -0.000213909427657

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6635.34539774
delta logL = -1.63055574376e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .17772E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    3.0895       1.0000          .0000       10.000    
     3 'Normalizat'    1.1001       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0252       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=   6635.341     FROM MIGRAD    STATUS=FAILED       183 CALLS      355 TOTAL
                     EDM=   .73E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .42074        992.67        .35860E-02   -.44774E-02
   2  Index         4.2291        6.6148        .50000        .20916E-04
   3  Normalizat    1.0934        .53036E-01    .24261E-03    .93767E-04
   4  Prefactor     1.0291        .49768E-01    .24718E-03   -.61677E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   6635.341     FROM SIMPLEX   STATUS=UNCHANGED     98 CALLS      453 TOTAL
                     EDM=   .71E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .42074        992.67        .34432E-03   -.44774E-02
   2  Index         4.2291        6.6148        .52848E-02    .20916E-04
   3  Normalizat    1.0934        .53036E-01    .83742E-04    .93767E-04
   4  Prefactor     1.0291        .49768E-01    .44342E-04   -.61677E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6635.341     FROM MIGRAD    STATUS=CONVERGED     45 CALLS      498 TOTAL
                     EDM=   .13E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .42074        21.170         .0000        .19640E-04
   2  Index         4.2291        7.0084         .0000        .91629E-04
   3  Normalizat    1.0934        .22461         .0000        .81302E-04
   4  Prefactor     1.0291        .21549         .0000       -.68990E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.420737
  Index      = 4.22907
  Normalizat = 1.09342
  Prefactor  = 1.02912
 **********
 **   18 **HESSE 
 **********

 FCN=   6635.341     FROM HESSE     STATUS=OK            27 CALLS      525 TOTAL
                     EDM=   .13E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .42074        14.581        .28688E-04   -1.5838    
   2  Index         4.2291        7.1145        .13455E-01   -.15480    
   3  Normalizat    1.0934        .22446        .19409E-05   -.89963    
   4  Prefactor     1.0291        .21567        .19774E-05   -.91765    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.27505e-10
Minuit parameter uncertainties:
  1  4.95448
  2  7.02155
  3  0.224656
  4  0.215849
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/594240': 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) = 6635.34107048
delta logL = 0.00432563217419

Extracting fit parameters...

4FGL J2256.0-2740
   Spectrum: PowerLaw
340    Prefactor:  4.207e-01  4.954e+00  1.000e-04  1.000e+04 ( 1.000e-11)
341        Index:  4.229e+00  7.022e+00  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.029e+00  2.158e-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.093e+00  2.247e-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/594240/cmap_HighResolution_609206401_609465601_4FGL_J2256.0-2740_daily_bin1427.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.51e-03', job_status='DONE', photon_flux_upper_limit='1.06e-07', time_completed='2021-09-29 03:04:50.140405', job_id='594240', GAL2='1.03', fit_tolerance='1e-08', EG2='1.09', EG='1.10', time_epoch_completed='1632909890.14', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.03', dlogl='4.33e-03', ts2='0.01', photon_index_error='0.00', photon_index='3.02' WHERE bin_id='1427' AND source_name='4FGL J2256.0-2740' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 03:04:50 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0032>
Subject: Job 594240: <4FGL_J2256.0-2740_daily_bin1427> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2256.0-2740_daily_bin1427 344.025 -27.6739 609206401 609465601 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 :                                   674.00 sec.
    Max Memory :                                 1246 MB
    Average Memory :                             321.17 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   845 sec.
    Turnaround time :                            848 sec.

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

