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


Performing analysis on: 4FGL_J2256.0-2740_daily_bin1300
RA = 344.025, Dec = -27.6739
tmin = 576288001, tmax = 576547201
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='594055', job_status='RUN', time_executed='2021-09-29 02:51:02.540000', time_epoch_executed='1632909062.54' WHERE source_name='4FGL J2256.0-2740' and cadence='daily' and bin_id='1300'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/594055

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

Retrieving the FT1 file...

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

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

Retrieving 41 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/594055/ft1_4FGL_J2256.0-2740_daily_bin1300.fits


Retrieving the FT1 file...

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

Retrieving 41 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/594055/ft2_4FGL_J2256.0-2740_daily_bin1300.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/594055/ft1_4FGL_J2256.0-2740_daily_bin1300.fits outfile=/scratch/kocevski/594055/ft1_filteredMKT_4FGL_J2256.0-2740_daily_bin1300.fits ra=344.025 dec=-27.6739 rad=12.0 tmin=576288001.0 tmax=576547201.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.30
user 3.09
sys 0.17

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/594055/ft2_4FGL_J2256.0-2740_daily_bin1300.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/594055/ft1_filteredMKT_4FGL_J2256.0-2740_daily_bin1300.fits evtable="EVENTS" outfile="/scratch/kocevski/594055/ft1_filtered_4FGL_J2256.0-2740_daily_bin1300.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.31
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/594055/ft1_filtered_4FGL_J2256.0-2740_daily_bin1300.fits" evtable="EVENTS" scfile=/scratch/kocevski/594055/ft2_4FGL_J2256.0-2740_daily_bin1300.fits sctable="SC_DATA" outfile=/scratch/kocevski/594055/ltcube_576288001_576547201_4FGL_J2256.0-2740_daily_bin1300.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/594055/ft2_4FGL_J2256.0-2740_daily_bin1300.fits
.....................!
real 10.49
user 10.12
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/594055/ft1_filtered_4FGL_J2256.0-2740_daily_bin1300.fits evtable="EVENTS" scfile=/scratch/kocevski/594055/ft2_4FGL_J2256.0-2740_daily_bin1300.fits sctable="SC_DATA" expcube=/scratch/kocevski/594055/ltcube_576288001_576547201_4FGL_J2256.0-2740_daily_bin1300.fits outfile=/scratch/kocevski/594055/expmap_576288001_576547201_4FGL_J2256.0-2740_daily_bin1300.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/594055/ltcube_576288001_576547201_4FGL_J2256.0-2740_daily_bin1300.fits
.....................!
real 190.44
user 185.81
sys 4.19

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/594055/ft1_filtered_4FGL_J2256.0-2740_daily_bin1300.fits scfile=/scratch/kocevski/594055/ft2_4FGL_J2256.0-2740_daily_bin1300.fits outfile=/scratch/kocevski/594055/cmap_576288001_576547201_4FGL_J2256.0-2740_daily_bin1300.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.35
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/594055/ft1_filtered_4FGL_J2256.0-2740_daily_bin1300.fits scfile=/scratch/kocevski/594055/ft2_4FGL_J2256.0-2740_daily_bin1300.fits outfile=/scratch/kocevski/594055/cmap_HighResolution_576288001_576547201_4FGL_J2256.0-2740_daily_bin1300.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.53
user 0.36
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/594055/ft1_filtered_4FGL_J2256.0-2740_daily_bin1300.fits evtable="EVENTS" scfile=/scratch/kocevski/594055/ft2_4FGL_J2256.0-2740_daily_bin1300.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/594055/Model_4FGL_J2256.0-2740_daily_bin1300.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/594055/ft1_filtered_4FGL_J2256.0-2740_daily_bin1300.fits.....................!
real 44.26
user 42.96
sys 1.16

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    7.1588       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10048E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    17.866       1.0000         .10000E-03   10000.    
     4 'Prefactor '    6.8329       1.0000         .10000E-03   10000.    
     5 'Prefactor '    2.4147       1.0000         .10000E-03   10000.    
     6 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    99.918       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    2.6165       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    2.1477       1.0000         .10000E-03   10000.    
    15 'Prefactor '    6.8659       1.0000         .10000E-03   10000.    
    16 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    8.0198       1.0000         .10000E-03   10000.    
    18 'norm      '    4.1899       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    125.10       1.0000         .10000E-03   10000.    
    21 'Normalizat'    .72674       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.2047       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=   5380.752     FROM MIGRAD    STATUS=CONVERGED    462 CALLS     2359 TOTAL
                     EDM=   .48E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.1584        17.206       -.43676E-07    .74830E-05
   2  Prefactor     .10000E-03    5.2810       -.19139E-06** at limit **
   3  norm          17.861        19.954        .15262E-06    .12038E-04
   4  Prefactor     6.8339        14.187       -.68571E-07    .39968E-05
   5  Prefactor     2.4152        13.222        .70291E-06    .19263E-04
   6  norm          .10000E-03    .85512       -.15038E-07** at limit **
   7  Prefactor     99.932        51.025        .16667E-06    .22924E-04
   8  Prefactor     .10000E-03    5.2171       -.28049E-07** at limit **
   9  norm          .10000E-03    .93757       -.18570E-07** at limit **
  10  Prefactor     .10000E-03    4.4862       -.57483E-07** at limit **
  11  Prefactor     .10000E-03    3.3808       -.51928E-07** at limit **
  12  norm          2.6166        .81068        .22559E-08    .12607E-03
  13  Prefactor     .10000E-03    21.613       -.34568E-06** at limit **
  14  Prefactor     2.1470        21.477       -.21706E-06    .64674E-06
  15  Prefactor     6.8669        9.9535       -.63552E-08    .95020E-05
  16  norm          .10000E-03    5.9426        .76191E-07** at limit **
  17  Prefactor     8.1222        62.080       -.98236E-05   -.19907E-04
  18  norm          4.1906        2.9624       -.28591E-07    .31317E-05
  19  Prefactor     .10000E-03    13.102        .71234E-09** at limit **
  20  Prefactor     124.99        121.61        .39916E-05    .10546E-04
  21  Normalizat    .72598        .20358       -.22186E-05    .92570E-04
  22  Prefactor     1.2055        .19670        .22902E-05   -.25806E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.15844
  Prefactor  = 0.0001
  norm       = 17.8608
  Prefactor  = 6.83394
  Prefactor  = 2.41516
  norm       = 0.0001
  Prefactor  = 99.9325
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.61657
  Prefactor  = 0.0001
  Prefactor  = 2.147
  Prefactor  = 6.86692
  norm       = 0.0001
  Prefactor  = 8.12225
  norm       = 4.1906
  Prefactor  = 0.0001
  Prefactor  = 124.994
  Normalizat = 0.725978
  Prefactor  = 1.20548
 **********
 **   18 **HESSE 
 **********

 FCN=   5380.752     FROM HESSE     STATUS=OK           344 CALLS     2703 TOTAL
                     EDM=   .12E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.1584        17.200        .14992E-03   -1.5173    
   2  Prefactor     .10000E-03    5.3840        .16448E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          17.861        19.955        .94756E-04   -1.4862    
   4  Prefactor     6.8339        14.182        .15349E-03   -1.5185    
   5  Prefactor     2.4152        13.739        .13171E-02   -1.5397    
   6  norm          .10000E-03    .85739        .66151E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     99.932        51.307        .40218E-04   -1.3705    
   8  Prefactor     .10000E-03    5.2420        .16358E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    .93979        .69357E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    4.4935        .15171E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    3.3920        .13152E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          2.6166        .81420        .33296E-04   -1.5384    
  13  Prefactor     .10000E-03    21.623        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     2.1470        21.521        .28118E-03   -1.5415    
  15  Prefactor     6.8669        9.9990        .15312E-03   -1.5184    
  16  norm          .10000E-03    5.9830        .17453E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     8.1222        66.085        .14158E-03   -1.5138    
  18  norm          4.1906        2.9611        .10280E-03   -1.5299    
  19  Prefactor     .10000E-03    13.119        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     124.99        121.57        .17994E-03   -1.3467    
  21  Normalizat    .72598        .22911        .27463E-03   -1.0288    
  22  Prefactor     1.2055        .22086        .22214E-03   -.86163    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.20483e-10
Minuit parameter uncertainties:
  1  17.2123
  2  2.10376e-06
  3  19.9627
  4  14.1889
  5  11.5245
  6  1.16947e-06
  7  51.3296
  8  4.63711e-07
  9  3.91688e-07
  10  1.0439e-06
  11  3.05138e-07
  12  0.814202
  13  5.3118e-06
  14  13.6008
  15  10.0015
  16  1.95705e-05
  17  46.406
  18  2.96122
  19  1.15093e-05
  20  121.818
  21  0.229412
  22  0.221029
Done.

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

Extracting fit parameters...

4FGL J2256.0-2740
   Spectrum: PowerLaw
340    Prefactor:  1.000e-04  3.051e-07  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.205e+00  2.210e-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.260e-01  2.294e-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: 9.04e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.24e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/594055/likelihoodResults_576288001_576547201_4FGL_J2256.0-2740_daily_bin1300.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) = 5380.75340884
delta logL = -0.00140043059127

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5380.75200838
delta logL = 2.30729710893e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    3.0140       1.0000          .0000       10.000    
     3 'Normalizat'    .72599       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2055       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=   5380.752     FROM MIGRAD    STATUS=CONVERGED    101 CALLS      257 TOTAL
                     EDM=   .18E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    105.87        .13194E-01** at limit **
   2  Index         2.6520        7.6080        .50000        .13133E-06
   3  Normalizat    .72598        .24673E-01    .27464E-03    .38008E-03
   4  Prefactor     1.2055        .25236E-01    .22213E-03    .49530E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.65201
  Normalizat = 0.725977
  Prefactor  = 1.20548
 **********
 **   18 **HESSE 
 **********

 FCN=   5380.752     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      286 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    687.72        .13624E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.6520        5.0056        .50000       -.48884    
   3  Normalizat    .72598        .93040E-01    .10986E-04   -1.0288    
   4  Prefactor     1.2055        .95185E-01    .44426E-04   -.86163    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.13623e-09
Minuit parameter uncertainties:
  1  3.65862e-05
  2  1192.68
  3  0.0930605
  4  0.0951989
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/594055': 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) = 5380.75200729
delta logL = 1.11438112071e-06

Extracting fit parameters...

4FGL J2256.0-2740
   Spectrum: PowerLaw
340    Prefactor:  1.000e-04  3.659e-05  1.000e-04  1.000e+04 ( 1.000e-11)
341        Index:  2.652e+00  1.193e+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.205e+00  9.520e-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.260e-01  9.306e-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/594055/cmap_HighResolution_576288001_576547201_4FGL_J2256.0-2740_daily_bin1300.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.24e-03', job_status='DONE', photon_flux_upper_limit='9.04e-08', time_completed='2021-09-29 03:01:12.741662', job_id='594055', GAL2='1.21', fit_tolerance='1e-08', EG2='0.73', EG='0.73', time_epoch_completed='1632909672.74', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.21', dlogl='1.11e-06', ts2='-0.00', photon_index_error='0.00', photon_index='3.02' WHERE bin_id='1300' AND source_name='4FGL J2256.0-2740' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 03:01:12 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0263>
Subject: Job 594055: <4FGL_J2256.0-2740_daily_bin1300> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2256.0-2740_daily_bin1300 344.025 -27.6739 576288001 576547201 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 :                                   577.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             286.95 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   640 sec.
    Turnaround time :                            643 sec.

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

