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


Performing analysis on: 4FGL_J0056.4-2118_daily_bin1604
RA = 14.1204, Dec = -21.3029
tmin = 655084801, tmax = 655344001
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='4118', job_status='RUN', time_executed='2021-10-08 00:02:20.454823', time_epoch_executed='1633676540.45' WHERE source_name='4FGL J0056.4-2118' and cadence='daily' and bin_id='1604'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/4118

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/4118/ft1_4FGL_J0056.4-2118_daily_bin1604.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/4118/ft2_4FGL_J0056.4-2118_daily_bin1604.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/4118/ft1_4FGL_J0056.4-2118_daily_bin1604.fits outfile=/scratch/kocevski/4118/ft1_filteredMKT_4FGL_J0056.4-2118_daily_bin1604.fits ra=14.1204 dec=-21.3029 rad=12.0 tmin=655084801.0 tmax=655344001.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 2.89
user 2.65
sys 0.20

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/4118/ft2_4FGL_J0056.4-2118_daily_bin1604.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/4118/ft2_4FGL_J0056.4-2118_daily_bin1604.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/4118/ft1_filteredMKT_4FGL_J0056.4-2118_daily_bin1604.fits evtable="EVENTS" outfile="/scratch/kocevski/4118/ft1_filtered_4FGL_J0056.4-2118_daily_bin1604.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/4118/ft1_filtered_4FGL_J0056.4-2118_daily_bin1604.fits" evtable="EVENTS" scfile=/scratch/kocevski/4118/ft2_4FGL_J0056.4-2118_daily_bin1604.fits sctable="SC_DATA" outfile=/scratch/kocevski/4118/ltcube_655084801_655344001_4FGL_J0056.4-2118_daily_bin1604.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/4118/ft2_4FGL_J0056.4-2118_daily_bin1604.fits
.....................!
real 15.02
user 14.60
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/4118/ft1_filtered_4FGL_J0056.4-2118_daily_bin1604.fits evtable="EVENTS" scfile=/scratch/kocevski/4118/ft2_4FGL_J0056.4-2118_daily_bin1604.fits sctable="SC_DATA" expcube=/scratch/kocevski/4118/ltcube_655084801_655344001_4FGL_J0056.4-2118_daily_bin1604.fits outfile=/scratch/kocevski/4118/expmap_655084801_655344001_4FGL_J0056.4-2118_daily_bin1604.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/4118/ltcube_655084801_655344001_4FGL_J0056.4-2118_daily_bin1604.fits
.....................!
real 192.46
user 187.32
sys 4.63

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 181 point sources and 0 extended sources

Setting source of interest to:
4FGL J0056.4-2118 @ 14.1204 -21.3029

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/4118/ft1_filtered_4FGL_J0056.4-2118_daily_bin1604.fits scfile=/scratch/kocevski/4118/ft2_4FGL_J0056.4-2118_daily_bin1604.fits outfile=/scratch/kocevski/4118/cmap_655084801_655344001_4FGL_J0056.4-2118_daily_bin1604.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=14.1204 yref=-21.3029 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.55
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/4118/ft1_filtered_4FGL_J0056.4-2118_daily_bin1604.fits scfile=/scratch/kocevski/4118/ft2_4FGL_J0056.4-2118_daily_bin1604.fits outfile=/scratch/kocevski/4118/cmap_HighResolution_655084801_655344001_4FGL_J0056.4-2118_daily_bin1604.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=14.1204 yref=-21.3029 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.55
user 0.38
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/4118/ft1_filtered_4FGL_J0056.4-2118_daily_bin1604.fits evtable="EVENTS" scfile=/scratch/kocevski/4118/ft2_4FGL_J0056.4-2118_daily_bin1604.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/4118/Model_4FGL_J0056.4-2118_daily_bin1604.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/4118/ft1_filtered_4FGL_J0056.4-2118_daily_bin1604.fits.....................!
real 31.13
user 29.44
sys 1.34

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/4118/ft1_filtered_4FGL_J0056.4-2118_daily_bin1604.fits', '/scratch/kocevski/4118/ft2_4FGL_J0056.4-2118_daily_bin1604.fits', expMap='/scratch/kocevski/4118/expmap_655084801_655344001_4FGL_J0056.4-2118_daily_bin1604.fits', expCube='/scratch/kocevski/4118/ltcube_655084801_655344001_4FGL_J0056.4-2118_daily_bin1604.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/4118/Model_4FGL_J0056.4-2118_daily_bin1604.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0056.4-2118'

4FGL J0056.4-2118
   Spectrum: LogParabola
210         norm:  3.687e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
211        alpha:  1.732e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
212         beta:  1.235e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
213           Eb:  1.603e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/4118/ft1_filtered_4FGL_J0056.4-2118_daily_bin1604.fits
Spacecraft file(s): /scratch/kocevski/4118/ft2_4FGL_J0056.4-2118_daily_bin1604.fits
Exposure map: /scratch/kocevski/4118/expmap_655084801_655344001_4FGL_J0056.4-2118_daily_bin1604.fits
Exposure cube: /scratch/kocevski/4118/ltcube_655084801_655344001_4FGL_J0056.4-2118_daily_bin1604.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/4118/Model_4FGL_J0056.4-2118_daily_bin1604.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) = 2765.24348283

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    3.3050       1.0000         .10000E-03   10000.    
     3 'norm      '    22.902       1.0000         .10000E-03   10000.    
     4 'norm      '    6.9285       1.0000         .10000E-03   10000.    
     5 'norm      '    46.699       1.0000         .10000E-03   10000.    
     6 'Prefactor '    172.17       1.0000         .10000E-03   10000.    
     7 'Prefactor '    39.185       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10336E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    7.1203       1.0000         .10000E-03   10000.    
    10 'norm      '    .18936       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    2.9430       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .19552E-01   1.0000         .10000E-03   10000.    
    15 'norm      '    10.840       1.0000         .10000E-03   10000.    
    16 'norm      '    1.7938       1.0000         .10000E-03   10000.    
    17 'Prefactor '    11.167       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10756E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    3.0189       1.0000         .10000E-03   10000.    
    20 'norm      '    .10055E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    .96136       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .77849       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5780E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   2765.231     FROM MIGRAD    STATUS=CONVERGED     87 CALLS     2046 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  8.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    8.3325        .35983E-05** at limit **
   2  Prefactor     3.2974        1.2614       -.10822E-05    .21195E-03
   3  norm          22.902        1.1694        .35078E-06    .10149E-03
   4  norm          6.9288        1.1491        .77552E-06    .54366E-03
   5  norm          46.696        1.0419       -.11421E-06    .49761E-03
   6  Prefactor     172.17        1.5805        .37010E-06   -.41680E-02
   7  Prefactor     39.186        1.0806        .23893E-06   -.41519E-03
   8  Prefactor     .11808E-03    83.763        .40343E-04** at limit **
   9  norm          7.1259        5.5126       -.38160E-05   -.22092E-02
  10  norm          .18991        6.4171       -.80014E-05   -.90440E-03
  11  Prefactor     .10000E-03    3.0473        .47772E-07** at limit **
  12  Prefactor     .10019E-03    9.1228        .16144E-04** at limit **
  13  Prefactor     2.9435        1.1384        .11150E-05    .51837E-04
  14  Prefactor     .11978E-03    128.36       -.37089E-04** at limit **
  15  norm          10.837        4.9907       -.15031E-05   -.43405E-04
  16  norm          1.7938        1.8231       -.89379E-07    .27468E-03
  17  Prefactor     11.172        10.193       -.16395E-05   -.90309E-02
  18  Prefactor     .10000E-03    16.442       -.10393E-05** at limit **
  19  norm          3.0186        3.2122       -.30850E-06   -.27577E-03
  20  norm          .10021E-03    8.8910       -.20003E-04** at limit **
  21  Normalizat    .96148        .26680       -.15355E-05    .74246E-04
  22  Prefactor     .77838        .29043        .35607E-05    .39553E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100003
  Prefactor  = 3.29737
  norm       = 22.9015
  norm       = 6.92883
  norm       = 46.6958
  Prefactor  = 172.17
  Prefactor  = 39.186
  Prefactor  = 0.000118077
  norm       = 7.12592
  norm       = 0.189906
  Prefactor  = 0.0001
  Prefactor  = 0.000100189
  Prefactor  = 2.94354
  Prefactor  = 0.000119785
  norm       = 10.8366
  norm       = 1.79376
  Prefactor  = 11.172
  Prefactor  = 0.000100004
  norm       = 3.01857
  norm       = 0.000100207
  Normalizat = 0.961477
  Prefactor  = 0.778378
 **********
 **   18 **HESSE 
 **********

 FCN=   2765.231     FROM HESSE     STATUS=OK           408 CALLS     2454 TOTAL
                     EDM=   .70E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    8.3309        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     3.2974        74.434        .55673E-02   -1.5345    
   3  norm          22.902        20.190        .20925E-02   -1.4750    
   4  norm          6.9288        6.5719        .38104E-02   -1.5181    
   5  norm          46.696        34.755        .14669E-02   -1.4340    
   6  Prefactor     172.17        193.22        .76878E-03   -1.3076    
   7  Prefactor     39.186        61.525        .16008E-02   -1.4455    
   8  Prefactor     .11808E-03    127.21        .90712E-02   -1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          7.1259        16.053        .37583E-02   -1.5174    
  10  norm          .18991        2.8446        .28913E-01   -1.5621    
  11  Prefactor     .10000E-03    3.0498        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10019E-03    9.5035        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     2.9435        8.0917        .59187E-02   -1.5365    
  14  Prefactor     .11978E-03    31.503        .91204E-01   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          10.837        6.3813        .30421E-02   -1.5049    
  16  norm          1.7938        1.8235        .78060E-02   -1.5440    
  17  Prefactor     11.172        13.490        .29972E-02   -1.5039    
  18  Prefactor     .10000E-03    16.065        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          3.0186        3.2328        .58393E-02   -1.5360    
  20  norm          .10021E-03    2.0131        .39747E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    .96148        .23304        .45681E-01   -.94332    
  22  Prefactor     .77838        .25320        .62920E-01   -1.0053    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.00171e-07
Minuit parameter uncertainties:
  1  0.000317166
  2  31.3765
  3  20.1959
  4  6.57259
  5  34.7699
  6  193.935
  7  61.625
  8  0.0961118
  9  16.063
  10  1.46967
  11  9.45928e-06
  12  0.00268009
  13  8.09466
  14  0.0499571
  15  6.3817
  16  1.82353
  17  13.4932
  18  0.000537881
  19  3.23296
  20  0.00129074
  21  0.233289
  22  0.253574
Done.

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

Extracting fit parameters...

4FGL J0056.4-2118
   Spectrum: LogParabola
210         norm:  7.126e+00  1.606e+01  1.000e-04  1.000e+04 ( 1.000e-13)
211        alpha:  1.732e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
212         beta:  1.235e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
213           Eb:  1.603e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
575    Prefactor:  7.784e-01  2.536e-01  0.000e+00  1.000e+01 ( 1.000e+00)
576        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
577        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
574   Normalization:  9.615e-01  2.333e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.30
Ra Dec: 14.120 -21.303
Photon Flux Upper Limit: 6.65e-08 ph cm-2 s-1
Energy Flux Upper Limit: 8.17e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/4118/likelihoodResults_655084801_655344001_4FGL_J0056.4-2118_daily_bin1604.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) = 2765.22948153
delta logL = 0.00146298808068

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 2765.22947091
delta logL = 0.00147360599976

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    7.1497       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.6490       1.0000          .0000       5.0000    
     3 'Normalizat'    .96202       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .77822       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5780E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   2765.229     FROM MIGRAD    STATUS=CONVERGED    100 CALLS      270 TOTAL
                     EDM=   .27E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          7.1712        15.571        .75009E-03    .26980E-04
   2  alpha         1.6513        1.3797        .26449E-01   -.58800E-06
   3  Normalizat    .96203        .26080        .23085E-03   -.12065E-05
   4  Prefactor     .77816        .28732        .27835E-03   -.93939E-06
                               ERR DEF=  .500    
Final values: 
  norm       = 7.17122
  alpha      = 1.65129
  Normalizat = 0.962027
  Prefactor  = 0.778164
 **********
 **   18 **HESSE 
 **********

 FCN=   2765.229     FROM HESSE     STATUS=OK            27 CALLS      297 TOTAL
                     EDM=   .78E-14    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          7.1712        15.562        .15002E-03   -1.5172    
   2  alpha         1.6513        1.3795        .10580E-02   -.34637    
   3  Normalizat    .96203        .26098        .92341E-05   -.94314    
   4  Prefactor     .77816        .28755        .11134E-04   -1.0054    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.76299e-15
Minuit parameter uncertainties:
  1  15.571
  2  1.47418
  3  0.261327
  4  0.288104
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/4118': 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) = 2765.22946879
delta logL = 0.00147572317701

Extracting fit parameters...

4FGL J0056.4-2118
   Spectrum: LogParabola
210         norm:  7.171e+00  1.557e+01  1.000e-04  1.000e+04 ( 1.000e-13)
211        alpha:  1.651e+00  1.474e+00  0.000e+00  5.000e+00 ( 1.000e+00)
212         beta:  1.235e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
213           Eb:  1.603e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
575    Prefactor:  7.782e-01  2.881e-01  0.000e+00  1.000e+01 ( 1.000e+00)
576        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
577        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
574   Normalization:  9.620e-01  2.613e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.30
Ra Dec: 14.120 -21.303

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/4118/cmap_HighResolution_655084801_655344001_4FGL_J0056.4-2118_daily_bin1604.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.17e-05', job_status='DONE', photon_flux_upper_limit='6.65e-08', time_completed='2021-10-08 00:09:55.138104', job_id='4118', GAL2='0.78', fit_tolerance='1e-08', EG2='0.96', EG='0.96', time_epoch_completed='1633676995.14', return_code2='0', ts='0.30', comment='SUCCESS', return_code='0', GAL='0.78', dlogl='1.48e-03', ts2='0.31', photon_index_error='0.00', photon_index='1.73' WHERE bin_id='1604' AND source_name='4FGL J0056.4-2118' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Oct  8 00:09:55 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0220>
Subject: Job 4118: <4FGL_J0056.4-2118_daily_bin1604> in cluster <slac> Done

Job <4FGL_J0056.4-2118_daily_bin1604> was submitted from host <rhel6-64n> by user <kocevski> in cluster <slac> at Fri Oct  8 00:00:28 2021
Job was executed on host(s) <bullet0220>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Oct  8 00:01:12 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Oct  8 00:01:12 2021
Terminated at Fri Oct  8 00:09:55 2021
Results reported at Fri Oct  8 00:09:55 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0056.4-2118_daily_bin1604 14.1204 -21.3029 655084801 655344001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0056.4-2118 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   449.00 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             311.30 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   523 sec.
    Turnaround time :                            567 sec.

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

