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


Performing analysis on: 4FGL_J2256.0-2740_daily_bin1481
RA = 344.025, Dec = -27.6739
tmin = 623203201, tmax = 623462401
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='594322', job_status='RUN', time_executed='2021-09-29 02:54:00.083475', time_epoch_executed='1632909240.08' WHERE source_name='4FGL J2256.0-2740' and cadence='daily' and bin_id='1481'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/594322

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/594322/ft1_4FGL_J2256.0-2740_daily_bin1481.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/594322/ft2_4FGL_J2256.0-2740_daily_bin1481.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/594322/ft1_4FGL_J2256.0-2740_daily_bin1481.fits outfile=/scratch/kocevski/594322/ft1_filteredMKT_4FGL_J2256.0-2740_daily_bin1481.fits ra=344.025 dec=-27.6739 rad=12.0 tmin=623203201.0 tmax=623462401.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 2.87
user 2.67
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/594322/ft2_4FGL_J2256.0-2740_daily_bin1481.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/594322/ft1_filteredMKT_4FGL_J2256.0-2740_daily_bin1481.fits evtable="EVENTS" outfile="/scratch/kocevski/594322/ft1_filtered_4FGL_J2256.0-2740_daily_bin1481.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/594322/ft1_filtered_4FGL_J2256.0-2740_daily_bin1481.fits" evtable="EVENTS" scfile=/scratch/kocevski/594322/ft2_4FGL_J2256.0-2740_daily_bin1481.fits sctable="SC_DATA" outfile=/scratch/kocevski/594322/ltcube_623203201_623462401_4FGL_J2256.0-2740_daily_bin1481.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/594322/ft2_4FGL_J2256.0-2740_daily_bin1481.fits
.....................!
real 12.17
user 11.85
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/594322/ft1_filtered_4FGL_J2256.0-2740_daily_bin1481.fits evtable="EVENTS" scfile=/scratch/kocevski/594322/ft2_4FGL_J2256.0-2740_daily_bin1481.fits sctable="SC_DATA" expcube=/scratch/kocevski/594322/ltcube_623203201_623462401_4FGL_J2256.0-2740_daily_bin1481.fits outfile=/scratch/kocevski/594322/expmap_623203201_623462401_4FGL_J2256.0-2740_daily_bin1481.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/594322/ltcube_623203201_623462401_4FGL_J2256.0-2740_daily_bin1481.fits
.....................!
real 190.44
user 185.28
sys 4.84

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/594322/ft1_filtered_4FGL_J2256.0-2740_daily_bin1481.fits scfile=/scratch/kocevski/594322/ft2_4FGL_J2256.0-2740_daily_bin1481.fits outfile=/scratch/kocevski/594322/cmap_623203201_623462401_4FGL_J2256.0-2740_daily_bin1481.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.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/594322/ft1_filtered_4FGL_J2256.0-2740_daily_bin1481.fits scfile=/scratch/kocevski/594322/ft2_4FGL_J2256.0-2740_daily_bin1481.fits outfile=/scratch/kocevski/594322/cmap_HighResolution_623203201_623462401_4FGL_J2256.0-2740_daily_bin1481.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/594322/ft1_filtered_4FGL_J2256.0-2740_daily_bin1481.fits evtable="EVENTS" scfile=/scratch/kocevski/594322/ft2_4FGL_J2256.0-2740_daily_bin1481.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/594322/Model_4FGL_J2256.0-2740_daily_bin1481.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/594322/ft1_filtered_4FGL_J2256.0-2740_daily_bin1481.fits.....................!
real 43.79
user 42.46
sys 1.23

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    31.586       1.0000         .10000E-03   10000.    
     2 'Prefactor '    6.1409       1.0000         .10000E-03   10000.    
     3 'norm      '    .10092E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    47.537       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .13018E-02   1.0000         .10000E-03   10000.    
     6 'norm      '    2.4319       1.0000         .10000E-03   10000.    
     7 'Prefactor '    1.1846       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10102E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .11109E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    59.282       1.0000         .10000E-03   10000.    
    12 'norm      '    9.0739       1.0000         .10000E-03   10000.    
    13 'Prefactor '    8.2085       1.0000         .10000E-03   10000.    
    14 'Prefactor '    7.8947       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .12218E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    4.7797       1.0000         .10000E-03   10000.    
    17 'Prefactor '    35.010       1.0000         .10000E-03   10000.    
    18 'norm      '    .10026E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10288E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10060E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    .43237       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.2896       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=   5188.771     FROM MIGRAD    STATUS=CONVERGED    873 CALLS     2782 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     31.588        22.114        .71294E-04    .16492E-03
   2  Prefactor     6.1425        8.2297        .16201E-03    .23971E-03
   3  norm          .10000E-03    15.952        .18142E-02** at limit **
   4  Prefactor     47.536        25.258        .58157E-04    .38197E-04
   5  Prefactor     .10000E-03    160.85        .47005E-02** at limit **
   6  norm          2.4393        3.0716        .10887E-03    .53968E-03
   7  Prefactor     .73189        161.93        .16993        .81989E-04
   8  Prefactor     .10000E-03    11.795        .18142E-02** at limit **
   9  norm          .10000E-03    3.7608        .13580E-02** at limit **
  10  Prefactor     .10000E-03    16.357        .18142E-02** at limit **
  11  Prefactor     59.286        25.685        .52108E-04   -.32944E-04
  12  norm          9.0747        1.9507        .34615E-04    .11786E-02
  13  Prefactor     8.3295        88.849        .13993E-03   -.34285E-04
  14  Prefactor     7.8981        20.162        .14271E-03    .68113E-04
  15  Prefactor     .10000E-03    23.993        .18142E-02** at limit **
  16  norm          4.7802        5.9878        .18403E-03    .30085E-04
  17  Prefactor     35.013        50.999        .67729E-04    .38909E-04
  18  norm          .10000E-03    2.0199        .99653E-03** at limit **
  19  Prefactor     .10000E-03    17.169        .18142E-02** at limit **
  20  Prefactor     .10000E-03    52.758        .18142E-02** at limit **
  21  Normalizat    .43236        .27216        .39373E-03    .34800E-03
  22  Prefactor     1.2894        .24919        .23259E-03    .26002E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 31.5878
  Prefactor  = 6.14253
  norm       = 0.0001
  Prefactor  = 47.5357
  Prefactor  = 0.000100002
  norm       = 2.43926
  Prefactor  = 0.731889
  Prefactor  = 0.000100002
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 59.2864
  norm       = 9.07471
  Prefactor  = 8.32947
  Prefactor  = 7.8981
  Prefactor  = 0.0001
  norm       = 4.78019
  Prefactor  = 35.0132
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.432361
  Prefactor  = 1.28945
 **********
 **   18 **HESSE 
 **********

 FCN=   5188.771     FROM HESSE     STATUS=OK           330 CALLS     3112 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     31.588        22.114        .14259E-04   -1.4583    
   2  Prefactor     6.1425        8.2296        .64803E-05   -1.5212    
   3  norm          .10000E-03    15.953        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     47.536        25.259        .11631E-04   -1.4328    
   5  Prefactor     .10000E-03    166.28        .18802E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          2.4393        3.1313        .43547E-05   -1.5396    
   7  Prefactor     .73189        187.84        .15925       -1.5537    
   8  Prefactor     .10000E-03    11.799        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    3.7614        .27159E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    16.358        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     59.286        25.784        .20843E-05   -1.4166    
  12  norm          9.0747        1.9521        .69230E-05   -1.5105    
  13  Prefactor     8.3295        88.855        .55973E-05   -1.5131    
  14  Prefactor     7.8981        20.161        .57083E-05   -1.5146    
  15  Prefactor     .10000E-03    24.004        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          4.7802        5.9878        .73611E-05   -1.5271    
  17  Prefactor     35.013        51.008        .13546E-04   -1.4524    
  18  norm          .10000E-03    2.0201        .19931E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    17.169        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    52.758        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    .43236        .27245        .15749E-04   -1.1566    
  22  Prefactor     1.2894        .24930        .46517E-04   -.83621    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.59034e-09
Minuit parameter uncertainties:
  1  22.1197
  2  8.23113
  3  4.05647e-05
  4  25.2648
  5  0.00106215
  6  3.13152
  7  23.5233
  8  0.000334081
  9  1.19016e-05
  10  1.32235e-05
  11  25.7893
  12  1.95212
  13  54.5134
  14  20.1782
  15  0.000112013
  16  5.98852
  17  51.0719
  18  2.11496e-07
  19  7.67579e-06
  20  3.78915e-05
  21  0.273293
  22  0.249531
Done.

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

Extracting fit parameters...

4FGL J2256.0-2740
   Spectrum: PowerLaw
340    Prefactor:  5.929e+01  2.579e+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:  1.289e+00  2.495e-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:  4.324e-01  2.733e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 11.82
Ra Dec: 344.025 -27.674
Photon Index (Fixed Index): 3.02 +/- 0.00
Photon Flux (Fixed Index): 4.06e-07 +/- 1.76e-07
Energy Flux (Fixed Index): 8.01e-05 +/- 3.48e-05

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) = 5187.70657829
delta logL = 1.0640624591

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5187.69779063
delta logL = 1.07285011351

Fit tolerance = 1e-08

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

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

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5187.698     FROM MIGRAD    STATUS=CONVERGED    100 CALLS      293 TOTAL
                     EDM=   .59E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     22.103        29.717        .42561E-03   -.12138E-03
   2  Index         5.0534        1.9037        .58422E-03   -.13914E-04
   3  Normalizat    .34829        .26435        .43723E-03   -.12060E-03
   4  Prefactor     1.3771        .25339        .22730E-03   -.18904E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 22.1034
  Index      = 5.05341
  Normalizat = 0.348287
  Prefactor  = 1.37709
 **********
 **   18 **HESSE 
 **********

 FCN=   5187.698     FROM HESSE     STATUS=OK            23 CALLS      316 TOTAL
                     EDM=   .59E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     22.103        25.681        .17024E-04   -1.4767    
   2  Index         5.0534        1.6555        .23369E-04    .10682E-01
   3  Normalizat    .34829        .26403        .17489E-04   -1.2007    
   4  Prefactor     1.3771        .25342        .45460E-04   -.81043    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.9018e-11
Minuit parameter uncertainties:
  1  25.6936
  2  1.68735
  3  0.264983
  4  0.253652
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/594322': 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) = 5187.69778923
delta logL = 1.07285152059

Extracting fit parameters...

4FGL J2256.0-2740
   Spectrum: PowerLaw
340    Prefactor:  2.210e+01  2.569e+01  1.000e-04  1.000e+04 ( 1.000e-11)
341        Index:  5.053e+00  1.687e+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:  1.377e+00  2.537e-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:  3.483e-01  2.650e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 18.27
Ra Dec: 344.025 -27.674
Photon Index (Free Index): 5.05 +/- 1.69
Photon Flux (Free Index): 4.43e-07 +/- 1.41e-07
Energy Flux (Free Index): 5.86e-05 +/- 2.19e-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/594322/cmap_HighResolution_623203201_623462401_4FGL_J2256.0-2740_daily_bin1481.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='4.06e-07', energy_flux2='5.86e-05', photon_flux_error='1.76e-07', dlogl='1.07e+00', energy_flux='8.01e-05', photon_flux2='4.43e-07', job_status='DONE', time_completed='2021-09-29 03:06:41.451401', photon_index_error2='1.69', photon_index2='5.05', ts='11.82', fit_tolerance='1e-08', GAL='1.29', photon_index_error='0.00', energy_flux_error2='2.19e-05', EG='0.43', time_epoch_completed='1632910001.45', return_code='0', job_id='594322', GAL2='1.38', EG2='0.35', return_code2='0', energy_flux_error='3.48e-05', photon_flux_error2='1.41e-07', ts2='18.27', photon_index='3.02' WHERE bin_id='1481' AND source_name='4FGL J2256.0-2740' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 03:06:41 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0219>
Subject: Job 594322: <4FGL_J2256.0-2740_daily_bin1481> in cluster <slac> Done

Job <4FGL_J2256.0-2740_daily_bin1481> 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) <bullet0219>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 02:50:49 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:49 2021
Terminated at Wed Sep 29 03:06:42 2021
Results reported at Wed Sep 29 03:06:42 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2256.0-2740_daily_bin1481 344.025 -27.6739 623203201 623462401 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 :                                   543.01 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             240.17 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   952 sec.
    Turnaround time :                            954 sec.

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

