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


Performing analysis on: 4FGL_J2256.0-2740_daily_bin1184
RA = 344.025, Dec = -27.6739
tmin = 546220801, tmax = 546480001
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='593880', job_status='RUN', time_executed='2021-09-29 02:50:26.585712', time_epoch_executed='1632909026.59' WHERE source_name='4FGL J2256.0-2740' and cadence='daily' and bin_id='1184'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/593880

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/593880/ft1_4FGL_J2256.0-2740_daily_bin1184.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/593880/ft2_4FGL_J2256.0-2740_daily_bin1184.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/593880/ft1_4FGL_J2256.0-2740_daily_bin1184.fits outfile=/scratch/kocevski/593880/ft1_filteredMKT_4FGL_J2256.0-2740_daily_bin1184.fits ra=344.025 dec=-27.6739 rad=12.0 tmin=546220801.0 tmax=546480001.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.94
user 3.71
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/593880/ft2_4FGL_J2256.0-2740_daily_bin1184.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/593880/ft1_filteredMKT_4FGL_J2256.0-2740_daily_bin1184.fits evtable="EVENTS" outfile="/scratch/kocevski/593880/ft1_filtered_4FGL_J2256.0-2740_daily_bin1184.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.49
user 0.34
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/593880/ft1_filtered_4FGL_J2256.0-2740_daily_bin1184.fits" evtable="EVENTS" scfile=/scratch/kocevski/593880/ft2_4FGL_J2256.0-2740_daily_bin1184.fits sctable="SC_DATA" outfile=/scratch/kocevski/593880/ltcube_546220801_546480001_4FGL_J2256.0-2740_daily_bin1184.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/593880/ft2_4FGL_J2256.0-2740_daily_bin1184.fits
.....................!
real 11.95
user 11.60
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/593880/ft1_filtered_4FGL_J2256.0-2740_daily_bin1184.fits evtable="EVENTS" scfile=/scratch/kocevski/593880/ft2_4FGL_J2256.0-2740_daily_bin1184.fits sctable="SC_DATA" expcube=/scratch/kocevski/593880/ltcube_546220801_546480001_4FGL_J2256.0-2740_daily_bin1184.fits outfile=/scratch/kocevski/593880/expmap_546220801_546480001_4FGL_J2256.0-2740_daily_bin1184.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/593880/ltcube_546220801_546480001_4FGL_J2256.0-2740_daily_bin1184.fits
.....................!
real 191.39
user 185.30
sys 5.69

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/593880/ft1_filtered_4FGL_J2256.0-2740_daily_bin1184.fits scfile=/scratch/kocevski/593880/ft2_4FGL_J2256.0-2740_daily_bin1184.fits outfile=/scratch/kocevski/593880/cmap_546220801_546480001_4FGL_J2256.0-2740_daily_bin1184.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/593880/ft1_filtered_4FGL_J2256.0-2740_daily_bin1184.fits scfile=/scratch/kocevski/593880/ft2_4FGL_J2256.0-2740_daily_bin1184.fits outfile=/scratch/kocevski/593880/cmap_HighResolution_546220801_546480001_4FGL_J2256.0-2740_daily_bin1184.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/593880/ft1_filtered_4FGL_J2256.0-2740_daily_bin1184.fits evtable="EVENTS" scfile=/scratch/kocevski/593880/ft2_4FGL_J2256.0-2740_daily_bin1184.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/593880/Model_4FGL_J2256.0-2740_daily_bin1184.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/593880/ft1_filtered_4FGL_J2256.0-2740_daily_bin1184.fits.....................!
real 44.05
user 42.68
sys 1.23

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10063E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10082E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    20.970       1.0000         .10000E-03   10000.    
     5 'Prefactor '    31.233       1.0000         .10000E-03   10000.    
     6 'norm      '    2.0180       1.0000         .10000E-03   10000.    
     7 'Prefactor '    51.065       1.0000         .10000E-03   10000.    
     8 'Prefactor '    10.695       1.0000         .10000E-03   10000.    
     9 'norm      '    3.9938       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10568E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    1.2542       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .74444E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10082E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .71950E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    14.945       1.0000         .10000E-03   10000.    
    17 'Prefactor '    3.5268       1.0000         .10000E-03   10000.    
    18 'norm      '    3.5649       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10046E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    209.12       1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.0099       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .98785       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=   5350.964     FROM MIGRAD    STATUS=CONVERGED    488 CALLS     2371 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    7.1790        .71388E-07** at limit **
   2  Prefactor     .10000E-03    4.4709        .17649E-06** at limit **
   3  norm          .10000E-03    10.890       -.11576E-05** at limit **
   4  Prefactor     20.974        20.967        .45759E-06   -.10854E-03
   5  Prefactor     31.240        20.853        .23851E-05   -.85912E-04
   6  norm          2.0185        3.7250        .21955E-05   -.40798E-03
   7  Prefactor     51.047        88.585       -.18409E-04   -.62421E-04
   8  Prefactor     10.695        9.1735       -.61610E-06   -.13334E-02
   9  norm          3.9948        4.6510        .29660E-06   -.37298E-03
  10  Prefactor     .10000E-03    11.324        .19535E-05** at limit **
  11  Prefactor     .10000E-03    19.212        .14114E-05** at limit **
  12  norm          1.2543        .80749        .12189E-06   -.11066E-02
  13  Prefactor     .10001E-03    226.26        .11159E-03** at limit **
  14  Prefactor     .10000E-03    13.364       -.80954E-06** at limit **
  15  Prefactor     .10007E-03    8.8442        .26884E-06** at limit **
  16  norm          14.946        8.8635       -.10300E-05   -.32799E-03
  17  Prefactor     3.6185        112.42        .75809E-04   -.19698E-04
  18  norm          3.5652        2.8301        .49522E-07   -.15353E-03
  19  Prefactor     .10000E-03    11.968        .66929E-08** at limit **
  20  Prefactor     209.13        120.19        .80993E-05   -.25203E-04
  21  Normalizat    1.0094        .21930       -.51111E-05   -.47171E-03
  22  Prefactor     .98820        .20370        .11769E-05   -.67907E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 20.974
  Prefactor  = 31.2398
  norm       = 2.01849
  Prefactor  = 51.0467
  Prefactor  = 10.6946
  norm       = 3.99484
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 1.25427
  Prefactor  = 0.000100012
  Prefactor  = 0.0001
  Prefactor  = 0.000100073
  norm       = 14.9462
  Prefactor  = 3.61848
  norm       = 3.56517
  Prefactor  = 0.0001
  Prefactor  = 209.134
  Normalizat = 1.00938
  Prefactor  = 0.988201
 **********
 **   18 **HESSE 
 **********

 FCN=   5350.964     FROM HESSE     STATUS=OK           342 CALLS     2713 TOTAL
                     EDM=   .36E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    7.1822        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    4.5074        .15100E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    10.901        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     20.974        20.989        .87466E-04   -1.4792    
   5  Prefactor     31.240        20.857        .71695E-04   -1.4590    
   6  norm          2.0185        3.6539        .15003E-03   -1.5424    
   7  Prefactor     51.047        87.416        .56122E-04   -1.4278    
   8  Prefactor     10.695        9.2148        .61258E-03   -1.5054    
   9  norm          3.9948        4.6487        .15398E-03   -1.5308    
  10  Prefactor     .10000E-03    11.373        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    19.605        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          1.2543        .75361        .44879E-04   -1.5484    
  13  Prefactor     .10001E-03    228.22        .41889E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    13.386        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10007E-03    46.504        .39381E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          14.946        8.8650        .10360E-03   -1.4935    
  17  Prefactor     3.6185        112.44        .21526E-03   -1.5327    
  18  norm          3.5652        2.8252        .10644E-03   -1.5330    
  19  Prefactor     .10000E-03    11.975        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     209.13        120.71        .13977E-03   -1.2805    
  21  Normalizat    1.0094        .26379        .25906E-03   -.92717    
  22  Prefactor     .98820        .24527        .25638E-03   -.93124    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.63078e-09
Minuit parameter uncertainties:
  1  1.1579e-05
  2  2.37949e-05
  3  2.39325e-05
  4  20.9959
  5  20.8615
  6  3.65435
  7  87.6365
  8  9.216
  9  4.64915
  10  2.37878e-05
  11  0.000296634
  12  0.753618
  13  0.00333411
  14  1.80594e-05
  15  0.00369671
  16  8.8658
  17  40.4247
  18  2.82535
  19  2.9653e-06
  20  120.849
  21  0.26413
  22  0.245549
Done.

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

Extracting fit parameters...

4FGL J2256.0-2740
   Spectrum: PowerLaw
340    Prefactor:  1.000e-04  2.966e-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:  9.882e-01  2.455e-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.009e+00  2.641e-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: 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/593880/likelihoodResults_546220801_546480001_4FGL_J2256.0-2740_daily_bin1184.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): 102
logL (Free Index) = 5350.96418139
delta logL = -0.000243472983129

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5350.96393798
delta logL = -6.50052243145e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10211E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    3.0042       1.0000          .0000       10.000    
     3 'Normalizat'    1.0094       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .98818       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=   5350.964     FROM MIGRAD    STATUS=CONVERGED    102 CALLS      256 TOTAL
                     EDM=   .63E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    2242.3        .36285E-02** at limit **
   2  Index         2.5869        8.6735        .50000       -.15032E-06
   3  Normalizat    1.0094        .55930E-01    .25906E-03   -.10698E-02
   4  Prefactor     .98820        .54981E-01    .25638E-03   -.10713E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.58688
  Normalizat = 1.00938
  Prefactor  = 0.988204
 **********
 **   18 **HESSE 
 **********

 FCN=   5350.964     FROM HESSE     STATUS=OK            29 CALLS      285 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    67.052        .72569E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.5869        5.8293        .50000       -.50365    
   3  Normalizat    1.0094        .24293        .51812E-04   -.92717    
   4  Prefactor     .98820        .23937        .51277E-04   -.93124    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.58243e-09
Minuit parameter uncertainties:
  1  0.000230967
  2  139.536
  3  0.243194
  4  0.239627
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/593880': 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) = 5350.9639374
delta logL = 5.12261976837e-07

Extracting fit parameters...

4FGL J2256.0-2740
   Spectrum: PowerLaw
340    Prefactor:  1.000e-04  2.310e-04  1.000e-04  1.000e+04 ( 1.000e-11)
341        Index:  2.587e+00  1.395e+02  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:  9.882e-01  2.396e-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.009e+00  2.432e-01  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  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/593880/cmap_HighResolution_546220801_546480001_4FGL_J2256.0-2740_daily_bin1184.png

Cleaning up...

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

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:09.701957', job_id='593880', GAL2='0.99', fit_tolerance='1e-08', EG2='1.01', EG='1.01', time_epoch_completed='1632909609.7', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.99', dlogl='5.12e-07', ts2='-0.00', photon_index_error='0.00', photon_index='3.02' WHERE bin_id='1184' AND source_name='4FGL J2256.0-2740' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 03:00:09 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0072>
Subject: Job 593880: <4FGL_J2256.0-2740_daily_bin1184> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2256.0-2740_daily_bin1184 344.025 -27.6739 546220801 546480001 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 :                                   579.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             297.10 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   592 sec.
    Turnaround time :                            594 sec.

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

