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


Performing analysis on: 4FGL_J0428.6-3756_daily_bin239
RA = 67.173, Dec = -37.9403
tmin = 301276801, tmax = 301536001
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='473186', job_status='RUN', time_executed='2021-08-20 16:51:20.443391', time_epoch_executed='1629503480.44' WHERE source_name='4FGL J0428.6-3756' and cadence='daily' and bin_id='239'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/473186

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/473186/ft1_4FGL_J0428.6-3756_daily_bin239.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/473186/ft2_4FGL_J0428.6-3756_daily_bin239.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/473186/ft1_4FGL_J0428.6-3756_daily_bin239.fits outfile=/scratch/kocevski/473186/ft1_filteredMKT_4FGL_J0428.6-3756_daily_bin239.fits ra=67.173 dec=-37.9403 rad=12.0 tmin=301276801.0 tmax=301536001.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 6.39
user 4.24
sys 2.11

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/473186/ft2_4FGL_J0428.6-3756_daily_bin239.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/473186/ft1_filteredMKT_4FGL_J0428.6-3756_daily_bin239.fits evtable="EVENTS" outfile="/scratch/kocevski/473186/ft1_filtered_4FGL_J0428.6-3756_daily_bin239.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 2.22
user 0.34
sys 1.83

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/473186/ft1_filtered_4FGL_J0428.6-3756_daily_bin239.fits" evtable="EVENTS" scfile=/scratch/kocevski/473186/ft2_4FGL_J0428.6-3756_daily_bin239.fits sctable="SC_DATA" outfile=/scratch/kocevski/473186/ltcube_301276801_301536001_4FGL_J0428.6-3756_daily_bin239.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/473186/ft2_4FGL_J0428.6-3756_daily_bin239.fits
.....................!
real 14.14
user 11.66
sys 2.43

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/473186/ft1_filtered_4FGL_J0428.6-3756_daily_bin239.fits evtable="EVENTS" scfile=/scratch/kocevski/473186/ft2_4FGL_J0428.6-3756_daily_bin239.fits sctable="SC_DATA" expcube=/scratch/kocevski/473186/ltcube_301276801_301536001_4FGL_J0428.6-3756_daily_bin239.fits outfile=/scratch/kocevski/473186/expmap_301276801_301536001_4FGL_J0428.6-3756_daily_bin239.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/473186/ltcube_301276801_301536001_4FGL_J0428.6-3756_daily_bin239.fits
.....................!
real 193.74
user 185.38
sys 6.84

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/473186/ft1_filtered_4FGL_J0428.6-3756_daily_bin239.fits scfile=/scratch/kocevski/473186/ft2_4FGL_J0428.6-3756_daily_bin239.fits outfile=/scratch/kocevski/473186/cmap_301276801_301536001_4FGL_J0428.6-3756_daily_bin239.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 2.69
user 0.38
sys 2.02

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/473186/ft1_filtered_4FGL_J0428.6-3756_daily_bin239.fits scfile=/scratch/kocevski/473186/ft2_4FGL_J0428.6-3756_daily_bin239.fits outfile=/scratch/kocevski/473186/cmap_HighResolution_301276801_301536001_4FGL_J0428.6-3756_daily_bin239.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 2.37
user 0.39
sys 1.96

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/473186/ft1_filtered_4FGL_J0428.6-3756_daily_bin239.fits evtable="EVENTS" scfile=/scratch/kocevski/473186/ft2_4FGL_J0428.6-3756_daily_bin239.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/473186/Model_4FGL_J0428.6-3756_daily_bin239.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/473186/ft1_filtered_4FGL_J0428.6-3756_daily_bin239.fits.....................!
real 93.32
user 89.41
sys 3.64

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.0045       1.0000         .10000E-03   10000.    
     2 'norm      '    7.8618       1.0000         .10000E-03   10000.    
     3 'Prefactor '    14.465       1.0000         .10000E-03   10000.    
     4 'Prefactor '    79.449       1.0000         .10000E-03   10000.    
     5 'norm      '    1.0658       1.0000         .10000E-03   10000.    
     6 'norm      '    13.442       1.0000         .10000E-03   10000.    
     7 'Prefactor '    13.648       1.0000         .10000E-03   10000.    
     8 'Prefactor '    11.569       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .71003       1.0000         .10000E-03   10000.    
    10 'norm      '    3.3800       1.0000         .10000E-03   10000.    
    11 'Prefactor '    3.8499       1.0000         .10000E-03   10000.    
    12 'norm      '    8.2630       1.0000         .10000E-03   10000.    
    13 'norm      '    .10013E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    1.6498       1.0000         .10000E-03   10000.    
    15 'Prefactor '    1.6454       1.0000         .10000E-03   10000.    
    16 'Prefactor '    18.969       1.0000         .10000E-03   10000.    
    17 'norm      '    17.638       1.0000         .10000E-03   10000.    
    18 'norm      '    .11234E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    148.42       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .61671       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    5.1950       1.0000         .10000E-03   10000.    
    25 'Normalizat'    .98263       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .77961       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=   4223.907     FROM MIGRAD    STATUS=CONVERGED    605 CALLS     3185 TOTAL
                     EDM=   .65E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.0049        3.3503        .22345E-06    .12441E-03
   2  norm          7.8621        1.9234        .22399E-07   -.37397E-04
   3  Prefactor     14.467        22.307        .17380E-06   -.25928E-04
   4  Prefactor     79.485        204.98        .35107E-05    .20940E-04
   5  norm          1.0660        .55740        .31762E-07    .19493E-03
   6  norm          13.442        11.176        .37696E-07    .26364E-05
   7  Prefactor     13.647        21.902        .95154E-07    .48556E-05
   8  Prefactor     11.567        11.447       -.15180E-06   -.17044E-04
   9  Prefactor     .71530        27.982       -.21984E-05    .34184E-03
  10  norm          3.3788        1.2170       -.82067E-07    .43325E-03
  11  Prefactor     3.8498        3.2652       -.78138E-08   -.73434E-04
  12  norm          8.2633        9.3290       -.14105E-07    .30975E-04
  13  norm          .10000E-03    151.96       -.30817E-06** at limit **
  14  norm          1.6496        1.6163       -.82552E-08    .74760E-04
  15  Prefactor     1.6439        3.1777        .32821E-06    .51763E-05
  16  Prefactor     18.951        19.895       -.17100E-06    .92656E-04
  17  norm          17.639        7.5345        .23069E-06    .26656E-03
  18  norm          .10000E-03    9.0617        .20362E-05** at limit **
  19  Prefactor     148.43        99.423        .18975E-06    .35683E-04
  20  Prefactor     .10000E-03    4.7604        .60545E-07** at limit **
  21  Prefactor     .10000E-03    31.496        .86549E-07** at limit **
  22  Prefactor     .61528        4.2155        .23942E-05    .20465E-03
  23  Prefactor     .10000E-03    2.1164        .11839E-07** at limit **
  24  norm          5.1949        3.2764        .82847E-07    .33736E-04
  25  Normalizat    .98221        .25931       -.32582E-05   -.44859E-04
  26  Prefactor     .77989        .23674        .16525E-05   -.98953E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 2.00492
  norm       = 7.86211
  Prefactor  = 14.4669
  Prefactor  = 79.4849
  norm       = 1.06601
  norm       = 13.4416
  Prefactor  = 13.6468
  Prefactor  = 11.5668
  Prefactor  = 0.715305
  norm       = 3.37878
  Prefactor  = 3.84976
  norm       = 8.26335
  norm       = 0.000100001
  norm       = 1.64957
  Prefactor  = 1.64392
  Prefactor  = 18.9509
  norm       = 17.6385
  norm       = 0.0001
  Prefactor  = 148.435
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.615284
  Prefactor  = 0.0001
  norm       = 5.19493
  Normalizat = 0.982214
  Prefactor  = 0.779888
 **********
 **   18 **HESSE 
 **********

 FCN=   4223.907     FROM HESSE     STATUS=OK           468 CALLS     3653 TOTAL
                     EDM=   .58E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.0049        3.3284        .14853E-03   -1.5425    
   2  norm          7.8621        1.9253        .42839E-04   -1.5147    
   3  Prefactor     14.467        22.284        .10531E-03   -1.4947    
   4  Prefactor     79.485        206.23        .45057E-04   -1.3923    
   5  norm          1.0660        .55458        .31487E-04   -1.5501    
   6  norm          13.442        11.172        .10925E-03   -1.4975    
   7  Prefactor     13.647        21.891        .10842E-03   -1.4969    
   8  Prefactor     11.567        11.450        .11778E-03   -1.5028    
   9  Prefactor     .71530        96.350        .45749E-02   -1.5539    
  10  norm          3.3788        1.2295        .22009E-04   -1.5340    
  11  Prefactor     3.8498        3.2527        .10039E-03   -1.5316    
  12  norm          8.2633        9.3029        .13947E-03   -1.5133    
  13  norm          .10000E-03    152.01        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          1.6496        1.6594        .73057E-04   -1.5451    
  15  Prefactor     1.6439        3.1669        .13606E-03   -1.5452    
  16  Prefactor     18.951        19.864        .91962E-04   -1.4837    
  17  norm          17.639        7.5654        .95367E-04   -1.4868    
  18  norm          .10000E-03    9.0885        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     148.43        99.628        .33080E-04   -1.3265    
  20  Prefactor     .10000E-03    4.7893        .13845E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    31.510        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .61528        4.2874        .25429E-03   -1.5551    
  23  Prefactor     .10000E-03    2.1246        .92290E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          5.1949        3.2765        .89803E-04   -1.5252    
  25  Normalizat    .98221        .30180        .27696E-03   -.93629    
  26  Prefactor     .77989        .27181        .30719E-03   -1.0047    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.78613e-09
Minuit parameter uncertainties:
  1  3.32875
  2  1.92535
  3  22.2967
  4  208.128
  5  0.554583
  6  11.1738
  7  21.9039
  8  11.4521
  9  16.6298
  10  1.22946
  11  3.25283
  12  9.30456
  13  0.00056919
  14  1.65943
  15  3.16723
  16  19.871
  17  7.56578
  18  8.05965e-05
  19  99.7414
  20  9.96858e-06
  21  1.9023e-05
  22  3.24844
  23  1.48049e-06
  24  3.27658
  25  0.302325
  26  0.272277
Done.

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

Extracting fit parameters...

4FGL J0428.6-3756
   Spectrum: LogParabola
257         norm:  3.379e+00  1.229e+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:  7.799e-01  2.723e-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.822e-01  3.023e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 38.87
Ra Dec: 67.173 -37.940
Photon Index (Fixed Index): 1.99 +/- 0.00
Photon Flux (Fixed Index): 1.86e-07 +/- 6.76e-08
Energy Flux (Fixed Index): 1.07e-04 +/- 3.88e-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) = 4223.8144367
delta logL = 0.0925786682956

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4223.79319485
delta logL = 0.113820514725

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.2857       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.1381       1.0000          .0000       5.0000    
     3 'Normalizat'    .95550       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .79477       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=   4223.793     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      198 TOTAL
                     EDM=   .20E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.2854        2.5177        .55844E-02    .19812E-03
   2  alpha         2.1385        .71171        .16003        .23654E-04
   3  Normalizat    .95552        .24656        .45607E-01    .87036E-05
   4  Prefactor     .79489        .23761        .68802E-01    .11775E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 3.28541
  alpha      = 2.13848
  Normalizat = 0.955525
  Prefactor  = 0.794894
 **********
 **   18 **HESSE 
 **********

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

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.2854        1.0243        .33359E-04   -1.5345    
   2  alpha         2.1385        .30288        .68117E-02   -.14512    
   3  Normalizat    .95552        .27168        .28010E-03   -.94536    
   4  Prefactor     .79489        .26723        .30440E-03   -.99917    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.32325e-10
Minuit parameter uncertainties:
  1  1.02435
  2  0.303643
  3  0.272068
  4  0.267663
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/473186': 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) = 4223.7931933
delta logL = 0.113822063212

Extracting fit parameters...

4FGL J0428.6-3756
   Spectrum: LogParabola
257         norm:  3.285e+00  1.024e+00  1.000e-04  1.000e+04 ( 1.000e-11)
258        alpha:  2.138e+00  3.036e-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:  7.949e-01  2.677e-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.555e-01  2.721e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 38.75
Ra Dec: 67.173 -37.940
Photon Index (Free Index): 2.14 +/- 0.30
Photon Flux (Free Index): 2.12e-07 +/- 8.26e-08
Energy Flux (Free Index): 9.63e-05 +/- 3.42e-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/473186/cmap_HighResolution_301276801_301536001_4FGL_J0428.6-3756_daily_bin239.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.86e-07', energy_flux2='9.63e-05', photon_flux_error='6.76e-08', dlogl='1.14e-01', energy_flux='1.07e-04', photon_flux2='2.12e-07', job_status='DONE', time_completed='2021-08-20 17:01:49.496745', photon_index_error2='0.30', photon_index2='2.14', ts='38.87', fit_tolerance='1e-08', GAL='0.78', photon_index_error='0.00', energy_flux_error2='3.42e-05', EG='0.98', time_epoch_completed='1629504109.5', return_code='0', job_id='473186', GAL2='0.79', EG2='0.96', return_code2='0', energy_flux_error='3.88e-05', photon_flux_error2='8.26e-08', ts2='38.75', photon_index='1.99' WHERE bin_id='239' AND source_name='4FGL J0428.6-3756' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 20 17:01:49 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0254>
Subject: Job 473186: <4FGL_J0428.6-3756_daily_bin239> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0428.6-3756_daily_bin239 67.173 -37.9403 301276801 301536001 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 :                                   655.03 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             327.58 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   681 sec.
    Turnaround time :                            683 sec.

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

