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


Performing analysis on: 4FGL_J2256.0-2740_daily_bin580
RA = 344.025, Dec = -27.6739
tmin = 389664001, tmax = 389923201
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='591001', job_status='RUN', time_executed='2021-09-29 02:44:26.674355', time_epoch_executed='1632908666.67' WHERE source_name='4FGL J2256.0-2740' and cadence='daily' and bin_id='580'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/591001

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/591001/ft1_4FGL_J2256.0-2740_daily_bin580.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/591001/ft2_4FGL_J2256.0-2740_daily_bin580.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/591001/ft1_4FGL_J2256.0-2740_daily_bin580.fits outfile=/scratch/kocevski/591001/ft1_filteredMKT_4FGL_J2256.0-2740_daily_bin580.fits ra=344.025 dec=-27.6739 rad=12.0 tmin=389664001.0 tmax=389923201.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.83
user 4.59
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/591001/ft2_4FGL_J2256.0-2740_daily_bin580.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/591001/ft1_filteredMKT_4FGL_J2256.0-2740_daily_bin580.fits evtable="EVENTS" outfile="/scratch/kocevski/591001/ft1_filtered_4FGL_J2256.0-2740_daily_bin580.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.51
user 0.33
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/591001/ft1_filtered_4FGL_J2256.0-2740_daily_bin580.fits" evtable="EVENTS" scfile=/scratch/kocevski/591001/ft2_4FGL_J2256.0-2740_daily_bin580.fits sctable="SC_DATA" outfile=/scratch/kocevski/591001/ltcube_389664001_389923201_4FGL_J2256.0-2740_daily_bin580.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/591001/ft2_4FGL_J2256.0-2740_daily_bin580.fits
.....................!
real 11.73
user 11.34
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/591001/ft1_filtered_4FGL_J2256.0-2740_daily_bin580.fits evtable="EVENTS" scfile=/scratch/kocevski/591001/ft2_4FGL_J2256.0-2740_daily_bin580.fits sctable="SC_DATA" expcube=/scratch/kocevski/591001/ltcube_389664001_389923201_4FGL_J2256.0-2740_daily_bin580.fits outfile=/scratch/kocevski/591001/expmap_389664001_389923201_4FGL_J2256.0-2740_daily_bin580.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/591001/ltcube_389664001_389923201_4FGL_J2256.0-2740_daily_bin580.fits
.....................!
real 191.76
user 186.24
sys 5.15

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/591001/ft1_filtered_4FGL_J2256.0-2740_daily_bin580.fits scfile=/scratch/kocevski/591001/ft2_4FGL_J2256.0-2740_daily_bin580.fits outfile=/scratch/kocevski/591001/cmap_389664001_389923201_4FGL_J2256.0-2740_daily_bin580.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.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/591001/ft1_filtered_4FGL_J2256.0-2740_daily_bin580.fits scfile=/scratch/kocevski/591001/ft2_4FGL_J2256.0-2740_daily_bin580.fits outfile=/scratch/kocevski/591001/cmap_HighResolution_389664001_389923201_4FGL_J2256.0-2740_daily_bin580.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.39
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/591001/ft1_filtered_4FGL_J2256.0-2740_daily_bin580.fits evtable="EVENTS" scfile=/scratch/kocevski/591001/ft2_4FGL_J2256.0-2740_daily_bin580.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/591001/Model_4FGL_J2256.0-2740_daily_bin580.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/591001/ft1_filtered_4FGL_J2256.0-2740_daily_bin580.fits.....................!
real 39.33
user 38.10
sys 1.15

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    13.355       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10179E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    89.540       1.0000         .10000E-03   10000.    
     8 'Prefactor '    7.8565       1.0000         .10000E-03   10000.    
     9 'norm      '    .49005E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    3.8836       1.0000         .10000E-03   10000.    
    12 'norm      '    1.3880       1.0000         .10000E-03   10000.    
    13 'Prefactor '    44.478       1.0000         .10000E-03   10000.    
    14 'Prefactor '    21.526       1.0000         .10000E-03   10000.    
    15 'Prefactor '    18.334       1.0000         .10000E-03   10000.    
    16 'norm      '    4.6564       1.0000         .10000E-03   10000.    
    17 'Prefactor '    97.384       1.0000         .10000E-03   10000.    
    18 'norm      '    2.2046       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    80.028       1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.1198       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .75030       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=   4391.216     FROM MIGRAD    STATUS=CONVERGED    463 CALLS     2376 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    19.133        .57893E-06** at limit **
   2  Prefactor     .10000E-03    4.7439       -.89835E-07** at limit **
   3  norm          .10000E-03    7.2687        .44839E-06** at limit **
   4  Prefactor     13.355        18.303        .12826E-06   -.16180E-04
   5  Prefactor     .10000E-03    5.7647        .10764E-05** at limit **
   6  norm          .10000E-03    1.6655        .39664E-05** at limit **
   7  Prefactor     89.619        56.249        .42403E-05    .34634E-03
   8  Prefactor     7.8626        12.625        .33800E-06    .72148E-04
   9  norm          .10005E-03    3.1605       -.28270E-05** at limit **
  10  Prefactor     .10000E-03    18.121       -.12820E-05** at limit **
  11  Prefactor     3.8662        16.213        .52796E-05    .51511E-03
  12  norm          1.3876        .94135        .85303E-07    .31465E-02
  13  Prefactor     44.513        55.432        .44492E-05    .19370E-03
  14  Prefactor     21.528        19.505        .49995E-06    .70233E-05
  15  Prefactor     18.346        17.599       -.13313E-05    .43418E-03
  16  norm          4.6580        11.089        .75483E-05    .59189E-04
  17  Prefactor     97.381        75.513       -.17553E-05   -.67504E-04
  18  norm          2.2049        3.5961        .43171E-06   -.46383E-05
  19  Prefactor     .10000E-03    15.718       -.93493E-06** at limit **
  20  Prefactor     80.010        101.00       -.11236E-05   -.61620E-04
  21  Normalizat    1.1194        .22952       -.51223E-05    .26198E-03
  22  Prefactor     .75061        .20149        .28892E-05   -.46552E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 13.3546
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 89.6194
  Prefactor  = 7.8626
  norm       = 0.000100054
  Prefactor  = 0.0001
  Prefactor  = 3.86621
  norm       = 1.38755
  Prefactor  = 44.5133
  Prefactor  = 21.5282
  Prefactor  = 18.3464
  norm       = 4.658
  Prefactor  = 97.3805
  norm       = 2.20489
  Prefactor  = 0.0001
  Prefactor  = 80.0103
  Normalizat = 1.11944
  Prefactor  = 0.750605
 **********
 **   18 **HESSE 
 **********

 FCN=   4391.216     FROM HESSE     STATUS=OK           338 CALLS     2714 TOTAL
                     EDM=   .63E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    19.407        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    4.7714        .14093E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    7.2704        .17450E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     13.355        18.301        .10960E-03   -1.4977    
   5  Prefactor     .10000E-03    5.7700        .15533E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    1.6274        .16187E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     89.619        56.373        .21232E-03   -1.3812    
   8  Prefactor     7.8626        12.686        .14305E-03   -1.5147    
   9  norm          .10005E-03    11.646        .20682E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    18.226        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     3.8662        15.314        .20475E-03   -1.5315    
  12  norm          1.3876        .95198        .41919E-04   -1.5472    
  13  Prefactor     44.513        55.759        .60115E-04   -1.4373    
  14  Prefactor     21.528        19.513        .86330E-04   -1.4780    
  15  Prefactor     18.346        17.269        .93540E-04   -1.4851    
  16  norm          4.6580        11.148        .93252E-03   -1.5276    
  17  Prefactor     97.381        76.107        .40733E-04   -1.3731    
  18  norm          2.2049        3.5806        .15344E-03   -1.5411    
  19  Prefactor     .10000E-03    15.735        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     80.010        101.17        .44895E-04   -1.3917    
  21  Normalizat    1.1194        .27255        .23758E-03   -.89130    
  22  Prefactor     .75061        .23880        .26663E-03   -1.0158    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.30042e-09
Minuit parameter uncertainties:
  1  8.76237e-05
  2  1.06393e-05
  3  1.52122e-05
  4  18.309
  5  5.24672e-06
  6  2.49633e-05
  7  56.4063
  8  12.6907
  9  0.00158992
  10  8.5946e-05
  11  15.3295
  12  0.951987
  13  55.8241
  14  19.5186
  15  17.2735
  16  11.1532
  17  76.1829
  18  3.58092
  19  8.64175e-05
  20  101.39
  21  0.272898
  22  0.239125
Done.

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

Extracting fit parameters...

4FGL J2256.0-2740
   Spectrum: PowerLaw
340    Prefactor:  3.866e+00  1.533e+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:  7.506e-01  2.391e-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.119e+00  2.729e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/591001/likelihoodResults_389664001_389923201_4FGL_J2256.0-2740_daily_bin580.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) = 4391.20689841
delta logL = 0.00870205422052

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4391.20678252
delta logL = 0.00881794678025

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.8987       1.0000         .10000E-03   10000.    
     2 'Index     '    3.3054       1.0000          .0000       10.000    
     3 'Normalizat'    1.1153       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .75357       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=   4391.207     FROM MIGRAD    STATUS=CONVERGED    104 CALLS      286 TOTAL
                     EDM=   .35E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.9188        10.976        .20434E-03   -.15523E-04
   2  Index         3.3192        2.3664        .14581E-01   -.29300E-05
   3  Normalizat    1.1148        .25686        .23800E-03    .23884E-06
   4  Prefactor     .75390        .23558        .26611E-03   -.91425E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.91875
  Index      = 3.31916
  Normalizat = 1.11479
  Prefactor  = 0.7539
 **********
 **   18 **HESSE 
 **********

 FCN=   4391.207     FROM HESSE     STATUS=OK            25 CALLS      311 TOTAL
                     EDM=   .25E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.9188        10.815        .81736E-05   -1.5312    
   2  Index         3.3192        2.3355        .58325E-03   -.34285    
   3  Normalizat    1.1148        .25737        .95199E-05   -.89279    
   4  Prefactor     .75390        .23595        .10644E-04   -1.0145    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.49484e-12
Minuit parameter uncertainties:
  1  10.8205
  2  2.44371
  3  0.257664
  4  0.23626
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/591001': 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) = 4391.20676154
delta logL = 0.00883892882939

Extracting fit parameters...

4FGL J2256.0-2740
   Spectrum: PowerLaw
340    Prefactor:  3.919e+00  1.082e+01  1.000e-04  1.000e+04 ( 1.000e-11)
341        Index:  3.319e+00  2.444e+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:  7.539e-01  2.363e-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.115e+00  2.577e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.13
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/591001/cmap_HighResolution_389664001_389923201_4FGL_J2256.0-2740_daily_bin580.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.51e-02', job_status='DONE', photon_flux_upper_limit='1.89e-07', time_completed='2021-09-29 02:53:24.191385', job_id='591001', GAL2='0.75', fit_tolerance='1e-08', EG2='1.11', EG='1.12', time_epoch_completed='1632909204.19', return_code2='0', ts='0.13', comment='SUCCESS', return_code='0', GAL='0.75', dlogl='8.84e-03', ts2='0.16', photon_index_error='0.00', photon_index='3.02' WHERE bin_id='580' AND source_name='4FGL J2256.0-2740' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 02:53:24 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0240>
Subject: Job 591001: <4FGL_J2256.0-2740_daily_bin580> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2256.0-2740_daily_bin580 344.025 -27.6739 389664001 389923201 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 :                                   537.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             248.92 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   763 sec.
    Turnaround time :                            764 sec.

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

