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


Performing analysis on: 4FGL_J2256.0-2740_daily_bin396
RA = 344.025, Dec = -27.6739
tmin = 341971201, tmax = 342230401
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='590716', job_status='RUN', time_executed='2021-09-29 02:43:54.987296', time_epoch_executed='1632908634.99' WHERE source_name='4FGL J2256.0-2740' and cadence='daily' and bin_id='396'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/590716

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/590716/ft1_4FGL_J2256.0-2740_daily_bin396.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/590716/ft2_4FGL_J2256.0-2740_daily_bin396.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/590716/ft1_4FGL_J2256.0-2740_daily_bin396.fits outfile=/scratch/kocevski/590716/ft1_filteredMKT_4FGL_J2256.0-2740_daily_bin396.fits ra=344.025 dec=-27.6739 rad=12.0 tmin=341971201.0 tmax=342230401.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.42
user 3.23
sys 0.17

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/590716/ft1_filtered_4FGL_J2256.0-2740_daily_bin396.fits" evtable="EVENTS" scfile=/scratch/kocevski/590716/ft2_4FGL_J2256.0-2740_daily_bin396.fits sctable="SC_DATA" outfile=/scratch/kocevski/590716/ltcube_341971201_342230401_4FGL_J2256.0-2740_daily_bin396.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/590716/ft2_4FGL_J2256.0-2740_daily_bin396.fits
.....................!
real 11.78
user 11.41
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/590716/ft1_filtered_4FGL_J2256.0-2740_daily_bin396.fits evtable="EVENTS" scfile=/scratch/kocevski/590716/ft2_4FGL_J2256.0-2740_daily_bin396.fits sctable="SC_DATA" expcube=/scratch/kocevski/590716/ltcube_341971201_342230401_4FGL_J2256.0-2740_daily_bin396.fits outfile=/scratch/kocevski/590716/expmap_341971201_342230401_4FGL_J2256.0-2740_daily_bin396.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/590716/ltcube_341971201_342230401_4FGL_J2256.0-2740_daily_bin396.fits
.....................!
real 192.57
user 187.30
sys 4.95

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/590716/ft1_filtered_4FGL_J2256.0-2740_daily_bin396.fits scfile=/scratch/kocevski/590716/ft2_4FGL_J2256.0-2740_daily_bin396.fits outfile=/scratch/kocevski/590716/cmap_341971201_342230401_4FGL_J2256.0-2740_daily_bin396.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/590716/ft1_filtered_4FGL_J2256.0-2740_daily_bin396.fits scfile=/scratch/kocevski/590716/ft2_4FGL_J2256.0-2740_daily_bin396.fits outfile=/scratch/kocevski/590716/cmap_HighResolution_341971201_342230401_4FGL_J2256.0-2740_daily_bin396.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=344.025 yref=-27.6739 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.53
user 0.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/590716/ft1_filtered_4FGL_J2256.0-2740_daily_bin396.fits evtable="EVENTS" scfile=/scratch/kocevski/590716/ft2_4FGL_J2256.0-2740_daily_bin396.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/590716/Model_4FGL_J2256.0-2740_daily_bin396.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/590716/ft1_filtered_4FGL_J2256.0-2740_daily_bin396.fits.....................!
real 51.34
user 49.87
sys 1.38

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    3.0692       1.0000         .10000E-03   10000.    
     3 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    8.1748       1.0000         .10000E-03   10000.    
     6 'norm      '    2.2993       1.0000         .10000E-03   10000.    
     7 'Prefactor '    7.1099       1.0000         .10000E-03   10000.    
     8 'Prefactor '    6.3882       1.0000         .10000E-03   10000.    
     9 'norm      '    9.8190       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .30204E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10062E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .32868       1.0000         .10000E-03   10000.    
    13 'Prefactor '    79.588       1.0000         .10000E-03   10000.    
    14 'Prefactor '    15.195       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10237E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    2.6970       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .13191E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .56194       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10035E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.0825       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .62135       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=   6790.267     FROM MIGRAD    STATUS=CONVERGED    503 CALLS     2414 TOTAL
                     EDM=   .15E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    5.3870        .90712E-02** at limit **
   2  Prefactor     3.0696        4.7086        .57885E-02   -.26575E-02
   3  norm          .10000E-03    4.6580        .90712E-02** at limit **
   4  Prefactor     .10000E-03    4.9455        .90712E-02** at limit **
   5  Prefactor     8.1783        6.9014        .35056E-02    .17750E-03
   6  norm          2.3055        2.2715        .67662E-02    .28784E-03
   7  Prefactor     6.9706        48.662        .37610E-02    .65588E-04
   8  Prefactor     6.3866        9.3057        .39700E-02   -.88809E-03
   9  norm          9.8187        4.1878        .31970E-02   -.17649E-03
  10  Prefactor     .10000E-03    5.5267        .69437E-01** at limit **
  11  Prefactor     .10000E-03    5.0545        .90712E-02** at limit **
  12  norm          .32827        .44454        .10550E-01    .19085E-02
  13  Prefactor     79.586        48.110        .11254E-02    .10710E-02
  14  Prefactor     15.196        9.3803        .25687E-02    .20406E-02
  15  Prefactor     .10000E-03    8.9382        .90712E-02** at limit **
  16  norm          2.6958        2.8145        .62016E-02   -.21696E-03
  17  Prefactor     .10000E-03    74.415        .90712E-02** at limit **
  18  norm          .56275        2.1698        .11521E-01    .16962E-02
  19  Prefactor     .10000E-03    13.084        .90712E-02** at limit **
  20  Prefactor     .10000E-03    44.163        .90712E-02** at limit **
  21  Normalizat    1.0827        .14887        .38762E-01    .45366E-04
  22  Prefactor     .62100        .14100        .41344E-01    .48540E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 3.06962
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 8.17827
  norm       = 2.30552
  Prefactor  = 6.97058
  Prefactor  = 6.38657
  norm       = 9.81873
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 0.328275
  Prefactor  = 79.5861
  Prefactor  = 15.1959
  Prefactor  = 0.0001
  norm       = 2.69579
  Prefactor  = 0.000100001
  norm       = 0.562751
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.08274
  Prefactor  = 0.621001
 **********
 **   18 **HESSE 
 **********

 FCN=   6790.267     FROM HESSE     STATUS=OK           346 CALLS     2760 TOTAL
                     EDM=   .14E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    5.3998        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     3.0696        4.6950        .21344E-03   -1.5358    
   3  norm          .10000E-03    4.6609        .17369E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    4.9555        .17897E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     8.1783        6.8935        .14022E-03   -1.5136    
   6  norm          2.3055        2.3293        .91139E-04   -1.5404    
   7  Prefactor     6.9706        51.582        .15044E-03   -1.5180    
   8  Prefactor     6.3866        9.3424        .15880E-03   -1.5202    
   9  norm          9.8187        4.1088        .10079E-03   -1.5081    
  10  Prefactor     .10000E-03    14.521        .36012E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    5.1083        .17965E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .32827        .40217        .56981E-03   -1.5593    
  13  Prefactor     79.586        48.129        .45017E-04   -1.3921    
  14  Prefactor     15.196        9.3807        .10275E-03   -1.4928    
  15  Prefactor     .10000E-03    9.1911        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          2.6958        2.8216        .13782E-03   -1.5380    
  17  Prefactor     .10000E-03    75.365        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .56275        2.1700        .22623E-03   -1.5558    
  19  Prefactor     .10000E-03    13.107        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    44.233        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    1.0827        .17443        .20111E-03   -.90308    
  22  Prefactor     .62100        .16509        .25362E-03   -1.0671    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.42731e-08
Minuit parameter uncertainties:
  1  2.98595e-05
  2  4.6956
  3  2.18922e-05
  4  9.91296e-05
  5  6.89417
  6  2.3294
  7  37.9698
  8  9.34454
  9  4.10897
  10  0.00011246
  11  0.000104301
  12  0.402169
  13  48.1521
  14  9.38164
  15  5.38848e-06
  16  2.82177
  17  0.000423228
  18  2.17033
  19  2.37039e-06
  20  5.11539e-05
  21  0.174518
  22  0.165222
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
558    Prefactor:  6.210e-01  1.652e-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.083e+00  1.745e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 344.025 -27.674
Photon Flux Upper Limit: 7.75e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.21e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/590716/likelihoodResults_341971201_342230401_4FGL_J2256.0-2740_daily_bin396.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) = 6790.26775346
delta logL = -0.000933569257541

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6790.26681995
delta logL = -5.34964783583e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    3.0368       1.0000          .0000       10.000    
     3 'Normalizat'    1.0828       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .62097       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=   6790.267     FROM MIGRAD    STATUS=CONVERGED    104 CALLS      253 TOTAL
                     EDM=   .89E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    164.46        .36209E-02** at limit **
   2  Index         3.8871        5.2203        .50000       -.10648E-06
   3  Normalizat    1.0827        .17850E-01    .20111E-03   -.18606E-03
   4  Prefactor     .62100        .17551E-01    .25362E-03   -.16102E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Index      = 3.88715
  Normalizat = 1.08274
  Prefactor  = 0.621001
 **********
 **   18 **HESSE 
 **********

 FCN=   6790.267     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      282 TOTAL
                     EDM=   .38E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    701.44        .72418E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         3.8871        6.9361        .50000       -.22445    
   3  Normalizat    1.0827        .41978E-01    .40222E-04   -.90308    
   4  Prefactor     .62100        .41285E-01    .10145E-04   -1.0671    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.8289e-08
Minuit parameter uncertainties:
  1  0.00175257
  2  2885.96
  3  0.0419793
  4  0.0412871
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/590716': 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): 102
logL (Free Index) = 6790.26681768
delta logL = 2.2167159841e-06

Extracting fit parameters...

4FGL J2256.0-2740
   Spectrum: PowerLaw
340    Prefactor:  1.000e-04  1.753e-03  1.000e-04  1.000e+04 ( 1.000e-11)
341        Index:  3.887e+00  2.886e+03  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:  6.210e-01  4.129e-02  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.083e+00  4.198e-02  1.000e-02  1.000e+01 ( 1.000e+00)


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

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/590716/cmap_HighResolution_341971201_342230401_4FGL_J2256.0-2740_daily_bin396.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.21e-03', job_status='DONE', photon_flux_upper_limit='7.75e-08', time_completed='2021-09-29 02:54:52.686694', job_id='590716', GAL2='0.62', fit_tolerance='1e-08', EG2='1.08', EG='1.08', time_epoch_completed='1632909292.69', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.62', dlogl='2.22e-06', ts2='-0.00', photon_index_error='0.00', photon_index='3.02' WHERE bin_id='396' AND source_name='4FGL J2256.0-2740' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 02:54:52 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0275>
Subject: Job 590716: <4FGL_J2256.0-2740_daily_bin396> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2256.0-2740_daily_bin396 344.025 -27.6739 341971201 342230401 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 :                                   657.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             299.23 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   870 sec.
    Turnaround time :                            872 sec.

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

