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


Performing analysis on: 4FGL_J0428.6-3756_daily_bin405
RA = 67.173, Dec = -37.9403
tmin = 344304001, tmax = 344563201
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='473426', job_status='RUN', time_executed='2021-08-20 16:51:07.529970', time_epoch_executed='1629503467.53' WHERE source_name='4FGL J0428.6-3756' and cadence='daily' and bin_id='405'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/473426

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/473426/ft1_4FGL_J0428.6-3756_daily_bin405.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/473426/ft2_4FGL_J0428.6-3756_daily_bin405.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/473426/ft1_4FGL_J0428.6-3756_daily_bin405.fits outfile=/scratch/kocevski/473426/ft1_filteredMKT_4FGL_J0428.6-3756_daily_bin405.fits ra=67.173 dec=-37.9403 rad=12.0 tmin=344304001.0 tmax=344563201.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.04
user 3.25
sys 0.73

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/473426/ft2_4FGL_J0428.6-3756_daily_bin405.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/473426/ft1_filteredMKT_4FGL_J0428.6-3756_daily_bin405.fits evtable="EVENTS" outfile="/scratch/kocevski/473426/ft1_filtered_4FGL_J0428.6-3756_daily_bin405.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.13
user 0.36
sys 0.74

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/473426/ft1_filtered_4FGL_J0428.6-3756_daily_bin405.fits" evtable="EVENTS" scfile=/scratch/kocevski/473426/ft2_4FGL_J0428.6-3756_daily_bin405.fits sctable="SC_DATA" outfile=/scratch/kocevski/473426/ltcube_344304001_344563201_4FGL_J0428.6-3756_daily_bin405.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/473426/ft2_4FGL_J0428.6-3756_daily_bin405.fits
.....................!
real 13.78
user 12.84
sys 0.89

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/473426/ft1_filtered_4FGL_J0428.6-3756_daily_bin405.fits evtable="EVENTS" scfile=/scratch/kocevski/473426/ft2_4FGL_J0428.6-3756_daily_bin405.fits sctable="SC_DATA" expcube=/scratch/kocevski/473426/ltcube_344304001_344563201_4FGL_J0428.6-3756_daily_bin405.fits outfile=/scratch/kocevski/473426/expmap_344304001_344563201_4FGL_J0428.6-3756_daily_bin405.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/473426/ltcube_344304001_344563201_4FGL_J0428.6-3756_daily_bin405.fits
.....................!
real 191.41
user 185.70
sys 5.32

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/473426/ft1_filtered_4FGL_J0428.6-3756_daily_bin405.fits scfile=/scratch/kocevski/473426/ft2_4FGL_J0428.6-3756_daily_bin405.fits outfile=/scratch/kocevski/473426/cmap_344304001_344563201_4FGL_J0428.6-3756_daily_bin405.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.17
user 0.40
sys 0.74

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/473426/ft1_filtered_4FGL_J0428.6-3756_daily_bin405.fits scfile=/scratch/kocevski/473426/ft2_4FGL_J0428.6-3756_daily_bin405.fits outfile=/scratch/kocevski/473426/cmap_HighResolution_344304001_344563201_4FGL_J0428.6-3756_daily_bin405.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.16
user 0.39
sys 0.76

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/473426/ft1_filtered_4FGL_J0428.6-3756_daily_bin405.fits evtable="EVENTS" scfile=/scratch/kocevski/473426/ft2_4FGL_J0428.6-3756_daily_bin405.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/473426/Model_4FGL_J0428.6-3756_daily_bin405.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/473426/ft1_filtered_4FGL_J0428.6-3756_daily_bin405.fits.....................!
real 135.53
user 133.17
sys 2.01

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10019E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .46645       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .11078E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10341E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    1.4587       1.0000         .10000E-03   10000.    
     7 'Prefactor '    12.967       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    3.5090       1.0000         .10000E-03   10000.    
    10 'norm      '    .79211       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .57968       1.0000         .10000E-03   10000.    
    12 'norm      '    3.2072       1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    4.1380       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .50097       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .16176E-02   1.0000         .10000E-03   10000.    
    17 'norm      '    .15908       1.0000         .10000E-03   10000.    
    18 'norm      '    10.916       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    8.4608       1.0000         .10000E-03   10000.    
    24 'norm      '    .11155       1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.0787       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .93473       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=   6156.350     FROM MIGRAD    STATUS=CONVERGED    674 CALLS     2776 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    1.9054        .34880E-08** at limit **
   2  norm          .46651        .72210        .25967E-06    .12385E-02
   3  Prefactor     .10000E-03    3.9968       -.16418E-08** at limit **
   4  Prefactor     .10000E-03    200.80       -.14226E-05** at limit **
   5  norm          .10000E-03    .23421       -.80046E-07** at limit **
   6  norm          1.4595        5.5205        .24899E-05    .21224E-03
   7  Prefactor     12.963        18.596        .27279E-07   -.31116E-04
   8  Prefactor     .10000E-03    8.7082       -.43854E-06** at limit **
   9  Prefactor     3.5130        8.5029       -.12055E-05   -.50141E-03
  10  norm          .79204        .48345        .64090E-07   -.17118E-03
  11  Prefactor     .58220        1.8642        .36192E-06   -.10225E-03
  12  norm          3.2061        5.4844       -.72232E-06   -.68261E-03
  13  norm          .10000E-03    60.618        .87179E-06** at limit **
  14  norm          4.1374        1.9535       -.10316E-06   -.75436E-03
  15  Prefactor     .50382        3.6114        .97983E-06   -.23450E-03
  16  Prefactor     .10000E-03    6.8395       -.35106E-06** at limit **
  17  norm          .18013        2.3378        .10371E-05   -.68888E-03
  18  norm          10.920        5.2489       -.19069E-06   -.62432E-03
  19  Prefactor     .10000E-03    23.522        .15481E-05** at limit **
  20  Prefactor     .10000E-03    4.5078        .10288E-06** at limit **
  21  Prefactor     .10000E-03    27.541       -.11503E-05** at limit **
  22  Prefactor     .10000E-03    1.3855        .28039E-07** at limit **
  23  Prefactor     8.4631        4.3192        .19913E-06    .77437E-03
  24  norm          .10933        1.5523       -.12151E-05    .14686E-02
  25  Normalizat    1.0782        .18154       -.47850E-06   -.27245E-03
  26  Prefactor     .93510        .18122       -.31289E-06   -.20481E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 0.466507
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  norm       = 0.0001
  norm       = 1.45947
  Prefactor  = 12.9634
  Prefactor  = 0.0001
  Prefactor  = 3.51296
  norm       = 0.792041
  Prefactor  = 0.5822
  norm       = 3.20613
  norm       = 0.000100001
  norm       = 4.13739
  Prefactor  = 0.503823
  Prefactor  = 0.0001
  norm       = 0.180126
  norm       = 10.9203
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 8.46311
  norm       = 0.109326
  Normalizat = 1.07818
  Prefactor  = 0.935103
 **********
 **   18 **HESSE 
 **********

 FCN=   6156.350     FROM HESSE     STATUS=OK           480 CALLS     3256 TOTAL
                     EDM=   .47E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    1.9456        .10569E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .46651        .65194        .82220E-03   -1.5571    
   3  Prefactor     .10000E-03    3.9997        .15319E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    201.79        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    .27684        .10087E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          1.4595        5.7690        .35089E-03   -1.5466    
   7  Prefactor     12.963        18.594        .11124E-03   -1.4988    
   8  Prefactor     .10000E-03    8.8366        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     3.5130        8.9429        .21582E-03   -1.5333    
  10  norm          .79204        .48521        .37650E-04   -1.5530    
  11  Prefactor     .58220        1.6917        .15748E-02   -1.5555    
  12  norm          3.2061        5.5786        .22623E-03   -1.5350    
  13  norm          .10000E-03    60.707        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          4.1374        1.8923        .61574E-04   -1.5301    
  15  Prefactor     .50382        4.5426        .18858E-02   -1.5566    
  16  Prefactor     .10000E-03    34.032        .38299E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .18013        25.715        .20623E-02   -1.5623    
  18  norm          10.920        5.0592        .11112E-03   -1.5047    
  19  Prefactor     .10000E-03    23.824        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    4.5714        .16246E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    27.730        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    1.4467        .18021E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     8.4631        4.2822        .10731E-03   -1.5126    
  24  norm          .10933        6.1998        .14353E-02   -1.5642    
  25  Normalizat    1.0782        .21296        .22793E-03   -.90455    
  26  Prefactor     .93510        .21337        .26203E-03   -.94925    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.69879e-08
Minuit parameter uncertainties:
  1  8.20907e-07
  2  0.65195
  3  5.42755e-07
  4  0.00134559
  5  3.74042e-07
  6  5.77122
  7  18.6025
  8  4.1807e-05
  9  8.94631
  10  0.485209
  11  1.69183
  12  5.57952
  13  0.000433379
  14  1.89233
  15  3.02569
  16  0.000231879
  17  4.30505
  18  5.05943
  19  0.000485334
  20  5.10585e-06
  21  0.000385306
  22  1.12271e-06
  23  4.28237
  24  1.64599
  25  0.213127
  26  0.213558
Done.

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

Extracting fit parameters...

4FGL J0428.6-3756
   Spectrum: LogParabola
257         norm:  7.920e-01  4.852e-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.351e-01  2.136e-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:  1.078e+00  2.131e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 10.18
Ra Dec: 67.173 -37.940
Photon Index (Fixed Index): 1.99 +/- 0.00
Photon Flux (Fixed Index): 4.36e-08 +/- 2.67e-08
Energy Flux (Fixed Index): 2.50e-05 +/- 1.53e-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) = 6156.26430289
delta logL = 0.0857463660714

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6156.26156155
delta logL = 0.0884877083654

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .76846       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.2294       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0642       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .94307       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=   6156.262     FROM MIGRAD    STATUS=CONVERGED     49 CALLS      198 TOTAL
                     EDM=   .21E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .76841        6.6806        .77779E-02    .25671E-03
   2  alpha         2.2294        3.5190        .35218        .31715E-04
   3  Normalizat    1.0642        .75426E-01    .39690E-01    .77755E-05
   4  Prefactor     .94306        .63732E-01    .45552E-01    .12264E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.768415
  alpha      = 2.22943
  Normalizat = 1.06422
  Prefactor  = 0.943061
 **********
 **   18 **HESSE 
 **********

 FCN=   6156.262     FROM HESSE     STATUS=OK            33 CALLS      231 TOTAL
                     EDM=   .13E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .76841        .42863        .34628E-04   -1.5533    
   2  alpha         2.2294        .55779        .12379E-01   -.10844    
   3  Normalizat    1.0642        .19474        .22914E-03   -.90909    
   4  Prefactor     .94306        .20805        .26096E-03   -.94652    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.28002e-12
Minuit parameter uncertainties:
  1  0.428634
  2  0.562582
  3  0.194869
  4  0.208225
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/473426': 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) = 6156.26156151
delta logL = 0.0884877487724

Extracting fit parameters...

4FGL J0428.6-3756
   Spectrum: LogParabola
257         norm:  7.684e-01  4.286e-01  1.000e-04  1.000e+04 ( 1.000e-11)
258        alpha:  2.229e+00  5.626e-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:  9.431e-01  2.082e-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:  1.064e+00  1.949e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 10.35
Ra Dec: 67.173 -37.940
Photon Index (Free Index): 2.23 +/- 0.56
Photon Flux (Free Index): 5.52e-08 +/- 3.90e-08
Energy Flux (Free Index): 2.21e-05 +/- 1.28e-05

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/473426/cmap_HighResolution_344304001_344563201_4FGL_J0428.6-3756_daily_bin405.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='4.36e-08', energy_flux2='2.21e-05', photon_flux_error='2.67e-08', dlogl='8.85e-02', energy_flux='2.50e-05', photon_flux2='5.52e-08', job_status='DONE', time_completed='2021-08-20 17:03:13.616500', photon_index_error2='0.56', photon_index2='2.23', ts='10.18', fit_tolerance='1e-08', GAL='0.94', photon_index_error='0.00', energy_flux_error2='1.28e-05', EG='1.08', time_epoch_completed='1629504193.62', return_code='0', job_id='473426', GAL2='0.94', EG2='1.06', return_code2='0', energy_flux_error='1.53e-05', photon_flux_error2='3.90e-08', ts2='10.35', photon_index='1.99' WHERE bin_id='405' AND source_name='4FGL J0428.6-3756' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 20 17:03:13 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0276>
Subject: Job 473426: <4FGL_J0428.6-3756_daily_bin405> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0428.6-3756_daily_bin405 67.173 -37.9403 344304001 344563201 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 :                                   734.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             401.65 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   751 sec.
    Turnaround time :                            753 sec.

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

