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


Performing analysis on: 4FGL_J2256.0-2740_daily_bin1150
RA = 344.025, Dec = -27.6739
tmin = 537408001, tmax = 537667201
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='593830', job_status='RUN', time_executed='2021-09-29 02:50:30.769134', time_epoch_executed='1632909030.77' WHERE source_name='4FGL J2256.0-2740' and cadence='daily' and bin_id='1150'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/593830

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/593830/ft1_4FGL_J2256.0-2740_daily_bin1150.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/593830/ft2_4FGL_J2256.0-2740_daily_bin1150.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/593830/ft1_4FGL_J2256.0-2740_daily_bin1150.fits outfile=/scratch/kocevski/593830/ft1_filteredMKT_4FGL_J2256.0-2740_daily_bin1150.fits ra=344.025 dec=-27.6739 rad=12.0 tmin=537408001.0 tmax=537667201.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.54
user 4.29
sys 0.22

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

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

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/593830/ft1_filtered_4FGL_J2256.0-2740_daily_bin1150.fits" evtable="EVENTS" scfile=/scratch/kocevski/593830/ft2_4FGL_J2256.0-2740_daily_bin1150.fits sctable="SC_DATA" outfile=/scratch/kocevski/593830/ltcube_537408001_537667201_4FGL_J2256.0-2740_daily_bin1150.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/593830/ft2_4FGL_J2256.0-2740_daily_bin1150.fits
.....................!
real 12.03
user 11.66
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/593830/ft1_filtered_4FGL_J2256.0-2740_daily_bin1150.fits evtable="EVENTS" scfile=/scratch/kocevski/593830/ft2_4FGL_J2256.0-2740_daily_bin1150.fits sctable="SC_DATA" expcube=/scratch/kocevski/593830/ltcube_537408001_537667201_4FGL_J2256.0-2740_daily_bin1150.fits outfile=/scratch/kocevski/593830/expmap_537408001_537667201_4FGL_J2256.0-2740_daily_bin1150.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/593830/ltcube_537408001_537667201_4FGL_J2256.0-2740_daily_bin1150.fits
.....................!
real 191.31
user 185.99
sys 4.79

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/593830/ft1_filtered_4FGL_J2256.0-2740_daily_bin1150.fits scfile=/scratch/kocevski/593830/ft2_4FGL_J2256.0-2740_daily_bin1150.fits outfile=/scratch/kocevski/593830/cmap_537408001_537667201_4FGL_J2256.0-2740_daily_bin1150.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=344.025 yref=-27.6739 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.53
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/593830/ft1_filtered_4FGL_J2256.0-2740_daily_bin1150.fits scfile=/scratch/kocevski/593830/ft2_4FGL_J2256.0-2740_daily_bin1150.fits outfile=/scratch/kocevski/593830/cmap_HighResolution_537408001_537667201_4FGL_J2256.0-2740_daily_bin1150.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/593830/ft1_filtered_4FGL_J2256.0-2740_daily_bin1150.fits evtable="EVENTS" scfile=/scratch/kocevski/593830/ft2_4FGL_J2256.0-2740_daily_bin1150.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/593830/Model_4FGL_J2256.0-2740_daily_bin1150.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/593830/ft1_filtered_4FGL_J2256.0-2740_daily_bin1150.fits.....................!
real 37.02
user 35.73
sys 1.21

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    3.0528       1.0000         .10000E-03   10000.    
     3 'norm      '    24.148       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10278E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    3.9399       1.0000         .10000E-03   10000.    
     6 'norm      '    .10013E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10154E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    13.464       1.0000         .10000E-03   10000.    
     9 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10126E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    21.545       1.0000         .10000E-03   10000.    
    12 'norm      '    1.5478       1.0000         .10000E-03   10000.    
    13 'Prefactor '    71.951       1.0000         .10000E-03   10000.    
    14 'Prefactor '    33.074       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    1.8621       1.0000         .10000E-03   10000.    
    17 'Prefactor '    34.952       1.0000         .10000E-03   10000.    
    18 'norm      '    .10105E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    5.6934       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10044E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    .92777       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .99526       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=   4215.701     FROM MIGRAD    STATUS=CONVERGED    452 CALLS     2321 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    9.4978       -.61770E-05** at limit **
   2  Prefactor     3.0520        10.043       -.47641E-05   -.22491E-03
   3  norm          24.165        25.025        .62179E-05    .65445E-04
   4  Prefactor     .10000E-03    19.264        .16200E-05** at limit **
   5  Prefactor     3.9412        15.316       -.79496E-05   -.37749E-04
   6  norm          .10000E-03    .99479       -.16307E-06** at limit **
   7  Prefactor     .10000E-03    32.521       -.33022E-04** at limit **
   8  Prefactor     13.460        14.934       -.17293E-05    .24117E-04
   9  norm          .10000E-03    1.7116        .26634E-07** at limit **
  10  Prefactor     .10000E-03    8.9294        .69789E-06** at limit **
  11  Prefactor     21.544        15.079       -.18428E-05    .34792E-04
  12  norm          1.5474        .98226        .36876E-07   -.45200E-03
  13  Prefactor     71.955        83.609        .33416E-05    .21577E-04
  14  Prefactor     33.085        25.826        .27145E-05    .26609E-04
  15  Prefactor     .10000E-03    9.5785        .52649E-05** at limit **
  16  norm          1.8584        14.229       -.31291E-05   -.27089E-03
  17  Prefactor     34.933        48.575       -.24092E-04    .30829E-04
  18  norm          .10000E-03    1.1936        .42581E-06** at limit **
  19  Prefactor     5.6349        50.019       -.11642E-03   -.45137E-05
  20  Prefactor     .10000E-03    38.222        .39160E-04** at limit **
  21  Normalizat    .92766        .24525        .12686E-04    .23515E-04
  22  Prefactor     .99542        .21951       -.96280E-07    .45447E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 3.05205
  norm       = 24.1648
  Prefactor  = 0.0001
  Prefactor  = 3.94122
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 13.4598
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 21.5445
  norm       = 1.54739
  Prefactor  = 71.955
  Prefactor  = 33.0852
  Prefactor  = 0.0001
  norm       = 1.8584
  Prefactor  = 34.9332
  norm       = 0.000100001
  Prefactor  = 5.63491
  Prefactor  = 0.0001
  Normalizat = 0.927664
  Prefactor  = 0.995424
 **********
 **   18 **HESSE 
 **********

 FCN=   4215.701     FROM HESSE     STATUS=OK           342 CALLS     2663 TOTAL
                     EDM=   .29E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    9.5126        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     3.0520        10.070        .23220E-03   -1.5359    
   3  norm          24.165        25.021        .81516E-04   -1.4724    
   4  Prefactor     .10000E-03    19.307        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     3.9412        15.301        .20323E-03   -1.5311    
   6  norm          .10000E-03    .99946        .63219E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    32.553        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     13.460        14.933        .10916E-03   -1.4974    
   9  norm          .10000E-03    1.7159        .82915E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    8.9363        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     21.544        15.456        .86293E-04   -1.4779    
  12  norm          1.5474        .99443        .41403E-04   -1.5459    
  13  Prefactor     71.955        83.786        .47328E-04   -1.4009    
  14  Prefactor     33.085        25.822        .69677E-04   -1.4557    
  15  Prefactor     .10000E-03    9.5973        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          1.8584        14.220        .30535E-03   -1.5435    
  17  Prefactor     34.933        48.567        .67784E-04   -1.4525    
  18  norm          .10000E-03    1.1991        .69282E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     5.6349        50.437        .16834E-03   -1.5233    
  20  Prefactor     .10000E-03    38.257        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    .92766        .29788        .26024E-03   -.95495    
  22  Prefactor     .99542        .26705        .24287E-03   -.92882    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.87561e-09
Minuit parameter uncertainties:
  1  4.49134e-05
  2  10.0753
  3  25.0314
  4  8.8753e-05
  5  15.316
  6  6.25842e-06
  7  6.81486e-05
  8  14.9367
  9  3.95914e-06
  10  1.10715e-05
  11  15.4591
  12  0.994437
  13  83.9239
  14  25.831
  15  3.35691e-06
  16  10.2844
  17  48.6224
  18  6.27168e-05
  19  33.7547
  20  0.000162094
  21  0.298415
  22  0.267409
Done.

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

Extracting fit parameters...

4FGL J2256.0-2740
   Spectrum: PowerLaw
340    Prefactor:  2.154e+01  1.546e+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.954e-01  2.674e-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.277e-01  2.984e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.87
Ra Dec: 344.025 -27.674
Photon Index (Fixed Index): 3.02 +/- 0.00
Photon Flux (Fixed Index): 1.47e-07 +/- 1.06e-07
Energy Flux (Fixed Index): 2.91e-05 +/- 2.09e-05

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

Saving results to:
/scratch/kocevski/593830/likelihoodResults_537408001_537667201_4FGL_J2256.0-2740_daily_bin1150.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) = 4215.52372629
delta logL = 0.177199157859

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4215.51310852
delta logL = 0.187816927816

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    20.369       1.0000         .10000E-03   10000.    
     2 'Index     '    3.4928       1.0000          .0000       10.000    
     3 'Normalizat'    .89700       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0193       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=   4215.513     FROM MIGRAD    STATUS=CONVERGED     92 CALLS      246 TOTAL
                     EDM=   .67E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     20.365        12.881        .88745E-04    .12810E-05
   2  Index         3.4930        .85731        .90308E-02    .45341E-04
   3  Normalizat    .89711        .28498        .26405E-03   -.22389E-05
   4  Prefactor     1.0192        .26827        .24040E-03   -.26955E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 20.3654
  Index      = 3.49304
  Normalizat = 0.897115
  Prefactor  = 1.01919
 **********
 **   18 **HESSE 
 **********

 FCN=   4215.513     FROM HESSE     STATUS=OK            25 CALLS      271 TOTAL
                     EDM=   .21E-13    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     20.365        12.709        .35498E-05   -1.4805    
   2  Index         3.4930        .84570        .18062E-02   -.30615    
   3  Normalizat    .89711        .28554        .10562E-04   -.96562    
   4  Prefactor     1.0192        .26872        .96161E-05   -.92092    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.0863e-14
Minuit parameter uncertainties:
  1  12.7106
  2  0.850201
  3  0.286027
  4  0.269078
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/593830': 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) = 4215.51310826
delta logL = 0.187817190332

Extracting fit parameters...

4FGL J2256.0-2740
   Spectrum: PowerLaw
340    Prefactor:  2.037e+01  1.271e+01  1.000e-04  1.000e+04 ( 1.000e-11)
341        Index:  3.493e+00  8.502e-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.019e+00  2.691e-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.971e-01  2.860e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.54
Ra Dec: 344.025 -27.674
Photon Index (Free Index): 3.49 +/- 0.85
Photon Flux (Free Index): 1.70e-07 +/- 9.80e-08
Energy Flux (Free Index): 2.84e-05 +/- 1.62e-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/593830/cmap_HighResolution_537408001_537667201_4FGL_J2256.0-2740_daily_bin1150.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.47e-02', comment='SUCCESS', photon_flux='1.47e-07', energy_flux2='2.84e-05', photon_flux_error='1.06e-07', dlogl='1.88e-01', energy_flux='2.91e-05', photon_flux2='1.70e-07', job_status='DONE', time_completed='2021-09-29 02:59:17.439498', photon_index_error2='0.85', photon_index2='3.49', ts='3.87', fit_tolerance='1e-08', GAL='1.00', photon_index_error='0.00', photon_flux_upper_limit='3.08e-07', energy_flux_error2='1.62e-05', EG='0.93', time_epoch_completed='1632909557.44', return_code='0', job_id='593830', GAL2='1.02', EG2='0.90', return_code2='0', energy_flux_error='2.09e-05', photon_flux_error2='9.80e-08', ts2='4.54', photon_index='3.02' WHERE bin_id='1150' AND source_name='4FGL J2256.0-2740' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 02:59:17 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0245>
Subject: Job 593830: <4FGL_J2256.0-2740_daily_bin1150> in cluster <slac> Done

Job <4FGL_J2256.0-2740_daily_bin1150> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Wed Sep 29 02:50:13 2021
Job was executed on host(s) <bullet0245>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 02:50:14 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:14 2021
Terminated at Wed Sep 29 02:59:18 2021
Results reported at Wed Sep 29 02:59:18 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2256.0-2740_daily_bin1150 344.025 -27.6739 537408001 537667201 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 :                                   520.55 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             363.68 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   543 sec.
    Turnaround time :                            545 sec.

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

