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


Performing analysis on: 4FGL_J2256.0-2740_daily_bin1485
RA = 344.025, Dec = -27.6739
tmin = 624240001, tmax = 624499201
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='594328', job_status='RUN', time_executed='2021-09-29 02:51:33.657606', time_epoch_executed='1632909093.66' WHERE source_name='4FGL J2256.0-2740' and cadence='daily' and bin_id='1485'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/594328

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/594328/ft1_4FGL_J2256.0-2740_daily_bin1485.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/594328/ft2_4FGL_J2256.0-2740_daily_bin1485.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/594328/ft1_4FGL_J2256.0-2740_daily_bin1485.fits outfile=/scratch/kocevski/594328/ft1_filteredMKT_4FGL_J2256.0-2740_daily_bin1485.fits ra=344.025 dec=-27.6739 rad=12.0 tmin=624240001.0 tmax=624499201.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.48
user 3.27
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/594328/ft1_filtered_4FGL_J2256.0-2740_daily_bin1485.fits" evtable="EVENTS" scfile=/scratch/kocevski/594328/ft2_4FGL_J2256.0-2740_daily_bin1485.fits sctable="SC_DATA" outfile=/scratch/kocevski/594328/ltcube_624240001_624499201_4FGL_J2256.0-2740_daily_bin1485.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/594328/ft2_4FGL_J2256.0-2740_daily_bin1485.fits
.....................!
real 11.69
user 11.30
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/594328/ft1_filtered_4FGL_J2256.0-2740_daily_bin1485.fits evtable="EVENTS" scfile=/scratch/kocevski/594328/ft2_4FGL_J2256.0-2740_daily_bin1485.fits sctable="SC_DATA" expcube=/scratch/kocevski/594328/ltcube_624240001_624499201_4FGL_J2256.0-2740_daily_bin1485.fits outfile=/scratch/kocevski/594328/expmap_624240001_624499201_4FGL_J2256.0-2740_daily_bin1485.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/594328/ltcube_624240001_624499201_4FGL_J2256.0-2740_daily_bin1485.fits
.....................!
real 191.01
user 185.58
sys 5.05

Generating the xml model:
radLim = 0.001
maxRad = 12
normsOnly = True
freeVariableSources = True
Fixing all sources to their catalog values, except variable sources
Creating file and adding sources from 4FGL
Added 175 point sources and 0 extended sources

Setting source of interest to:
4FGL J2256.0-2740 @ 344.025 -27.6739

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/594328/ft1_filtered_4FGL_J2256.0-2740_daily_bin1485.fits scfile=/scratch/kocevski/594328/ft2_4FGL_J2256.0-2740_daily_bin1485.fits outfile=/scratch/kocevski/594328/cmap_624240001_624499201_4FGL_J2256.0-2740_daily_bin1485.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.56
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/594328/ft1_filtered_4FGL_J2256.0-2740_daily_bin1485.fits scfile=/scratch/kocevski/594328/ft2_4FGL_J2256.0-2740_daily_bin1485.fits outfile=/scratch/kocevski/594328/cmap_HighResolution_624240001_624499201_4FGL_J2256.0-2740_daily_bin1485.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.36
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    27.484       1.0000         .10000E-03   10000.    
     3 'norm      '    11.839       1.0000         .10000E-03   10000.    
     4 'Prefactor '    19.204       1.0000         .10000E-03   10000.    
     5 'Prefactor '    10.506       1.0000         .10000E-03   10000.    
     6 'norm      '    2.5944       1.0000         .10000E-03   10000.    
     7 'Prefactor '    16.473       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10188E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10266E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10119E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    22.423       1.0000         .10000E-03   10000.    
    12 'norm      '    2.9700       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .18592E-01   1.0000         .10000E-03   10000.    
    14 'Prefactor '    15.685       1.0000         .10000E-03   10000.    
    15 'Prefactor '    12.766       1.0000         .10000E-03   10000.    
    16 'norm      '    .11346E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    41.500       1.0000         .10000E-03   10000.    
    18 'norm      '    .38277E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    16.743       1.0000         .10000E-03   10000.    
    20 'Prefactor '    107.02       1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.2463       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .56764       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=   4553.927     FROM MIGRAD    STATUS=CONVERGED    855 CALLS     3104 TOTAL
                     EDM=   .46E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    5.4464        .15379E-02** at limit **
   2  Prefactor     27.479        14.735        .76417E-04    .40168E-04
   3  norm          11.837        22.519        .11643E-03    .21678E-04
   4  Prefactor     19.199        20.402        .91397E-04   -.38560E-05
   5  Prefactor     10.497        19.668        .12362E-03    .27682E-04
   6  norm          2.5954        2.5295        .94203E-04    .16485E-03
   7  Prefactor     16.425        60.532        .98680E-04    .26382E-04
   8  Prefactor     .10000E-03    21.159        .18142E-02** at limit **
   9  norm          .10000E-03    6.7672        .33677E-03** at limit **
  10  Prefactor     .10000E-03    20.128        .18142E-02** at limit **
  11  Prefactor     22.410        17.761        .84588E-04    .56502E-03
  12  norm          2.9709        1.1761        .36482E-04    .13597E-02
  13  Prefactor     .10003E-03    65.241        .16332    ** at limit **
  14  Prefactor     15.685        19.139        .10113E-03    .56208E-05
  15  Prefactor     12.761        12.544        .11211E-03    .21109E-03
  16  norm          .10000E-03    6.3147        .16481E-02** at limit **
  17  Prefactor     41.311        57.676        .62226E-04   -.53604E-04
  18  norm          .10000E-03    13.573        .17778E-02** at limit **
  19  Prefactor     16.731        29.706        .97883E-04    .48897E-04
  20  Prefactor     107.16        102.30        .19437E-03   -.38954E-04
  21  Normalizat    1.2469        .27607        .23036E-03    .34672E-03
  22  Prefactor     .56718        .22753        .30076E-03    .22257E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 27.4787
  norm       = 11.8367
  Prefactor  = 19.1992
  Prefactor  = 10.4966
  norm       = 2.59538
  Prefactor  = 16.4245
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 22.4097
  norm       = 2.97088
  Prefactor  = 0.000100027
  Prefactor  = 15.6847
  Prefactor  = 12.7607
  norm       = 0.0001
  Prefactor  = 41.3111
  norm       = 0.0001
  Prefactor  = 16.7308
  Prefactor  = 107.161
  Normalizat = 1.24688
  Prefactor  = 0.567182
 **********
 **   18 **HESSE 
 **********

 FCN=   4553.927     FROM HESSE     STATUS=OK           330 CALLS     3434 TOTAL
                     EDM=   .46E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    5.4465        .30758E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     27.479        14.735        .30567E-05   -1.4659    
   3  norm          11.837        22.519        .46571E-05   -1.5020    
   4  Prefactor     19.199        20.403        .36559E-05   -1.4831    
   5  Prefactor     10.497        19.666        .49446E-05   -1.5060    
   6  norm          2.5954        2.5292        .37681E-05   -1.5386    
   7  Prefactor     16.425        60.498        .39472E-05   -1.4897    
   8  Prefactor     .10000E-03    21.171        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    6.7675        .67354E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    20.132        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     22.410        17.763        .33835E-05   -1.4761    
  12  norm          2.9709        1.1762        .72965E-05   -1.5363    
  13  Prefactor     .10003E-03    66.366        .16118       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     15.685        19.139        .40452E-05   -1.4916    
  15  Prefactor     12.761        12.543        .22422E-04   -1.4993    
  16  norm          .10000E-03    6.3166        .32962E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     41.311        57.681        .12445E-04   -1.4422    
  18  norm          .10000E-03    13.725        .35555E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     16.731        29.694        .39153E-05   -1.4890    
  20  Prefactor     107.16        102.30        .77750E-05   -1.3634    
  21  Normalizat    1.2469        .27630        .46072E-04   -.85166    
  22  Prefactor     .56718        .22773        .12030E-04   -1.0899    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.61664e-10
Minuit parameter uncertainties:
  1  3.19568e-06
  2  14.7373
  3  22.5347
  4  20.4108
  5  19.6782
  6  2.52933
  7  60.7252
  8  0.000111139
  9  6.24358e-06
  10  2.50718e-05
  11  17.7671
  12  1.17618
  13  0.0027029
  14  19.1463
  15  12.5454
  16  5.84516e-05
  17  57.7594
  18  9.99267e-05
  19  29.7205
  20  102.474
  21  0.276629
  22  0.228099
Done.

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

Extracting fit parameters...

4FGL J2256.0-2740
   Spectrum: PowerLaw
340    Prefactor:  2.241e+01  1.777e+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:  5.672e-01  2.281e-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.247e+00  2.766e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.10
Ra Dec: 344.025 -27.674
Photon Index (Fixed Index): 3.02 +/- 0.00
Photon Flux (Fixed Index): 1.53e-07 +/- 1.21e-07
Energy Flux (Fixed Index): 3.03e-05 +/- 2.40e-05

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

Saving results to:
/scratch/kocevski/594328/likelihoodResults_624240001_624499201_4FGL_J2256.0-2740_daily_bin1485.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) = 4552.51791985
delta logL = 1.40910867088

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4552.51765974
delta logL = 1.40936877712

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    12.019       1.0000         .10000E-03   10000.    
     2 'Index     '    5.0068       1.0000          .0000       10.000    
     3 'Normalizat'    1.1608       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .63094       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=   4552.518     FROM MIGRAD    STATUS=CONVERGED     91 CALLS      308 TOTAL
                     EDM=   .43E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     12.021        14.127        .10191E-03   -.14849E-03
   2  Index         5.0071        1.6233        .80144E-02    .14246E-04
   3  Normalizat    1.1606        .25338        .23699E-03    .37609E-04
   4  Prefactor     .63110        .22606        .28680E-03   -.15784E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 12.0213
  Index      = 5.00708
  Normalizat = 1.16057
  Prefactor  = 0.631102
 **********
 **   18 **HESSE 
 **********

 FCN=   4552.518     FROM HESSE     STATUS=OK            25 CALLS      333 TOTAL
                     EDM=   .37E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     12.021        12.133        .40763E-05   -1.5014    
   2  Index         5.0071        1.4001        .32057E-03    .14162E-02
   3  Normalizat    1.1606        .25354        .94798E-05   -.87830    
   4  Prefactor     .63110        .22633        .11472E-04   -1.0629    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.66333e-10
Minuit parameter uncertainties:
  1  12.1359
  2  1.41904
  3  0.253803
  4  0.226661
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/594328': 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) = 4552.51765923
delta logL = 1.4093692947

Extracting fit parameters...

4FGL J2256.0-2740
   Spectrum: PowerLaw
340    Prefactor:  1.202e+01  1.214e+01  1.000e-04  1.000e+04 ( 1.000e-11)
341        Index:  5.007e+00  1.419e+00  0.000e+00  1.000e+01 (-1.000e+00)
342        Scale:  2.384e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
558    Prefactor:  6.311e-01  2.267e-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.161e+00  2.538e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.66
Ra Dec: 344.025 -27.674
Photon Index (Free Index): 5.01 +/- 1.42
Photon Flux (Free Index): 2.34e-07 +/- 1.11e-07
Energy Flux (Free Index): 3.11e-05 +/- 1.53e-05

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/594328/cmap_HighResolution_624240001_624499201_4FGL_J2256.0-2740_daily_bin1485.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.58e-02', comment='SUCCESS', photon_flux='1.53e-07', energy_flux2='3.11e-05', photon_flux_error='1.21e-07', dlogl='1.41e+00', energy_flux='3.03e-05', photon_flux2='2.34e-07', job_status='DONE', time_completed='2021-09-29 03:02:44.906016', photon_index_error2='1.42', photon_index2='5.01', ts='3.10', fit_tolerance='1e-08', GAL='0.57', photon_index_error='0.00', photon_flux_upper_limit='3.22e-07', energy_flux_error2='1.53e-05', EG='1.25', time_epoch_completed='1632909764.91', return_code='0', job_id='594328', GAL2='0.63', EG2='1.16', return_code2='0', energy_flux_error='2.40e-05', photon_flux_error2='1.11e-07', ts2='6.66', photon_index='3.02' WHERE bin_id='1485' AND source_name='4FGL J2256.0-2740' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 03:02:44 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0076>
Subject: Job 594328: <4FGL_J2256.0-2740_daily_bin1485> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2256.0-2740_daily_bin1485 344.025 -27.6739 624240001 624499201 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 :                                   599.14 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             341.75 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   715 sec.
    Turnaround time :                            717 sec.

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

