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


Performing analysis on: 4FGL_J0428.6-3756_daily_bin445
RA = 67.173, Dec = -37.9403
tmin = 354672001, tmax = 354931201
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='473484', job_status='RUN', time_executed='2021-08-20 16:51:07.521905', time_epoch_executed='1629503467.52' WHERE source_name='4FGL J0428.6-3756' and cadence='daily' and bin_id='445'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/473484

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/473484/ft1_4FGL_J0428.6-3756_daily_bin445.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/473484/ft2_4FGL_J0428.6-3756_daily_bin445.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/473484/ft1_4FGL_J0428.6-3756_daily_bin445.fits outfile=/scratch/kocevski/473484/ft1_filteredMKT_4FGL_J0428.6-3756_daily_bin445.fits ra=67.173 dec=-37.9403 rad=12.0 tmin=354672001.0 tmax=354931201.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 4.09
user 3.18
sys 0.89

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/473484/ft1_filtered_4FGL_J0428.6-3756_daily_bin445.fits" evtable="EVENTS" scfile=/scratch/kocevski/473484/ft2_4FGL_J0428.6-3756_daily_bin445.fits sctable="SC_DATA" outfile=/scratch/kocevski/473484/ltcube_354672001_354931201_4FGL_J0428.6-3756_daily_bin445.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/473484/ft2_4FGL_J0428.6-3756_daily_bin445.fits
.....................!
real 12.51
user 11.34
sys 1.11

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/473484/ft1_filtered_4FGL_J0428.6-3756_daily_bin445.fits evtable="EVENTS" scfile=/scratch/kocevski/473484/ft2_4FGL_J0428.6-3756_daily_bin445.fits sctable="SC_DATA" expcube=/scratch/kocevski/473484/ltcube_354672001_354931201_4FGL_J0428.6-3756_daily_bin445.fits outfile=/scratch/kocevski/473484/expmap_354672001_354931201_4FGL_J0428.6-3756_daily_bin445.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/473484/ltcube_354672001_354931201_4FGL_J0428.6-3756_daily_bin445.fits
.....................!
real 191.85
user 184.96
sys 6.51

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/473484/ft1_filtered_4FGL_J0428.6-3756_daily_bin445.fits scfile=/scratch/kocevski/473484/ft2_4FGL_J0428.6-3756_daily_bin445.fits outfile=/scratch/kocevski/473484/cmap_354672001_354931201_4FGL_J0428.6-3756_daily_bin445.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.21
user 0.37
sys 0.83

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/473484/ft1_filtered_4FGL_J0428.6-3756_daily_bin445.fits scfile=/scratch/kocevski/473484/ft2_4FGL_J0428.6-3756_daily_bin445.fits outfile=/scratch/kocevski/473484/cmap_HighResolution_354672001_354931201_4FGL_J0428.6-3756_daily_bin445.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.23
user 0.37
sys 0.84

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/473484/ft1_filtered_4FGL_J0428.6-3756_daily_bin445.fits evtable="EVENTS" scfile=/scratch/kocevski/473484/ft2_4FGL_J0428.6-3756_daily_bin445.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/473484/Model_4FGL_J0428.6-3756_daily_bin445.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/473484/ft1_filtered_4FGL_J0428.6-3756_daily_bin445.fits.....................!
real 166.48
user 163.91
sys 2.20

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/473484/ft1_filtered_4FGL_J0428.6-3756_daily_bin445.fits', '/scratch/kocevski/473484/ft2_4FGL_J0428.6-3756_daily_bin445.fits', expMap='/scratch/kocevski/473484/expmap_354672001_354931201_4FGL_J0428.6-3756_daily_bin445.fits', expCube='/scratch/kocevski/473484/ltcube_354672001_354931201_4FGL_J0428.6-3756_daily_bin445.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/473484/Model_4FGL_J0428.6-3756_daily_bin445.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/473484/ft1_filtered_4FGL_J0428.6-3756_daily_bin445.fits
Spacecraft file(s): /scratch/kocevski/473484/ft2_4FGL_J0428.6-3756_daily_bin445.fits
Exposure map: /scratch/kocevski/473484/expmap_354672001_354931201_4FGL_J0428.6-3756_daily_bin445.fits
Exposure cube: /scratch/kocevski/473484/ltcube_354672001_354931201_4FGL_J0428.6-3756_daily_bin445.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/473484/Model_4FGL_J0428.6-3756_daily_bin445.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) = 8128.54040025

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.0180       1.0000         .10000E-03   10000.    
     2 'norm      '    .60284       1.0000         .10000E-03   10000.    
     3 'Prefactor '    12.037       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    1.3161       1.0000         .10000E-03   10000.    
     6 'norm      '    1.8169       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .14704E-02   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10556E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    6.5086       1.0000         .10000E-03   10000.    
    10 'norm      '    2.3399       1.0000         .10000E-03   10000.    
    11 'Prefactor '    1.3839       1.0000         .10000E-03   10000.    
    12 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .98641E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    4.7337       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .16679       1.0000         .10000E-03   10000.    
    17 'norm      '    2.0535       1.0000         .10000E-03   10000.    
    18 'norm      '    3.1281       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .36526E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10080E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    9.9688       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .26800       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10114E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    8.2165       1.0000         .10000E-03   10000.    
    25 'Normalizat'    .87636       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .90827       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=   8128.419     FROM MIGRAD    STATUS=CONVERGED    687 CALLS     2781 TOTAL
                     EDM=   .79E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.0168        1.7891        .72837E-02   -.11438E-03
   2  norm          .60264        .52966        .11684E-01    .62565E-03
   3  Prefactor     12.096        10.115        .28865E-02    .65833E-03
   4  Prefactor     .10000E-03    104.94        .90712E-02** at limit **
   5  norm          1.3160        .30154        .50581E-02   -.69684E-04
   6  norm          1.8199        3.1602        .77463E-02    .52378E-03
   7  Prefactor     .10000E-03    19.685        .10243E-01** at limit **
   8  Prefactor     .10000E-03    8.7408        .90712E-02** at limit **
   9  Prefactor     6.4792        7.9552        .39327E-02    .33849E-03
  10  norm          2.3405        .60545        .67009E-02   -.21829E-03
  11  Prefactor     1.3842        1.6871        .92450E-02    .10786E-02
  12  norm          .10000E-03    2.1637        .90712E-02** at limit **
  13  norm          .10000E-03    43.967        .10386E-01** at limit **
  14  norm          4.7333        1.5326        .46235E-02    .12615E-03
  15  Prefactor     .10000E-03    .87571        .30686E-01** at limit **
  16  Prefactor     .10608E-03    9.1761        .98250E-01** at limit **
  17  norm          2.0468        2.4030        .72113E-02    .67702E-03
  18  norm          3.1701        4.5176        .57307E-02    .11629E-02
  19  Prefactor     .10000E-03    8.4459        .10652E-01** at limit **
  20  Prefactor     .10000E-03    2.4658        .90712E-02** at limit **
  21  Prefactor     9.9642        23.170        .31728E-02   -.96724E-03
  22  Prefactor     .26721        1.3008        .34070E-01    .16322E-02
  23  Prefactor     .10000E-03    1.9131        .90712E-02** at limit **
  24  norm          8.2153        2.4334        .34966E-02    .12652E-03
  25  Normalizat    .87643        .14422        .44599E-01    .10544E-03
  26  Prefactor     .90823        .15168        .45110E-01    .95196E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 2.0168
  norm       = 0.602644
  Prefactor  = 12.0961
  Prefactor  = 0.0001
  norm       = 1.31602
  norm       = 1.8199
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.47918
  norm       = 2.34055
  Prefactor  = 1.38425
  norm       = 0.0001
  norm       = 0.0001
  norm       = 4.73326
  Prefactor  = 0.0001
  Prefactor  = 0.000106083
  norm       = 2.04678
  norm       = 3.17014
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 9.9642
  Prefactor  = 0.267208
  Prefactor  = 0.0001
  norm       = 8.21533
  Normalizat = 0.876432
  Prefactor  = 0.908228
 **********
 **   18 **HESSE 
 **********

 FCN=   8128.419     FROM HESSE     STATUS=OK           476 CALLS     3257 TOTAL
                     EDM=   .57E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.0168        1.7967        .11004E-03   -1.5424    
   2  norm          .60264        .50251        .59391E-03   -1.5553    
   3  Prefactor     12.096        10.118        .57730E-03   -1.5012    
   4  Prefactor     .10000E-03    105.24        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          1.3160        .30191        .22371E-04   -1.5479    
   6  norm          1.8199        3.1290        .20364E-03   -1.5438    
   7  Prefactor     .10000E-03    19.894        .20486E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    8.8351        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     6.4792        8.0011        .15731E-03   -1.5199    
  10  norm          2.3405        .60924        .31659E-04   -1.5402    
  11  Prefactor     1.3842        1.6530        .12241E-03   -1.5473    
  12  norm          .10000E-03    2.1690        .12946E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    43.968        .20771E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          4.7333        1.4749        .58879E-04   -1.5273    
  15  Prefactor     .10000E-03    1.2912        .15479E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10608E-03    17.013        .68842E-01   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          2.0468        2.3897        .14543E-03   -1.5422    
  18  norm          3.1701        4.6634        .18192E-03   -1.5352    
  19  Prefactor     .10000E-03    8.4490        .21305E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    2.5083        .13814E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     9.9642        23.168        .12691E-03   -1.5077    
  22  Prefactor     .26721        2.5824        .19568E-02   -1.5605    
  23  Prefactor     .10000E-03    1.9677        .24301E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          8.2153        2.4301        .73123E-04   -1.5135    
  25  Normalizat    .87643        .16578        .24200E-03   -.97293    
  26  Prefactor     .90823        .17490        .25930E-03   -.95854    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.67775e-09
Minuit parameter uncertainties:
  1  1.79677
  2  0.502515
  3  10.1196
  4  0.000173102
  5  0.301915
  6  3.12927
  7  3.64716e-06
  8  1.2304e-05
  9  8.00238
  10  0.60924
  11  1.65303
  12  4.86557e-07
  13  1.31453e-05
  14  1.47493
  15  2.80562e-07
  16  0.0203513
  17  2.3898
  18  4.66397
  19  7.47132e-06
  20  2.08047e-06
  21  23.1891
  22  1.66114
  23  5.75158e-08
  24  2.43009
  25  0.165877
  26  0.175005
Done.

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

Extracting fit parameters...

4FGL J0428.6-3756
   Spectrum: LogParabola
257         norm:  2.341e+00  6.092e-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:  9.082e-01  1.750e-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:  8.764e-01  1.659e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 94.61
Ra Dec: 67.173 -37.940
Photon Index (Fixed Index): 1.99 +/- 0.00
Photon Flux (Fixed Index): 1.29e-07 +/- 3.35e-08
Energy Flux (Fixed Index): 7.39e-05 +/- 1.92e-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) = 8127.20902076
delta logL = 1.21037909463

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8127.20839759
delta logL = 1.21100226026

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   8127.208     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      215 TOTAL
                     EDM=   .18E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY= 14.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.1790        .57168       -.13504E-08    .13972E-03
   2  alpha         1.6070        .12328        .15262E-06    .17038E-04
   3  Normalizat    .92155        .14087       -.46935E-07    .29534E-04
   4  Prefactor     .88560        .15141        .22067E-07    .44379E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 2.179
  alpha      = 1.60702
  Normalizat = 0.921548
  Prefactor  = 0.885596
 **********
 **   18 **HESSE 
 **********

 FCN=   8127.208     FROM HESSE     STATUS=OK            33 CALLS      248 TOTAL
                     EDM=   .35E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.1790        .64094        .33709E-04   -1.5413    
   2  alpha         1.6070        .24970        .79234E-02   -.36526    
   3  Normalizat    .92155        .15978        .23720E-03   -.95707    
   4  Prefactor     .88560        .17274        .26270E-03   -.96646    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.52262e-12
Minuit parameter uncertainties:
  1  0.640939
  2  0.250179
  3  0.159866
  4  0.172844
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/473484': 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) = 8127.20839759
delta logL = 1.21100226026

Extracting fit parameters...

4FGL J0428.6-3756
   Spectrum: LogParabola
257         norm:  2.179e+00  6.409e-01  1.000e-04  1.000e+04 ( 1.000e-11)
258        alpha:  1.607e+00  2.502e-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:  8.856e-01  1.728e-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:  9.215e-01  1.599e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 97.07
Ra Dec: 67.173 -37.940
Photon Index (Free Index): 1.61 +/- 0.25
Photon Flux (Free Index): 8.62e-08 +/- 3.35e-08
Energy Flux (Free Index): 1.14e-04 +/- 4.84e-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/473484/cmap_HighResolution_354672001_354931201_4FGL_J0428.6-3756_daily_bin445.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.29e-07', energy_flux2='1.14e-04', photon_flux_error='3.35e-08', dlogl='1.21e+00', energy_flux='7.39e-05', photon_flux2='8.62e-08', job_status='DONE', time_completed='2021-08-20 17:05:09.655880', photon_index_error2='0.25', photon_index2='1.61', ts='94.61', fit_tolerance='1e-08', GAL='0.91', photon_index_error='0.00', energy_flux_error2='4.84e-05', EG='0.88', time_epoch_completed='1629504309.66', return_code='0', job_id='473484', GAL2='0.89', EG2='0.92', return_code2='0', energy_flux_error='1.92e-05', photon_flux_error2='3.35e-08', ts2='97.07', photon_index='1.99' WHERE bin_id='445' AND source_name='4FGL J0428.6-3756' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 20 17:05:09 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0050>
Subject: Job 473484: <4FGL_J0428.6-3756_daily_bin445> in cluster <slac> Done

Job <4FGL_J0428.6-3756_daily_bin445> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Fri Aug 20 16:50:45 2021
Job was executed on host(s) <bullet0050>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Aug 20 16:50:46 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:46 2021
Terminated at Fri Aug 20 17:05:10 2021
Results reported at Fri Aug 20 17:05:10 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0428.6-3756_daily_bin445 67.173 -37.9403 354672001 354931201 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 :                                   852.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             356.07 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   863 sec.
    Turnaround time :                            865 sec.

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

