/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 5 seconds before starting...
Proceeding.

Importing modules...
This is make3FGLxml version 01r0.
The default diffuse model files and names are for pass 8 and assume you have v10r00p05 of the Fermi Science Tools or higher.
This is make4FGLxml version 01r04.
The default diffuse model files and names are for pass 8 and 4FGL and assume you have v11r5p3 of the Fermi Science Tools or higher.

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/cbook/deprecation.py:106: MatplotlibDeprecationWarning: The mpl_toolkits.axes_grid module was deprecated in version 2.1. Use mpl_toolkits.axes_grid1 and mpl_toolkits.axisartist provies the same functionality instead.
  warnings.warn(message, mplDeprecation, stacklevel=1)

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

number of points = 7404
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J0428.6-3756_daily_bin153
RA = 67.173, Dec = -37.9403
tmin = 278985601, tmax = 279244801
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='471957', job_status='RUN', time_executed='2021-08-20 16:48:36.512127', time_epoch_executed='1629503316.51' WHERE source_name='4FGL J0428.6-3756' and cadence='daily' and bin_id='153'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/471957

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/471957/ft1_4FGL_J0428.6-3756_daily_bin153.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/471957/ft2_4FGL_J0428.6-3756_daily_bin153.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/471957/ft1_4FGL_J0428.6-3756_daily_bin153.fits outfile=/scratch/kocevski/471957/ft1_filteredMKT_4FGL_J0428.6-3756_daily_bin153.fits ra=67.173 dec=-37.9403 rad=12.0 tmin=278985601.0 tmax=279244801.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 12.43
user 3.52
sys 8.78

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/471957/ft1_filtered_4FGL_J0428.6-3756_daily_bin153.fits" evtable="EVENTS" scfile=/scratch/kocevski/471957/ft2_4FGL_J0428.6-3756_daily_bin153.fits sctable="SC_DATA" outfile=/scratch/kocevski/471957/ltcube_278985601_279244801_4FGL_J0428.6-3756_daily_bin153.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/471957/ft2_4FGL_J0428.6-3756_daily_bin153.fits
.....................!
real 23.31
user 11.75
sys 10.06

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/471957/ft1_filtered_4FGL_J0428.6-3756_daily_bin153.fits evtable="EVENTS" scfile=/scratch/kocevski/471957/ft2_4FGL_J0428.6-3756_daily_bin153.fits sctable="SC_DATA" expcube=/scratch/kocevski/471957/ltcube_278985601_279244801_4FGL_J0428.6-3756_daily_bin153.fits outfile=/scratch/kocevski/471957/expmap_278985601_279244801_4FGL_J0428.6-3756_daily_bin153.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/471957/ltcube_278985601_279244801_4FGL_J0428.6-3756_daily_bin153.fits
.....................!
real 202.21
user 185.54
sys 15.94

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/471957/ft1_filtered_4FGL_J0428.6-3756_daily_bin153.fits scfile=/scratch/kocevski/471957/ft2_4FGL_J0428.6-3756_daily_bin153.fits outfile=/scratch/kocevski/471957/cmap_278985601_279244801_4FGL_J0428.6-3756_daily_bin153.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 9.04
user 0.37
sys 8.34

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/471957/ft1_filtered_4FGL_J0428.6-3756_daily_bin153.fits scfile=/scratch/kocevski/471957/ft2_4FGL_J0428.6-3756_daily_bin153.fits outfile=/scratch/kocevski/471957/cmap_HighResolution_278985601_279244801_4FGL_J0428.6-3756_daily_bin153.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 9.05
user 0.34
sys 8.33

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/471957/ft1_filtered_4FGL_J0428.6-3756_daily_bin153.fits evtable="EVENTS" scfile=/scratch/kocevski/471957/ft2_4FGL_J0428.6-3756_daily_bin153.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/471957/Model_4FGL_J0428.6-3756_daily_bin153.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/471957/ft1_filtered_4FGL_J0428.6-3756_daily_bin153.fits.....................!
real 110.15
user 97.16
sys 12.44

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    6.4579       1.0000         .10000E-03   10000.    
     2 'norm      '    1.4353       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    80.760       1.0000         .10000E-03   10000.    
     5 'norm      '    .91664       1.0000         .10000E-03   10000.    
     6 'norm      '    .85489       1.0000         .10000E-03   10000.    
     7 'Prefactor '    12.248       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .29964E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    17.488       1.0000         .10000E-03   10000.    
    10 'norm      '    1.0954       1.0000         .10000E-03   10000.    
    11 'Prefactor '    5.5132       1.0000         .10000E-03   10000.    
    12 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    3.9154       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .23987       1.0000         .10000E-03   10000.    
    16 'Prefactor '    2.1676       1.0000         .10000E-03   10000.    
    17 'norm      '    2.8299       1.0000         .10000E-03   10000.    
    18 'norm      '    4.0922       1.0000         .10000E-03   10000.    
    19 'Prefactor '    3.2916       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .77735       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10041E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    1.0346       1.0000         .10000E-03   10000.    
    24 'norm      '    6.7763       1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.6154       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .48999       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=   4510.804     FROM MIGRAD    STATUS=CONVERGED    640 CALLS     3173 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          6.4577        4.1651       -.30182E-06   -.58220E-03
   2  norm          1.4353        1.0523        .66507E-07   -.13355E-03
   3  Prefactor     .10000E-03    6.9058       -.87888E-08** at limit **
   4  Prefactor     80.764        129.29        .18282E-05   -.34785E-05
   5  norm          .91678        .51520       -.10706E-06   -.33749E-02
   6  norm          .85515        9.7924        .22519E-05   -.35150E-03
   7  Prefactor     12.262        37.973        .44812E-05    .78930E-04
   8  Prefactor     .10055E-03    23.309        .37646E-05** at limit **
   9  Prefactor     17.499        15.020        .99932E-07   -.40213E-03
  10  norm          1.0954        .71161       -.26712E-06   -.28740E-02
  11  Prefactor     5.5093        4.1177       -.11985E-06   -.71223E-03
  12  norm          .10000E-03    4.4653        .65292E-07** at limit **
  13  norm          .10000E-03    123.68       -.24300E-05** at limit **
  14  norm          3.9111        2.2237       -.58485E-07   -.59149E-03
  15  Prefactor     .25767        2.7449        .65967E-06   -.50455E-03
  16  Prefactor     2.1661        26.174        .37331E-06   -.75867E-04
  17  norm          2.8300        3.2230        .62690E-07   -.16957E-03
  18  norm          4.0864        5.9188        .50476E-06    .10221E-04
  19  Prefactor     3.2819        116.60       -.41732E-05   -.59163E-04
  20  Prefactor     .77830        5.7311        .23910E-05   -.66470E-03
  21  Prefactor     .10000E-03    67.738        .13800E-05** at limit **
  22  Prefactor     .10000E-03    1.6577       -.88586E-08** at limit **
  23  Prefactor     1.0334        6.3172        .19151E-05   -.76621E-04
  24  norm          6.7770        4.1588       -.82887E-07   -.49997E-03
  25  Normalizat    1.6153        .25916       -.32834E-05   -.73675E-03
  26  Prefactor     .49010        .23767        .15044E-05   -.45057E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 6.45771
  norm       = 1.4353
  Prefactor  = 0.0001
  Prefactor  = 80.7644
  norm       = 0.916779
  norm       = 0.855155
  Prefactor  = 12.2623
  Prefactor  = 0.000100547
  Prefactor  = 17.4991
  norm       = 1.09541
  Prefactor  = 5.50931
  norm       = 0.0001
  norm       = 0.000100002
  norm       = 3.91107
  Prefactor  = 0.257671
  Prefactor  = 2.16607
  norm       = 2.83002
  norm       = 4.08641
  Prefactor  = 3.28192
  Prefactor  = 0.778299
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 1.03338
  norm       = 6.77697
  Normalizat = 1.61528
  Prefactor  = 0.4901
 **********
 **   18 **HESSE 
 **********

 FCN=   4510.804     FROM HESSE     STATUS=OK           468 CALLS     3641 TOTAL
                     EDM=   .78E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          6.4577        4.1865        .10750E-03   -1.5200    
   2  norm          1.4353        1.0493        .57059E-04   -1.5468    
   3  Prefactor     .10000E-03    6.9128        .17238E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     80.764        129.37        .44692E-04   -1.3908    
   5  norm          .91678        .51374        .32645E-04   -1.5516    
   6  norm          .85515        18.969        .36530E-02   -1.5523    
   7  Prefactor     12.262        38.235        .11446E-03   -1.5007    
   8  Prefactor     .10055E-03    145.33        .53287E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     17.499        14.731        .95775E-04   -1.4871    
  10  norm          1.0954        .71765        .40570E-04   -1.5499    
  11  Prefactor     5.5093        4.1190        .10513E-03   -1.5238    
  12  norm          .10000E-03    4.4738        .13856E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    124.00        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          3.9111        2.3936        .66504E-04   -1.5312    
  15  Prefactor     .25767        18.703        .16959E-02   -1.5606    
  16  Prefactor     2.1661        25.492        .27972E-03   -1.5414    
  17  norm          2.8300        3.2139        .12471E-03   -1.5372    
  18  norm          4.0864        5.8908        .16948E-03   -1.5304    
  19  Prefactor     3.2819        118.34        .22317E-03   -1.5346    
  20  Prefactor     .77830        14.828        .27274E-02   -1.5532    
  21  Prefactor     .10000E-03    68.064        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    1.7037        .16881E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     1.0334        6.1953        .30021E-03   -1.5505    
  24  norm          6.7770        4.0838        .95357E-04   -1.5187    
  25  Normalizat    1.6153        .29080        .22844E-03   -.74589    
  26  Prefactor     .49010        .26439        .38279E-03   -1.1243    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.82955e-09
Minuit parameter uncertainties:
  1  4.18666
  2  1.04933
  3  3.96428e-06
  4  129.822
  5  0.513743
  6  8.05766
  7  38.3113
  8  0.0178743
  9  14.734
  10  0.717656
  11  4.11918
  12  4.45914e-06
  13  0.00108228
  14  2.39363
  15  4.39114
  16  14.8693
  17  3.2141
  18  5.89164
  19  39.4995
  20  6.79586
  21  0.000509458
  22  1.00457e-06
  23  5.06103
  24  4.08399
  25  0.291108
  26  0.265051
Done.

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

Extracting fit parameters...

4FGL J0428.6-3756
   Spectrum: LogParabola
257         norm:  1.095e+00  7.177e-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:  4.901e-01  2.651e-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.615e+00  2.911e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 9.75
Ra Dec: 67.173 -37.940
Photon Index (Fixed Index): 1.99 +/- 0.00
Photon Flux (Fixed Index): 6.03e-08 +/- 3.95e-08
Energy Flux (Fixed Index): 3.46e-05 +/- 2.27e-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) = 4510.7809654
delta logL = 0.0231446207981

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4510.77983457
delta logL = 0.0242754566098

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.1109       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.1231       1.0000          .0000       5.0000    
     3 'Normalizat'    1.6065       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .49405       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=   4510.780     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      202 TOTAL
                     EDM=   .29E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.1108        15.456        .89995E-02   -.42789E-03
   2  alpha         2.1235        2.8956        .33855        .81887E-05
   3  Normalizat    1.6064        .15039        .51771E-01    .40533E-06
   4  Prefactor     .49412        .10630        .86036E-01    .27721E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.11082
  alpha      = 2.12347
  Normalizat = 1.60638
  Prefactor  = 0.494115
 **********
 **   18 **HESSE 
 **********

 FCN=   4510.780     FROM HESSE     STATUS=OK            33 CALLS      235 TOTAL
                     EDM=   .82E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.1108        .64645        .39608E-04   -1.5497    
   2  alpha         2.1235        .57248        .12527E-01   -.15119    
   3  Normalizat    1.6064        .26411        .22887E-03   -.74831    
   4  Prefactor     .49412        .25606        .38122E-03   -1.1225    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.22473e-11
Minuit parameter uncertainties:
  1  0.646457
  2  0.577727
  3  0.264337
  4  0.25666
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/471957': 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) = 4510.77983435
delta logL = 0.0242756691332

Extracting fit parameters...

4FGL J0428.6-3756
   Spectrum: LogParabola
257         norm:  1.111e+00  6.465e-01  1.000e-04  1.000e+04 ( 1.000e-11)
258        alpha:  2.123e+00  5.777e-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:  4.941e-01  2.567e-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.606e+00  2.643e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 9.82
Ra Dec: 67.173 -37.940
Photon Index (Free Index): 2.12 +/- 0.58
Photon Flux (Free Index): 7.04e-08 +/- 6.12e-08
Energy Flux (Free Index): 3.27e-05 +/- 2.04e-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/471957/cmap_HighResolution_278985601_279244801_4FGL_J0428.6-3756_daily_bin153.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='6.03e-08', energy_flux2='3.27e-05', photon_flux_error='3.95e-08', dlogl='2.43e-02', energy_flux='3.46e-05', photon_flux2='7.04e-08', job_status='DONE', time_completed='2021-08-20 17:01:08.754964', photon_index_error2='0.58', photon_index2='2.12', ts='9.75', fit_tolerance='1e-08', GAL='0.49', photon_index_error='0.00', energy_flux_error2='2.04e-05', EG='1.62', time_epoch_completed='1629504068.76', return_code='0', job_id='471957', GAL2='0.49', EG2='1.61', return_code2='0', energy_flux_error='2.27e-05', photon_flux_error2='6.12e-08', ts2='9.82', photon_index='1.99' WHERE bin_id='153' AND source_name='4FGL J0428.6-3756' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 20 17:01:08 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0249>
Subject: Job 471957: <4FGL_J0428.6-3756_daily_bin153> in cluster <slac> Done

Job <4FGL_J0428.6-3756_daily_bin153> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Fri Aug 20 16:45:58 2021
Job was executed on host(s) <bullet0249>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Aug 20 16:45:59 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:45:59 2021
Terminated at Fri Aug 20 17:01:11 2021
Results reported at Fri Aug 20 17:01:11 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0428.6-3756_daily_bin153 67.173 -37.9403 278985601 279244801 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 :                                   879.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             275.17 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   911 sec.
    Turnaround time :                            913 sec.

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

