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


Performing analysis on: 4FGL_J0428.6-3756_daily_bin1337
RA = 67.173, Dec = -37.9403
tmin = 585878401, tmax = 586137601
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='481222', job_status='RUN', time_executed='2021-08-20 17:11:03.572220', time_epoch_executed='1629504663.57' WHERE source_name='4FGL J0428.6-3756' and cadence='daily' and bin_id='1337'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/481222

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/481222/ft1_4FGL_J0428.6-3756_daily_bin1337.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/481222/ft2_4FGL_J0428.6-3756_daily_bin1337.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/481222/ft1_4FGL_J0428.6-3756_daily_bin1337.fits outfile=/scratch/kocevski/481222/ft1_filteredMKT_4FGL_J0428.6-3756_daily_bin1337.fits ra=67.173 dec=-37.9403 rad=12.0 tmin=585878401.0 tmax=586137601.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.73
user 2.59
sys 1.09

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/481222/ft1_filtered_4FGL_J0428.6-3756_daily_bin1337.fits" evtable="EVENTS" scfile=/scratch/kocevski/481222/ft2_4FGL_J0428.6-3756_daily_bin1337.fits sctable="SC_DATA" outfile=/scratch/kocevski/481222/ltcube_585878401_586137601_4FGL_J0428.6-3756_daily_bin1337.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/481222/ft2_4FGL_J0428.6-3756_daily_bin1337.fits
.....................!
real 13.58
user 12.18
sys 1.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/481222/ft1_filtered_4FGL_J0428.6-3756_daily_bin1337.fits evtable="EVENTS" scfile=/scratch/kocevski/481222/ft2_4FGL_J0428.6-3756_daily_bin1337.fits sctable="SC_DATA" expcube=/scratch/kocevski/481222/ltcube_585878401_586137601_4FGL_J0428.6-3756_daily_bin1337.fits outfile=/scratch/kocevski/481222/expmap_585878401_586137601_4FGL_J0428.6-3756_daily_bin1337.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/481222/ltcube_585878401_586137601_4FGL_J0428.6-3756_daily_bin1337.fits
.....................!
real 192.10
user 186.10
sys 5.60

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/481222/ft1_filtered_4FGL_J0428.6-3756_daily_bin1337.fits scfile=/scratch/kocevski/481222/ft2_4FGL_J0428.6-3756_daily_bin1337.fits outfile=/scratch/kocevski/481222/cmap_585878401_586137601_4FGL_J0428.6-3756_daily_bin1337.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.47
user 0.38
sys 1.03

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/481222/ft1_filtered_4FGL_J0428.6-3756_daily_bin1337.fits scfile=/scratch/kocevski/481222/ft2_4FGL_J0428.6-3756_daily_bin1337.fits outfile=/scratch/kocevski/481222/cmap_HighResolution_585878401_586137601_4FGL_J0428.6-3756_daily_bin1337.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.44
user 0.40
sys 1.02

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/481222/ft1_filtered_4FGL_J0428.6-3756_daily_bin1337.fits evtable="EVENTS" scfile=/scratch/kocevski/481222/ft2_4FGL_J0428.6-3756_daily_bin1337.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/481222/Model_4FGL_J0428.6-3756_daily_bin1337.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/481222/ft1_filtered_4FGL_J0428.6-3756_daily_bin1337.fits.....................!
real 149.52
user 146.73
sys 2.44

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    1.3241       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .88910       1.0000         .10000E-03   10000.    
     4 'Prefactor '    54.667       1.0000         .10000E-03   10000.    
     5 'norm      '    .22349       1.0000         .10000E-03   10000.    
     6 'norm      '    20.359       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10163E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    3.9615       1.0000         .10000E-03   10000.    
    10 'norm      '    2.6125       1.0000         .10000E-03   10000.    
    11 'Prefactor '    4.7979       1.0000         .10000E-03   10000.    
    12 'norm      '    10.985       1.0000         .10000E-03   10000.    
    13 'norm      '    95.633       1.0000         .10000E-03   10000.    
    14 'norm      '    4.5688       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .86303E-01   1.0000         .10000E-03   10000.    
    16 'Prefactor '    31.950       1.0000         .10000E-03   10000.    
    17 'norm      '    17.852       1.0000         .10000E-03   10000.    
    18 'norm      '    1.4877       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .14021E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    28.574       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10122E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    10.916       1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.5096       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .82312       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=   6972.296     FROM MIGRAD    STATUS=CONVERGED     79 CALLS     2602 TOTAL
                     EDM=   .68E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  7.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    2.0235        .86263E-06** at limit **
   2  norm          1.3242        1.0938        .12072E-07   -.17685E-04
   3  Prefactor     .84541        2.6681        .41442E-06   -.13652E-03
   4  Prefactor     54.663        2.4941       -.55386E-06    .60185E-02
   5  norm          .22401        .41768       -.32036E-07    .19975E-04
   6  norm          20.357        1.0311       -.76205E-07   -.20457E-03
   7  Prefactor     .10001E-03    41.987       -.58702E-05** at limit **
   8  Prefactor     .10000E-03    4.7753        .10589E-05** at limit **
   9  Prefactor     3.9615        1.0164        .75198E-07   -.12209E-03
  10  norm          2.6126        .72584       -.23054E-07   -.32123E-03
  11  Prefactor     4.7970        2.1761        .13203E-05    .19793E-02
  12  norm          10.981        2.6486        .11725E-05    .91146E-04
  13  norm          95.632        1.0367       -.53146E-07    .10941E-02
  14  norm          4.5649        1.9014       -.86827E-07   -.33237E-03
  15  Prefactor     .98956E-01    1.9108       -.26327E-05    .52058E-03
  16  Prefactor     31.953        1.1407       -.29306E-07    .20472E-02
  17  norm          17.855        4.4684       -.54116E-06    .82367E-02
  18  norm          1.4844        4.2213        .49287E-05    .23790E-02
  19  Prefactor     .10003E-03    21.293        .80617E-05** at limit **
  20  Prefactor     .10003E-03    21.545       -.10075E-04** at limit **
  21  Prefactor     28.571        2.0185       -.57969E-06    .31761E-02
  22  Prefactor     .10000E-03    1.8959        .92161E-06** at limit **
  23  Prefactor     .10000E-03    2.2197        .18018E-05** at limit **
  24  norm          10.916        2.4949        .12410E-05    .24651E-02
  25  Normalizat    1.5092        .23895       -.18638E-05   -.25965E-04
  26  Prefactor     .82351        .23804        .11066E-05   -.27699E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 1.3242
  Prefactor  = 0.845414
  Prefactor  = 54.6626
  norm       = 0.224009
  norm       = 20.3568
  Prefactor  = 0.000100007
  Prefactor  = 0.0001
  Prefactor  = 3.96155
  norm       = 2.61257
  Prefactor  = 4.79701
  norm       = 10.9807
  norm       = 95.6321
  norm       = 4.56489
  Prefactor  = 0.0989559
  Prefactor  = 31.9532
  norm       = 17.8551
  norm       = 1.48443
  Prefactor  = 0.000100034
  Prefactor  = 0.000100027
  Prefactor  = 28.5707
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 10.9162
  Normalizat = 1.50917
  Prefactor  = 0.823506
 **********
 **   18 **HESSE 
 **********

 FCN=   6972.296     FROM HESSE     STATUS=OK           536 CALLS     3138 TOTAL
                     EDM=   .16E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    1.9901        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          1.3242        1.0983        .95530E-03   -1.5478    
   3  Prefactor     .84541        11.797        .12768       -1.5524    
   4  Prefactor     54.663        136.82        .13563E-02   -1.4228    
   5  norm          .22401        .44920        .14881E-01   -1.5613    
   6  norm          20.357        10.885        .22192E-02   -1.4805    
   7  Prefactor     .10001E-03    43.475        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    4.7711        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     3.9615        10.482        .50665E-02   -1.5310    
  10  norm          2.6126        .81629        .63091E-02   -1.5385    
  11  Prefactor     4.7970        3.2741        .45918E-02   -1.5270    
  12  norm          10.981        10.171        .30220E-02   -1.5045    
  13  norm          95.632        201.26        .10275E-02   -1.3749    
  14  norm          4.5649        2.1081        .47082E-02   -1.5281    
  15  Prefactor     .98956E-01    1.5199        .66415E-01   -1.5645    
  16  Prefactor     31.953        19.925        .17722E-02   -1.4577    
  17  norm          17.855        6.2703        .23698E-02   -1.4863    
  18  norm          1.4844        5.6575        .87899E-02   -1.5464    
  19  Prefactor     .10003E-03    26.926        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10003E-03    5.3949        .67382E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     28.571        51.814        .18737E-02   -1.4638    
  22  Prefactor     .10000E-03    1.1499        .36005E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    2.1984        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          10.916        3.2190        .30315E-02   -1.5047    
  25  Normalizat    1.5092        .21551        .58718E-01   -.77521    
  26  Prefactor     .82351        .20715        .78930E-01   -.98868    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.58948e-06
Minuit parameter uncertainties:
  1  7.45829e-07
  2  1.09837
  3  6.31716
  4  137.621
  5  0.449203
  6  10.8862
  7  0.00106864
  8  6.6839e-06
  9  10.4864
  10  0.816292
  11  3.2742
  12  10.1724
  13  202.724
  14  2.10812
  15  0.775262
  16  19.9289
  17  6.27057
  18  5.65952
  19  0.00192366
  20  0.000762087
  21  51.8961
  22  5.80689e-06
  23  1.29636e-05
  24  3.21908
  25  0.215643
  26  0.207344
Done.

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

Extracting fit parameters...

4FGL J0428.6-3756
   Spectrum: LogParabola
257         norm:  2.613e+00  8.163e-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:  8.235e-01  2.073e-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.509e+00  2.156e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 47.20
Ra Dec: 67.173 -37.940
Photon Index (Fixed Index): 1.99 +/- 0.00
Photon Flux (Fixed Index): 1.44e-07 +/- 4.49e-08
Energy Flux (Fixed Index): 8.25e-05 +/- 2.58e-05

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6972.27252883
delta logL = 0.0235006260264

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6972.26888145
delta logL = 0.0271480081519

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.5699       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.0582       1.0000          .0000       5.0000    
     3 'Normalizat'    1.5012       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .82817       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=   6972.269     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      227 TOTAL
                     EDM=   .25E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.5705        10.232        .63655E-02   -.47414E-04
   2  alpha         2.0585        3.5262        .19131        .31285E-04
   3  Normalizat    1.5010        .32937        .58832E-01    .13381E-04
   4  Prefactor     .82829        .26626        .78716E-01    .30492E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 2.57051
  alpha      = 2.05846
  Normalizat = 1.50102
  Prefactor  = 0.828293
 **********
 **   18 **HESSE 
 **********

 FCN=   6972.269     FROM HESSE     STATUS=OK            33 CALLS      260 TOTAL
                     EDM=   .22E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.5705        .74229        .35506E-04   -1.5387    
   2  alpha         2.0585        .27446        .80095E-02   -.17755    
   3  Normalizat    1.5010        .23032        .26016E-03   -.77750    
   4  Prefactor     .82829        .23573        .34844E-03   -.98694    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.2266e-10
Minuit parameter uncertainties:
  1  0.742289
  2  0.275032
  3  0.230477
  4  0.23602
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/481222': 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) = 6972.26888042
delta logL = 0.027149034283

Extracting fit parameters...

4FGL J0428.6-3756
   Spectrum: LogParabola
257         norm:  2.571e+00  7.423e-01  1.000e-04  1.000e+04 ( 1.000e-11)
258        alpha:  2.058e+00  2.750e-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:  8.283e-01  2.360e-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.501e+00  2.305e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 47.14
Ra Dec: 67.173 -37.940
Photon Index (Free Index): 2.06 +/- 0.28
Photon Flux (Free Index): 1.51e-07 +/- 5.26e-08
Energy Flux (Free Index): 7.80e-05 +/- 2.83e-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/481222/cmap_HighResolution_585878401_586137601_4FGL_J0428.6-3756_daily_bin1337.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.44e-07', energy_flux2='7.80e-05', photon_flux_error='4.49e-08', dlogl='2.71e-02', energy_flux='8.25e-05', photon_flux2='1.51e-07', job_status='DONE', time_completed='2021-08-20 17:23:48.310447', photon_index_error2='0.28', photon_index2='2.06', ts='47.20', fit_tolerance='1e-08', GAL='0.82', photon_index_error='0.00', energy_flux_error2='2.83e-05', EG='1.51', time_epoch_completed='1629505428.31', return_code='0', job_id='481222', GAL2='0.83', EG2='1.50', return_code2='0', energy_flux_error='2.58e-05', photon_flux_error2='5.26e-08', ts2='47.14', photon_index='1.99' WHERE bin_id='1337' AND source_name='4FGL J0428.6-3756' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 20 17:23:48 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0077>
Subject: Job 481222: <4FGL_J0428.6-3756_daily_bin1337> in cluster <slac> Done

Job <4FGL_J0428.6-3756_daily_bin1337> was submitted from host <rhel6-64n> by user <kocevski> in cluster <slac> at Fri Aug 20 17:10:37 2021
Job was executed on host(s) <bullet0077>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Aug 20 17:10:40 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Aug 20 17:10:40 2021
Terminated at Fri Aug 20 17:23:49 2021
Results reported at Fri Aug 20 17:23:49 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0428.6-3756_daily_bin1337 67.173 -37.9403 585878401 586137601 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 :                                   776.02 sec.
    Max Memory :                                 1211 MB
    Average Memory :                             373.12 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   788 sec.
    Turnaround time :                            792 sec.

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

