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


Performing analysis on: 4FGL_J2256.0-2740_daily_bin974
RA = 344.025, Dec = -27.6739
tmin = 491788801, tmax = 492048001
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='592609', job_status='RUN', time_executed='2021-09-29 02:48:53.017748', time_epoch_executed='1632908933.02' WHERE source_name='4FGL J2256.0-2740' and cadence='daily' and bin_id='974'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/592609

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/592609/ft1_4FGL_J2256.0-2740_daily_bin974.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/592609/ft2_4FGL_J2256.0-2740_daily_bin974.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/592609/ft1_4FGL_J2256.0-2740_daily_bin974.fits outfile=/scratch/kocevski/592609/ft1_filteredMKT_4FGL_J2256.0-2740_daily_bin974.fits ra=344.025 dec=-27.6739 rad=12.0 tmin=491788801.0 tmax=492048001.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.24
user 3.99
sys 0.22

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

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

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/592609/ft1_filtered_4FGL_J2256.0-2740_daily_bin974.fits" evtable="EVENTS" scfile=/scratch/kocevski/592609/ft2_4FGL_J2256.0-2740_daily_bin974.fits sctable="SC_DATA" outfile=/scratch/kocevski/592609/ltcube_491788801_492048001_4FGL_J2256.0-2740_daily_bin974.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/592609/ft2_4FGL_J2256.0-2740_daily_bin974.fits
.....................!
real 11.57
user 11.23
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/592609/ft1_filtered_4FGL_J2256.0-2740_daily_bin974.fits evtable="EVENTS" scfile=/scratch/kocevski/592609/ft2_4FGL_J2256.0-2740_daily_bin974.fits sctable="SC_DATA" expcube=/scratch/kocevski/592609/ltcube_491788801_492048001_4FGL_J2256.0-2740_daily_bin974.fits outfile=/scratch/kocevski/592609/expmap_491788801_492048001_4FGL_J2256.0-2740_daily_bin974.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/592609/ltcube_491788801_492048001_4FGL_J2256.0-2740_daily_bin974.fits
.....................!
real 190.56
user 185.00
sys 5.18

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/592609/ft1_filtered_4FGL_J2256.0-2740_daily_bin974.fits scfile=/scratch/kocevski/592609/ft2_4FGL_J2256.0-2740_daily_bin974.fits outfile=/scratch/kocevski/592609/cmap_491788801_492048001_4FGL_J2256.0-2740_daily_bin974.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/592609/ft1_filtered_4FGL_J2256.0-2740_daily_bin974.fits scfile=/scratch/kocevski/592609/ft2_4FGL_J2256.0-2740_daily_bin974.fits outfile=/scratch/kocevski/592609/cmap_HighResolution_491788801_492048001_4FGL_J2256.0-2740_daily_bin974.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.55
user 0.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/592609/ft1_filtered_4FGL_J2256.0-2740_daily_bin974.fits evtable="EVENTS" scfile=/scratch/kocevski/592609/ft2_4FGL_J2256.0-2740_daily_bin974.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/592609/Model_4FGL_J2256.0-2740_daily_bin974.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/592609/ft1_filtered_4FGL_J2256.0-2740_daily_bin974.fits.....................!
real 53.16
user 51.88
sys 1.17

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .80924E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10059E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10262E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    12.553       1.0000         .10000E-03   10000.    
     6 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10052E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    19.109       1.0000         .10000E-03   10000.    
     9 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    13.035       1.0000         .10000E-03   10000.    
    11 'Prefactor '    6.1288       1.0000         .10000E-03   10000.    
    12 'norm      '    .10320E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    5.7805       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    1.6265       1.0000         .10000E-03   10000.    
    16 'norm      '    3.9953       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .24170       1.0000         .10000E-03   10000.    
    19 'Prefactor '    16.887       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10036E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.1734       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .64732       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=   6899.189     FROM MIGRAD    STATUS=CONVERGED    495 CALLS     2103 TOTAL
                     EDM=   .95E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10092E-03    14.864       -.21769E-05** at limit **
   2  Prefactor     .10000E-03    6.8870        .20069E-06** at limit **
   3  norm          .10000E-03    11.044        .99852E-06** at limit **
   4  Prefactor     .10000E-03    8.3242       -.39479E-07** at limit **
   5  Prefactor     12.552        12.882        .34330E-06   -.13102E-04
   6  norm          .10000E-03    .75314       -.71041E-09** at limit **
   7  Prefactor     .10000E-03    24.517        .19086E-05** at limit **
   8  Prefactor     19.113        11.396        .13337E-06   -.14271E-03
   9  norm          .10000E-03    1.1777        .12581E-06** at limit **
  10  Prefactor     13.043        15.061       -.79005E-07   -.48759E-03
  11  Prefactor     6.1056        10.914       -.19462E-05   -.75001E-03
  12  norm          .10000E-03    .47239        .59913E-06** at limit **
  13  Prefactor     5.7900        45.256        .29881E-05    .65610E-04
  14  Prefactor     .10000E-03    16.413       -.51838E-07** at limit **
  15  Prefactor     1.6475        13.421        .25759E-05   -.19962E-03
  16  norm          3.9961        5.1141        .31812E-06    .29863E-04
  17  Prefactor     .10000E-03    10.319       -.75004E-06** at limit **
  18  norm          .24960        1.3316        .11044E-07    .18686E-05
  19  Prefactor     16.893        20.236        .67144E-07   -.13445E-04
  20  Prefactor     .10000E-03    21.493       -.17914E-05** at limit **
  21  Normalizat    1.1734        .16228       -.54907E-06   -.16590E-03
  22  Prefactor     .64714        .14934        .55804E-08   -.15169E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100922
  Prefactor  = 0.0001
  norm       = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 12.5516
  norm       = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 19.1129
  norm       = 0.0001
  Prefactor  = 13.0432
  Prefactor  = 6.10563
  norm       = 0.000100001
  Prefactor  = 5.78996
  Prefactor  = 0.0001
  Prefactor  = 1.64747
  norm       = 3.99609
  Prefactor  = 0.0001
  norm       = 0.249601
  Prefactor  = 16.8935
  Prefactor  = 0.000100002
  Normalizat = 1.17344
  Prefactor  = 0.647138
 **********
 **   18 **HESSE 
 **********

 FCN=   6899.189     FROM HESSE     STATUS=OK           352 CALLS     2455 TOTAL
                     EDM=   .95E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10092E-03    112.43        .57549E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    7.0904        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    11.233        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    8.3476        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     12.552        12.879        .11306E-03   -1.4999    
   6  norm          .10000E-03    4.4567        .14031E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    24.864        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     19.113        11.438        .91623E-04   -1.4833    
   9  norm          .10000E-03    1.1995        .88080E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     13.043        14.985        .11095E-03   -1.4986    
  11  Prefactor     6.1056        11.187        .16217E-03   -1.5214    
  12  norm          .10000E-03    1.1928        .91567E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     5.7900        45.595        .16705E-03   -1.5227    
  14  Prefactor     .10000E-03    16.610        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     1.6475        11.569        .33169E-03   -1.5451    
  16  norm          3.9961        5.0958        .20177E-03   -1.5308    
  17  Prefactor     .10000E-03    10.367        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .24960        6.6890        .17849E-02   -1.5608    
  19  Prefactor     16.893        20.229        .97464E-04   -1.4886    
  20  Prefactor     .10000E-03    21.747        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    1.1734        .19117        .20853E-03   -.87428    
  22  Prefactor     .64714        .17605        .26389E-03   -1.0564    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.50912e-09
Minuit parameter uncertainties:
  1  0.0203993
  2  4.08455e-05
  3  0.000163441
  4  6.54715e-07
  5  12.882
  6  3.16302e-05
  7  0.000454994
  8  11.4398
  9  1.29876e-06
  10  14.989
  11  11.1913
  12  7.93123e-05
  13  32.5297
  14  7.44578e-06
  15  8.73366
  16  5.09635
  17  0.000119194
  18  2.58404
  19  20.2373
  20  0.00041572
  21  0.191282
  22  0.176205
Done.

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

Extracting fit parameters...

4FGL J2256.0-2740
   Spectrum: PowerLaw
340    Prefactor:  6.106e+00  1.119e+01  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:  6.471e-01  1.762e-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.173e+00  1.913e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.86
Ra Dec: 344.025 -27.674
Photon Flux Upper Limit: 1.36e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.09e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/592609/likelihoodResults_491788801_492048001_4FGL_J2256.0-2740_daily_bin974.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) = 6899.10427768
delta logL = 0.0844936311214

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6899.10251859
delta logL = 0.0862527211675

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.4127       1.0000         .10000E-03   10000.    
     2 'Index     '    2.6784       1.0000          .0000       10.000    
     3 'Normalizat'    1.1791       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .64186       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=   6899.103     FROM MIGRAD    STATUS=CONVERGED     85 CALLS      242 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.4113        6.9471        .15849E-03   -.11771E-03
   2  Index         2.6781        .74669        .11042E-01   -.20638E-03
   3  Normalizat    1.1791        .18228        .20808E-03    .10787E-03
   4  Prefactor     .64183        .17404        .26483E-03    .10685E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.41132
  Index      = 2.67805
  Normalizat = 1.17909
  Prefactor  = 0.641827
 **********
 **   18 **HESSE 
 **********

 FCN=   6899.103     FROM HESSE     STATUS=OK            25 CALLS      267 TOTAL
                     EDM=   .31E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.4113        6.9832        .63398E-05   -1.5202    
   2  Index         2.6781        .75088        .22083E-02   -.48294    
   3  Normalizat    1.1791        .18257        .41616E-04   -.87251    
   4  Prefactor     .64183        .17423        .10593E-04   -1.0585    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.06146e-11
Minuit parameter uncertainties:
  1  6.98408
  2  0.754525
  3  0.182664
  4  0.17438
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/592609': 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) = 6899.10251848
delta logL = 0.0862528286352

Extracting fit parameters...

4FGL J2256.0-2740
   Spectrum: PowerLaw
340    Prefactor:  6.411e+00  6.984e+00  1.000e-04  1.000e+04 ( 1.000e-11)
341        Index:  2.678e+00  7.545e-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:  6.418e-01  1.744e-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.179e+00  1.827e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.07
Ra Dec: 344.025 -27.674
Photon Index (Free Index): 2.68 +/- 0.75
Photon Flux (Free Index): 3.92e-08 +/- 4.47e-08
Energy Flux (Free Index): 9.60e-06 +/- 1.05e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/592609/cmap_HighResolution_491788801_492048001_4FGL_J2256.0-2740_daily_bin974.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.09e-02', comment='SUCCESS', energy_flux2='9.60e-06', dlogl='8.63e-02', photon_flux2='3.92e-08', job_status='DONE', time_completed='2021-09-29 02:59:36.725765', photon_index_error2='0.75', photon_index2='2.68', ts='0.86', fit_tolerance='1e-08', GAL='0.65', photon_index_error='0.00', photon_flux_upper_limit='1.36e-07', energy_flux_error2='1.05e-05', EG='1.17', time_epoch_completed='1632909576.73', return_code='0', job_id='592609', GAL2='0.64', EG2='1.18', return_code2='0', photon_flux_error2='4.47e-08', ts2='1.07', photon_index='3.02' WHERE bin_id='974' AND source_name='4FGL J2256.0-2740' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 02:59:36 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0262>
Subject: Job 592609: <4FGL_J2256.0-2740_daily_bin974> in cluster <slac> Done

Job <4FGL_J2256.0-2740_daily_bin974> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Sep 29 02:45:38 2021
Job was executed on host(s) <bullet0262>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 02:45:40 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep 29 02:45:40 2021
Terminated at Wed Sep 29 02:59:37 2021
Results reported at Wed Sep 29 02:59:37 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2256.0-2740_daily_bin974 344.025 -27.6739 491788801 492048001 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 :                                   638.09 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             272.70 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   836 sec.
    Turnaround time :                            839 sec.

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

