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


Performing analysis on: 4FGL_J0428.6-3756_daily_bin842
RA = 67.173, Dec = -37.9403
tmin = 457574401, tmax = 457833601
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='476490', job_status='RUN', time_executed='2021-08-20 17:02:14.464231', time_epoch_executed='1629504134.46' WHERE source_name='4FGL J0428.6-3756' and cadence='daily' and bin_id='842'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/476490

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/476490/ft1_4FGL_J0428.6-3756_daily_bin842.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/476490/ft2_4FGL_J0428.6-3756_daily_bin842.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/476490/ft1_4FGL_J0428.6-3756_daily_bin842.fits outfile=/scratch/kocevski/476490/ft1_filteredMKT_4FGL_J0428.6-3756_daily_bin842.fits ra=67.173 dec=-37.9403 rad=12.0 tmin=457574401.0 tmax=457833601.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 10.40
user 4.80
sys 5.52

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/476490/ft1_filtered_4FGL_J0428.6-3756_daily_bin842.fits" evtable="EVENTS" scfile=/scratch/kocevski/476490/ft2_4FGL_J0428.6-3756_daily_bin842.fits sctable="SC_DATA" outfile=/scratch/kocevski/476490/ltcube_457574401_457833601_4FGL_J0428.6-3756_daily_bin842.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/476490/ft2_4FGL_J0428.6-3756_daily_bin842.fits
.....................!
real 17.73
user 11.21
sys 6.48

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/476490/ft1_filtered_4FGL_J0428.6-3756_daily_bin842.fits evtable="EVENTS" scfile=/scratch/kocevski/476490/ft2_4FGL_J0428.6-3756_daily_bin842.fits sctable="SC_DATA" expcube=/scratch/kocevski/476490/ltcube_457574401_457833601_4FGL_J0428.6-3756_daily_bin842.fits outfile=/scratch/kocevski/476490/expmap_457574401_457833601_4FGL_J0428.6-3756_daily_bin842.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/476490/ltcube_457574401_457833601_4FGL_J0428.6-3756_daily_bin842.fits
.....................!
real 197.10
user 185.22
sys 11.56

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/476490/ft1_filtered_4FGL_J0428.6-3756_daily_bin842.fits scfile=/scratch/kocevski/476490/ft2_4FGL_J0428.6-3756_daily_bin842.fits outfile=/scratch/kocevski/476490/cmap_457574401_457833601_4FGL_J0428.6-3756_daily_bin842.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 6.03
user 0.37
sys 5.49

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/476490/ft1_filtered_4FGL_J0428.6-3756_daily_bin842.fits scfile=/scratch/kocevski/476490/ft2_4FGL_J0428.6-3756_daily_bin842.fits outfile=/scratch/kocevski/476490/cmap_HighResolution_457574401_457833601_4FGL_J0428.6-3756_daily_bin842.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 5.98
user 0.39
sys 5.52

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/476490/ft1_filtered_4FGL_J0428.6-3756_daily_bin842.fits evtable="EVENTS" scfile=/scratch/kocevski/476490/ft2_4FGL_J0428.6-3756_daily_bin842.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/476490/Model_4FGL_J0428.6-3756_daily_bin842.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/476490/ft1_filtered_4FGL_J0428.6-3756_daily_bin842.fits....................!
real 109.60
user 101.02
sys 8.31

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    7.3684       1.0000         .10000E-03   10000.    
     2 'norm      '    1.2810       1.0000         .10000E-03   10000.    
     3 'Prefactor '    26.611       1.0000         .10000E-03   10000.    
     4 'Prefactor '    120.80       1.0000         .10000E-03   10000.    
     5 'norm      '    3.7261       1.0000         .10000E-03   10000.    
     6 'norm      '    .10021E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    78.900       1.0000         .10000E-03   10000.    
     8 'Prefactor '    20.932       1.0000         .10000E-03   10000.    
     9 'Prefactor '    12.856       1.0000         .10000E-03   10000.    
    10 'norm      '    10.264       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10111E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    18.034       1.0000         .10000E-03   10000.    
    13 'norm      '    .10015E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .98425       1.0000         .10000E-03   10000.    
    16 'Prefactor '    17.367       1.0000         .10000E-03   10000.    
    17 'norm      '    8.8828       1.0000         .10000E-03   10000.    
    18 'norm      '    2.8459       1.0000         .10000E-03   10000.    
    19 'Prefactor '    1.3265       1.0000         .10000E-03   10000.    
    20 'Prefactor '    2.6041       1.0000         .10000E-03   10000.    
    21 'Prefactor '    101.20       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10227E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .58333E-01   1.0000         .10000E-03   10000.    
    24 'norm      '    20.626       1.0000         .10000E-03   10000.    
    25 'Normalizat'    .61801       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .93586       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=   4621.199     FROM MIGRAD    STATUS=CONVERGED    621 CALLS     3145 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          7.3690        4.3996       -.20097E-05    .83692E-04
   2  norm          1.2812        .90130       -.40003E-06    .20113E-03
   3  Prefactor     26.627        28.002        .18171E-04    .51404E-04
   4  Prefactor     120.41        187.51       -.33803E-03    .35674E-04
   5  norm          3.7265        .79654        .15095E-06    .79354E-03
   6  norm          .10000E-03    4.2426       -.45719E-06** at limit **
   7  Prefactor     78.917        57.195        .18934E-04    .64684E-04
   8  Prefactor     20.919        27.732        .83477E-05   -.81382E-04
   9  Prefactor     12.807        24.538        .12733E-04   -.57558E-04
  10  norm          10.268        2.0594       -.13757E-05    .15218E-02
  11  Prefactor     .10000E-03    2.2616       -.17140E-06** at limit **
  12  norm          18.028        14.787       -.14632E-04    .12345E-03
  13  norm          .10000E-03    154.49        .62532E-04** at limit **
  14  norm          .10000E-03    .69585        .16017E-06** at limit **
  15  Prefactor     .98500        4.3410        .11094E-05   -.12158E-03
  16  Prefactor     17.365        16.311       -.12953E-05    .53800E-04
  17  norm          8.8852        6.5820       -.43885E-05   -.53090E-04
  18  norm          2.8451        5.5097        .13233E-05   -.18888E-03
  19  Prefactor     1.2807        613.18       -.26954E-03    .39304E-04
  20  Prefactor     2.6057        7.9502       -.45042E-07   -.34868E-03
  21  Prefactor     101.13        74.572       -.67434E-04    .19926E-04
  22  Prefactor     .10000E-03    2.5966       -.32546E-06** at limit **
  23  Prefactor     .19694        9.4625        .49703E-05   -.76045E-03
  24  norm          20.602        6.5195       -.54675E-06   -.17736E-02
  25  Normalizat    .61745        .27060        .26058E-04    .89727E-04
  26  Prefactor     .93620        .24581        .10636E-04    .40202E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 7.36897
  norm       = 1.28119
  Prefactor  = 26.627
  Prefactor  = 120.41
  norm       = 3.72649
  norm       = 0.0001
  Prefactor  = 78.9167
  Prefactor  = 20.919
  Prefactor  = 12.8071
  norm       = 10.2679
  Prefactor  = 0.0001
  norm       = 18.0278
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.984995
  Prefactor  = 17.3654
  norm       = 8.8852
  norm       = 2.84506
  Prefactor  = 1.28068
  Prefactor  = 2.60568
  Prefactor  = 101.129
  Prefactor  = 0.0001
  Prefactor  = 0.196938
  norm       = 20.6024
  Normalizat = 0.617454
  Prefactor  = 0.936201
 **********
 **   18 **HESSE 
 **********

 FCN=   4621.199     FROM HESSE     STATUS=OK           464 CALLS     3609 TOTAL
                     EDM=   .18E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          7.3690        4.3988        .10584E-03   -1.5165    
   2  norm          1.2812        .89929        .52254E-04   -1.5482    
   3  Prefactor     26.627        28.078        .77658E-04   -1.4675    
   4  Prefactor     120.41        188.36        .18308E-03   -1.3509    
   5  norm          3.7265        .80174        .25286E-04   -1.5322    
   6  norm          .10000E-03    4.2482        .13673E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     78.917        57.483        .45212E-04   -1.3929    
   8  Prefactor     20.919        27.718        .87545E-04   -1.4793    
   9  Prefactor     12.807        24.659        .11172E-03   -1.4992    
  10  norm          10.268        2.0838        .34058E-04   -1.5067    
  11  Prefactor     .10000E-03    2.2761        .99278E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          18.028        14.409        .94314E-04   -1.4859    
  13  norm          .10000E-03    154.54        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    .70092        .55244E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .98500        3.8683        .21382E-03   -1.5509    
  16  Prefactor     17.365        16.111        .96108E-04   -1.4874    
  17  norm          8.8852        6.5693        .13448E-03   -1.5112    
  18  norm          2.8451        5.3740        .19731E-03   -1.5371    
  19  Prefactor     1.2807        637.88        .38159E-02   -1.5482    
  20  Prefactor     2.6057        7.9070        .25281E-03   -1.5385    
  21  Prefactor     101.13        74.567        .19983E-03   -1.3693    
  22  Prefactor     .10000E-03    2.6322        .10684E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .19694        88.637        .35716E-02   -1.5619    
  24  norm          20.602        6.6571        .85237E-04   -1.4800    
  25  Normalizat    .61745        .31345        .36201E-03   -1.0725    
  26  Prefactor     .93620        .28954        .30471E-03   -.94887    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.78364e-08
Minuit parameter uncertainties:
  1  4.39896
  2  0.899295
  3  28.0922
  4  189.305
  5  0.801745
  6  7.71966e-05
  7  57.5236
  8  27.7351
  9  24.6785
  10  2.08385
  11  2.12173e-05
  12  14.4123
  13  0.000138063
  14  1.48229e-05
  15  3.86925
  16  16.1146
  17  6.56987
  18  5.37487
  19  57.7912
  20  7.9102
  21  74.6361
  22  6.77136e-05
  23  8.36643
  24  6.65732
  25  0.314359
  26  0.290021
Done.

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

Extracting fit parameters...

4FGL J0428.6-3756
   Spectrum: LogParabola
257         norm:  1.027e+01  2.084e+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

GAL_V02
   Spectrum: PowerLaw
573    Prefactor:  9.362e-01  2.900e-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:  6.175e-01  3.144e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 155.24
Ra Dec: 67.173 -37.940
Photon Index (Fixed Index): 1.99 +/- 0.00
Photon Flux (Fixed Index): 5.65e-07 +/- 1.15e-07
Energy Flux (Fixed Index): 3.24e-04 +/- 6.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) = 4621.19822526
delta logL = 0.000674901763887

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4621.19806729
delta logL = 0.000832869348415

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    10.285       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.9887       1.0000          .0000       5.0000    
     3 'Normalizat'    .61958       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .93492       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=   4621.198     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      198 TOTAL
                     EDM=   .71E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          10.285        1.9415        .31235E-02    .25596E-03
   2  alpha         1.9887        .17040        .88539E-01   -.18688E-04
   3  Normalizat    .61957        .23780        .81612E-01    .17154E-04
   4  Prefactor     .93494        .24050        .68934E-01    .22028E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 10.2852
  alpha      = 1.9887
  Normalizat = 0.619566
  Prefactor  = 0.934938
 **********
 **   18 **HESSE 
 **********

 FCN=   4621.198     FROM HESSE     STATUS=OK            29 CALLS      227 TOTAL
                     EDM=   .13E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          10.285        1.7369        .34127E-04   -1.5066    
   2  alpha         1.9887        .15392        .38793E-03   -.20597    
   3  Normalizat    .61957        .27500        .36148E-03   -1.0716    
   4  Prefactor     .93494        .27868        .30492E-03   -.94931    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.28008e-11
Minuit parameter uncertainties:
  1  1.7369
  2  0.15402
  3  0.275612
  4  0.279103
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/476490': 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) = 4621.19806729
delta logL = 0.000832870748127

Extracting fit parameters...

4FGL J0428.6-3756
   Spectrum: LogParabola
257         norm:  1.029e+01  1.737e+00  1.000e-04  1.000e+04 ( 1.000e-11)
258        alpha:  1.989e+00  1.540e-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.349e-01  2.791e-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:  6.196e-01  2.756e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 156.37
Ra Dec: 67.173 -37.940
Photon Index (Free Index): 1.99 +/- 0.15
Photon Flux (Free Index): 5.62e-07 +/- 1.14e-07
Energy Flux (Free Index): 3.26e-04 +/- 7.32e-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/476490/cmap_HighResolution_457574401_457833601_4FGL_J0428.6-3756_daily_bin842.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='5.65e-07', energy_flux2='3.26e-04', photon_flux_error='1.15e-07', dlogl='8.33e-04', energy_flux='3.24e-04', photon_flux2='5.62e-07', job_status='DONE', time_completed='2021-08-20 17:14:04.826192', photon_index_error2='0.15', photon_index2='1.99', ts='155.24', fit_tolerance='1e-08', GAL='0.94', photon_index_error='0.00', energy_flux_error2='7.32e-05', EG='0.62', time_epoch_completed='1629504844.83', return_code='0', job_id='476490', GAL2='0.93', EG2='0.62', return_code2='0', energy_flux_error='6.58e-05', photon_flux_error2='1.14e-07', ts2='156.37', photon_index='1.99' WHERE bin_id='842' AND source_name='4FGL J0428.6-3756' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 20 17:14:04 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0300>
Subject: Job 476490: <4FGL_J0428.6-3756_daily_bin842> in cluster <slac> Done

Job <4FGL_J0428.6-3756_daily_bin842> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Fri Aug 20 17:00:40 2021
Job was executed on host(s) <bullet0300>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Aug 20 17:00:41 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Aug 20 17:00:41 2021
Terminated at Fri Aug 20 17:14:06 2021
Results reported at Fri Aug 20 17:14:06 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0428.6-3756_daily_bin842 67.173 -37.9403 457574401 457833601 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 :                                   785.49 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             287.73 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   804 sec.
    Turnaround time :                            806 sec.

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

