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


Performing analysis on: 4FGL_J2256.0-2740_daily_bin981
RA = 344.025, Dec = -27.6739
tmin = 493603201, tmax = 493862401
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='592619', job_status='RUN', time_executed='2021-09-29 02:45:55.087161', time_epoch_executed='1632908755.09' WHERE source_name='4FGL J2256.0-2740' and cadence='daily' and bin_id='981'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/592619

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

Retrieving the FT1 file...

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

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

Retrieving 45 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/592619/ft1_4FGL_J2256.0-2740_daily_bin981.fits


Retrieving the FT1 file...

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

Retrieving 45 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/592619/ft2_4FGL_J2256.0-2740_daily_bin981.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/592619/ft1_4FGL_J2256.0-2740_daily_bin981.fits outfile=/scratch/kocevski/592619/ft1_filteredMKT_4FGL_J2256.0-2740_daily_bin981.fits ra=344.025 dec=-27.6739 rad=12.0 tmin=493603201.0 tmax=493862401.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.50
user 3.27
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/592619/ft2_4FGL_J2256.0-2740_daily_bin981.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/592619/ft1_filteredMKT_4FGL_J2256.0-2740_daily_bin981.fits evtable="EVENTS" outfile="/scratch/kocevski/592619/ft1_filtered_4FGL_J2256.0-2740_daily_bin981.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.50
user 0.31
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/592619/ft1_filtered_4FGL_J2256.0-2740_daily_bin981.fits" evtable="EVENTS" scfile=/scratch/kocevski/592619/ft2_4FGL_J2256.0-2740_daily_bin981.fits sctable="SC_DATA" outfile=/scratch/kocevski/592619/ltcube_493603201_493862401_4FGL_J2256.0-2740_daily_bin981.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/592619/ft2_4FGL_J2256.0-2740_daily_bin981.fits
.....................!
real 11.55
user 11.20
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/592619/ft1_filtered_4FGL_J2256.0-2740_daily_bin981.fits evtable="EVENTS" scfile=/scratch/kocevski/592619/ft2_4FGL_J2256.0-2740_daily_bin981.fits sctable="SC_DATA" expcube=/scratch/kocevski/592619/ltcube_493603201_493862401_4FGL_J2256.0-2740_daily_bin981.fits outfile=/scratch/kocevski/592619/expmap_493603201_493862401_4FGL_J2256.0-2740_daily_bin981.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/592619/ltcube_493603201_493862401_4FGL_J2256.0-2740_daily_bin981.fits
.....................!
real 191.93
user 186.04
sys 5.47

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/592619/ft1_filtered_4FGL_J2256.0-2740_daily_bin981.fits scfile=/scratch/kocevski/592619/ft2_4FGL_J2256.0-2740_daily_bin981.fits outfile=/scratch/kocevski/592619/cmap_493603201_493862401_4FGL_J2256.0-2740_daily_bin981.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.35
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/592619/ft1_filtered_4FGL_J2256.0-2740_daily_bin981.fits scfile=/scratch/kocevski/592619/ft2_4FGL_J2256.0-2740_daily_bin981.fits outfile=/scratch/kocevski/592619/cmap_HighResolution_493603201_493862401_4FGL_J2256.0-2740_daily_bin981.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.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/592619/ft1_filtered_4FGL_J2256.0-2740_daily_bin981.fits evtable="EVENTS" scfile=/scratch/kocevski/592619/ft2_4FGL_J2256.0-2740_daily_bin981.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/592619/Model_4FGL_J2256.0-2740_daily_bin981.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/592619/ft1_filtered_4FGL_J2256.0-2740_daily_bin981.fits.....................!
real 48.96
user 47.60
sys 1.22

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    10.137       1.0000         .10000E-03   10000.    
     6 'norm      '    1.5544       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    33.069       1.0000         .10000E-03   10000.    
     9 'norm      '    2.3200       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    5.2102       1.0000         .10000E-03   10000.    
    12 'norm      '    .10016E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    12.568       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .16912E-02   1.0000         .10000E-03   10000.    
    15 'Prefactor '    9.4490       1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10037E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    1.8794       1.0000         .10000E-03   10000.    
    19 'Prefactor '    28.298       1.0000         .10000E-03   10000.    
    20 'Prefactor '    154.05       1.0000         .10000E-03   10000.    
    21 'Normalizat'    .84227       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .80707       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5610E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6189.823     FROM MIGRAD    STATUS=CONVERGED    500 CALLS     2488 TOTAL
                     EDM=   .13E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    3.4981        .62358E-08** at limit **
   2  Prefactor     .10000E-03    3.2670        .16835E-07** at limit **
   3  norm          .10000E-03    22.358       -.68774E-07** at limit **
   4  Prefactor     .10000E-03    4.7146       -.16665E-07** at limit **
   5  Prefactor     10.138        9.3740        .13327E-06   -.67310E-04
   6  norm          1.5547        1.5676        .12824E-06    .20979E-04
   7  Prefactor     .10001E-03    109.69       -.40611E-06** at limit **
   8  Prefactor     33.069        11.982       -.16434E-07    .24728E-04
   9  norm          2.3196        2.9938        .88600E-07    .12019E-03
  10  Prefactor     .10000E-03    4.4444       -.20949E-06** at limit **
  11  Prefactor     5.2037        6.7652        .33525E-06    .28190E-03
  12  norm          .10000E-03    .29525       -.58930E-06** at limit **
  13  Prefactor     12.545        35.975       -.28027E-06   -.82905E-04
  14  Prefactor     .10000E-03    220.47       -.23290E-05** at limit **
  15  Prefactor     9.4483        8.4775       -.62350E-07    .10652E-03
  16  norm          .10000E-03    2.1649       -.55926E-08** at limit **
  17  Prefactor     .10000E-03    39.148       -.10820E-07** at limit **
  18  norm          1.8795        2.6451        .18269E-06    .52455E-04
  19  Prefactor     28.296        26.185       -.13432E-06   -.46043E-04
  20  Prefactor     154.06        93.981        .12907E-06    .43932E-04
  21  Normalizat    .84239        .15307       -.93360E-07   -.21558E-04
  22  Prefactor     .80696        .14619       -.11252E-07   -.12055E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10.1377
  norm       = 1.55469
  Prefactor  = 0.000100007
  Prefactor  = 33.069
  norm       = 2.31963
  Prefactor  = 0.0001
  Prefactor  = 5.20369
  norm       = 0.0001
  Prefactor  = 12.5454
  Prefactor  = 0.0001
  Prefactor  = 9.4483
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 1.8795
  Prefactor  = 28.2962
  Prefactor  = 154.061
  Normalizat = 0.842386
  Prefactor  = 0.806961
 **********
 **   18 **HESSE 
 **********

 FCN=   6189.823     FROM HESSE     STATUS=OK           354 CALLS     2842 TOTAL
                     EDM=   .22E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    3.5010        .14371E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    3.3311        .13886E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    22.920        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    4.7196        .16684E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     10.138        9.3512        .12585E-03   -1.5071    
   6  norm          1.5547        1.5531        .95361E-04   -1.5459    
   7  Prefactor     .10001E-03    109.32        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     33.069        12.025        .69682E-04   -1.4557    
   9  norm          2.3196        2.9593        .14177E-03   -1.5403    
  10  Prefactor     .10000E-03    4.4550        .16197E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     5.2037        6.7704        .17611E-03   -1.5252    
  12  norm          .10000E-03    .29558        .65466E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     12.545        36.156        .11299E-03   -1.4999    
  14  Prefactor     .10000E-03    11.721        .69305E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     9.4483        8.4186        .13037E-03   -1.5093    
  16  norm          .10000E-03    2.1696        .11305E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    39.325        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          1.8795        2.6320        .14240E-03   -1.5434    
  19  Prefactor     28.296        26.104        .75312E-04   -1.4644    
  20  Prefactor     154.06        94.208        .32479E-04   -1.3219    
  21  Normalizat    .84239        .18212        .22394E-03   -.98515    
  22  Prefactor     .80696        .17338        .22613E-03   -.99472    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.24087e-10
Minuit parameter uncertainties:
  1  4.14007e-07
  2  4.69632e-06
  3  9.54673e-05
  4  3.05615e-06
  5  9.35257
  6  1.55315
  7  0.00174354
  8  12.0258
  9  2.95944
  10  9.2101e-06
  11  6.77138
  12  1.71993e-06
  13  36.2192
  14  3.33317e-05
  15  8.41962
  16  2.42078e-06
  17  6.37614e-06
  18  2.63218
  19  26.1147
  20  94.3002
  21  0.182249
  22  0.173499
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
558    Prefactor:  8.070e-01  1.735e-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.424e-01  1.822e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.02
Ra Dec: 344.025 -27.674
Photon Index (Fixed Index): 3.02 +/- 0.00
Photon Flux (Fixed Index): 3.56e-08 +/- 4.63e-08
Energy Flux (Fixed Index): 7.03e-06 +/- 9.14e-06

TS (Fixed Index): 1.02
Ra Dec: 344.025 -27.674
Photon Flux Upper Limit: 1.16e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.33e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/592619/likelihoodResults_493603201_493862401_4FGL_J2256.0-2740_daily_bin981.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) = 6189.54897882
delta logL = 0.274252268016

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6189.54539383
delta logL = 0.277837263077

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.7792       1.0000         .10000E-03   10000.    
     2 'Index     '    3.9303       1.0000          .0000       10.000    
     3 'Normalizat'    .82396       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .81993       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=   6189.545     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      215 TOTAL
                     EDM=   .63E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.7782        113.89        .46009E-02    .38822E-03
   2  Index         3.9305        6.3105        .36745        .36404E-04
   3  Normalizat    .82393        .52955E-01    .43922E-01   -.56564E-05
   4  Prefactor     .81997        .52965E-01    .43976E-01    .18113E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.77819
  Index      = 3.93054
  Normalizat = 0.823926
  Prefactor  = 0.81997
 **********
 **   18 **HESSE 
 **********

 FCN=   6189.545     FROM HESSE     STATUS=OK            33 CALLS      248 TOTAL
                     EDM=   .18E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.7782        5.5680        .14376E-03   -1.5271    
   2  Index         3.9305        1.4548        .14114E-01   -.21556    
   3  Normalizat    .82393        .17714        .22607E-03   -.99187    
   4  Prefactor     .81997        .17304        .22450E-03   -.98996    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.82923e-11
Minuit parameter uncertainties:
  1  5.5686
  2  1.47718
  3  0.177269
  4  0.17315
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/592619': 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) = 6189.54539377
delta logL = 0.277837321506

Extracting fit parameters...

4FGL J2256.0-2740
   Spectrum: PowerLaw
340    Prefactor:  4.778e+00  5.569e+00  1.000e-04  1.000e+04 ( 1.000e-11)
341        Index:  3.931e+00  1.477e+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.200e-01  1.732e-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.239e-01  1.773e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.63
Ra Dec: 344.025 -27.674
Photon Index (Free Index): 3.93 +/- 1.48
Photon Flux (Free Index): 4.97e-08 +/- 4.44e-08
Energy Flux (Free Index): 7.54e-06 +/- 6.95e-06

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/592619/cmap_HighResolution_493603201_493862401_4FGL_J2256.0-2740_daily_bin981.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.33e-03', comment='SUCCESS', photon_flux='3.56e-08', energy_flux2='7.54e-06', photon_flux_error='4.63e-08', dlogl='2.78e-01', energy_flux='7.03e-06', photon_flux2='4.97e-08', job_status='DONE', time_completed='2021-09-29 02:56:30.016610', photon_index_error2='1.48', photon_index2='3.93', ts='1.02', fit_tolerance='1e-08', GAL='0.81', photon_index_error='0.00', photon_flux_upper_limit='1.16e-07', energy_flux_error2='6.95e-06', EG='0.84', time_epoch_completed='1632909390.02', return_code='0', job_id='592619', GAL2='0.82', EG2='0.82', return_code2='0', energy_flux_error='9.14e-06', photon_flux_error2='4.44e-08', ts2='1.63', photon_index='3.02' WHERE bin_id='981' AND source_name='4FGL J2256.0-2740' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 02:56:30 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0233>
Subject: Job 592619: <4FGL_J2256.0-2740_daily_bin981> in cluster <slac> Done

Job <4FGL_J2256.0-2740_daily_bin981> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Sep 29 02:45:39 2021
Job was executed on host(s) <bullet0233>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 02:45:41 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:45:41 2021
Terminated at Wed Sep 29 02:56:30 2021
Results reported at Wed Sep 29 02:56:30 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2256.0-2740_daily_bin981 344.025 -27.6739 493603201 493862401 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 :                                   631.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             346.38 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   649 sec.
    Turnaround time :                            651 sec.

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

