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


Performing analysis on: 4FGL_J0428.6-3756_daily_bin371
RA = 67.173, Dec = -37.9403
tmin = 335491201, tmax = 335750401
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='473378', job_status='RUN', time_executed='2021-08-20 16:51:08.288301', time_epoch_executed='1629503468.29' WHERE source_name='4FGL J0428.6-3756' and cadence='daily' and bin_id='371'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/473378

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/473378/ft1_4FGL_J0428.6-3756_daily_bin371.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/473378/ft2_4FGL_J0428.6-3756_daily_bin371.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/473378/ft1_4FGL_J0428.6-3756_daily_bin371.fits outfile=/scratch/kocevski/473378/ft1_filteredMKT_4FGL_J0428.6-3756_daily_bin371.fits ra=67.173 dec=-37.9403 rad=12.0 tmin=335491201.0 tmax=335750401.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.00
user 3.14
sys 0.85

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/473378/ft2_4FGL_J0428.6-3756_daily_bin371.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/473378/ft1_filteredMKT_4FGL_J0428.6-3756_daily_bin371.fits evtable="EVENTS" outfile="/scratch/kocevski/473378/ft1_filtered_4FGL_J0428.6-3756_daily_bin371.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.14
user 0.33
sys 0.81

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/473378/ft1_filtered_4FGL_J0428.6-3756_daily_bin371.fits" evtable="EVENTS" scfile=/scratch/kocevski/473378/ft2_4FGL_J0428.6-3756_daily_bin371.fits sctable="SC_DATA" outfile=/scratch/kocevski/473378/ltcube_335491201_335750401_4FGL_J0428.6-3756_daily_bin371.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/473378/ft2_4FGL_J0428.6-3756_daily_bin371.fits
.....................!
real 12.58
user 11.48
sys 1.06

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/473378/ft1_filtered_4FGL_J0428.6-3756_daily_bin371.fits evtable="EVENTS" scfile=/scratch/kocevski/473378/ft2_4FGL_J0428.6-3756_daily_bin371.fits sctable="SC_DATA" expcube=/scratch/kocevski/473378/ltcube_335491201_335750401_4FGL_J0428.6-3756_daily_bin371.fits outfile=/scratch/kocevski/473378/expmap_335491201_335750401_4FGL_J0428.6-3756_daily_bin371.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/473378/ltcube_335491201_335750401_4FGL_J0428.6-3756_daily_bin371.fits
.....................!
real 190.65
user 185.05
sys 5.28

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/473378/ft1_filtered_4FGL_J0428.6-3756_daily_bin371.fits scfile=/scratch/kocevski/473378/ft2_4FGL_J0428.6-3756_daily_bin371.fits outfile=/scratch/kocevski/473378/cmap_335491201_335750401_4FGL_J0428.6-3756_daily_bin371.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.37
sys 0.78

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/473378/ft1_filtered_4FGL_J0428.6-3756_daily_bin371.fits scfile=/scratch/kocevski/473378/ft2_4FGL_J0428.6-3756_daily_bin371.fits outfile=/scratch/kocevski/473378/cmap_HighResolution_335491201_335750401_4FGL_J0428.6-3756_daily_bin371.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.18
user 0.38
sys 0.79

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/473378/ft1_filtered_4FGL_J0428.6-3756_daily_bin371.fits evtable="EVENTS" scfile=/scratch/kocevski/473378/ft2_4FGL_J0428.6-3756_daily_bin371.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/473378/Model_4FGL_J0428.6-3756_daily_bin371.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/473378/ft1_filtered_4FGL_J0428.6-3756_daily_bin371.fits.....................!
real 153.29
user 150.91
sys 2.06

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .23784       1.0000         .10000E-03   10000.    
     2 'norm      '    1.8525       1.0000         .10000E-03   10000.    
     3 'Prefactor '    3.0264       1.0000         .10000E-03   10000.    
     4 'Prefactor '    28.014       1.0000         .10000E-03   10000.    
     5 'norm      '    1.2548       1.0000         .10000E-03   10000.    
     6 'norm      '    14.734       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .26508E-02   1.0000         .10000E-03   10000.    
     8 'Prefactor '    15.922       1.0000         .10000E-03   10000.    
     9 'Prefactor '    23.085       1.0000         .10000E-03   10000.    
    10 'norm      '    .83852       1.0000         .10000E-03   10000.    
    11 'Prefactor '    2.2666       1.0000         .10000E-03   10000.    
    12 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .28915E-01   1.0000         .10000E-03   10000.    
    14 'norm      '    3.9990       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .51342E-02   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10170E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .11199E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    10.733       1.0000         .10000E-03   10000.    
    19 'Prefactor '    41.435       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .11808E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    25.816       1.0000         .10000E-03   10000.    
    22 'Prefactor '    5.1173       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .37198E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    3.2815       1.0000         .10000E-03   10000.    
    25 'Normalizat'    .93936       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .84103       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=   7332.538     FROM MIGRAD    STATUS=CONVERGED    102 CALLS     3161 TOTAL
                     EDM=   .77E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .24481        3.3477        .26381E-06    .27234E-04
   2  norm          1.8523        .91126       -.44119E-07   -.13949E-03
   3  Prefactor     3.0310        2.5584        .25117E-06   -.84832E-03
   4  Prefactor     27.955        15.925        .70820E-07    .57472E-02
   5  norm          1.2550        .35553        .11394E-07   -.16539E-03
   6  norm          14.735        7.6664       -.34183E-06   -.63725E-02
   7  Prefactor     .24353E-03    266.97        .21123E-05** at limit **
   8  Prefactor     15.923        1.5021       -.47211E-07   -.25015E-02
   9  Prefactor     23.091        1.2068       -.30931E-07   -.35351E-02
  10  norm          .83852        .45675        .20340E-07    .48145E-04
  11  Prefactor     2.2677        1.9183       -.32833E-06   -.66442E-04
  12  norm          .10000E-03    1.8488       -.20338E-06** at limit **
  13  norm          .20864E-01    47.911        .54602E-07    .20276E-02
  14  norm          4.0014        1.4500       -.11647E-06    .20766E-04
  15  Prefactor     .11522E-03    299.87        .17209E-05** at limit **
  16  Prefactor     .10000E-03    15.358        .12578E-05** at limit **
  17  norm          .10002E-03    26.870       -.13542E-06** at limit **
  18  norm          10.741        5.7554        .20832E-05    .69368E-03
  19  Prefactor     41.475        10.623       -.83690E-07    .50356E-03
  20  Prefactor     .10000E-03    4.7423       -.70248E-06** at limit **
  21  Prefactor     25.822        1.7015       -.38145E-07    .16385E-02
  22  Prefactor     5.1189        3.1930       -.22719E-06    .21464E-04
  23  Prefactor     .10083E-03    5.8392        .10156E-05** at limit **
  24  norm          3.2811        1.7895        .14458E-06    .84526E-04
  25  Normalizat    .93909        .18660        .48497E-06    .55697E-04
  26  Prefactor     .84122        .19164       -.63161E-06    .30088E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.244805
  norm       = 1.85234
  Prefactor  = 3.03096
  Prefactor  = 27.9549
  norm       = 1.25496
  norm       = 14.7348
  Prefactor  = 0.000243533
  Prefactor  = 15.9231
  Prefactor  = 23.0907
  norm       = 0.838518
  Prefactor  = 2.26767
  norm       = 0.0001
  norm       = 0.0208637
  norm       = 4.00137
  Prefactor  = 0.000115223
  Prefactor  = 0.000100001
  norm       = 0.000100021
  norm       = 10.7405
  Prefactor  = 41.4751
  Prefactor  = 0.0001
  Prefactor  = 25.8215
  Prefactor  = 5.11888
  Prefactor  = 0.000100828
  norm       = 3.28109
  Normalizat = 0.939094
  Prefactor  = 0.841224
 **********
 **   18 **HESSE 
 **********

 FCN=   7332.538     FROM HESSE     STATUS=OK           558 CALLS     3719 TOTAL
                     EDM=   .61E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .24481        1.6632        .38258E-01   -1.5609    
   2  norm          1.8523        .92265        .76573E-02   -1.5436    
   3  Prefactor     3.0310        10.826        .58317E-02   -1.5360    
   4  Prefactor     27.955        64.277        .18923E-02   -1.4650    
   5  norm          1.2550        .36026        .57047E-02   -1.5484    
   6  norm          14.735        8.6541        .26086E-02   -1.4940    
   7  Prefactor     .24353E-03    16.205        .12603       -1.5710    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     15.923        11.196        .25093E-02   -1.4910    
   9  Prefactor     23.091        10.209        .20842E-02   -1.4747    
  10  norm          .83852        .49909        .93315E-02   -1.5525    
  11  Prefactor     2.2677        1.9416        .68203E-02   -1.5407    
  12  norm          .10000E-03    1.8481        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .20864E-01    6510.7        .91667E-02   -1.5679    
  14  norm          4.0014        1.4890        .50419E-02   -1.5308    
  15  Prefactor     .11522E-03    .92824        .63603E-01   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    15.307        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10002E-03    1.2463        .59014E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          10.741        6.0051        .30574E-02   -1.5052    
  19  Prefactor     41.475        44.266        .15569E-02   -1.4419    
  20  Prefactor     .10000E-03    2.4169        .44313E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     25.822        38.372        .19711E-02   -1.4691    
  22  Prefactor     5.1189        3.2075        .44432E-02   -1.5255    
  23  Prefactor     .10083E-03    1.2802        .58675E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          3.2811        1.8312        .55882E-02   -1.5346    
  25  Normalizat    .93909        .16866        .45403E-01   -.95100    
  26  Prefactor     .84122        .16687        .44249E-01   -.98226    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.14744e-06
Minuit parameter uncertainties:
  1  1.27599
  2  0.922659
  3  10.8331
  4  64.4366
  5  0.36026
  6  8.65487
  7  0.0964816
  8  11.1976
  9  10.2095
  10  0.499088
  11  1.94167
  12  1.39575e-06
  13  16.8135
  14  1.48897
  15  0.00751814
  16  0.000241989
  17  0.000323827
  18  6.00544
  19  44.3011
  20  6.87706e-06
  21  38.4086
  22  3.20759
  23  0.00205873
  24  1.83124
  25  0.168754
  26  0.166975
Done.

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

Extracting fit parameters...

4FGL J0428.6-3756
   Spectrum: LogParabola
257         norm:  8.385e-01  4.991e-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:  8.412e-01  1.670e-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.391e-01  1.688e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 6.98
Ra Dec: 67.173 -37.940
Photon Index (Fixed Index): 1.99 +/- 0.00
Photon Flux (Fixed Index): 4.61e-08 +/- 2.74e-08
Energy Flux (Fixed Index): 2.65e-05 +/- 1.58e-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) = 7332.47936224
delta logL = 0.0588976300642

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7332.4785586
delta logL = 0.0597012725857

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .83506       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.1718       1.0000          .0000       5.0000    
     3 'Normalizat'    .92991       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .84631       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=   7332.479     FROM MIGRAD    STATUS=CONVERGED     43 CALLS      195 TOTAL
                     EDM=   .10E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .83506        7.4074        .89536E-02   -.22537E-03
   2  alpha         2.1718        3.5225        .37371        .50827E-04
   3  Normalizat    .92991        .65703E-01    .45283E-01   -.12553E-04
   4  Prefactor     .84631        .56809E-01    .44317E-01    .40396E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.835057
  alpha      = 2.17178
  Normalizat = 0.929911
  Prefactor  = 0.846312
 **********
 **   18 **HESSE 
 **********

 FCN=   7332.479     FROM HESSE     STATUS=OK            33 CALLS      228 TOTAL
                     EDM=   .79E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .83506        .44685        .40162E-04   -1.5525    
   2  alpha         2.1718        .50945        .12935E-01   -.13167    
   3  Normalizat    .92991        .18156        .24807E-03   -.95417    
   4  Prefactor     .84631        .19065        .27320E-03   -.98043    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.9144e-11
Minuit parameter uncertainties:
  1  0.446856
  2  0.513109
  3  0.181683
  4  0.190796
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/473378': 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) = 7332.4785586
delta logL = 0.059701272774

Extracting fit parameters...

4FGL J0428.6-3756
   Spectrum: LogParabola
257         norm:  8.351e-01  4.469e-01  1.000e-04  1.000e+04 ( 1.000e-11)
258        alpha:  2.172e+00  5.131e-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.463e-01  1.908e-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.299e-01  1.817e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 7.16
Ra Dec: 67.173 -37.940
Photon Index (Free Index): 2.17 +/- 0.51
Photon Flux (Free Index): 5.60e-08 +/- 4.03e-08
Energy Flux (Free Index): 2.43e-05 +/- 1.39e-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/473378/cmap_HighResolution_335491201_335750401_4FGL_J0428.6-3756_daily_bin371.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='4.61e-08', energy_flux2='2.43e-05', photon_flux_error='2.74e-08', dlogl='5.97e-02', energy_flux='2.65e-05', photon_flux2='5.60e-08', job_status='DONE', time_completed='2021-08-20 17:04:53.178935', photon_index_error2='0.51', photon_index2='2.17', ts='6.98', fit_tolerance='1e-08', GAL='0.84', photon_index_error='0.00', energy_flux_error2='1.39e-05', EG='0.94', time_epoch_completed='1629504293.18', return_code='0', job_id='473378', GAL2='0.85', EG2='0.93', return_code2='0', energy_flux_error='1.58e-05', photon_flux_error2='4.03e-08', ts2='7.16', photon_index='1.99' WHERE bin_id='371' AND source_name='4FGL J0428.6-3756' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 20 17:04:53 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0282>
Subject: Job 473378: <4FGL_J0428.6-3756_daily_bin371> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0428.6-3756_daily_bin371 67.173 -37.9403 335491201 335750401 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 :                                   833.18 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             355.93 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   853 sec.
    Turnaround time :                            855 sec.

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

