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


Performing analysis on: 4FGL_J2256.0-2740_daily_bin1167
RA = 344.025, Dec = -27.6739
tmin = 541814401, tmax = 542073601
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='593856', job_status='RUN', time_executed='2021-09-29 02:51:18.198214', time_epoch_executed='1632909078.2' WHERE source_name='4FGL J2256.0-2740' and cadence='daily' and bin_id='1167'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/593856

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/593856/ft1_4FGL_J2256.0-2740_daily_bin1167.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/593856/ft2_4FGL_J2256.0-2740_daily_bin1167.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/593856/ft1_4FGL_J2256.0-2740_daily_bin1167.fits outfile=/scratch/kocevski/593856/ft1_filteredMKT_4FGL_J2256.0-2740_daily_bin1167.fits ra=344.025 dec=-27.6739 rad=12.0 tmin=541814401.0 tmax=542073601.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.72
user 3.47
sys 0.17

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/593856/ft2_4FGL_J2256.0-2740_daily_bin1167.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/593856/ft1_filteredMKT_4FGL_J2256.0-2740_daily_bin1167.fits evtable="EVENTS" outfile="/scratch/kocevski/593856/ft1_filtered_4FGL_J2256.0-2740_daily_bin1167.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.50
user 0.34
sys 0.13

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/593856/ft1_filtered_4FGL_J2256.0-2740_daily_bin1167.fits" evtable="EVENTS" scfile=/scratch/kocevski/593856/ft2_4FGL_J2256.0-2740_daily_bin1167.fits sctable="SC_DATA" outfile=/scratch/kocevski/593856/ltcube_541814401_542073601_4FGL_J2256.0-2740_daily_bin1167.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/593856/ft2_4FGL_J2256.0-2740_daily_bin1167.fits
.....................!
real 12.00
user 11.66
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/593856/ft1_filtered_4FGL_J2256.0-2740_daily_bin1167.fits evtable="EVENTS" scfile=/scratch/kocevski/593856/ft2_4FGL_J2256.0-2740_daily_bin1167.fits sctable="SC_DATA" expcube=/scratch/kocevski/593856/ltcube_541814401_542073601_4FGL_J2256.0-2740_daily_bin1167.fits outfile=/scratch/kocevski/593856/expmap_541814401_542073601_4FGL_J2256.0-2740_daily_bin1167.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/593856/ltcube_541814401_542073601_4FGL_J2256.0-2740_daily_bin1167.fits
.....................!
real 191.35
user 186.87
sys 4.12

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/593856/ft1_filtered_4FGL_J2256.0-2740_daily_bin1167.fits scfile=/scratch/kocevski/593856/ft2_4FGL_J2256.0-2740_daily_bin1167.fits outfile=/scratch/kocevski/593856/cmap_541814401_542073601_4FGL_J2256.0-2740_daily_bin1167.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.53
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/593856/ft1_filtered_4FGL_J2256.0-2740_daily_bin1167.fits scfile=/scratch/kocevski/593856/ft2_4FGL_J2256.0-2740_daily_bin1167.fits outfile=/scratch/kocevski/593856/cmap_HighResolution_541814401_542073601_4FGL_J2256.0-2740_daily_bin1167.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/593856/ft1_filtered_4FGL_J2256.0-2740_daily_bin1167.fits evtable="EVENTS" scfile=/scratch/kocevski/593856/ft2_4FGL_J2256.0-2740_daily_bin1167.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/593856/Model_4FGL_J2256.0-2740_daily_bin1167.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/593856/ft1_filtered_4FGL_J2256.0-2740_daily_bin1167.fits.....................!
real 38.95
user 37.70
sys 1.13

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .19305E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    4.7695       1.0000         .10000E-03   10000.    
     3 'norm      '    11.313       1.0000         .10000E-03   10000.    
     4 'Prefactor '    23.569       1.0000         .10000E-03   10000.    
     5 'Prefactor '    39.787       1.0000         .10000E-03   10000.    
     6 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10340E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    1.9405       1.0000         .10000E-03   10000.    
     9 'norm      '    .16753E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10305E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .11321E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    2.1254       1.0000         .10000E-03   10000.    
    13 'Prefactor '    6.3714       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    17.369       1.0000         .10000E-03   10000.    
    16 'norm      '    .29524E-01   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10477E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    52.051       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    .77282       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.1522       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=   4290.448     FROM MIGRAD    STATUS=CONVERGED    514 CALLS     2431 TOTAL
                     EDM=   .22E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10019E-03    20.505        .45477E-06** at limit **
   2  Prefactor     4.7698        11.670       -.14776E-04   -.10833E-03
   3  norm          11.313        27.422        .59738E-06   -.13757E-04
   4  Prefactor     23.565        26.517        .72417E-06    .51770E-04
   5  Prefactor     39.781        23.127        .11567E-05   -.29150E-04
   6  norm          .10000E-03    .90926        .23204E-08** at limit **
   7  Prefactor     .10000E-03    54.991        .92408E-05** at limit **
   8  Prefactor     1.9368        37.346       -.81122E-06   -.74356E-04
   9  norm          .10000E-03    3.3142       -.95295E-07** at limit **
  10  Prefactor     .10000E-03    7.5562       -.21940E-08** at limit **
  11  Prefactor     .10000E-03    23.295       -.31810E-06** at limit **
  12  norm          2.1256        .89935       -.43762E-07    .98347E-04
  13  Prefactor     6.3586        179.95       -.19985E-04    .22083E-05
  14  Prefactor     .10000E-03    8.5222       -.76965E-07** at limit **
  15  Prefactor     17.370        13.665       -.35110E-06    .45339E-05
  16  norm          .10033E-03    7.8381       -.48315E-06** at limit **
  17  Prefactor     .10000E-03    68.914       -.96874E-05** at limit **
  18  norm          .10000E-03    1.4169       -.68838E-07** at limit **
  19  Prefactor     52.042        40.681       -.33709E-06    .11563E-04
  20  Prefactor     .10000E-03    44.097       -.29976E-05** at limit **
  21  Normalizat    .77297        .22894        .29534E-05    .43050E-04
  22  Prefactor     1.1521        .20418        .34321E-06    .12237E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100192
  Prefactor  = 4.76981
  norm       = 11.3132
  Prefactor  = 23.5651
  Prefactor  = 39.7806
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.9368
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.12561
  Prefactor  = 6.35859
  Prefactor  = 0.0001
  Prefactor  = 17.3696
  norm       = 0.000100331
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 52.0424
  Prefactor  = 0.0001
  Normalizat = 0.772967
  Prefactor  = 1.15214
 **********
 **   18 **HESSE 
 **********

 FCN=   4290.448     FROM HESSE     STATUS=OK           356 CALLS     2787 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10019E-03    132.76        .57137E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     4.7698        11.792        .18423E-03   -1.5271    
   3  norm          11.313        27.419        .11911E-03   -1.5035    
   4  Prefactor     23.565        26.500        .82509E-04   -1.4737    
   5  Prefactor     39.781        23.189        .63547E-04   -1.4446    
   6  norm          .10000E-03    .91211        .60978E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    54.915        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     1.9368        37.275        .29803E-03   -1.5430    
   9  norm          .10000E-03    10.422        .22838E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    7.5624        .17579E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    23.782        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          2.1256        .88822        .36772E-04   -1.5416    
  13  Prefactor     6.3586        180.23        .15901E-03   -1.5204    
  14  Prefactor     .10000E-03    8.5338        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     17.370        13.722        .96103E-04   -1.4874    
  16  norm          .10033E-03    9.5511        .57257E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    69.304        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    1.4274        .76069E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     52.042        40.758        .55590E-04   -1.4264    
  20  Prefactor     .10000E-03    44.105        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    .77297        .27462        .28318E-03   -1.0108    
  22  Prefactor     1.1521        .24575        .22860E-03   -.87817    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.56412e-09
Minuit parameter uncertainties:
  1  0.0101193
  2  11.7982
  3  27.4491
  4  26.5128
  5  23.1942
  6  2.93632e-06
  7  0.000170594
  8  17.0053
  9  3.51742e-05
  10  3.55401e-06
  11  6.44595e-05
  12  0.888224
  13  67.9314
  14  1.18359e-05
  15  13.7246
  16  0.00355556
  17  8.15462e-05
  18  3.08774e-06
  19  40.7793
  20  2.14082e-05
  21  0.275113
  22  0.245992
Done.

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

Extracting fit parameters...

4FGL J2256.0-2740
   Spectrum: PowerLaw
340    Prefactor:  1.000e-04  6.446e-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.152e+00  2.460e-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.730e-01  2.751e-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.66e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.33e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/593856/likelihoodResults_541814401_542073601_4FGL_J2256.0-2740_daily_bin1167.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) = 4290.44852195
delta logL = -0.000200639318791

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4290.44832068
delta logL = 6.32836417935e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10260E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    3.2862       1.0000          .0000       10.000    
     3 'Normalizat'    .77303       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1521       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=   4290.448     FROM MIGRAD    STATUS=FAILED        99 CALLS      296 TOTAL
                     EDM=   .10E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .12103E-03    8069.7        .30972E-02** at limit **
   2  Index         3.7900        5.2288        .50000       -.35669E-05
   3  Normalizat    .77296        .71999E-01    .28318E-03   -.20928E-03
   4  Prefactor     1.1521        .68584E-01    .22860E-03   -.13584E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   4290.448     FROM SIMPLEX   STATUS=UNCHANGED    145 CALLS      441 TOTAL
                     EDM=   .14E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .12103E-03    8069.7        .14267E-02** at limit **
   2  Index         3.7900        5.2288        .14935E-04   -.35669E-05
   3  Normalizat    .77296        .71999E-01    .89036E-06   -.20928E-03
   4  Prefactor     1.1521        .68584E-01    .24341E-06   -.13584E-03
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4290.448     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      495 TOTAL
                     EDM=   .24E-12    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1.5376        .61944E-01** at limit **
   2  Index         4.1704        7.2748        .50000        .72987E-08
   3  Normalizat    .77297        .26935E-02    .11327E-04    .77885E-04
   4  Prefactor     1.1521        .26194E-02    .45720E-04    .11299E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 4.17037
  Normalizat = 0.772967
  Prefactor  = 1.15214
 **********
 **   18 **HESSE 
 **********

 FCN=   4290.448     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      528 TOTAL
                     EDM=   .77E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    6881.1        .30868E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         4.1704        7.0452        .50000       -.16670    
   3  Normalizat    .77297        .43271E-01    .22654E-05   -1.0108    
   4  Prefactor     1.1521        .41761E-01    .91441E-05   -.87817    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 7.69704e-11
Minuit parameter uncertainties:
  1  0.00027147
  2  4417.39
  3  0.0432727
  4  0.0417625
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/593856': 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): 102
logL (Free Index) = 4290.44831985
delta logL = 1.45947524288e-06

Extracting fit parameters...

4FGL J2256.0-2740
   Spectrum: PowerLaw
340    Prefactor:  1.000e-04  2.715e-04  1.000e-04  1.000e+04 ( 1.000e-11)
341        Index:  4.170e+00  4.417e+03  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.152e+00  4.176e-02  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.730e-01  4.327e-02  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/593856/cmap_HighResolution_541814401_542073601_4FGL_J2256.0-2740_daily_bin1167.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.33e-02', job_status='DONE', photon_flux_upper_limit='1.66e-07', time_completed='2021-09-29 03:00:25.179683', job_id='593856', GAL2='1.15', fit_tolerance='1e-08', EG2='0.77', EG='0.77', time_epoch_completed='1632909625.18', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.15', dlogl='1.46e-06', ts2='-0.00', photon_index_error='0.00', photon_index='3.02' WHERE bin_id='1167' AND source_name='4FGL J2256.0-2740' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 03:00:25 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0239>
Subject: Job 593856: <4FGL_J2256.0-2740_daily_bin1167> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2256.0-2740_daily_bin1167 344.025 -27.6739 541814401 542073601 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 :                                   538.10 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             312.40 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   609 sec.
    Turnaround time :                            611 sec.

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

