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


Performing analysis on: 4FGL_J2256.0-2740_daily_bin1344
RA = 344.025, Dec = -27.6739
tmin = 587692801, tmax = 587952001
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='594119', job_status='RUN', time_executed='2021-09-29 02:51:00.025776', time_epoch_executed='1632909060.03' WHERE source_name='4FGL J2256.0-2740' and cadence='daily' and bin_id='1344'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/594119

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/594119/ft1_4FGL_J2256.0-2740_daily_bin1344.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/594119/ft2_4FGL_J2256.0-2740_daily_bin1344.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/594119/ft1_4FGL_J2256.0-2740_daily_bin1344.fits outfile=/scratch/kocevski/594119/ft1_filteredMKT_4FGL_J2256.0-2740_daily_bin1344.fits ra=344.025 dec=-27.6739 rad=12.0 tmin=587692801.0 tmax=587952001.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.51
user 3.28
sys 0.18

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/594119/ft2_4FGL_J2256.0-2740_daily_bin1344.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/594119/ft1_filteredMKT_4FGL_J2256.0-2740_daily_bin1344.fits evtable="EVENTS" outfile="/scratch/kocevski/594119/ft1_filtered_4FGL_J2256.0-2740_daily_bin1344.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.51
user 0.33
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/594119/ft1_filtered_4FGL_J2256.0-2740_daily_bin1344.fits" evtable="EVENTS" scfile=/scratch/kocevski/594119/ft2_4FGL_J2256.0-2740_daily_bin1344.fits sctable="SC_DATA" outfile=/scratch/kocevski/594119/ltcube_587692801_587952001_4FGL_J2256.0-2740_daily_bin1344.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/594119/ft2_4FGL_J2256.0-2740_daily_bin1344.fits
.....................!
real 11.77
user 11.40
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/594119/ft1_filtered_4FGL_J2256.0-2740_daily_bin1344.fits evtable="EVENTS" scfile=/scratch/kocevski/594119/ft2_4FGL_J2256.0-2740_daily_bin1344.fits sctable="SC_DATA" expcube=/scratch/kocevski/594119/ltcube_587692801_587952001_4FGL_J2256.0-2740_daily_bin1344.fits outfile=/scratch/kocevski/594119/expmap_587692801_587952001_4FGL_J2256.0-2740_daily_bin1344.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/594119/ltcube_587692801_587952001_4FGL_J2256.0-2740_daily_bin1344.fits
.....................!
real 190.25
user 185.44
sys 4.45

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/594119/ft1_filtered_4FGL_J2256.0-2740_daily_bin1344.fits scfile=/scratch/kocevski/594119/ft2_4FGL_J2256.0-2740_daily_bin1344.fits outfile=/scratch/kocevski/594119/cmap_587692801_587952001_4FGL_J2256.0-2740_daily_bin1344.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.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/594119/ft1_filtered_4FGL_J2256.0-2740_daily_bin1344.fits scfile=/scratch/kocevski/594119/ft2_4FGL_J2256.0-2740_daily_bin1344.fits outfile=/scratch/kocevski/594119/cmap_HighResolution_587692801_587952001_4FGL_J2256.0-2740_daily_bin1344.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/594119/ft1_filtered_4FGL_J2256.0-2740_daily_bin1344.fits evtable="EVENTS" scfile=/scratch/kocevski/594119/ft2_4FGL_J2256.0-2740_daily_bin1344.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/594119/Model_4FGL_J2256.0-2740_daily_bin1344.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/594119/ft1_filtered_4FGL_J2256.0-2740_daily_bin1344.fits.....................!
real 37.68
user 36.31
sys 1.25

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    7.1688       1.0000         .10000E-03   10000.    
     3 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    49.695       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    18.791       1.0000         .10000E-03   10000.    
    12 'norm      '    2.5493       1.0000         .10000E-03   10000.    
    13 'Prefactor '    125.21       1.0000         .10000E-03   10000.    
    14 'Prefactor '    6.3483       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10529E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .83743       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10075E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .15613E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    .81105       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.0353       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=   4219.582     FROM MIGRAD    STATUS=CONVERGED    492 CALLS     2353 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    13.977        .90712E-02** at limit **
   2  Prefactor     7.1696        11.828        .37454E-02   -.21511E-03
   3  norm          .10000E-03    6.2753        .90712E-02** at limit **
   4  Prefactor     .10000E-03    34.509        .90712E-02** at limit **
   5  Prefactor     .10000E-03    9.1308        .90712E-02** at limit **
   6  norm          .10000E-03    .91350        .90712E-02** at limit **
   7  Prefactor     49.696        51.037        .14222E-02   -.63081E-04
   8  Prefactor     .10000E-03    6.8409        .90712E-02** at limit **
   9  norm          .10000E-03    2.1088        .90712E-02** at limit **
  10  Prefactor     .10000E-03    6.3669        .90712E-02** at limit **
  11  Prefactor     18.791        15.701        .23099E-02   -.10575E-03
  12  norm          2.5492        1.1491        .63934E-02    .10132E-03
  13  Prefactor     125.21        86.494        .89933E-03    .52284E-04
  14  Prefactor     6.3473        20.155        .39826E-02    .79716E-04
  15  Prefactor     .10000E-03    18.410        .90712E-02** at limit **
  16  norm          .10000E-03    4.0501        .90712E-02** at limit **
  17  Prefactor     .10000E-03    101.07        .90712E-02** at limit **
  18  norm          .83642        3.2242        .12579E-01    .92084E-03
  19  Prefactor     .10000E-03    48.631        .90712E-02** at limit **
  20  Prefactor     .10000E-03    339.39        .90712E-02** at limit **
  21  Normalizat    .81099        .22325        .43754E-01   -.82567E-05
  22  Prefactor     1.0354        .20558        .40861E-01   -.85495E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 7.16956
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 49.6961
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 18.7914
  norm       = 2.54919
  Prefactor  = 125.21
  Prefactor  = 6.3473
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.836422
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.81099
  Prefactor  = 1.03538
 **********
 **   18 **HESSE 
 **********

 FCN=   4219.582     FROM HESSE     STATUS=OK           334 CALLS     2687 TOTAL
                     EDM=   .24E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    14.023        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     7.1696        11.835        .14982E-03   -1.5172    
   3  norm          .10000E-03    6.2763        .15893E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    34.664        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    9.1483        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    .91449        .60455E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     49.696        50.957        .56886E-04   -1.4297    
   8  Prefactor     .10000E-03    6.8679        .16590E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    2.1340        .92063E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    6.3684        .16004E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     18.791        16.389        .92396E-04   -1.4841    
  12  norm          2.5492        1.1902        .36448E-04   -1.5389    
  13  Prefactor     125.21        86.569        .35973E-04   -1.3465    
  14  Prefactor     6.3473        20.150        .15931E-03   -1.5204    
  15  Prefactor     .10000E-03    18.532        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    4.0617        .12766E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    101.82        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .83642        3.2419        .21635E-03   -1.5525    
  19  Prefactor     .10000E-03    48.815        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    340.58        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    .81099        .26495        .26178E-03   -.99662    
  22  Prefactor     1.0354        .24411        .22733E-03   -.91559    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.37405e-10
Minuit parameter uncertainties:
  1  2.16252e-06
  2  11.8389
  3  1.40312e-06
  4  3.02988e-05
  5  1.44859e-07
  6  1.3182e-06
  7  51.0012
  8  4.22422e-07
  9  6.67808e-07
  10  3.46053e-07
  11  16.3927
  12  1.19026
  13  86.6567
  14  20.1718
  15  1.15967e-05
  16  2.38608e-06
  17  4.09891e-05
  18  3.24256
  19  5.02649e-05
  20  0.000324558
  21  0.265377
  22  0.244375
Done.

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

Extracting fit parameters...

4FGL J2256.0-2740
   Spectrum: PowerLaw
340    Prefactor:  1.879e+01  1.639e+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.035e+00  2.444e-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:  8.110e-01  2.654e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.71
Ra Dec: 344.025 -27.674
Photon Index (Fixed Index): 3.02 +/- 0.00
Photon Flux (Fixed Index): 1.29e-07 +/- 1.12e-07
Energy Flux (Fixed Index): 2.54e-05 +/- 2.21e-05

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

Saving results to:
/scratch/kocevski/594119/likelihoodResults_587692801_587952001_4FGL_J2256.0-2740_daily_bin1344.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) = 4218.41088636
delta logL = 1.17126249251

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4218.40046151
delta logL = 1.18168734709

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    7.1382       1.0000         .10000E-03   10000.    
     2 'Index     '    5.5227       1.0000          .0000       10.000    
     3 'Normalizat'    .72347       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1054       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=   4218.400     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      247 TOTAL
                     EDM=   .20E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.1224        67.513        .37535E-02    .39898E-03
   2  Index         5.5256        7.7625        .20253        .64423E-04
   3  Normalizat    .72346        .86791E-01    .62280E-01    .14919E-03
   4  Prefactor     1.1055        .85016E-01    .37384E-01    .55809E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.12245
  Index      = 5.52556
  Normalizat = 0.723461
  Prefactor  = 1.10547
 **********
 **   18 **HESSE 
 **********

 FCN=   4218.400     FROM HESSE     STATUS=OK            31 CALLS      278 TOTAL
                     EDM=   .47E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.1224        194.40        .83246E-04   -1.5174    
   2  Index         5.5256        5.8475        .85648E-02    .10531    
   3  Normalizat    .72346        .27201        .27551E-03   -1.0297    
   4  Prefactor     1.1055        .24842        .22110E-03   -.89292    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.70075e-10
Minuit parameter uncertainties:
  1  74.6907
  2  14.9706
  3  0.272518
  4  0.248683
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/594119': 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) = 4218.40046077
delta logL = 1.18168808985

Extracting fit parameters...

4FGL J2256.0-2740
   Spectrum: PowerLaw
340    Prefactor:  7.122e+00  7.469e+01  1.000e-04  1.000e+04 ( 1.000e-11)
341        Index:  5.526e+00  1.497e+01  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.105e+00  2.487e-01  0.000e+00  1.000e+01 ( 1.000e+00)
559        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
560        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
557   Normalization:  7.235e-01  2.725e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.74
Ra Dec: 344.025 -27.674
Photon Index (Free Index): 5.53 +/- 14.97
Photon Flux (Free Index): 1.93e-07 +/- 1.79e-07
Energy Flux (Free Index): 2.47e-05 +/- 4.40e-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/594119/cmap_HighResolution_587692801_587952001_4FGL_J2256.0-2740_daily_bin1344.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.31e-02', comment='SUCCESS', photon_flux='1.29e-07', energy_flux2='2.47e-05', photon_flux_error='1.12e-07', dlogl='1.18e+00', energy_flux='2.54e-05', photon_flux2='1.93e-07', job_status='DONE', time_completed='2021-09-29 03:00:08.701620', photon_index_error2='14.97', photon_index2='5.53', ts='2.71', fit_tolerance='1e-08', GAL='1.04', photon_index_error='0.00', photon_flux_upper_limit='2.88e-07', energy_flux_error2='4.40e-05', EG='0.81', time_epoch_completed='1632909608.7', return_code='0', job_id='594119', GAL2='1.11', EG2='0.72', return_code2='0', energy_flux_error='2.21e-05', photon_flux_error2='1.79e-07', ts2='5.74', photon_index='3.02' WHERE bin_id='1344' AND source_name='4FGL J2256.0-2740' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 03:00:08 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0222>
Subject: Job 594119: <4FGL_J2256.0-2740_daily_bin1344> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2256.0-2740_daily_bin1344 344.025 -27.6739 587692801 587952001 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 :                                   519.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             339.44 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   572 sec.
    Turnaround time :                            575 sec.

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

