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


Performing analysis on: 4FGL_J2256.0-2740_daily_bin198
RA = 344.025, Dec = -27.6739
tmin = 290649601, tmax = 290908801
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='589387', job_status='RUN', time_executed='2021-09-29 02:37:34.729876', time_epoch_executed='1632908254.73' WHERE source_name='4FGL J2256.0-2740' and cadence='daily' and bin_id='198'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/589387

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

Retrieving the FT1 file...

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

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

Retrieving 45 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/589387/ft1_4FGL_J2256.0-2740_daily_bin198.fits


Retrieving the FT1 file...

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

Retrieving 45 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/589387/ft2_4FGL_J2256.0-2740_daily_bin198.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/589387/ft1_4FGL_J2256.0-2740_daily_bin198.fits outfile=/scratch/kocevski/589387/ft1_filteredMKT_4FGL_J2256.0-2740_daily_bin198.fits ra=344.025 dec=-27.6739 rad=12.0 tmin=290649601.0 tmax=290908801.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.37
user 3.16
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/589387/ft2_4FGL_J2256.0-2740_daily_bin198.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/589387/ft1_filteredMKT_4FGL_J2256.0-2740_daily_bin198.fits evtable="EVENTS" outfile="/scratch/kocevski/589387/ft1_filtered_4FGL_J2256.0-2740_daily_bin198.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.50
user 0.32
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/589387/ft1_filtered_4FGL_J2256.0-2740_daily_bin198.fits" evtable="EVENTS" scfile=/scratch/kocevski/589387/ft2_4FGL_J2256.0-2740_daily_bin198.fits sctable="SC_DATA" outfile=/scratch/kocevski/589387/ltcube_290649601_290908801_4FGL_J2256.0-2740_daily_bin198.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/589387/ft2_4FGL_J2256.0-2740_daily_bin198.fits
.....................!
real 11.91
user 11.52
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/589387/ft1_filtered_4FGL_J2256.0-2740_daily_bin198.fits evtable="EVENTS" scfile=/scratch/kocevski/589387/ft2_4FGL_J2256.0-2740_daily_bin198.fits sctable="SC_DATA" expcube=/scratch/kocevski/589387/ltcube_290649601_290908801_4FGL_J2256.0-2740_daily_bin198.fits outfile=/scratch/kocevski/589387/expmap_290649601_290908801_4FGL_J2256.0-2740_daily_bin198.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/589387/ltcube_290649601_290908801_4FGL_J2256.0-2740_daily_bin198.fits
.....................!
real 191.35
user 185.86
sys 5.14

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/589387/ft1_filtered_4FGL_J2256.0-2740_daily_bin198.fits scfile=/scratch/kocevski/589387/ft2_4FGL_J2256.0-2740_daily_bin198.fits outfile=/scratch/kocevski/589387/cmap_290649601_290908801_4FGL_J2256.0-2740_daily_bin198.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.54
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/589387/ft1_filtered_4FGL_J2256.0-2740_daily_bin198.fits scfile=/scratch/kocevski/589387/ft2_4FGL_J2256.0-2740_daily_bin198.fits outfile=/scratch/kocevski/589387/cmap_HighResolution_290649601_290908801_4FGL_J2256.0-2740_daily_bin198.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.36
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/589387/ft1_filtered_4FGL_J2256.0-2740_daily_bin198.fits evtable="EVENTS" scfile=/scratch/kocevski/589387/ft2_4FGL_J2256.0-2740_daily_bin198.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/589387/Model_4FGL_J2256.0-2740_daily_bin198.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/589387/ft1_filtered_4FGL_J2256.0-2740_daily_bin198.fits.....................!
real 52.54
user 51.15
sys 1.24

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.3650       1.0000         .10000E-03   10000.    
     2 'Prefactor '    1.4542       1.0000         .10000E-03   10000.    
     3 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    2.0794       1.0000         .10000E-03   10000.    
     5 'Prefactor '    19.279       1.0000         .10000E-03   10000.    
     6 'norm      '    .10705E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    21.344       1.0000         .10000E-03   10000.    
     8 'Prefactor '    14.872       1.0000         .10000E-03   10000.    
     9 'norm      '    .60847       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    3.6644       1.0000         .10000E-03   10000.    
    12 'norm      '    1.1977       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .13228E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    33.400       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    3.6175       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    22.024       1.0000         .10000E-03   10000.    
    21 'Normalizat'    .37897       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.4909       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=   7214.465     FROM MIGRAD    STATUS=CONVERGED    491 CALLS     2440 TOTAL
                     EDM=   .21E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.3650        6.6530        .76520E-06   -.12202E-03
   2  Prefactor     1.4520        5.0485        .11236E-05    .64094E-04
   3  norm          .10000E-03    11.326        .31107E-06** at limit **
   4  Prefactor     2.0728        24.867       -.35561E-05   -.30719E-04
   5  Prefactor     19.279        11.319       -.62418E-06   -.20452E-03
   6  norm          .10000E-03    1.2522       -.12224E-06** at limit **
   7  Prefactor     21.302        32.202       -.18465E-05   -.20135E-03
   8  Prefactor     14.871        10.225        .36120E-07   -.30971E-05
   9  norm          .60826        2.3644       -.19181E-06   -.76577E-04
  10  Prefactor     .10000E-03    5.4927        .12560E-06** at limit **
  11  Prefactor     3.6627        7.2554        .21360E-05   -.45494E-03
  12  norm          1.1976        .66381       -.22430E-06   -.56925E-03
  13  Prefactor     .10000E-03    136.27       -.12188E-05** at limit **
  14  Prefactor     .10000E-03    4.9368       -.74686E-08** at limit **
  15  Prefactor     .10000E-03    4.6713        .15913E-06** at limit **
  16  norm          33.400        9.8361        .31686E-07   -.60755E-05
  17  Prefactor     .10000E-03    14.512        .52066E-06** at limit **
  18  norm          3.6176        2.3334        .28051E-07    .15227E-04
  19  Prefactor     .10000E-03    12.839       -.70962E-06** at limit **
  20  Prefactor     22.014        61.302        .38701E-05    .12010E-04
  21  Normalizat    .37907        .17357       -.12905E-05   -.85760E-04
  22  Prefactor     1.4909        .16977        .82229E-07   -.17611E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.36499
  Prefactor  = 1.45196
  norm       = 0.0001
  Prefactor  = 2.07283
  Prefactor  = 19.2787
  norm       = 0.000100001
  Prefactor  = 21.3022
  Prefactor  = 14.8711
  norm       = 0.608258
  Prefactor  = 0.0001
  Prefactor  = 3.66274
  norm       = 1.19763
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 33.4004
  Prefactor  = 0.0001
  norm       = 3.61764
  Prefactor  = 0.0001
  Prefactor  = 22.0143
  Normalizat = 0.37907
  Prefactor  = 1.49088
 **********
 **   18 **HESSE 
 **********

 FCN=   7214.465     FROM HESSE     STATUS=OK           344 CALLS     2784 TOTAL
                     EDM=   .74E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.3650        6.7020        .11030E-02   -1.5341    
   2  Prefactor     1.4520        5.0546        .33772E-03   -1.5467    
   3  norm          .10000E-03    11.401        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     2.0728        24.972        .28639E-03   -1.5420    
   5  Prefactor     19.279        11.291        .91219E-04   -1.4830    
   6  norm          .10000E-03    1.6551        .16396E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     21.302        33.510        .86698E-04   -1.4785    
   8  Prefactor     14.871        10.211        .10386E-03   -1.4937    
   9  norm          .60826        2.2674        .23534E-03   -1.5552    
  10  Prefactor     .10000E-03    5.5123        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     3.6627        7.7929        .10550E-02   -1.5325    
  12  norm          1.1976        .67388        .39778E-04   -1.5489    
  13  Prefactor     .10000E-03    137.26        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    4.9497        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    4.7077        .17923E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          33.400        9.8283        .69337E-04   -1.4551    
  17  Prefactor     .10000E-03    14.538        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          3.6176        2.3279        .10040E-03   -1.5328    
  19  Prefactor     .10000E-03    12.892        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     22.014        61.289        .85351E-04   -1.4769    
  21  Normalizat    .37907        .18817        .35371E-03   -1.1840    
  22  Prefactor     1.4909        .18847        .19915E-03   -.77796    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.35133e-10
Minuit parameter uncertainties:
  1  6.70346
  2  5.05612
  3  1.11392e-05
  4  14.3963
  5  11.2926
  6  6.15142e-05
  7  33.5397
  8  10.2125
  9  2.26767
  10  6.92963e-06
  11  7.79507
  12  0.673888
  13  0.000247775
  14  2.65202e-06
  15  1.04542e-05
  16  9.82876
  17  1.65933e-05
  18  2.328
  19  1.57462e-05
  20  61.4651
  21  0.188479
  22  0.188561
Done.

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

Extracting fit parameters...

4FGL J2256.0-2740
   Spectrum: PowerLaw
340    Prefactor:  3.663e+00  7.795e+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.491e+00  1.886e-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:  3.791e-01  1.885e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.43
Ra Dec: 344.025 -27.674
Photon Flux Upper Limit: 1.10e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.80e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/589387/likelihoodResults_290649601_290908801_4FGL_J2256.0-2740_daily_bin198.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) = 7214.3314308
delta logL = 0.133202866135

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7214.32099095
delta logL = 0.143642722901

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.9271       1.0000         .10000E-03   10000.    
     2 'Index     '    4.0024       1.0000          .0000       10.000    
     3 'Normalizat'    .36789       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.4999       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.

 FCN=   7214.321     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      226 TOTAL
                     EDM=   .55E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.9226        97.668        .59359E-02    .50157E-03
   2  Index         4.0034        6.6317        .50000        .12994E-04
   3  Normalizat    .36788        .38696E-01    .81036E-01    .67275E-04
   4  Prefactor     1.5000        .41007E-01    .44944E-01    .27994E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.92263
  Index      = 4.0034
  Normalizat = 0.367879
  Prefactor  = 1.49996
 **********
 **   18 **HESSE 
 **********

 FCN=   7214.321     FROM HESSE     STATUS=OK            33 CALLS      259 TOTAL
                     EDM=   .19E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.9226        7.0651        .17624E-03   -1.5366    
   2  Index         4.0034        2.8201        .17114E-01   -.20066    
   3  Normalizat    .36788        .17805        .35887E-03   -1.1900    
   4  Prefactor     1.5000        .18656        .19865E-03   -.77541    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.91579e-11
Minuit parameter uncertainties:
  1  7.06709
  2  3.00495
  3  0.178324
  4  0.186646
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/589387': 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) = 7214.3209906
delta logL = 0.143643068445

Extracting fit parameters...

4FGL J2256.0-2740
   Spectrum: PowerLaw
340    Prefactor:  2.923e+00  7.067e+00  1.000e-04  1.000e+04 ( 1.000e-11)
341        Index:  4.003e+00  3.005e+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.500e+00  1.866e-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:  3.679e-01  1.783e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/589387/cmap_HighResolution_290649601_290908801_4FGL_J2256.0-2740_daily_bin198.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.80e-03', job_status='DONE', photon_flux_upper_limit='1.10e-07', time_completed='2021-09-29 02:48:56.079568', job_id='589387', GAL2='1.50', fit_tolerance='1e-08', EG2='0.37', EG='0.38', time_epoch_completed='1632908936.08', return_code2='0', ts='0.43', comment='SUCCESS', return_code='0', GAL='1.49', dlogl='1.44e-01', ts2='0.75', photon_index_error='0.00', photon_index='3.02' WHERE bin_id='198' AND source_name='4FGL J2256.0-2740' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 02:48:56 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0057>
Subject: Job 589387: <4FGL_J2256.0-2740_daily_bin198> in cluster <slac> Done

Job <4FGL_J2256.0-2740_daily_bin198> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Sep 29 02:35:28 2021
Job was executed on host(s) <bullet0057>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 02:35:29 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:35:29 2021
Terminated at Wed Sep 29 02:48:56 2021
Results reported at Wed Sep 29 02:48:56 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2256.0-2740_daily_bin198 344.025 -27.6739 290649601 290908801 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 :                                   677.16 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             294.72 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   807 sec.
    Turnaround time :                            808 sec.

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

