/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 8 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 = 7411
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J2256.0-2740_daily_bin251
RA = 344.025, Dec = -27.6739
tmin = 304387201, tmax = 304646401
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='589467', job_status='RUN', time_executed='2021-09-29 02:35:51.619485', time_epoch_executed='1632908151.62' WHERE source_name='4FGL J2256.0-2740' and cadence='daily' and bin_id='251'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/589467

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/589467/ft1_4FGL_J2256.0-2740_daily_bin251.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/589467/ft2_4FGL_J2256.0-2740_daily_bin251.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/589467/ft1_4FGL_J2256.0-2740_daily_bin251.fits outfile=/scratch/kocevski/589467/ft1_filteredMKT_4FGL_J2256.0-2740_daily_bin251.fits ra=344.025 dec=-27.6739 rad=12.0 tmin=304387201.0 tmax=304646401.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 4.10
user 3.87
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/589467/ft1_filtered_4FGL_J2256.0-2740_daily_bin251.fits" evtable="EVENTS" scfile=/scratch/kocevski/589467/ft2_4FGL_J2256.0-2740_daily_bin251.fits sctable="SC_DATA" outfile=/scratch/kocevski/589467/ltcube_304387201_304646401_4FGL_J2256.0-2740_daily_bin251.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/589467/ft2_4FGL_J2256.0-2740_daily_bin251.fits
.....................!
real 11.62
user 11.28
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/589467/ft1_filtered_4FGL_J2256.0-2740_daily_bin251.fits evtable="EVENTS" scfile=/scratch/kocevski/589467/ft2_4FGL_J2256.0-2740_daily_bin251.fits sctable="SC_DATA" expcube=/scratch/kocevski/589467/ltcube_304387201_304646401_4FGL_J2256.0-2740_daily_bin251.fits outfile=/scratch/kocevski/589467/expmap_304387201_304646401_4FGL_J2256.0-2740_daily_bin251.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/589467/ltcube_304387201_304646401_4FGL_J2256.0-2740_daily_bin251.fits
.....................!
real 191.50
user 186.58
sys 4.56

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/589467/ft1_filtered_4FGL_J2256.0-2740_daily_bin251.fits scfile=/scratch/kocevski/589467/ft2_4FGL_J2256.0-2740_daily_bin251.fits outfile=/scratch/kocevski/589467/cmap_304387201_304646401_4FGL_J2256.0-2740_daily_bin251.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.36
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    17.442       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .54129       1.0000         .10000E-03   10000.    
     3 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .93691       1.0000         .10000E-03   10000.    
     5 'Prefactor '    6.3777       1.0000         .10000E-03   10000.    
     6 'norm      '    .10057E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10045E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .20109E-02   1.0000         .10000E-03   10000.    
     9 'norm      '    .10520E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10064E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    13.212       1.0000         .10000E-03   10000.    
    12 'norm      '    1.7568       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .22144E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10088E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    8.4553       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    .93379       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .98235       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=   7158.439     FROM MIGRAD    STATUS=CONVERGED    488 CALLS     2093 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     17.442        16.853       -.44190E-06   -.49510E-04
   2  Prefactor     .53066        3.3625        .17280E-05   -.13479E-02
   3  norm          .10000E-03    7.9945        .69296E-05** at limit **
   4  Prefactor     .93099        7.6453       -.77997E-06   -.19420E-03
   5  Prefactor     6.3806        10.345       -.75052E-06   -.15097E-03
   6  norm          .10000E-03    1.4621        .13792E-06** at limit **
   7  Prefactor     .10000E-03    48.016       -.61249E-05** at limit **
   8  Prefactor     .10007E-03    6.6315       -.17831E-05** at limit **
   9  norm          .10000E-03    2.0182        .23114E-06** at limit **
  10  Prefactor     .10000E-03    7.7694       -.76594E-05** at limit **
  11  Prefactor     13.208        10.208       -.25895E-06    .36718E-03
  12  norm          1.7576        .76305        .55511E-07    .11972E-02
  13  Prefactor     .10000E-03    19.314       -.51779E-05** at limit **
  14  Prefactor     .10001E-03    4.3288        .51479E-06** at limit **
  15  Prefactor     .10000E-03    5.4608       -.81503E-06** at limit **
  16  norm          8.4550        6.9533        .45591E-06   -.21324E-04
  17  Prefactor     .10000E-03    27.528        .27244E-05** at limit **
  18  norm          .10000E-03    1.3048       -.33682E-07** at limit **
  19  Prefactor     .10000E-03    5.9213        .17547E-05** at limit **
  20  Prefactor     .10000E-03    28.320        .64959E-05** at limit **
  21  Normalizat    .93390        .15601        .28791E-06    .89218E-04
  22  Prefactor     .98225        .14979       -.24652E-06    .47590E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 17.4422
  Prefactor  = 0.530664
  norm       = 0.000100001
  Prefactor  = 0.930988
  Prefactor  = 6.38061
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100069
  norm       = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 13.2076
  norm       = 1.75756
  Prefactor  = 0.0001
  Prefactor  = 0.000100006
  Prefactor  = 0.0001
  norm       = 8.455
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Normalizat = 0.933904
  Prefactor  = 0.982255
 **********
 **   18 **HESSE 
 **********

 FCN=   7158.439     FROM HESSE     STATUS=OK           350 CALLS     2443 TOTAL
                     EDM=   .14E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     17.442        16.862        .95899E-04   -1.4872    
   2  Prefactor     .53066        17.074        .28511E-02   -1.5562    
   3  norm          .10000E-03    8.0003        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .93099        40.426        .44558E-02   -1.5515    
   5  Prefactor     6.3806        10.314        .15893E-03   -1.5203    
   6  norm          .10000E-03    3.5558        .19590E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    48.161        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10007E-03    27.209        .40423E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    3.9834        .22508E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    7.7585        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     13.208        10.520        .11020E-03   -1.4981    
  12  norm          1.7576        .79774        .37187E-04   -1.5443    
  13  Prefactor     .10000E-03    19.327        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10001E-03    18.423        .34232E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    5.5019        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          8.4550        6.9437        .13786E-03   -1.5126    
  17  Prefactor     .10000E-03    27.607        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    1.3495        .18860E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    5.9246        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    28.330        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    .93390        .18329        .23374E-03   -.95279    
  22  Prefactor     .98225        .17768        .22970E-03   -.93323    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.448e-08
Minuit parameter uncertainties:
  1  16.8667
  2  6.02148
  3  0.000157508
  4  12.2778
  5  10.3169
  6  1.33404e-05
  7  0.000273737
  8  0.00274466
  9  2.49867e-05
  10  0.000158692
  11  10.5216
  12  0.79774
  13  0.000179868
  14  0.000646449
  15  5.64552e-06
  16  6.94436
  17  0.000103461
  18  6.47378e-07
  19  3.40601e-05
  20  0.000276615
  21  0.183414
  22  0.177788
Done.

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

Extracting fit parameters...

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

EG_v02
   Spectrum: FileFunction
557   Normalization:  9.339e-01  1.834e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.33
Ra Dec: 344.025 -27.674
Photon Index (Fixed Index): 3.02 +/- 0.00
Photon Flux (Fixed Index): 9.04e-08 +/- 7.19e-08
Energy Flux (Fixed Index): 1.78e-05 +/- 1.42e-05

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

Saving results to:
/scratch/kocevski/589467/likelihoodResults_304387201_304646401_4FGL_J2256.0-2740_daily_bin251.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) = 7158.32817095
delta logL = 0.110947732519

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7158.32360603
delta logL = 0.115512660599

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    12.269       1.0000         .10000E-03   10000.    
     2 'Index     '    3.4008       1.0000          .0000       10.000    
     3 'Normalizat'    .91971       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .99378       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=   7158.324     FROM MIGRAD    STATUS=CONVERGED     83 CALLS      264 TOTAL
                     EDM=   .53E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     12.269        8.3557        .11436E-03    .85015E-03
   2  Index         3.4007        .90038        .11738E-01    .12594E-03
   3  Normalizat    .91972        .18143        .23532E-03   -.72613E-04
   4  Prefactor     .99378        .17814        .22859E-03   -.50580E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 12.2689
  Index      = 3.40073
  Normalizat = 0.919715
  Prefactor  = 0.993777
 **********
 **   18 **HESSE 
 **********

 FCN=   7158.324     FROM HESSE     STATUS=OK            23 CALLS      287 TOTAL
                     EDM=   .53E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     12.269        8.1366        .45745E-05   -1.5007    
   2  Index         3.4007        .87648        .46951E-03   -.32557    
   3  Normalizat    .91972        .18177        .94127E-05   -.95771    
   4  Prefactor     .99378        .17836        .91435E-05   -.92937    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.3286e-10
Minuit parameter uncertainties:
  1  8.13734
  2  0.881561
  3  0.181887
  4  0.178469
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/589467': 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) = 7158.32360602
delta logL = 0.115512669235

Extracting fit parameters...

4FGL J2256.0-2740
   Spectrum: PowerLaw
340    Prefactor:  1.227e+01  8.137e+00  1.000e-04  1.000e+04 ( 1.000e-11)
341        Index:  3.401e+00  8.816e-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:  9.938e-01  1.785e-01  0.000e+00  1.000e+01 ( 1.000e+00)
559        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
560        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
557   Normalization:  9.197e-01  1.819e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.82
Ra Dec: 344.025 -27.674
Photon Index (Free Index): 3.40 +/- 0.88
Photon Flux (Free Index): 9.83e-08 +/- 5.80e-08
Energy Flux (Free Index): 1.68e-05 +/- 1.03e-05

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

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.51e-02', comment='SUCCESS', photon_flux='9.04e-08', energy_flux2='1.68e-05', photon_flux_error='7.19e-08', dlogl='1.16e-01', energy_flux='1.78e-05', photon_flux2='9.83e-08', job_status='DONE', time_completed='2021-09-29 02:46:56.051580', photon_index_error2='0.88', photon_index2='3.40', ts='3.33', fit_tolerance='1e-08', GAL='0.98', photon_index_error='0.00', photon_flux_upper_limit='1.88e-07', energy_flux_error2='1.03e-05', EG='0.93', time_epoch_completed='1632908816.05', return_code='0', job_id='589467', GAL2='0.99', EG2='0.92', return_code2='0', energy_flux_error='1.42e-05', photon_flux_error2='5.80e-08', ts2='3.82', photon_index='3.02' WHERE bin_id='251' AND source_name='4FGL J2256.0-2740' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 02:46:56 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0076>
Subject: Job 589467: <4FGL_J2256.0-2740_daily_bin251> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2256.0-2740_daily_bin251 344.025 -27.6739 304387201 304646401 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 :                                   652.43 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             349.41 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   681 sec.
    Turnaround time :                            682 sec.

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

