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


Performing analysis on: 4FGL_J2256.0-2740_daily_bin1193
RA = 344.025, Dec = -27.6739
tmin = 548553601, tmax = 548812801
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='593894', job_status='RUN', time_executed='2021-09-29 02:50:52.529064', time_epoch_executed='1632909052.53' WHERE source_name='4FGL J2256.0-2740' and cadence='daily' and bin_id='1193'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/593894

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/593894/ft1_4FGL_J2256.0-2740_daily_bin1193.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/593894/ft2_4FGL_J2256.0-2740_daily_bin1193.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/593894/ft1_4FGL_J2256.0-2740_daily_bin1193.fits outfile=/scratch/kocevski/593894/ft1_filteredMKT_4FGL_J2256.0-2740_daily_bin1193.fits ra=344.025 dec=-27.6739 rad=12.0 tmin=548553601.0 tmax=548812801.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.67
user 3.27
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/593894/ft1_filtered_4FGL_J2256.0-2740_daily_bin1193.fits" evtable="EVENTS" scfile=/scratch/kocevski/593894/ft2_4FGL_J2256.0-2740_daily_bin1193.fits sctable="SC_DATA" outfile=/scratch/kocevski/593894/ltcube_548553601_548812801_4FGL_J2256.0-2740_daily_bin1193.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/593894/ft2_4FGL_J2256.0-2740_daily_bin1193.fits
.....................!
real 12.56
user 12.22
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/593894/ft1_filtered_4FGL_J2256.0-2740_daily_bin1193.fits evtable="EVENTS" scfile=/scratch/kocevski/593894/ft2_4FGL_J2256.0-2740_daily_bin1193.fits sctable="SC_DATA" expcube=/scratch/kocevski/593894/ltcube_548553601_548812801_4FGL_J2256.0-2740_daily_bin1193.fits outfile=/scratch/kocevski/593894/expmap_548553601_548812801_4FGL_J2256.0-2740_daily_bin1193.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/593894/ltcube_548553601_548812801_4FGL_J2256.0-2740_daily_bin1193.fits
.....................!
real 189.94
user 185.55
sys 4.04

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/593894/ft1_filtered_4FGL_J2256.0-2740_daily_bin1193.fits scfile=/scratch/kocevski/593894/ft2_4FGL_J2256.0-2740_daily_bin1193.fits outfile=/scratch/kocevski/593894/cmap_548553601_548812801_4FGL_J2256.0-2740_daily_bin1193.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.54
user 0.37
sys 0.14

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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/593894/ft1_filtered_4FGL_J2256.0-2740_daily_bin1193.fits evtable="EVENTS" scfile=/scratch/kocevski/593894/ft2_4FGL_J2256.0-2740_daily_bin1193.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/593894/Model_4FGL_J2256.0-2740_daily_bin1193.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/593894/ft1_filtered_4FGL_J2256.0-2740_daily_bin1193.fits.....................!
real 64.38
user 62.99
sys 1.23

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.0954       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10033E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .71234       1.0000         .10000E-03   10000.    
     7 'Prefactor '    41.746       1.0000         .10000E-03   10000.    
     8 'Prefactor '    4.0969       1.0000         .10000E-03   10000.    
     9 'norm      '    .10129E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    14.973       1.0000         .10000E-03   10000.    
    11 'Prefactor '    7.6079       1.0000         .10000E-03   10000.    
    12 'norm      '    1.2754       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .90055       1.0000         .10000E-03   10000.    
    15 'Prefactor '    4.4895       1.0000         .10000E-03   10000.    
    16 'norm      '    1.1954       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10052E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    4.4872       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    36.873       1.0000         .10000E-03   10000.    
    21 'Normalizat'    .96395       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .85890       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5610E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   8950.653     FROM MIGRAD    STATUS=CONVERGED    101 CALLS     2024 TOTAL
                     EDM=   .37E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  9.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.0956        1.2856        .15147E-05    .20046E-03
   2  Prefactor     .10000E-03    1.8545        .42770E-06** at limit **
   3  norm          .10000E-03    5.1646       -.89021E-06** at limit **
   4  Prefactor     .10000E-03    7.3485       -.40889E-06** at limit **
   5  Prefactor     .10000E-03    2.8811       -.21677E-06** at limit **
   6  norm          .71740        1.7493        .16592E-05   -.11268E-03
   7  Prefactor     41.653        36.725       -.96193E-05    .74490E-03
   8  Prefactor     4.0975        4.4063       -.33855E-06   -.69702E-04
   9  norm          .10000E-03    2.7820        .25939E-07** at limit **
  10  Prefactor     14.971        1.4409        .12242E-05    .22856E-02
  11  Prefactor     7.6186        3.1840        .50943E-05    .41614E-02
  12  norm          1.2751        .59831       -.12103E-05   -.42867E-03
  13  Prefactor     .10024E-03    22.321       -.33100E-04** at limit **
  14  Prefactor     .87226        22.651        .27569E-05    .31223E-03
  15  Prefactor     4.4861        3.9850        .90658E-05    .27306E-02
  16  norm          1.1960        3.6626        .11612E-06    .11716E-03
  17  Prefactor     .10009E-03    23.154        .17887E-04** at limit **
  18  norm          4.4865        2.0581        .10665E-06    .38392E-03
  19  Prefactor     .10004E-03    34.420        .14842E-04** at limit **
  20  Prefactor     36.871        1.4807       -.56463E-06    .91186E-03
  21  Normalizat    .96370        .15639       -.16684E-05    .14179E-03
  22  Prefactor     .85910        .15616        .11584E-05    .66202E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.09563
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.717398
  Prefactor  = 41.6533
  Prefactor  = 4.09749
  norm       = 0.0001
  Prefactor  = 14.9709
  Prefactor  = 7.61861
  norm       = 1.27508
  Prefactor  = 0.00010024
  Prefactor  = 0.872258
  Prefactor  = 4.48609
  norm       = 1.19601
  Prefactor  = 0.000100087
  norm       = 4.48647
  Prefactor  = 0.000100038
  Prefactor  = 36.8712
  Normalizat = 0.963704
  Prefactor  = 0.859103
 **********
 **   18 **HESSE 
 **********

 FCN=   8950.653     FROM HESSE     STATUS=OK           398 CALLS     2422 TOTAL
                     EDM=   .53E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.0956        8.8466        .40655E-02   -1.5214    
   2  Prefactor     .10000E-03    1.8386        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    5.1574        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    7.2943        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    2.8740        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .71740        1.9270        .12109E-01   -1.5539    
   7  Prefactor     41.653        39.507        .15511E-02   -1.4416    
   8  Prefactor     4.0975        4.4100        .49794E-02   -1.5303    
   9  norm          .10000E-03    1.5609        .40994E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     14.971        12.860        .25877E-02   -1.4934    
  11  Prefactor     7.6186        10.056        .36348E-02   -1.5156    
  12  norm          1.2751        .71584        .95779E-02   -1.5482    
  13  Prefactor     .10024E-03    28.348        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .87226        6.5884        .85443E-01   -1.5521    
  15  Prefactor     4.4861        9.7435        .47506E-02   -1.5284    
  16  norm          1.1960        3.7190        .10398E-01   -1.5489    
  17  Prefactor     .10009E-03    25.743        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          4.4865        2.0611        .47519E-02   -1.5284    
  19  Prefactor     .10004E-03    34.686        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     36.871        58.433        .16500E-02   -1.4493    
  21  Normalizat    .96370        .13474        .45714E-01   -.94257    
  22  Prefactor     .85910        .13240        .44479E-01   -.97585    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.32691e-08
Minuit parameter uncertainties:
  1  8.8485
  2  2.4428e-06
  3  1.91916e-07
  4  6.83403e-06
  5  4.97777e-06
  6  1.92712
  7  39.5319
  8  4.4103
  9  1.29107e-05
  10  12.8622
  11  10.0577
  12  0.715848
  13  0.00522285
  14  4.79494
  15  9.7469
  16  3.71971
  17  0.00299271
  18  2.06117
  19  0.00230593
  20  58.5236
  21  0.134785
  22  0.132452
Done.

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

Extracting fit parameters...

4FGL J2256.0-2740
   Spectrum: PowerLaw
340    Prefactor:  7.619e+00  1.006e+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:  8.591e-01  1.325e-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:  9.637e-01  1.348e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.51
Ra Dec: 344.025 -27.674
Photon Index (Fixed Index): 3.02 +/- 0.00
Photon Flux (Fixed Index): 5.21e-08 +/- 6.87e-08
Energy Flux (Fixed Index): 1.03e-05 +/- 1.36e-05

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

Saving results to:
/scratch/kocevski/593894/likelihoodResults_548553601_548812801_4FGL_J2256.0-2740_daily_bin1193.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) = 8950.64854308
delta logL = 0.00462148434599

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8950.64785386
delta logL = 0.00531071280238

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    7.4012       1.0000         .10000E-03   10000.    
     2 'Index     '    3.1324       1.0000          .0000       10.000    
     3 'Normalizat'    .96177       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .86097       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   8950.648     FROM MIGRAD    STATUS=CONVERGED     61 CALLS      208 TOTAL
                     EDM=   .24E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.3979        7.5136         .0000        .77443E-02
   2  Index         3.1343        1.2367         .0000       -.10220E-04
   3  Normalizat    .96164        .13223         .0000       -.26063E-03
   4  Prefactor     .86103        .13110         .0000       -.19758E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.39786
  Index      = 3.13433
  Normalizat = 0.961642
  Prefactor  = 0.861028
 **********
 **   18 **HESSE 
 **********

 FCN=   8950.648     FROM HESSE     STATUS=OK            31 CALLS      239 TOTAL
                     EDM=   .46E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.3979        6.8790        .73712E-03   -1.5164    
   2  Index         3.1343        1.1373        .87279E-03   -.38239    
   3  Normalizat    .96164        .15866        .22464E-03   -.94327    
   4  Prefactor     .86103        .15682        .23685E-03   -.97516    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.5727e-11
Minuit parameter uncertainties:
  1  6.87969
  2  1.14906
  3  0.158737
  4  0.156901
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/593894': 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) = 8950.64785191
delta logL = 0.00531265663085

Extracting fit parameters...

4FGL J2256.0-2740
   Spectrum: PowerLaw
340    Prefactor:  7.398e+00  6.880e+00  1.000e-04  1.000e+04 ( 1.000e-11)
341        Index:  3.134e+00  1.149e+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:  8.610e-01  1.569e-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:  9.616e-01  1.587e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.65
Ra Dec: 344.025 -27.674
Photon Index (Free Index): 3.13 +/- 1.15
Photon Flux (Free Index): 5.29e-08 +/- 4.48e-08
Energy Flux (Free Index): 9.93e-06 +/- 9.28e-06

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/593894/cmap_HighResolution_548553601_548812801_4FGL_J2256.0-2740_daily_bin1193.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.07e-02', comment='SUCCESS', photon_flux='5.21e-08', energy_flux2='9.93e-06', photon_flux_error='6.87e-08', dlogl='5.31e-03', energy_flux='1.03e-05', photon_flux2='5.29e-08', job_status='DONE', time_completed='2021-09-29 03:03:14.387654', photon_index_error2='1.15', photon_index2='3.13', ts='1.51', fit_tolerance='1e-08', GAL='0.86', photon_index_error='0.00', photon_flux_upper_limit='1.33e-07', energy_flux_error2='9.28e-06', EG='0.96', time_epoch_completed='1632909794.39', return_code='0', job_id='593894', GAL2='0.86', EG2='0.96', return_code2='0', energy_flux_error='1.36e-05', photon_flux_error2='4.48e-08', ts2='1.65', photon_index='3.02' WHERE bin_id='1193' AND source_name='4FGL J2256.0-2740' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 03:03:14 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0065>
Subject: Job 593894: <4FGL_J2256.0-2740_daily_bin1193> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2256.0-2740_daily_bin1193 344.025 -27.6739 548553601 548812801 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 :                                   734.44 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             365.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   776 sec.
    Turnaround time :                            778 sec.

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

