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


Performing analysis on: 4FGL_J2256.0-2740_daily_bin1381
RA = 344.025, Dec = -27.6739
tmin = 597283201, tmax = 597542401
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='594173', job_status='RUN', time_executed='2021-09-29 02:51:02.925048', time_epoch_executed='1632909062.93' WHERE source_name='4FGL J2256.0-2740' and cadence='daily' and bin_id='1381'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/594173

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/594173/ft1_4FGL_J2256.0-2740_daily_bin1381.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/594173/ft2_4FGL_J2256.0-2740_daily_bin1381.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/594173/ft1_4FGL_J2256.0-2740_daily_bin1381.fits outfile=/scratch/kocevski/594173/ft1_filteredMKT_4FGL_J2256.0-2740_daily_bin1381.fits ra=344.025 dec=-27.6739 rad=12.0 tmin=597283201.0 tmax=597542401.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.56
user 3.29
sys 0.25

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/594173/ft1_filtered_4FGL_J2256.0-2740_daily_bin1381.fits evtable="EVENTS" scfile=/scratch/kocevski/594173/ft2_4FGL_J2256.0-2740_daily_bin1381.fits sctable="SC_DATA" expcube=/scratch/kocevski/594173/ltcube_597283201_597542401_4FGL_J2256.0-2740_daily_bin1381.fits outfile=/scratch/kocevski/594173/expmap_597283201_597542401_4FGL_J2256.0-2740_daily_bin1381.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/594173/ltcube_597283201_597542401_4FGL_J2256.0-2740_daily_bin1381.fits
.....................!
real 191.03
user 185.35
sys 5.35

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/594173/ft1_filtered_4FGL_J2256.0-2740_daily_bin1381.fits scfile=/scratch/kocevski/594173/ft2_4FGL_J2256.0-2740_daily_bin1381.fits outfile=/scratch/kocevski/594173/cmap_597283201_597542401_4FGL_J2256.0-2740_daily_bin1381.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.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/594173/ft1_filtered_4FGL_J2256.0-2740_daily_bin1381.fits scfile=/scratch/kocevski/594173/ft2_4FGL_J2256.0-2740_daily_bin1381.fits outfile=/scratch/kocevski/594173/cmap_HighResolution_597283201_597542401_4FGL_J2256.0-2740_daily_bin1381.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.57
user 0.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/594173/ft1_filtered_4FGL_J2256.0-2740_daily_bin1381.fits evtable="EVENTS" scfile=/scratch/kocevski/594173/ft2_4FGL_J2256.0-2740_daily_bin1381.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/594173/Model_4FGL_J2256.0-2740_daily_bin1381.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/594173/ft1_filtered_4FGL_J2256.0-2740_daily_bin1381.fits.....................!
real 43.40
user 42.11
sys 1.21

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .16604       1.0000         .10000E-03   10000.    
     3 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    29.618       1.0000         .10000E-03   10000.    
     5 'Prefactor '    16.019       1.0000         .10000E-03   10000.    
     6 'norm      '    1.8708       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    15.647       1.0000         .10000E-03   10000.    
     9 'norm      '    2.6747       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    5.2032       1.0000         .10000E-03   10000.    
    12 'norm      '    .29121       1.0000         .10000E-03   10000.    
    13 'Prefactor '    10.182       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10231E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    3.0256       1.0000         .10000E-03   10000.    
    16 'norm      '    13.572       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    9.1555       1.0000         .10000E-03   10000.    
    19 'Prefactor '    20.114       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    .98542       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .78220       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=   5178.064     FROM MIGRAD    STATUS=CONVERGED    474 CALLS     2037 TOTAL
                     EDM=   .72E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    7.5010        .21296E-06** at limit **
   2  Prefactor     .15059        6.9737       -.33422E-05    .37786E-03
   3  norm          .10000E-03    8.1136       -.26924E-06** at limit **
   4  Prefactor     29.630        22.875        .70016E-05   -.88659E-04
   5  Prefactor     16.016        12.674       -.16693E-06   -.24992E-04
   6  norm          1.8698        2.0709       -.59426E-07   -.48528E-03
   7  Prefactor     .10000E-03    35.395        .34528E-05** at limit **
   8  Prefactor     15.647        11.630       -.83327E-06   -.62874E-03
   9  norm          2.6743        2.6669        .13676E-06    .10930E-03
  10  Prefactor     .10000E-03    5.5330        .11809E-06** at limit **
  11  Prefactor     5.2168        12.804       -.14061E-05   -.12409E-03
  12  norm          .28980        .88920        .83051E-06    .48976E-03
  13  Prefactor     10.176        37.262       -.11489E-04    .60836E-04
  14  Prefactor     .10000E-03    21.324       -.10082E-05** at limit **
  15  Prefactor     3.0249        8.5247       -.68017E-05   -.20679E-03
  16  norm          13.568        8.3191        .14646E-05   -.28564E-03
  17  Prefactor     .10000E-03    53.178        .93300E-06** at limit **
  18  norm          9.1556        4.2549        .54179E-06   -.34592E-04
  19  Prefactor     20.104        30.991       -.10562E-04    .18140E-03
  20  Prefactor     .10000E-03    34.214       -.17538E-05** at limit **
  21  Normalizat    .98543        .18607        .17648E-05    .14461E-03
  22  Prefactor     .78226        .17203       -.44453E-06    .22028E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.150592
  norm       = 0.0001
  Prefactor  = 29.6303
  Prefactor  = 16.016
  norm       = 1.86984
  Prefactor  = 0.0001
  Prefactor  = 15.6471
  norm       = 2.67433
  Prefactor  = 0.0001
  Prefactor  = 5.21682
  norm       = 0.2898
  Prefactor  = 10.1761
  Prefactor  = 0.0001
  Prefactor  = 3.02491
  norm       = 13.5684
  Prefactor  = 0.0001
  norm       = 9.15559
  Prefactor  = 20.1043
  Prefactor  = 0.0001
  Normalizat = 0.985429
  Prefactor  = 0.782262
 **********
 **   18 **HESSE 
 **********

 FCN=   5178.064     FROM HESSE     STATUS=OK           350 CALLS     2387 TOTAL
                     EDM=   .60E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    7.5124        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .15059        69.806        .35458E-02   -1.5630    
   3  norm          .10000E-03    8.1233        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     29.630        22.912        .73619E-04   -1.4619    
   5  Prefactor     16.016        12.700        .10007E-03   -1.4907    
   6  norm          1.8698        2.0512        .10481E-03   -1.5434    
   7  Prefactor     .10000E-03    35.446        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     15.647        11.774        .50627E-03   -1.4917    
   9  norm          2.6743        2.6644        .11075E-03   -1.5381    
  10  Prefactor     .10000E-03    5.5369        .16516E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     5.2168        11.598        .17623E-03   -1.5251    
  12  norm          .28980        .76067        .67987E-04   -1.5600    
  13  Prefactor     10.176        37.183        .12557E-03   -1.5070    
  14  Prefactor     .10000E-03    22.118        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     3.0249        8.5364        .23330E-03   -1.5360    
  16  norm          13.568        8.3032        .10872E-03   -1.4971    
  17  Prefactor     .10000E-03    53.481        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          9.1556        4.2499        .93147E-04   -1.5103    
  19  Prefactor     20.104        30.892        .89306E-04   -1.4811    
  20  Prefactor     .10000E-03    34.214        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    .98543        .22433        .22729E-03   -.93520    
  22  Prefactor     .78226        .20409        .24555E-03   -1.0039    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.96764e-09
Minuit parameter uncertainties:
  1  1.0368e-05
  2  6.48998
  3  5.33395e-06
  4  22.9186
  5  12.7024
  6  2.05128
  7  0.000125528
  8  11.7757
  9  2.6645
  10  1.8061e-05
  11  11.6032
  12  0.760697
  13  37.2682
  14  3.90272e-05
  15  8.53981
  16  8.30388
  17  0.000222782
  18  4.25006
  19  30.9166
  20  0.000127848
  21  0.224547
  22  0.204283
Done.

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

Extracting fit parameters...

4FGL J2256.0-2740
   Spectrum: PowerLaw
340    Prefactor:  5.217e+00  1.160e+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.823e-01  2.043e-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.854e-01  2.245e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/594173/likelihoodResults_597283201_597542401_4FGL_J2256.0-2740_daily_bin1381.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) = 5178.01005295
delta logL = 0.0541120915177

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5178.00900228
delta logL = 0.0551627635095

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.1133       1.0000         .10000E-03   10000.    
     2 'Index     '    3.4906       1.0000          .0000       10.000    
     3 'Normalizat'    .97555       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .78942       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=   5178.009     FROM MIGRAD    STATUS=CONVERGED     93 CALLS      280 TOTAL
                     EDM=   .11E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.1141        9.4175        .17780E-03    .92715E-05
   2  Index         3.4901        1.9551        .84460E-01    .41748E-05
   3  Normalizat    .97562        .20985        .22827E-03   -.30131E-04
   4  Prefactor     .78931        .20059        .24459E-03   -.64887E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.11407
  Index      = 3.49013
  Normalizat = 0.975617
  Prefactor  = 0.789315
 **********
 **   18 **HESSE 
 **********

 FCN=   5178.009     FROM HESSE     STATUS=OK            25 CALLS      305 TOTAL
                     EDM=   .11E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.1141        7.2625        .71120E-05   -1.5256    
   2  Index         3.4901        1.5437        .20685E-02   -.30676    
   3  Normalizat    .97562        .21075        .91310E-05   -.93852    
   4  Prefactor     .78931        .20112        .97835E-05   -1.0012    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.10174e-11
Minuit parameter uncertainties:
  1  7.26375
  2  1.57208
  3  0.21093
  4  0.201311
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/594173': 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) = 5178.00900209
delta logL = 0.0551629565198

Extracting fit parameters...

4FGL J2256.0-2740
   Spectrum: PowerLaw
340    Prefactor:  5.114e+00  7.264e+00  1.000e-04  1.000e+04 ( 1.000e-11)
341        Index:  3.490e+00  1.572e+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.893e-01  2.013e-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.756e-01  2.109e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.58
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/594173/cmap_HighResolution_597283201_597542401_4FGL_J2256.0-2740_daily_bin1381.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.13e-02', job_status='DONE', photon_flux_upper_limit='1.41e-07', time_completed='2021-09-29 03:00:53.582550', job_id='594173', GAL2='0.79', fit_tolerance='1e-08', EG2='0.98', EG='0.99', time_epoch_completed='1632909653.58', return_code2='0', ts='0.58', comment='SUCCESS', return_code='0', GAL='0.78', dlogl='5.52e-02', ts2='0.71', photon_index_error='0.00', photon_index='3.02' WHERE bin_id='1381' AND source_name='4FGL J2256.0-2740' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 03:00:53 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0102>
Subject: Job 594173: <4FGL_J2256.0-2740_daily_bin1381> in cluster <slac> Done

Job <4FGL_J2256.0-2740_daily_bin1381> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Wed Sep 29 02:50:38 2021
Job was executed on host(s) <bullet0102>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 02:50:39 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:39 2021
Terminated at Wed Sep 29 03:00:54 2021
Results reported at Wed Sep 29 03:00:54 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2256.0-2740_daily_bin1381 344.025 -27.6739 597283201 597542401 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 :                                   553.26 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             267.16 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   614 sec.
    Turnaround time :                            616 sec.

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

