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


Performing analysis on: 4FGL_J0428.6-3756_daily_bin304
RA = 67.173, Dec = -37.9403
tmin = 318124801, tmax = 318384001
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='473281', job_status='RUN', time_executed='2021-08-20 16:53:04.522451', time_epoch_executed='1629503584.52' WHERE source_name='4FGL J0428.6-3756' and cadence='daily' and bin_id='304'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/473281

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/473281/ft1_4FGL_J0428.6-3756_daily_bin304.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/473281/ft2_4FGL_J0428.6-3756_daily_bin304.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/473281/ft1_4FGL_J0428.6-3756_daily_bin304.fits outfile=/scratch/kocevski/473281/ft1_filteredMKT_4FGL_J0428.6-3756_daily_bin304.fits ra=67.173 dec=-37.9403 rad=12.0 tmin=318124801.0 tmax=318384001.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.90
user 3.14
sys 0.71

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/473281/ft2_4FGL_J0428.6-3756_daily_bin304.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/473281/ft2_4FGL_J0428.6-3756_daily_bin304.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/473281/ft1_filteredMKT_4FGL_J0428.6-3756_daily_bin304.fits evtable="EVENTS" outfile="/scratch/kocevski/473281/ft1_filtered_4FGL_J0428.6-3756_daily_bin304.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 1.03
user 0.32
sys 0.68

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/473281/ft1_filtered_4FGL_J0428.6-3756_daily_bin304.fits" evtable="EVENTS" scfile=/scratch/kocevski/473281/ft2_4FGL_J0428.6-3756_daily_bin304.fits sctable="SC_DATA" outfile=/scratch/kocevski/473281/ltcube_318124801_318384001_4FGL_J0428.6-3756_daily_bin304.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/473281/ft2_4FGL_J0428.6-3756_daily_bin304.fits
.....................!
real 12.49
user 11.47
sys 0.96

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/473281/ft1_filtered_4FGL_J0428.6-3756_daily_bin304.fits evtable="EVENTS" scfile=/scratch/kocevski/473281/ft2_4FGL_J0428.6-3756_daily_bin304.fits sctable="SC_DATA" expcube=/scratch/kocevski/473281/ltcube_318124801_318384001_4FGL_J0428.6-3756_daily_bin304.fits outfile=/scratch/kocevski/473281/expmap_318124801_318384001_4FGL_J0428.6-3756_daily_bin304.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/473281/ltcube_318124801_318384001_4FGL_J0428.6-3756_daily_bin304.fits
.....................!
real 191.29
user 184.77
sys 6.13

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
Extended source Fornax A in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_archive_v18/Templates/FornaxA.fits is the correct path to the extended template.
Added 177 point sources and 1 extended sources
If using unbinned likelihood you will need to rerun gtdiffrsp for the extended sources or rerun the makeModel function with optional argument psForce=True

Setting source of interest to:
4FGL J0428.6-3756 @ 67.173 -37.9403

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/473281/ft1_filtered_4FGL_J0428.6-3756_daily_bin304.fits scfile=/scratch/kocevski/473281/ft2_4FGL_J0428.6-3756_daily_bin304.fits outfile=/scratch/kocevski/473281/cmap_318124801_318384001_4FGL_J0428.6-3756_daily_bin304.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=67.173 yref=-37.9403 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 1.10
user 0.36
sys 0.72

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/473281/ft1_filtered_4FGL_J0428.6-3756_daily_bin304.fits scfile=/scratch/kocevski/473281/ft2_4FGL_J0428.6-3756_daily_bin304.fits outfile=/scratch/kocevski/473281/cmap_HighResolution_318124801_318384001_4FGL_J0428.6-3756_daily_bin304.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=67.173 yref=-37.9403 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 1.04
user 0.37
sys 0.66

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/473281/ft1_filtered_4FGL_J0428.6-3756_daily_bin304.fits evtable="EVENTS" scfile=/scratch/kocevski/473281/ft2_4FGL_J0428.6-3756_daily_bin304.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/473281/Model_4FGL_J0428.6-3756_daily_bin304.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 Fornax A
adding source GAL_V02
Working on...
/scratch/kocevski/473281/ft1_filtered_4FGL_J0428.6-3756_daily_bin304.fits.....................!
real 173.66
user 171.12
sys 2.01

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/473281/ft1_filtered_4FGL_J0428.6-3756_daily_bin304.fits', '/scratch/kocevski/473281/ft2_4FGL_J0428.6-3756_daily_bin304.fits', expMap='/scratch/kocevski/473281/expmap_318124801_318384001_4FGL_J0428.6-3756_daily_bin304.fits', expCube='/scratch/kocevski/473281/ltcube_318124801_318384001_4FGL_J0428.6-3756_daily_bin304.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/473281/Model_4FGL_J0428.6-3756_daily_bin304.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0428.6-3756'

4FGL J0428.6-3756
   Spectrum: LogParabola
257         norm:  4.206e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-11)
258        alpha:  1.995e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
259         beta:  8.169e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
260           Eb:  8.090e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/473281/ft1_filtered_4FGL_J0428.6-3756_daily_bin304.fits
Spacecraft file(s): /scratch/kocevski/473281/ft2_4FGL_J0428.6-3756_daily_bin304.fits
Exposure map: /scratch/kocevski/473281/expmap_318124801_318384001_4FGL_J0428.6-3756_daily_bin304.fits
Exposure cube: /scratch/kocevski/473281/ltcube_318124801_318384001_4FGL_J0428.6-3756_daily_bin304.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/473281/Model_4FGL_J0428.6-3756_daily_bin304.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) = 8126.56908497

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    1.9863       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    2.2411       1.0000         .10000E-03   10000.    
     6 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    6.3307       1.0000         .10000E-03   10000.    
     8 'Prefactor '    4.0806       1.0000         .10000E-03   10000.    
     9 'Prefactor '    9.7476       1.0000         .10000E-03   10000.    
    10 'norm      '    2.7875       1.0000         .10000E-03   10000.    
    11 'Prefactor '    1.8916       1.0000         .10000E-03   10000.    
    12 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    1.9656       1.0000         .10000E-03   10000.    
    15 'Prefactor '    1.1304       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    4.8374       1.0000         .10000E-03   10000.    
    18 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .21557E-02   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    2.7484       1.0000         .10000E-03   10000.    
    23 'Prefactor '    4.0145       1.0000         .10000E-03   10000.    
    24 'norm      '    9.2490       1.0000         .10000E-03   10000.    
    25 'Normalizat'    .70940       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.2336       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5760E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   8126.486     FROM MIGRAD    STATUS=CONVERGED    614 CALLS     2667 TOTAL
                     EDM=   .86E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    2.0138       -.44672E-07** at limit **
   2  norm          1.9862        .84077       -.57445E-07   -.13126E-03
   3  Prefactor     .10000E-03    3.0077       -.19836E-07** at limit **
   4  Prefactor     .10000E-03    24.886       -.15607E-05** at limit **
   5  norm          2.2411        .37590       -.17360E-07    .56021E-03
   6  norm          .10000E-03    1.7170       -.93285E-08** at limit **
   7  Prefactor     6.3159        23.932       -.21066E-04    .15820E-03
   8  Prefactor     4.0817        7.7494       -.13042E-05   -.90034E-04
   9  Prefactor     9.7490        9.9651        .25487E-06   -.16824E-04
  10  norm          2.7872        .75131       -.10825E-08    .29899E-03
  11  Prefactor     1.8915        1.6090        .11226E-06    .16079E-03
  12  norm          .10000E-03    3.8250        .10018E-06** at limit **
  13  norm          .10000E-03    39.131        .72759E-05** at limit **
  14  norm          1.9656        1.3058        .10567E-06    .25184E-03
  15  Prefactor     1.1301        2.3492       -.78163E-06   -.13593E-02
  16  Prefactor     .10000E-03    16.292       -.14127E-06** at limit **
  17  norm          4.8368        3.1791       -.78219E-06    .13452E-03
  18  norm          .10000E-03    3.7686       -.29622E-07** at limit **
  19  Prefactor     .10000E-03    40.349       -.11460E-05** at limit **
  20  Prefactor     .10034E-03    2.1489       -.56721E-06** at limit **
  21  Prefactor     .10000E-03    16.479        .26839E-06** at limit **
  22  Prefactor     2.7483        2.6188       -.23951E-06   -.44972E-03
  23  Prefactor     4.0146        4.0211       -.36109E-06   -.51860E-03
  24  norm          9.2489        2.8008       -.93119E-07    .84495E-04
  25  Normalizat    .70939        .16043        .24125E-05    .14957E-03
  26  Prefactor     1.2336        .16955        .21851E-06    .27011E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 1.98623
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.24108
  norm       = 0.0001
  Prefactor  = 6.31591
  Prefactor  = 4.08168
  Prefactor  = 9.74898
  norm       = 2.78724
  Prefactor  = 1.89145
  norm       = 0.0001
  norm       = 0.000100001
  norm       = 1.96559
  Prefactor  = 1.1301
  Prefactor  = 0.0001
  norm       = 4.83679
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100335
  Prefactor  = 0.0001
  Prefactor  = 2.74834
  Prefactor  = 4.01459
  norm       = 9.24889
  Normalizat = 0.709387
  Prefactor  = 1.23358
 **********
 **   18 **HESSE 
 **********

 FCN=   8126.486     FROM HESSE     STATUS=OK           462 CALLS     3129 TOTAL
                     EDM=   .72E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    2.1002        .24962E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          1.9862        .83680        .51873E-04   -1.5426    
   3  Prefactor     .10000E-03    3.0112        .15268E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    24.889        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          2.2411        .37697        .21551E-04   -1.5409    
   6  norm          .10000E-03    1.7214        .11534E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     6.3159        23.600        .15953E-03   -1.5205    
   8  Prefactor     4.0817        7.7554        .19958E-03   -1.5304    
   9  Prefactor     9.7490        10.113        .12835E-03   -1.5083    
  10  norm          2.7872        .76373        .34248E-04   -1.5374    
  11  Prefactor     1.8915        1.5995        .99811E-04   -1.5433    
  12  norm          .10000E-03    3.8814        .17207E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    39.000        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          1.9656        1.2951        .75070E-04   -1.5428    
  15  Prefactor     1.1301        2.3303        .16967E-03   -1.5495    
  16  Prefactor     .10000E-03    16.508        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          4.8368        3.1667        .12440E-03   -1.5268    
  18  norm          .10000E-03    3.8626        .34039E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    40.484        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10034E-03    51.756        .24919E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    16.490        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     2.7483        2.6025        .13641E-03   -1.5376    
  23  Prefactor     4.0146        4.0299        .16844E-03   -1.5307    
  24  norm          9.2489        2.7960        .77383E-04   -1.5100    
  25  Normalizat    .70939        .18891        .29359E-03   -1.0352    
  26  Prefactor     1.2336        .20210        .25454E-03   -.85304    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.24563e-09
Minuit parameter uncertainties:
  1  7.03982e-06
  2  0.836801
  3  2.47285e-06
  4  4.37937e-05
  5  0.376967
  6  4.78865e-07
  7  23.6348
  8  7.7573
  9  10.1152
  10  0.763736
  11  1.59955
  12  7.8169e-06
  13  0.000335919
  14  1.29511
  15  2.33047
  16  2.06056e-05
  17  3.1668
  18  1.34154e-05
  19  3.48804e-05
  20  0.00833991
  21  1.55302e-05
  22  2.60264
  23  4.03016
  24  2.79603
  25  0.189079
  26  0.20223
Done.

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

Extracting fit parameters...

4FGL J0428.6-3756
   Spectrum: LogParabola
257         norm:  2.787e+00  7.637e-01  1.000e-04  1.000e+04 ( 1.000e-11)
258        alpha:  1.995e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
259         beta:  8.169e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
260           Eb:  8.090e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
573    Prefactor:  1.234e+00  2.022e-01  0.000e+00  1.000e+01 ( 1.000e+00)
574        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
575        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
569   Normalization:  7.094e-01  1.891e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 67.33
Ra Dec: 67.173 -37.940
Photon Index (Fixed Index): 1.99 +/- 0.00
Photon Flux (Fixed Index): 1.53e-07 +/- 4.20e-08
Energy Flux (Fixed Index): 8.80e-05 +/- 2.41e-05

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) = 8126.40866003
delta logL = 0.0775787212133

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8126.40415918
delta logL = 0.0820795726686

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   8126.404     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      208 TOTAL
                     EDM=   .56E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.8397        .96377        .60329E-02    .52298E-04
   2  alpha         1.9095        .28411        .16754        .17685E-04
   3  Normalizat    .71924        .15214        .65966E-01    .34939E-04
   4  Prefactor     1.2278        .16848        .57697E-01    .62171E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 2.83974
  alpha      = 1.90951
  Normalizat = 0.719244
  Prefactor  = 1.2278
 **********
 **   18 **HESSE 
 **********

 FCN=   8126.404     FROM HESSE     STATUS=OK            33 CALLS      241 TOTAL
                     EDM=   .50E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.8397        .68721        .35138E-04   -1.5371    
   2  alpha         1.9095        .21023        .71236E-02   -.23845    
   3  Normalizat    .71924        .17884        .29187E-03   -1.0314    
   4  Prefactor     1.2278        .19876        .25513E-03   -.85480    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.01152e-11
Minuit parameter uncertainties:
  1  0.687214
  2  0.210497
  3  0.178987
  4  0.198881
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/473281': 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) = 8126.40415728
delta logL = 0.0820814703111

Extracting fit parameters...

4FGL J0428.6-3756
   Spectrum: LogParabola
257         norm:  2.840e+00  6.872e-01  1.000e-04  1.000e+04 ( 1.000e-11)
258        alpha:  1.910e+00  2.105e-01  0.000e+00  5.000e+00 ( 1.000e+00)
259         beta:  8.169e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
260           Eb:  8.090e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
573    Prefactor:  1.228e+00  1.989e-01  0.000e+00  1.000e+01 ( 1.000e+00)
574        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
575        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
569   Normalization:  7.192e-01  1.790e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 67.78
Ra Dec: 67.173 -37.940
Photon Index (Free Index): 1.91 +/- 0.21
Photon Flux (Free Index): 1.43e-07 +/- 4.22e-08
Energy Flux (Free Index): 9.63e-05 +/- 3.24e-05

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/473281/cmap_HighResolution_318124801_318384001_4FGL_J0428.6-3756_daily_bin304.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.53e-07', energy_flux2='9.63e-05', photon_flux_error='4.20e-08', dlogl='8.21e-02', energy_flux='8.80e-05', photon_flux2='1.43e-07', job_status='DONE', time_completed='2021-08-20 17:06:54.699287', photon_index_error2='0.21', photon_index2='1.91', ts='67.33', fit_tolerance='1e-08', GAL='1.23', photon_index_error='0.00', energy_flux_error2='3.24e-05', EG='0.71', time_epoch_completed='1629504414.7', return_code='0', job_id='473281', GAL2='1.23', EG2='0.72', return_code2='0', energy_flux_error='2.41e-05', photon_flux_error2='4.22e-08', ts2='67.78', photon_index='1.99' WHERE bin_id='304' AND source_name='4FGL J0428.6-3756' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 20 17:06:54 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0031>
Subject: Job 473281: <4FGL_J0428.6-3756_daily_bin304> in cluster <slac> Done

Job <4FGL_J0428.6-3756_daily_bin304> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Fri Aug 20 16:50:32 2021
Job was executed on host(s) <bullet0031>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Aug 20 16:50:35 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Aug 20 16:50:35 2021
Terminated at Fri Aug 20 17:06:55 2021
Results reported at Fri Aug 20 17:06:55 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0428.6-3756_daily_bin304 67.173 -37.9403 318124801 318384001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0428.6-3756 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   837.45 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             319.66 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   980 sec.
    Turnaround time :                            983 sec.

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

