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


Performing analysis on: 4FGL_J2256.0-2740_daily_bin651
RA = 344.025, Dec = -27.6739
tmin = 408067201, tmax = 408326401
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='591111', job_status='RUN', time_executed='2021-09-29 02:43:42.404557', time_epoch_executed='1632908622.4' WHERE source_name='4FGL J2256.0-2740' and cadence='daily' and bin_id='651'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/591111

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/591111/ft1_4FGL_J2256.0-2740_daily_bin651.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/591111/ft2_4FGL_J2256.0-2740_daily_bin651.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/591111/ft1_4FGL_J2256.0-2740_daily_bin651.fits outfile=/scratch/kocevski/591111/ft1_filteredMKT_4FGL_J2256.0-2740_daily_bin651.fits ra=344.025 dec=-27.6739 rad=12.0 tmin=408067201.0 tmax=408326401.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.84
user 3.61
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/591111/ft1_filtered_4FGL_J2256.0-2740_daily_bin651.fits" evtable="EVENTS" scfile=/scratch/kocevski/591111/ft2_4FGL_J2256.0-2740_daily_bin651.fits sctable="SC_DATA" outfile=/scratch/kocevski/591111/ltcube_408067201_408326401_4FGL_J2256.0-2740_daily_bin651.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/591111/ft2_4FGL_J2256.0-2740_daily_bin651.fits
.....................!
real 11.49
user 11.16
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/591111/ft1_filtered_4FGL_J2256.0-2740_daily_bin651.fits evtable="EVENTS" scfile=/scratch/kocevski/591111/ft2_4FGL_J2256.0-2740_daily_bin651.fits sctable="SC_DATA" expcube=/scratch/kocevski/591111/ltcube_408067201_408326401_4FGL_J2256.0-2740_daily_bin651.fits outfile=/scratch/kocevski/591111/expmap_408067201_408326401_4FGL_J2256.0-2740_daily_bin651.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/591111/ltcube_408067201_408326401_4FGL_J2256.0-2740_daily_bin651.fits
.....................!
real 189.83
user 185.34
sys 4.13

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/591111/ft1_filtered_4FGL_J2256.0-2740_daily_bin651.fits scfile=/scratch/kocevski/591111/ft2_4FGL_J2256.0-2740_daily_bin651.fits outfile=/scratch/kocevski/591111/cmap_408067201_408326401_4FGL_J2256.0-2740_daily_bin651.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.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/591111/ft1_filtered_4FGL_J2256.0-2740_daily_bin651.fits scfile=/scratch/kocevski/591111/ft2_4FGL_J2256.0-2740_daily_bin651.fits outfile=/scratch/kocevski/591111/cmap_HighResolution_408067201_408326401_4FGL_J2256.0-2740_daily_bin651.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.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/591111/ft1_filtered_4FGL_J2256.0-2740_daily_bin651.fits evtable="EVENTS" scfile=/scratch/kocevski/591111/ft2_4FGL_J2256.0-2740_daily_bin651.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/591111/Model_4FGL_J2256.0-2740_daily_bin651.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/591111/ft1_filtered_4FGL_J2256.0-2740_daily_bin651.fits.....................!
real 42.62
user 41.26
sys 1.18

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    24.946       1.0000         .10000E-03   10000.    
     5 'Prefactor '    7.7402       1.0000         .10000E-03   10000.    
     6 'norm      '    11.502       1.0000         .10000E-03   10000.    
     7 'Prefactor '    32.515       1.0000         .10000E-03   10000.    
     8 'Prefactor '    20.718       1.0000         .10000E-03   10000.    
     9 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .39237E-02   1.0000         .10000E-03   10000.    
    11 'Prefactor '    4.2918       1.0000         .10000E-03   10000.    
    12 'norm      '    .10489E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    11.302       1.0000         .10000E-03   10000.    
    17 'Prefactor '    96.359       1.0000         .10000E-03   10000.    
    18 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    48.155       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10126E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.1791       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .74149       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=   4942.782     FROM MIGRAD    STATUS=CONVERGED    488 CALLS     2375 TOTAL
                     EDM=   .59E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    14.933       -.26085E-06** at limit **
   2  Prefactor     .10000E-03    6.8762       -.56815E-07** at limit **
   3  norm          .10000E-03    11.121        .33459E-07** at limit **
   4  Prefactor     24.949        19.968        .22396E-06   -.15069E-04
   5  Prefactor     7.7451        17.954        .34038E-05   -.26031E-03
   6  norm          11.500        4.8503        .20827E-07   -.35862E-03
   7  Prefactor     32.514        94.427       -.22304E-05   -.55375E-04
   8  Prefactor     20.728        14.922        .47983E-06    .36050E-04
   9  norm          .10000E-03    3.3412        .12525E-06** at limit **
  10  Prefactor     .10004E-03    12.911        .14246E-05** at limit **
  11  Prefactor     4.2624        10.138       -.17410E-05   -.49169E-03
  12  norm          .10000E-03    .67025        .45456E-06** at limit **
  13  Prefactor     .10000E-03    13.943        .31946E-06** at limit **
  14  Prefactor     .10000E-03    12.464       -.25996E-06** at limit **
  15  Prefactor     .10000E-03    4.5027        .14286E-06** at limit **
  16  norm          11.303        9.8668        .63479E-07   -.68159E-04
  17  Prefactor     96.385        58.884        .13059E-05    .22087E-03
  18  norm          .10000E-03    2.0167        .23580E-07** at limit **
  19  Prefactor     48.162        38.504        .42792E-06    .46976E-04
  20  Prefactor     .10000E-03    113.38       -.26957E-07** at limit **
  21  Normalizat    1.1785        .22527       -.18875E-05   -.12234E-03
  22  Prefactor     .74194        .19268        .10382E-05   -.29082E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 24.9489
  Prefactor  = 7.74507
  norm       = 11.5004
  Prefactor  = 32.5141
  Prefactor  = 20.7283
  norm       = 0.0001
  Prefactor  = 0.000100039
  Prefactor  = 4.26244
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 11.3031
  Prefactor  = 96.385
  norm       = 0.0001
  Prefactor  = 48.1618
  Prefactor  = 0.0001
  Normalizat = 1.17853
  Prefactor  = 0.741944
 **********
 **   18 **HESSE 
 **********

 FCN=   4942.782     FROM HESSE     STATUS=OK           338 CALLS     2713 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    15.033        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    7.0011        .17987E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    11.134        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     24.949        19.994        .80202E-04   -1.4709    
   5  Prefactor     7.7451        17.137        .72067E-03   -1.5151    
   6  norm          11.500        4.8746        .82748E-04   -1.5030    
   7  Prefactor     32.514        94.453        .70271E-04   -1.4567    
   8  Prefactor     20.728        14.996        .87997E-04   -1.4797    
   9  norm          .10000E-03    3.3891        .12522E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10004E-03    75.448        .44214E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     4.2624        9.5521        .19447E-03   -1.5295    
  12  norm          .10000E-03    1.6743        .97236E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    13.976        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    12.485        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    4.5151        .14569E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          11.303        9.8739        .11917E-03   -1.5035    
  17  Prefactor     96.385        59.340        .20474E-03   -1.3741    
  18  norm          .10000E-03    2.0305        .97457E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     48.162        38.518        .57785E-04   -1.4319    
  20  Prefactor     .10000E-03    113.68        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    1.1785        .26675        .23691E-03   -.87269    
  22  Prefactor     .74194        .23117        .27479E-03   -1.0191    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.66249e-09
Minuit parameter uncertainties:
  1  3.77885e-05
  2  1.91622e-05
  3  2.46722e-05
  4  19.9991
  5  17.1477
  6  4.87481
  7  94.8921
  8  14.9991
  9  1.15163e-06
  10  0.00343396
  11  9.55547
  12  3.54521e-05
  13  0.000117855
  14  7.78531e-05
  15  4.26197e-06
  16  9.87531
  17  59.3762
  18  6.2596e-07
  19  38.5379
  20  7.37038e-05
  21  0.267055
  22  0.231467
Done.

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

Extracting fit parameters...

4FGL J2256.0-2740
   Spectrum: PowerLaw
340    Prefactor:  4.262e+00  9.555e+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

GAL_V02
   Spectrum: PowerLaw
558    Prefactor:  7.419e-01  2.315e-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  2.671e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/591111/likelihoodResults_408067201_408326401_4FGL_J2256.0-2740_daily_bin651.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) = 4942.74488293
delta logL = 0.0374563911955

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4942.46084628
delta logL = 0.321493041338

Fit tolerance = 1e-08

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

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

 FCN=   4942.461     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      281 TOTAL
                     EDM=   .26E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .75656E-01    5.1837        .52761E-02    .10191E-02
   2  Index        10.0000        9.8782        .50000    ** at limit **
   3  Normalizat    1.1477        .96395E-01    .54167E-01   -.11264E-03
   4  Prefactor     .77054        .78891E-01    .43331E-01   -.29262E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.075656
  Index      = 10
  Normalizat = 1.14774
  Prefactor  = 0.770542
 **********
 **   18 **HESSE 
 **********

 FCN=   4942.461     FROM HESSE     STATUS=OK            35 CALLS      316 TOTAL
                     EDM=   .44E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .75656E-01    .11813        .24927E-03   -1.5653    
   2  Index        10.0000        7.5849        .50000        1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    1.1477        .24760        .23951E-03   -.88233    
   4  Prefactor     .77054        .23053        .27004E-03   -1.0082    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.4194e-11
Minuit parameter uncertainties:
  1  0.118127
  2  4.85214e-06
  3  0.247853
  4  0.230816
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/591111': 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) = 4942.46084541
delta logL = 0.321493914385

Extracting fit parameters...

4FGL J2256.0-2740
   Spectrum: PowerLaw
340    Prefactor:  7.566e-02  1.181e-01  1.000e-04  1.000e+04 ( 1.000e-11)
341        Index:  1.000e+01  4.852e-06  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:  7.705e-01  2.308e-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.148e+00  2.479e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.24
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/591111/cmap_HighResolution_408067201_408326401_4FGL_J2256.0-2740_daily_bin651.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.35e-02', job_status='DONE', photon_flux_upper_limit='1.69e-07', time_completed='2021-09-29 02:52:58.232495', job_id='591111', GAL2='0.77', fit_tolerance='1e-08', EG2='1.15', EG='1.18', time_epoch_completed='1632909178.23', return_code2='0', ts='0.24', comment='SUCCESS', return_code='0', GAL='0.74', dlogl='3.21e-01', ts2='0.92', photon_index_error='0.00', photon_index='3.02' WHERE bin_id='651' AND source_name='4FGL J2256.0-2740' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 02:52:58 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0070>
Subject: Job 591111: <4FGL_J2256.0-2740_daily_bin651> in cluster <slac> Done

Job <4FGL_J2256.0-2740_daily_bin651> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Wed Sep 29 02:40:47 2021
Job was executed on host(s) <bullet0070>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 02:40:48 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep 29 02:40:48 2021
Terminated at Wed Sep 29 02:52:58 2021
Results reported at Wed Sep 29 02:52:58 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2256.0-2740_daily_bin651 344.025 -27.6739 408067201 408326401 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 :                                   553.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             321.92 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   730 sec.
    Turnaround time :                            731 sec.

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

