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


Performing analysis on: 4FGL_J2256.0-2740_daily_bin357
RA = 344.025, Dec = -27.6739
tmin = 331862401, tmax = 332121601
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='590656', job_status='RUN', time_executed='2021-09-29 02:42:49.702669', time_epoch_executed='1632908569.7' WHERE source_name='4FGL J2256.0-2740' and cadence='daily' and bin_id='357'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/590656

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/590656/ft1_4FGL_J2256.0-2740_daily_bin357.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/590656/ft2_4FGL_J2256.0-2740_daily_bin357.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/590656/ft1_4FGL_J2256.0-2740_daily_bin357.fits outfile=/scratch/kocevski/590656/ft1_filteredMKT_4FGL_J2256.0-2740_daily_bin357.fits ra=344.025 dec=-27.6739 rad=12.0 tmin=331862401.0 tmax=332121601.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.39
user 4.13
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/590656/ft1_filtered_4FGL_J2256.0-2740_daily_bin357.fits" evtable="EVENTS" scfile=/scratch/kocevski/590656/ft2_4FGL_J2256.0-2740_daily_bin357.fits sctable="SC_DATA" outfile=/scratch/kocevski/590656/ltcube_331862401_332121601_4FGL_J2256.0-2740_daily_bin357.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/590656/ft2_4FGL_J2256.0-2740_daily_bin357.fits
.....................!
real 11.84
user 11.39
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/590656/ft1_filtered_4FGL_J2256.0-2740_daily_bin357.fits evtable="EVENTS" scfile=/scratch/kocevski/590656/ft2_4FGL_J2256.0-2740_daily_bin357.fits sctable="SC_DATA" expcube=/scratch/kocevski/590656/ltcube_331862401_332121601_4FGL_J2256.0-2740_daily_bin357.fits outfile=/scratch/kocevski/590656/expmap_331862401_332121601_4FGL_J2256.0-2740_daily_bin357.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/590656/ltcube_331862401_332121601_4FGL_J2256.0-2740_daily_bin357.fits
.....................!
real 189.86
user 185.14
sys 4.41

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/590656/ft1_filtered_4FGL_J2256.0-2740_daily_bin357.fits scfile=/scratch/kocevski/590656/ft2_4FGL_J2256.0-2740_daily_bin357.fits outfile=/scratch/kocevski/590656/cmap_331862401_332121601_4FGL_J2256.0-2740_daily_bin357.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/590656/ft1_filtered_4FGL_J2256.0-2740_daily_bin357.fits scfile=/scratch/kocevski/590656/ft2_4FGL_J2256.0-2740_daily_bin357.fits outfile=/scratch/kocevski/590656/cmap_HighResolution_331862401_332121601_4FGL_J2256.0-2740_daily_bin357.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.55
user 0.37
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/590656/ft1_filtered_4FGL_J2256.0-2740_daily_bin357.fits evtable="EVENTS" scfile=/scratch/kocevski/590656/ft2_4FGL_J2256.0-2740_daily_bin357.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/590656/Model_4FGL_J2256.0-2740_daily_bin357.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/590656/ft1_filtered_4FGL_J2256.0-2740_daily_bin357.fits.....................!
real 45.06
user 43.52
sys 1.43

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.2779       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10758E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10128E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10174E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    6.3946       1.0000         .10000E-03   10000.    
     6 'norm      '    1.3254       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10863E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    13.382       1.0000         .10000E-03   10000.    
     9 'norm      '    13.283       1.0000         .10000E-03   10000.    
    10 'Prefactor '    10.584       1.0000         .10000E-03   10000.    
    11 'Prefactor '    4.0923       1.0000         .10000E-03   10000.    
    12 'norm      '    .32532       1.0000         .10000E-03   10000.    
    13 'Prefactor '    54.684       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .27652E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .11329E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .50068       1.0000         .10000E-03   10000.    
    17 'Prefactor '    16.410       1.0000         .10000E-03   10000.    
    18 'norm      '    .10011E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10068E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    11.912       1.0000         .10000E-03   10000.    
    21 'Normalizat'    .71269       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.0989       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=   5634.816     FROM MIGRAD    STATUS=CONVERGED    466 CALLS     2353 TOTAL
                     EDM=   .28E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.2786        12.403       -.53019E-06    .10987E-04
   2  Prefactor     .10000E-03    6.1351        .47162E-06** at limit **
   3  norm          .10000E-03    9.4982        .44166E-06** at limit **
   4  Prefactor     .10000E-03    9.4666        .44534E-06** at limit **
   5  Prefactor     6.4068        10.018       -.29532E-06    .16761E-05
   6  norm          1.3299        1.8872        .14162E-07   -.62870E-04
   7  Prefactor     .10000E-03    57.852        .26148E-05** at limit **
   8  Prefactor     13.381        10.461       -.11752E-06   -.10812E-05
   9  norm          13.287        5.7310        .29814E-06   -.13080E-03
  10  Prefactor     10.584        12.036        .84751E-06   -.34108E-04
  11  Prefactor     4.1029        8.5211       -.28325E-05   -.14141E-03
  12  norm          .32482        .35696        .24257E-06    .74093E-03
  13  Prefactor     54.675        60.411        .19425E-06    .10916E-04
  14  Prefactor     .10000E-03    57.236        .10085E-04** at limit **
  15  Prefactor     .10000E-03    9.2030        .83269E-06** at limit **
  16  norm          .50430        6.4293        .65446E-06    .29522E-03
  17  Prefactor     16.404        37.830        .42114E-07    .25407E-04
  18  norm          .10000E-03    .84837       -.11680E-06** at limit **
  19  Prefactor     .10000E-03    9.3614       -.12906E-05** at limit **
  20  Prefactor     11.974        88.537       -.44811E-05   -.56502E-05
  21  Normalizat    .71279        .18368        .12906E-05   -.80437E-04
  22  Prefactor     1.0989        .17773       -.67099E-06    .14713E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.27859
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.40677
  norm       = 1.32991
  Prefactor  = 0.0001
  Prefactor  = 13.3808
  norm       = 13.287
  Prefactor  = 10.5841
  Prefactor  = 4.10287
  norm       = 0.324824
  Prefactor  = 54.6751
  Prefactor  = 0.000100004
  Prefactor  = 0.0001
  norm       = 0.504298
  Prefactor  = 16.4036
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 11.9737
  Normalizat = 0.712792
  Prefactor  = 1.09887
 **********
 **   18 **HESSE 
 **********

 FCN=   5634.816     FROM HESSE     STATUS=OK           348 CALLS     2701 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.2786        12.385        .16021E-03   -1.5207    
   2  Prefactor     .10000E-03    6.2896        .36257E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    9.5125        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    9.5077        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     6.4068        9.9926        .15872E-03   -1.5202    
   6  norm          1.3299        1.8507        .11757E-03   -1.5477    
   7  Prefactor     .10000E-03    58.094        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     13.381        10.460        .10949E-03   -1.4976    
   9  norm          13.287        5.6949        .10274E-03   -1.4979    
  10  Prefactor     10.584        11.969        .12316E-03   -1.5057    
  11  Prefactor     4.1029        8.5629        .19929E-03   -1.5303    
  12  norm          .32482        .35256        .43080E-04   -1.5594    
  13  Prefactor     54.675        60.518        .54242E-04   -1.4228    
  14  Prefactor     .10000E-03    58.625        .39912E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    9.4886        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .50430        16.863        .34546E-02   -1.5566    
  17  Prefactor     16.404        37.777        .98870E-04   -1.4898    
  18  norm          .10000E-03    .85974        .67482E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    9.3297        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     11.974        88.210        .11607E-03   -1.5016    
  21  Normalizat    .71279        .21005        .25612E-03   -1.0339    
  22  Prefactor     1.0989        .20558        .21518E-03   -.89503    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.41521e-09
Minuit parameter uncertainties:
  1  12.3896
  2  2.21045e-05
  3  5.10018e-06
  4  1.26639e-05
  5  9.99522
  6  1.85083
  7  2.35371e-05
  8  10.4612
  9  5.6951
  10  11.9717
  11  8.56549
  12  0.352566
  13  60.5858
  14  0.000958585
  15  8.34508e-05
  16  5.83349
  17  37.8318
  18  1.11279e-06
  19  2.33185e-05
  20  65.1335
  21  0.210284
  22  0.205728
Done.

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

Extracting fit parameters...

4FGL J2256.0-2740
   Spectrum: PowerLaw
340    Prefactor:  4.103e+00  8.565e+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:  1.099e+00  2.057e-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:  7.128e-01  2.103e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/590656/likelihoodResults_331862401_332121601_4FGL_J2256.0-2740_daily_bin357.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) = 5634.37730878
delta logL = 0.43874834813

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5634.34932858
delta logL = 0.466728555562

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.6757       1.0000         .10000E-03   10000.    
     2 'Index     '    5.0175       1.0000          .0000       10.000    
     3 'Normalizat'    .68084       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1226       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=   5634.349     FROM MIGRAD    STATUS=CONVERGED     80 CALLS      245 TOTAL
                     EDM=   .29E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.6751        8.6365        .11212E-03   -.28851E-02
   2  Index         5.0187        3.8400        .14887E-01   -.18859E-03
   3  Normalizat    .68079        .20396        .26136E-03   -.84930E-03
   4  Prefactor     1.1226        .20607        .21316E-03   -.71324E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.67514
  Index      = 5.01869
  Normalizat = 0.680792
  Prefactor  = 1.12261
 **********
 **   18 **HESSE 
 **********

 FCN=   5634.349     FROM HESSE     STATUS=OK            23 CALLS      268 TOTAL
                     EDM=   .30E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.6751        5.5890        .44848E-05   -1.5381    
   2  Index         5.0187        2.6821        .59547E-03    .37380E-02
   3  Normalizat    .68079        .20396        .52272E-04   -1.0466    
   4  Prefactor     1.1226        .20631        .42631E-04   -.88747    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.01215e-09
Minuit parameter uncertainties:
  1  5.5901
  2  2.83096
  3  0.204187
  4  0.206455
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/590656': 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) = 5634.34932828
delta logL = 0.466728851506

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
558    Prefactor:  1.123e+00  2.065e-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:  6.808e-01  2.042e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.39
Ra Dec: 344.025 -27.674
Photon Index (Free Index): 5.02 +/- 2.83
Photon Flux (Free Index): 5.24e-08 +/- 5.09e-08
Energy Flux (Free Index): 6.96e-06 +/- 7.12e-06

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/590656/cmap_HighResolution_331862401_332121601_4FGL_J2256.0-2740_daily_bin357.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.02e-02', comment='SUCCESS', energy_flux2='6.96e-06', dlogl='4.67e-01', photon_flux2='5.24e-08', job_status='DONE', time_completed='2021-09-29 02:52:48.970526', photon_index_error2='2.83', photon_index2='5.02', ts='0.38', fit_tolerance='1e-08', GAL='1.10', photon_index_error='0.00', photon_flux_upper_limit='1.28e-07', energy_flux_error2='7.12e-06', EG='0.71', time_epoch_completed='1632909168.97', return_code='0', job_id='590656', GAL2='1.12', EG2='0.68', return_code2='0', photon_flux_error2='5.09e-08', ts2='1.39', photon_index='3.02' WHERE bin_id='357' AND source_name='4FGL J2256.0-2740' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 02:52:49 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0034>
Subject: Job 590656: <4FGL_J2256.0-2740_daily_bin357> in cluster <slac> Done

Job <4FGL_J2256.0-2740_daily_bin357> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Wed Sep 29 02:40:16 2021
Job was executed on host(s) <bullet0034>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 02:40: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:40:18 2021
Terminated at Wed Sep 29 02:52:49 2021
Results reported at Wed Sep 29 02:52:49 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2256.0-2740_daily_bin357 344.025 -27.6739 331862401 332121601 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 :                                   596.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             276.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   751 sec.
    Turnaround time :                            753 sec.

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

