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


Performing analysis on: 4FGL_J0428.6-3756_daily_bin590
RA = 67.173, Dec = -37.9403
tmin = 392256001, tmax = 392515201
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='474876', job_status='RUN', time_executed='2021-08-20 16:56:19.313087', time_epoch_executed='1629503779.31' WHERE source_name='4FGL J0428.6-3756' and cadence='daily' and bin_id='590'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/474876

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/474876/ft1_4FGL_J0428.6-3756_daily_bin590.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/474876/ft2_4FGL_J0428.6-3756_daily_bin590.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/474876/ft1_4FGL_J0428.6-3756_daily_bin590.fits outfile=/scratch/kocevski/474876/ft1_filteredMKT_4FGL_J0428.6-3756_daily_bin590.fits ra=67.173 dec=-37.9403 rad=12.0 tmin=392256001.0 tmax=392515201.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 3.89
user 3.08
sys 0.77

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/474876/ft1_filtered_4FGL_J0428.6-3756_daily_bin590.fits" evtable="EVENTS" scfile=/scratch/kocevski/474876/ft2_4FGL_J0428.6-3756_daily_bin590.fits sctable="SC_DATA" outfile=/scratch/kocevski/474876/ltcube_392256001_392515201_4FGL_J0428.6-3756_daily_bin590.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/474876/ft2_4FGL_J0428.6-3756_daily_bin590.fits
.....................!
real 12.71
user 11.68
sys 1.00

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/474876/ft1_filtered_4FGL_J0428.6-3756_daily_bin590.fits evtable="EVENTS" scfile=/scratch/kocevski/474876/ft2_4FGL_J0428.6-3756_daily_bin590.fits sctable="SC_DATA" expcube=/scratch/kocevski/474876/ltcube_392256001_392515201_4FGL_J0428.6-3756_daily_bin590.fits outfile=/scratch/kocevski/474876/expmap_392256001_392515201_4FGL_J0428.6-3756_daily_bin590.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/474876/ltcube_392256001_392515201_4FGL_J0428.6-3756_daily_bin590.fits
.....................!
real 190.89
user 185.54
sys 5.04

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/474876/ft1_filtered_4FGL_J0428.6-3756_daily_bin590.fits scfile=/scratch/kocevski/474876/ft2_4FGL_J0428.6-3756_daily_bin590.fits outfile=/scratch/kocevski/474876/cmap_392256001_392515201_4FGL_J0428.6-3756_daily_bin590.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.10
user 0.37
sys 0.71

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/474876/ft1_filtered_4FGL_J0428.6-3756_daily_bin590.fits scfile=/scratch/kocevski/474876/ft2_4FGL_J0428.6-3756_daily_bin590.fits outfile=/scratch/kocevski/474876/cmap_HighResolution_392256001_392515201_4FGL_J0428.6-3756_daily_bin590.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.10
user 0.39
sys 0.70

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/474876/ft1_filtered_4FGL_J0428.6-3756_daily_bin590.fits evtable="EVENTS" scfile=/scratch/kocevski/474876/ft2_4FGL_J0428.6-3756_daily_bin590.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/474876/Model_4FGL_J0428.6-3756_daily_bin590.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/474876/ft1_filtered_4FGL_J0428.6-3756_daily_bin590.fits.....................!
real 156.75
user 154.58
sys 1.90

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.1822       1.0000         .10000E-03   10000.    
     2 'norm      '    1.1617       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    29.796       1.0000         .10000E-03   10000.    
     5 'norm      '    .17781       1.0000         .10000E-03   10000.    
     6 'norm      '    12.138       1.0000         .10000E-03   10000.    
     7 'Prefactor '    15.129       1.0000         .10000E-03   10000.    
     8 'Prefactor '    6.4589       1.0000         .10000E-03   10000.    
     9 'Prefactor '    15.338       1.0000         .10000E-03   10000.    
    10 'norm      '    8.5275       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    1.4312       1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    2.5997       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .98365       1.0000         .10000E-03   10000.    
    16 'Prefactor '    6.1918       1.0000         .10000E-03   10000.    
    17 'norm      '    1.9889       1.0000         .10000E-03   10000.    
    18 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10861E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    1.2561       1.0000         .10000E-03   10000.    
    23 'Prefactor '    1.9470       1.0000         .10000E-03   10000.    
    24 'norm      '    11.048       1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.0546       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .95088       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=   7369.748     FROM MIGRAD    STATUS=CONVERGED    633 CALLS     3110 TOTAL
                     EDM=   .29E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.1822        2.4748       -.62829E-07    .29213E-04
   2  norm          1.1617        .72949       -.45139E-07    .11285E-03
   3  Prefactor     .10000E-03    4.7992        .28623E-07** at limit **
   4  Prefactor     29.777        99.288       -.30459E-04    .64497E-05
   5  norm          .17780        .19986       -.82849E-08    .37332E-03
   6  norm          12.138        6.7643        .13524E-05    .73324E-04
   7  Prefactor     15.120        41.258       -.11783E-04    .23722E-04
   8  Prefactor     6.4574        14.152       -.17269E-05    .28336E-04
   9  Prefactor     15.334        11.437       -.42896E-05    .81157E-04
  10  norm          8.5278        1.2454        .24041E-06   -.11049E-03
  11  Prefactor     .10000E-03    1.0068       -.64802E-08** at limit **
  12  norm          1.4311        .89427        .15223E-06   -.12556E-02
  13  norm          .10000E-03    55.881        .20108E-05** at limit **
  14  norm          2.6000        1.4411        .23597E-07    .10207E-03
  15  Prefactor     .98089        2.5910       -.48376E-06   -.96742E-04
  16  Prefactor     6.1923        10.692        .26082E-05    .41852E-04
  17  norm          1.9890        2.1921       -.10996E-06   -.17713E-04
  18  norm          .10000E-03    1.5464       -.63073E-07** at limit **
  19  Prefactor     .10000E-03    101.19       -.31826E-05** at limit **
  20  Prefactor     .10000E-03    2.3422       -.56026E-07** at limit **
  21  Prefactor     .10000E-03    14.595        .40288E-07** at limit **
  22  Prefactor     1.2566        1.9736       -.13041E-06   -.37370E-04
  23  Prefactor     1.9470        3.7378       -.11966E-05   -.83672E-04
  24  norm          11.048        3.2032        .17429E-06    .15418E-03
  25  Normalizat    1.0548        .18591        .39778E-05   -.98602E-04
  26  Prefactor     .95064        .18371       -.11857E-05    .25424E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 3.18221
  norm       = 1.1617
  Prefactor  = 0.0001
  Prefactor  = 29.7775
  norm       = 0.177796
  norm       = 12.1379
  Prefactor  = 15.1203
  Prefactor  = 6.45737
  Prefactor  = 15.3344
  norm       = 8.52777
  Prefactor  = 0.0001
  norm       = 1.43105
  norm       = 0.0001
  norm       = 2.60004
  Prefactor  = 0.980892
  Prefactor  = 6.19235
  norm       = 1.98899
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.25662
  Prefactor  = 1.94704
  norm       = 11.0483
  Normalizat = 1.05482
  Prefactor  = 0.950635
 **********
 **   18 **HESSE 
 **********

 FCN=   7369.748     FROM HESSE     STATUS=OK           470 CALLS     3580 TOTAL
                     EDM=   .45E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.1822        2.4755        .11545E-03   -1.5351    
   2  norm          1.1617        .71251        .56115E-04   -1.5492    
   3  Prefactor     .10000E-03    4.8068        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     29.777        99.415        .73399E-04   -1.4616    
   5  norm          .17780        .18641        .38382E-03   -1.5624    
   6  norm          12.138        6.7529        .11498E-03   -1.5011    
   7  Prefactor     15.120        41.478        .10297E-03   -1.4930    
   8  Prefactor     6.4574        14.116        .15792E-03   -1.5200    
   9  Prefactor     15.334        11.430        .10227E-03   -1.4925    
  10  norm          8.5278        1.2511        .31524E-04   -1.5124    
  11  Prefactor     .10000E-03    1.5001        .16400E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          1.4311        6.0950        .18053E-02   -1.5469    
  13  norm          .10000E-03    55.883        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          2.6000        1.4308        .68855E-04   -1.5385    
  15  Prefactor     .98089        2.5090        .18458E-03   -1.5510    
  16  Prefactor     6.1923        10.582        .16133E-03   -1.5210    
  17  norm          1.9890        2.1777        .12966E-03   -1.5426    
  18  norm          .10000E-03    1.5515        .10412E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    101.94        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    2.3673        .12827E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    14.607        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     1.2566        1.9300        .14570E-03   -1.5484    
  23  Prefactor     1.9470        3.7083        .21302E-03   -1.5429    
  24  norm          11.048        3.1888        .76762E-04   -1.5043    
  25  Normalizat    1.0548        .22238        .26228E-03   -.91216    
  26  Prefactor     .95064        .22253        .29675E-03   -.94394    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.50474e-09
Minuit parameter uncertainties:
  1  2.47556
  2  0.712517
  3  5.12299e-06
  4  99.9748
  5  0.186413
  6  6.75334
  7  41.5575
  8  14.1233
  9  11.4321
  10  1.25114
  11  6.25019e-06
  12  5.90752
  13  1.08098e-06
  14  1.43081
  15  2.50926
  16  10.585
  17  2.17783
  18  7.68006e-06
  19  6.10915e-05
  20  8.71797e-06
  21  4.11681e-06
  22  1.93005
  23  3.7087
  24  3.18886
  25  0.222579
  26  0.222747
Done.

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

Extracting fit parameters...

4FGL J0428.6-3756
   Spectrum: LogParabola
257         norm:  8.528e+00  1.251e+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.506e-01  2.227e-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.055e+00  2.226e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 227.00
Ra Dec: 67.173 -37.940
Photon Index (Fixed Index): 1.99 +/- 0.00
Photon Flux (Fixed Index): 4.69e-07 +/- 6.88e-08
Energy Flux (Fixed Index): 2.69e-04 +/- 3.95e-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) = 7369.73837299
delta logL = 0.00977500914632

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7369.73679097
delta logL = 0.0113570286658

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    8.4661       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.0138       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0491       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .95421       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=   7369.737     FROM MIGRAD    STATUS=CONVERGED     61 CALLS      212 TOTAL
                     EDM=   .81E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          8.4660        1.4316        .34443E-02   -.24301E-04
   2  alpha         2.0138        .14879        .86644E-01    .45286E-04
   3  Normalizat    1.0491        .16957        .59430E-01    .12442E-04
   4  Prefactor     .95426        .18105        .66969E-01    .15419E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 8.46597
  alpha      = 2.01376
  Normalizat = 1.04909
  Prefactor  = 0.954261
 **********
 **   18 **HESSE 
 **********

 FCN=   7369.737     FROM HESSE     STATUS=OK            31 CALLS      243 TOTAL
                     EDM=   .85E-14    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          8.4660        1.1874        .31306E-04   -1.5126    
   2  alpha         2.0138        .12475        .37968E-03   -.19574    
   3  Normalizat    1.0491        .20318        .26282E-03   -.91403    
   4  Prefactor     .95426        .21673        .29621E-03   -.94270    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.52455e-15
Minuit parameter uncertainties:
  1  1.18738
  2  0.124805
  3  0.203334
  4  0.216929
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/474876': 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) = 7369.73679094
delta logL = 0.0113570581589

Extracting fit parameters...

4FGL J0428.6-3756
   Spectrum: LogParabola
257         norm:  8.466e+00  1.187e+00  1.000e-04  1.000e+04 ( 1.000e-11)
258        alpha:  2.014e+00  1.248e-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.543e-01  2.169e-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.049e+00  2.033e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 229.95
Ra Dec: 67.173 -37.940
Photon Index (Free Index): 2.01 +/- 0.12
Photon Flux (Free Index): 4.75e-07 +/- 7.35e-08
Energy Flux (Free Index): 2.64e-04 +/- 4.92e-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/474876/cmap_HighResolution_392256001_392515201_4FGL_J0428.6-3756_daily_bin590.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='4.69e-07', energy_flux2='2.64e-04', photon_flux_error='6.88e-08', dlogl='1.14e-02', energy_flux='2.69e-04', photon_flux2='4.75e-07', job_status='DONE', time_completed='2021-08-20 17:10:08.495188', photon_index_error2='0.12', photon_index2='2.01', ts='227.00', fit_tolerance='1e-08', GAL='0.95', photon_index_error='0.00', energy_flux_error2='4.92e-05', EG='1.05', time_epoch_completed='1629504608.5', return_code='0', job_id='474876', GAL2='0.95', EG2='1.05', return_code2='0', energy_flux_error='3.95e-05', photon_flux_error2='7.35e-08', ts2='229.95', photon_index='1.99' WHERE bin_id='590' AND source_name='4FGL J0428.6-3756' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 20 17:10:08 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0298>
Subject: Job 474876: <4FGL_J0428.6-3756_daily_bin590> in cluster <slac> Done

Job <4FGL_J0428.6-3756_daily_bin590> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Fri Aug 20 16:55:51 2021
Job was executed on host(s) <bullet0298>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Aug 20 16:55:52 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:55:52 2021
Terminated at Fri Aug 20 17:10:09 2021
Results reported at Fri Aug 20 17:10:09 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0428.6-3756_daily_bin590 67.173 -37.9403 392256001 392515201 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 :                                   837.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             375.88 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   856 sec.
    Turnaround time :                            858 sec.

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

