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


Performing analysis on: 4FGL_J0428.6-3756_daily_bin400
RA = 67.173, Dec = -37.9403
tmin = 343008001, tmax = 343267201
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='473419', job_status='RUN', time_executed='2021-08-20 16:52:35.705972', time_epoch_executed='1629503555.71' WHERE source_name='4FGL J0428.6-3756' and cadence='daily' and bin_id='400'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/473419

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/473419/ft1_4FGL_J0428.6-3756_daily_bin400.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/473419/ft2_4FGL_J0428.6-3756_daily_bin400.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/473419/ft1_4FGL_J0428.6-3756_daily_bin400.fits outfile=/scratch/kocevski/473419/ft1_filteredMKT_4FGL_J0428.6-3756_daily_bin400.fits ra=67.173 dec=-37.9403 rad=12.0 tmin=343008001.0 tmax=343267201.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 9.94
user 3.60
sys 6.28

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/473419/ft1_filtered_4FGL_J0428.6-3756_daily_bin400.fits" evtable="EVENTS" scfile=/scratch/kocevski/473419/ft2_4FGL_J0428.6-3756_daily_bin400.fits sctable="SC_DATA" outfile=/scratch/kocevski/473419/ltcube_343008001_343267201_4FGL_J0428.6-3756_daily_bin400.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/473419/ft2_4FGL_J0428.6-3756_daily_bin400.fits
.....................!
real 18.07
user 11.04
sys 6.98

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/473419/ft1_filtered_4FGL_J0428.6-3756_daily_bin400.fits evtable="EVENTS" scfile=/scratch/kocevski/473419/ft2_4FGL_J0428.6-3756_daily_bin400.fits sctable="SC_DATA" expcube=/scratch/kocevski/473419/ltcube_343008001_343267201_4FGL_J0428.6-3756_daily_bin400.fits outfile=/scratch/kocevski/473419/expmap_343008001_343267201_4FGL_J0428.6-3756_daily_bin400.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/473419/ltcube_343008001_343267201_4FGL_J0428.6-3756_daily_bin400.fits
.....................!
real 199.45
user 187.28
sys 11.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/473419/ft1_filtered_4FGL_J0428.6-3756_daily_bin400.fits scfile=/scratch/kocevski/473419/ft2_4FGL_J0428.6-3756_daily_bin400.fits outfile=/scratch/kocevski/473419/cmap_343008001_343267201_4FGL_J0428.6-3756_daily_bin400.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.52
user 0.36
sys 6.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/473419/ft1_filtered_4FGL_J0428.6-3756_daily_bin400.fits scfile=/scratch/kocevski/473419/ft2_4FGL_J0428.6-3756_daily_bin400.fits outfile=/scratch/kocevski/473419/cmap_HighResolution_343008001_343267201_4FGL_J0428.6-3756_daily_bin400.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 6.43
user 0.40
sys 6.01

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/473419/ft1_filtered_4FGL_J0428.6-3756_daily_bin400.fits evtable="EVENTS" scfile=/scratch/kocevski/473419/ft2_4FGL_J0428.6-3756_daily_bin400.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/473419/Model_4FGL_J0428.6-3756_daily_bin400.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/473419/ft1_filtered_4FGL_J0428.6-3756_daily_bin400.fits.....................!
real 91.42
user 82.92
sys 8.29

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    15.905       1.0000         .10000E-03   10000.    
     4 'Prefactor '    57.918       1.0000         .10000E-03   10000.    
     5 'norm      '    1.2694       1.0000         .10000E-03   10000.    
     6 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    79.128       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    1.0535       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    13.698       1.0000         .10000E-03   10000.    
    13 'norm      '    .52398E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    4.4666       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    11.862       1.0000         .10000E-03   10000.    
    18 'norm      '    11.036       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .11186E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    6.8781       1.0000         .10000E-03   10000.    
    21 'Prefactor '    128.48       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    8.8477       1.0000         .10000E-03   10000.    
    24 'norm      '    5.2594       1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.2147       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .54805       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=   3838.118     FROM MIGRAD    STATUS=CONVERGED     85 CALLS     3055 TOTAL
                     EDM=   .86E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    1.4051       -.12188E-06** at limit **
   2  norm          .10000E-03    .57468       -.17128E-06** at limit **
   3  Prefactor     15.898        2.7330        .34252E-05   -.36407E-02
   4  Prefactor     57.926        1.8268        .89763E-06   -.42315E-02
   5  norm          1.2694        .52332       -.41934E-07   -.91028E-03
   6  norm          .10001E-03    6.6007        .73765E-05** at limit **
   7  Prefactor     79.119        1.8061       -.59224E-06    .36462E-02
   8  Prefactor     .10000E-03    6.1438       -.22464E-05** at limit **
   9  Prefactor     .10004E-03    5.6492        .25855E-05** at limit **
  10  norm          1.0534        .64817        .12148E-07    .17472E-03
  11  Prefactor     .10000E-03    2.0147        .97689E-07** at limit **
  12  norm          13.692        9.9285        .16288E-04   -.20985E-02
  13  norm          .32601E-03    1.3644       -.84528E-05** at limit **
  14  norm          4.4667        2.2325       -.12935E-05   -.87644E-03
  15  Prefactor     .10000E-03    3.3451       -.42002E-06** at limit **
  16  Prefactor     .10008E-03    3.5751       -.81608E-05** at limit **
  17  norm          11.864        1.7485       -.24643E-05   -.37502E-02
  18  norm          11.036        1.4641       -.15945E-05   -.23326E-02
  19  Prefactor     .10001E-03    207.70       -.18922E-04** at limit **
  20  Prefactor     6.8766        2.4479        .49838E-05    .35774E-02
  21  Prefactor     128.48        1.0570        .12721E-06   -.13173E-02
  22  Prefactor     .10000E-03    1.5261        .30839E-06** at limit **
  23  Prefactor     8.8471        1.0941       -.13415E-06   -.16778E-03
  24  norm          5.2591        3.1047       -.17511E-05   -.57864E-03
  25  Normalizat    1.2145        .26433       -.22887E-05   -.23982E-03
  26  Prefactor     .54830        .25897       -.57483E-07   -.15674E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 15.8976
  Prefactor  = 57.9256
  norm       = 1.26935
  norm       = 0.000100013
  Prefactor  = 79.1191
  Prefactor  = 0.0001
  Prefactor  = 0.000100039
  norm       = 1.05339
  Prefactor  = 0.0001
  norm       = 13.6916
  norm       = 0.000326014
  norm       = 4.46667
  Prefactor  = 0.0001
  Prefactor  = 0.000100081
  norm       = 11.8643
  norm       = 11.0355
  Prefactor  = 0.000100009
  Prefactor  = 6.8766
  Prefactor  = 128.48
  Prefactor  = 0.0001
  Prefactor  = 8.8471
  norm       = 5.25911
  Normalizat = 1.21454
  Prefactor  = 0.548303
 **********
 **   18 **HESSE 
 **********

 FCN=   3838.118     FROM HESSE     STATUS=OK           512 CALLS     3567 TOTAL
                     EDM=   .11E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    1.4021        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    .54710        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     15.898        18.699        .25107E-02   -1.4910    
   4  Prefactor     57.926        167.07        .13179E-02   -1.4184    
   5  norm          1.2694        .52892        .61412E-02   -1.5483    
   6  norm          .10001E-03    6.9810        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     79.119        51.451        .11287E-02   -1.3927    
   8  Prefactor     .10000E-03    6.1469        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10004E-03    7.9746        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          1.0534        .65794        .85349E-02   -1.5503    
  11  Prefactor     .10000E-03    1.9876        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          13.692        11.371        .27056E-02   -1.4968    
  13  norm          .32601E-03    1221.4        .10567E-01   -1.5705    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          4.4667        2.2566        .47631E-02   -1.5285    
  15  Prefactor     .10000E-03    3.2406        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10008E-03    7.7695        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          11.864        6.8581        .29079E-02   -1.5019    
  18  norm          11.036        6.4439        .30149E-02   -1.5043    
  19  Prefactor     .10001E-03    207.55        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     6.8766        7.0594        .38245E-02   -1.5183    
  21  Prefactor     128.48        68.714        .88797E-03   -1.3436    
  22  Prefactor     .10000E-03    1.5132        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     8.8471        5.3563        .33688E-02   -1.5113    
  24  norm          5.2591        3.2090        .43817E-02   -1.5249    
  25  Normalizat    1.2145        .23595        .53443E-01   -.86155    
  26  Prefactor     .54830        .22498        .75820E-01   -1.0981    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.14107e-06
Minuit parameter uncertainties:
  1  1.23238e-05
  2  7.64368e-06
  3  18.7058
  4  168.445
  5  0.528926
  6  0.000612408
  7  51.4799
  8  8.35771e-05
  9  0.0011216
  10  0.657948
  11  2.92811e-05
  12  11.3732
  13  1.07349
  14  2.25669
  15  1.22829e-06
  16  0.00158757
  17  6.85852
  18  6.44433
  19  0.0027501
  20  7.06028
  21  68.7571
  22  2.33774e-05
  23  5.3566
  24  3.20908
  25  0.236156
  26  0.225348
Done.

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

Extracting fit parameters...

4FGL J0428.6-3756
   Spectrum: LogParabola
257         norm:  1.053e+00  6.579e-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:  5.483e-01  2.253e-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.215e+00  2.362e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.46
Ra Dec: 67.173 -37.940
Photon Index (Fixed Index): 1.99 +/- 0.00
Photon Flux (Fixed Index): 5.79e-08 +/- 3.62e-08
Energy Flux (Fixed Index): 3.33e-05 +/- 2.08e-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) = 3838.04224284
delta logL = 0.0758595526759

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3838.0354969
delta logL = 0.0826054898348

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .98334       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.2243       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2003       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .55730       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=   3838.035     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      207 TOTAL
                     EDM=   .74E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .98344        14.674        .80405E-02    .15540E-03
   2  alpha         2.2242        3.0808        .28477        .16070E-04
   3  Normalizat    1.2002        .12397        .53710E-01    .13643E-05
   4  Prefactor     .55741        .10970        .75245E-01    .18581E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.983435
  alpha      = 2.22417
  Normalizat = 1.20021
  Prefactor  = 0.557408
 **********
 **   18 **HESSE 
 **********

 FCN=   3838.035     FROM HESSE     STATUS=OK            33 CALLS      240 TOTAL
                     EDM=   .23E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .98344        .65888        .35958E-04   -1.5510    
   2  alpha         2.2242        .58286        .11320E-01   -.11056    
   3  Normalizat    1.2002        .26184        .23748E-03   -.86596    
   4  Prefactor     .55741        .25813        .33319E-03   -1.0941    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.34886e-10
Minuit parameter uncertainties:
  1  0.658889
  2  0.588339
  3  0.262129
  4  0.258679
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/473419': 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) = 3838.03549677
delta logL = 0.0826056210394

Extracting fit parameters...

4FGL J0428.6-3756
   Spectrum: LogParabola
257         norm:  9.834e-01  6.589e-01  1.000e-04  1.000e+04 ( 1.000e-11)
258        alpha:  2.224e+00  5.883e-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:  5.574e-01  2.587e-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.200e+00  2.621e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.56
Ra Dec: 67.173 -37.940
Photon Index (Free Index): 2.22 +/- 0.59
Photon Flux (Free Index): 7.02e-08 +/- 5.15e-08
Energy Flux (Free Index): 2.83e-05 +/- 1.99e-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/473419/cmap_HighResolution_343008001_343267201_4FGL_J0428.6-3756_daily_bin400.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='5.79e-08', energy_flux2='2.83e-05', photon_flux_error='3.62e-08', dlogl='8.26e-02', energy_flux='3.33e-05', photon_flux2='7.02e-08', job_status='DONE', time_completed='2021-08-20 17:03:26.506429', photon_index_error2='0.59', photon_index2='2.22', ts='5.46', fit_tolerance='1e-08', GAL='0.55', photon_index_error='0.00', energy_flux_error2='1.99e-05', EG='1.21', time_epoch_completed='1629504206.51', return_code='0', job_id='473419', GAL2='0.56', EG2='1.20', return_code2='0', energy_flux_error='2.08e-05', photon_flux_error2='5.15e-08', ts2='5.56', photon_index='1.99' WHERE bin_id='400' AND source_name='4FGL J0428.6-3756' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 20 17:03:26 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0015>
Subject: Job 473419: <4FGL_J0428.6-3756_daily_bin400> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0428.6-3756_daily_bin400 67.173 -37.9403 343008001 343267201 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 :                                   745.34 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             304.87 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   766 sec.
    Turnaround time :                            767 sec.

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

