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


Performing analysis on: 4FGL_J2256.0-2740_daily_bin1219
RA = 344.025, Dec = -27.6739
tmin = 555292801, tmax = 555552001
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='593932', job_status='RUN', time_executed='2021-09-29 02:50:56.879628', time_epoch_executed='1632909056.88' WHERE source_name='4FGL J2256.0-2740' and cadence='daily' and bin_id='1219'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/593932

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/593932/ft1_4FGL_J2256.0-2740_daily_bin1219.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/593932/ft2_4FGL_J2256.0-2740_daily_bin1219.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/593932/ft1_4FGL_J2256.0-2740_daily_bin1219.fits outfile=/scratch/kocevski/593932/ft1_filteredMKT_4FGL_J2256.0-2740_daily_bin1219.fits ra=344.025 dec=-27.6739 rad=12.0 tmin=555292801.0 tmax=555552001.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.71
user 3.41
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/593932/ft2_4FGL_J2256.0-2740_daily_bin1219.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/593932/ft1_filteredMKT_4FGL_J2256.0-2740_daily_bin1219.fits evtable="EVENTS" outfile="/scratch/kocevski/593932/ft1_filtered_4FGL_J2256.0-2740_daily_bin1219.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/593932/ft1_filtered_4FGL_J2256.0-2740_daily_bin1219.fits" evtable="EVENTS" scfile=/scratch/kocevski/593932/ft2_4FGL_J2256.0-2740_daily_bin1219.fits sctable="SC_DATA" outfile=/scratch/kocevski/593932/ltcube_555292801_555552001_4FGL_J2256.0-2740_daily_bin1219.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/593932/ft2_4FGL_J2256.0-2740_daily_bin1219.fits
.....................!
real 11.92
user 11.53
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/593932/ft1_filtered_4FGL_J2256.0-2740_daily_bin1219.fits evtable="EVENTS" scfile=/scratch/kocevski/593932/ft2_4FGL_J2256.0-2740_daily_bin1219.fits sctable="SC_DATA" expcube=/scratch/kocevski/593932/ltcube_555292801_555552001_4FGL_J2256.0-2740_daily_bin1219.fits outfile=/scratch/kocevski/593932/expmap_555292801_555552001_4FGL_J2256.0-2740_daily_bin1219.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/593932/ltcube_555292801_555552001_4FGL_J2256.0-2740_daily_bin1219.fits
.....................!
real 190.73
user 185.96
sys 4.34

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/593932/ft1_filtered_4FGL_J2256.0-2740_daily_bin1219.fits scfile=/scratch/kocevski/593932/ft2_4FGL_J2256.0-2740_daily_bin1219.fits outfile=/scratch/kocevski/593932/cmap_555292801_555552001_4FGL_J2256.0-2740_daily_bin1219.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/593932/ft1_filtered_4FGL_J2256.0-2740_daily_bin1219.fits scfile=/scratch/kocevski/593932/ft2_4FGL_J2256.0-2740_daily_bin1219.fits outfile=/scratch/kocevski/593932/cmap_HighResolution_555292801_555552001_4FGL_J2256.0-2740_daily_bin1219.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.53
user 0.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/593932/ft1_filtered_4FGL_J2256.0-2740_daily_bin1219.fits evtable="EVENTS" scfile=/scratch/kocevski/593932/ft2_4FGL_J2256.0-2740_daily_bin1219.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/593932/Model_4FGL_J2256.0-2740_daily_bin1219.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/593932/ft1_filtered_4FGL_J2256.0-2740_daily_bin1219.fits......................!
real 30.33
user 29.02
sys 1.20

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    12.650       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10141E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10544E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10159E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10260E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    3.9637       1.0000         .10000E-03   10000.    
     7 'Prefactor '    19.129       1.0000         .10000E-03   10000.    
     8 'Prefactor '    13.297       1.0000         .10000E-03   10000.    
     9 'norm      '    .38438E-02   1.0000         .10000E-03   10000.    
    10 'Prefactor '    24.841       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10217E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    2.2259       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10809E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10113E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10168E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10044E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    5.5440       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10517E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10130E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.4513       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .36718       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=   2766.623     FROM MIGRAD    STATUS=CONVERGED    475 CALLS     2358 TOTAL
                     EDM=   .94E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     12.663        20.955        .43372E-06   -.53252E-04
   2  Prefactor     .10000E-03    24.123       -.13938E-06** at limit **
   3  norm          .10000E-03    90.864        .37656E-05** at limit **
   4  Prefactor     .10000E-03    18.084       -.17788E-06** at limit **
   5  Prefactor     .10000E-03    29.121        .10849E-04** at limit **
   6  norm          3.9685        4.2960       -.13148E-05   -.49289E-03
   7  Prefactor     19.297        89.418        .95884E-05   -.23007E-05
   8  Prefactor     13.285        30.327        .16233E-05   -.69355E-04
   9  norm          .10015E-03    7.2665       -.54790E-06** at limit **
  10  Prefactor     24.823        25.737       -.12277E-05   -.18294E-03
  11  Prefactor     .10000E-03    17.288        .27038E-05** at limit **
  12  norm          2.2275        1.4751       -.19231E-06   -.10865E-02
  13  Prefactor     .10000E-03    97.645       -.39432E-06** at limit **
  14  Prefactor     .10000E-03    9.3044       -.23921E-06** at limit **
  15  Prefactor     .10000E-03    32.007        .21408E-05** at limit **
  16  norm          .10000E-03    9.1269       -.57639E-07** at limit **
  17  Prefactor     .10000E-03    52.236       -.23909E-06** at limit **
  18  norm          5.5439        3.8646        .19860E-06   -.10268E-03
  19  Prefactor     .10000E-03    16.667       -.11832E-07** at limit **
  20  Prefactor     .10000E-03    68.080        .18256E-06** at limit **
  21  Normalizat    1.4518        .31557       -.11620E-04   -.50038E-04
  22  Prefactor     .36682        .26137        .16438E-04   -.17186E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 12.663
  Prefactor  = 0.0001
  norm       = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.000100005
  norm       = 3.96855
  Prefactor  = 19.297
  Prefactor  = 13.2846
  norm       = 0.000100146
  Prefactor  = 24.8226
  Prefactor  = 0.000100001
  norm       = 2.22754
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 5.54392
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.45179
  Prefactor  = 0.366824
 **********
 **   18 **HESSE 
 **********

 FCN=   2766.623     FROM HESSE     STATUS=OK           336 CALLS     2694 TOTAL
                     EDM=   .47E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     12.663        20.940        .11263E-03   -1.4996    
   2  Prefactor     .10000E-03    24.306        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    92.351        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    18.087        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    30.272        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          3.9685        4.3198        .90374E-04   -1.5310    
   7  Prefactor     19.297        89.021        .91576E-04   -1.4829    
   8  Prefactor     13.285        30.300        .10985E-03   -1.4979    
   9  norm          .10015E-03    38.883        .24326E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     24.823        25.768        .80372E-04   -1.4711    
  11  Prefactor     .10000E-03    17.607        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          2.2275        1.4392        .42480E-04   -1.5409    
  13  Prefactor     .10000E-03    97.680        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    9.3216        .15669E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    32.547        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    9.1278        .15522E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    52.253        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          5.5439        3.8628        .83261E-04   -1.5237    
  19  Prefactor     .10000E-03    16.680        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    68.112        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    1.4518        .32537        .21056E-03   -.79142    
  22  Prefactor     .36682        .26597        .33721E-03   -1.1854    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.66272e-09
Minuit parameter uncertainties:
  1  20.9524
  2  0.000127568
  3  0.00058728
  4  5.15176e-05
  5  0.000746498
  6  4.32013
  7  83.0978
  8  30.3355
  9  0.00476594
  10  25.7797
  11  0.000271968
  12  1.43925
  13  0.00014002
  14  3.09414e-06
  15  0.000282054
  16  1.02297e-06
  17  2.17906e-05
  18  3.863
  19  6.26324e-05
  20  0.000284994
  21  0.325838
  22  0.266863
Done.

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

Extracting fit parameters...

4FGL J2256.0-2740
   Spectrum: PowerLaw
340    Prefactor:  1.000e-04  2.720e-04  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:  3.668e-01  2.669e-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.452e+00  3.258e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/593932/likelihoodResults_555292801_555552001_4FGL_J2256.0-2740_daily_bin1219.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) = 2766.62292901
delta logL = -0.000270588517651

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 2766.62265911
delta logL = -6.81021901983e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    3.3033       1.0000          .0000       10.000    
     3 'Normalizat'    1.4520       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .36679       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=   2766.623     FROM MIGRAD    STATUS=CONVERGED    114 CALLS      265 TOTAL
                     EDM=   .52E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    121.02        .65694E-01** at limit **
   2  Index         2.5100        8.6847        .50000       -.10256E-06
   3  Normalizat    1.4518        .21234E-01    .21057E-03    .47294E-03
   4  Prefactor     .36683        .18131E-01    .33718E-03    .30571E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.50996
  Normalizat = 1.45178
  Prefactor  = 0.36683
 **********
 **   18 **HESSE 
 **********

 FCN=   2766.623     FROM HESSE     STATUS=OK            31 CALLS      296 TOTAL
                     EDM=   .42E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    22.583        .34791E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.5100        6.8658        .50000       -.52130    
   3  Normalizat    1.4518        .30717        .42113E-04   -.79142    
   4  Prefactor     .36683        .26214        .13487E-04   -1.1854    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.18665e-10
Minuit parameter uncertainties:
  1  1.91062e-05
  2  105.624
  3  0.307558
  4  0.262999
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/593932': 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) = 2766.62265816
delta logL = 2.69141764875e-07

Extracting fit parameters...

4FGL J2256.0-2740
   Spectrum: PowerLaw
340    Prefactor:  1.000e-04  1.911e-05  1.000e-04  1.000e+04 ( 1.000e-11)
341        Index:  2.510e+00  1.056e+02  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:  3.668e-01  2.630e-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.452e+00  3.076e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 344.025 -27.674

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/593932/cmap_HighResolution_555292801_555552001_4FGL_J2256.0-2740_daily_bin1219.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.75e-02', job_status='DONE', photon_flux_upper_limit='2.19e-07', time_completed='2021-09-29 02:58:31.299279', job_id='593932', GAL2='0.37', fit_tolerance='1e-08', EG2='1.45', EG='1.45', time_epoch_completed='1632909511.3', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.37', dlogl='2.69e-07', ts2='-0.00', photon_index_error='0.00', photon_index='3.02' WHERE bin_id='1219' AND source_name='4FGL J2256.0-2740' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 02:58:31 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0085>
Subject: Job 593932: <4FGL_J2256.0-2740_daily_bin1219> in cluster <slac> Done

Job <4FGL_J2256.0-2740_daily_bin1219> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Wed Sep 29 02:50:19 2021
Job was executed on host(s) <bullet0085>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 02:50:21 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:21 2021
Terminated at Wed Sep 29 02:58:31 2021
Results reported at Wed Sep 29 02:58:31 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2256.0-2740_daily_bin1219 344.025 -27.6739 555292801 555552001 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 :                                   446.38 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             340.88 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   490 sec.
    Turnaround time :                            492 sec.

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

