/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 225 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 = 7476
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J2256.0-2740_daily_bin81
RA = 344.025, Dec = -27.6739
tmin = 260323201, tmax = 260582401
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='589213', job_status='RUN', time_executed='2021-09-29 02:39:10.638100', time_epoch_executed='1632908350.64' WHERE source_name='4FGL J2256.0-2740' and cadence='daily' and bin_id='81'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/589213

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/589213/ft1_4FGL_J2256.0-2740_daily_bin81.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/589213/ft2_4FGL_J2256.0-2740_daily_bin81.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/589213/ft1_4FGL_J2256.0-2740_daily_bin81.fits outfile=/scratch/kocevski/589213/ft1_filteredMKT_4FGL_J2256.0-2740_daily_bin81.fits ra=344.025 dec=-27.6739 rad=12.0 tmin=260323201.0 tmax=260582401.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 1.52
user 1.34
sys 0.17

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/589213/ft1_filtered_4FGL_J2256.0-2740_daily_bin81.fits" evtable="EVENTS" scfile=/scratch/kocevski/589213/ft2_4FGL_J2256.0-2740_daily_bin81.fits sctable="SC_DATA" outfile=/scratch/kocevski/589213/ltcube_260323201_260582401_4FGL_J2256.0-2740_daily_bin81.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/589213/ft2_4FGL_J2256.0-2740_daily_bin81.fits
.....................!
real 12.70
user 12.33
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/589213/ft1_filtered_4FGL_J2256.0-2740_daily_bin81.fits evtable="EVENTS" scfile=/scratch/kocevski/589213/ft2_4FGL_J2256.0-2740_daily_bin81.fits sctable="SC_DATA" expcube=/scratch/kocevski/589213/ltcube_260323201_260582401_4FGL_J2256.0-2740_daily_bin81.fits outfile=/scratch/kocevski/589213/expmap_260323201_260582401_4FGL_J2256.0-2740_daily_bin81.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/589213/ltcube_260323201_260582401_4FGL_J2256.0-2740_daily_bin81.fits
.....................!
real 189.73
user 185.04
sys 4.38

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/589213/ft1_filtered_4FGL_J2256.0-2740_daily_bin81.fits scfile=/scratch/kocevski/589213/ft2_4FGL_J2256.0-2740_daily_bin81.fits outfile=/scratch/kocevski/589213/cmap_260323201_260582401_4FGL_J2256.0-2740_daily_bin81.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.52
user 0.36
sys 0.15

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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/589213/ft1_filtered_4FGL_J2256.0-2740_daily_bin81.fits evtable="EVENTS" scfile=/scratch/kocevski/589213/ft2_4FGL_J2256.0-2740_daily_bin81.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/589213/Model_4FGL_J2256.0-2740_daily_bin81.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/589213/ft1_filtered_4FGL_J2256.0-2740_daily_bin81.fits.....................!
real 51.44
user 50.07
sys 1.27

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.3308       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10941E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10077E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    9.2511       1.0000         .10000E-03   10000.    
     6 'norm      '    .24832E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    45.804       1.0000         .10000E-03   10000.    
     8 'Prefactor '    4.6553       1.0000         .10000E-03   10000.    
     9 'norm      '    7.0734       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    10.785       1.0000         .10000E-03   10000.    
    12 'norm      '    .10390E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .25167E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10962E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    6.5000       1.0000         .10000E-03   10000.    
    17 'Prefactor '    8.2106       1.0000         .10000E-03   10000.    
    18 'norm      '    1.2672       1.0000         .10000E-03   10000.    
    19 'Prefactor '    12.093       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10674E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.4112       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .77434       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=   6313.561     FROM MIGRAD    STATUS=CONVERGED    485 CALLS     2354 TOTAL
                     EDM=   .74E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.3311        9.1080        .14637E-06   -.12257E-05
   2  Prefactor     .10000E-03    3.2609       -.37074E-08** at limit **
   3  norm          .10000E-03    5.1661       -.28948E-07** at limit **
   4  Prefactor     .10000E-03    8.4641       -.20169E-06** at limit **
   5  Prefactor     9.2377        9.6268        .28658E-06    .28811E-04
   6  norm          .10000E-03    1.2153       -.35998E-06** at limit **
   7  Prefactor     45.785        39.220        .14414E-05    .50491E-04
   8  Prefactor     4.6780        14.275        .91928E-06    .70680E-05
   9  norm          7.0713        4.4202        .45445E-07    .12008E-03
  10  Prefactor     .10000E-03    8.5864        .97140E-07** at limit **
  11  Prefactor     10.792        10.681        .27816E-06    .15077E-03
  12  norm          .10000E-03    .54674       -.70420E-07** at limit **
  13  Prefactor     .10000E-03    46.110        .70274E-06** at limit **
  14  Prefactor     .10000E-03    3.6857       -.23836E-07** at limit **
  15  Prefactor     .10000E-03    17.861       -.45177E-06** at limit **
  16  norm          6.5014        5.9166        .49714E-07   -.19782E-05
  17  Prefactor     8.2307        26.025        .50020E-05    .72768E-04
  18  norm          1.2699        4.1911        .16989E-05   -.40635E-04
  19  Prefactor     12.105        36.965       -.25553E-06   -.51037E-06
  20  Prefactor     .10000E-03    38.563        .56865E-06** at limit **
  21  Normalizat    1.4108        .19295       -.11370E-05    .94394E-04
  22  Prefactor     .77450        .17111        .57188E-06   -.28026E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.33113
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 9.23772
  norm       = 0.000100004
  Prefactor  = 45.7854
  Prefactor  = 4.678
  norm       = 7.07133
  Prefactor  = 0.0001
  Prefactor  = 10.7921
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 6.50142
  Prefactor  = 8.23067
  norm       = 1.26989
  Prefactor  = 12.1045
  Prefactor  = 0.0001
  Normalizat = 1.41079
  Prefactor  = 0.774502
 **********
 **   18 **HESSE 
 **********

 FCN=   6313.561     FROM HESSE     STATUS=OK           344 CALLS     2698 TOTAL
                     EDM=   .44E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.3311        9.0985        .17407E-03   -1.5246    
   2  Prefactor     .10000E-03    3.2715        .14011E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    5.1676        .17639E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    8.4756        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     9.2377        9.6189        .13177E-03   -1.5100    
   6  norm          .10000E-03    12.348        .15390E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     45.785        37.488        .59242E-04   -1.4354    
   8  Prefactor     4.6780        14.351        .18653E-03   -1.5275    
   9  norm          7.0713        4.4129        .11913E-03   -1.5176    
  10  Prefactor     .10000E-03    8.6001        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     10.792        9.5136        .12200E-03   -1.5051    
  12  norm          .10000E-03    1.0168        .98156E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    46.239        .21462E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    3.6888        .14898E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    18.115        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          6.5014        5.9148        .15741E-03   -1.5198    
  17  Prefactor     8.2307        26.434        .13991E-03   -1.5134    
  18  norm          1.2699        4.1324        .24823E-03   -1.5483    
  19  Prefactor     12.105        36.537        .11520E-03   -1.5012    
  20  Prefactor     .10000E-03    38.576        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    1.4108        .23110        .22807E-03   -.80317    
  22  Prefactor     .77450        .20429        .27959E-03   -1.0068    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.41188e-10
Minuit parameter uncertainties:
  1  9.10082
  2  1.69231e-06
  3  9.83695e-08
  4  5.66407e-06
  5  9.62053
  6  0.000443558
  7  37.5077
  8  14.3612
  9  4.41311
  10  2.08983e-06
  11  9.51493
  12  7.24331e-06
  13  7.11295e-05
  14  1.84411e-07
  15  4.21784e-05
  16  5.91534
  17  26.4718
  18  4.13328
  19  36.6041
  20  3.54791e-05
  21  0.231271
  22  0.204486
Done.

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

Extracting fit parameters...

4FGL J2256.0-2740
   Spectrum: PowerLaw
340    Prefactor:  1.079e+01  9.515e+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:  7.745e-01  2.045e-01  0.000e+00  1.000e+01 ( 1.000e+00)
559        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
560        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
557   Normalization:  1.411e+00  2.313e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.86
Ra Dec: 344.025 -27.674
Photon Index (Fixed Index): 3.02 +/- 0.00
Photon Flux (Fixed Index): 7.38e-08 +/- 6.50e-08
Energy Flux (Fixed Index): 1.46e-05 +/- 1.28e-05

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

Saving results to:
/scratch/kocevski/589213/likelihoodResults_260323201_260582401_4FGL_J2256.0-2740_daily_bin81.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) = 6313.39874428
delta logL = 0.162445618805

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6313.38731648
delta logL = 0.173873421699

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.8807       1.0000         .10000E-03   10000.    
     2 'Index     '    4.5882       1.0000          .0000       10.000    
     3 'Normalizat'    1.3809       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .80314       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=   6313.387     FROM MIGRAD    STATUS=CONVERGED     59 CALLS      258 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.8641        87.012        .41400E-02    .32238E-03
   2  Index         4.5917        7.0693        .37669        .52424E-04
   3  Normalizat    1.3811        .57060E-01    .52040E-01   -.90817E-05
   4  Prefactor     .80301        .54628E-01    .43758E-01    .13828E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.86414
  Index      = 4.59174
  Normalizat = 1.3811
  Prefactor  = 0.803015
 **********
 **   18 **HESSE 
 **********

 FCN=   6313.387     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      291 TOTAL
                     EDM=   .55E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.8641        164.45        .13724E-03   -1.5224    
   2  Index         4.5917        5.9560        .14087E-01   -.81742E-01
   3  Normalizat    1.3811        .20017        .23008E-03   -.81177    
   4  Prefactor     .80301        .19896        .27517E-03   -.99617    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 5.46703e-07
Minuit parameter uncertainties:
  1  62.2984
  2  16.7704
  3  0.200286
  4  0.199139
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/589213': 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): 102
logL (Free Index) = 6313.38731564
delta logL = 0.173874260542

Extracting fit parameters...

4FGL J2256.0-2740
   Spectrum: PowerLaw
340    Prefactor:  5.864e+00  6.230e+01  1.000e-04  1.000e+04 ( 1.000e-11)
341        Index:  4.592e+00  1.677e+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:  8.030e-01  1.991e-01  0.000e+00  1.000e+01 ( 1.000e+00)
559        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
560        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
557   Normalization:  1.381e+00  2.003e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.32
Ra Dec: 344.025 -27.674
Photon Index (Free Index): 4.59 +/- 16.77
Photon Flux (Free Index): 8.86e-08 +/- 9.07e-08
Energy Flux (Free Index): 1.23e-05 +/- 3.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/589213/cmap_HighResolution_260323201_260582401_4FGL_J2256.0-2740_daily_bin81.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.51e-02', comment='SUCCESS', photon_flux='7.38e-08', energy_flux2='1.23e-05', photon_flux_error='6.50e-08', dlogl='1.74e-01', energy_flux='1.46e-05', photon_flux2='8.86e-08', job_status='DONE', time_completed='2021-09-29 02:49:31.952248', photon_index_error2='16.77', photon_index2='4.59', ts='1.86', fit_tolerance='1e-08', GAL='0.77', photon_index_error='0.00', photon_flux_upper_limit='1.89e-07', energy_flux_error2='3.19e-05', EG='1.41', time_epoch_completed='1632908971.95', return_code='0', job_id='589213', GAL2='0.80', EG2='1.38', return_code2='102', energy_flux_error='1.28e-05', photon_flux_error2='9.07e-08', ts2='2.32', photon_index='3.02' WHERE bin_id='81' AND source_name='4FGL J2256.0-2740' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 02:49:31 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0252>
Subject: Job 589213: <4FGL_J2256.0-2740_daily_bin81> in cluster <slac> Done

Job <4FGL_J2256.0-2740_daily_bin81> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Sep 29 02:35:17 2021
Job was executed on host(s) <bullet0252>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 02:35: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:35:18 2021
Terminated at Wed Sep 29 02:49:32 2021
Results reported at Wed Sep 29 02:49:32 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2256.0-2740_daily_bin81 344.025 -27.6739 260323201 260582401 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 :                                   621.14 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             284.52 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   854 sec.
    Turnaround time :                            855 sec.

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

