aklog: Couldn't determine realm of user:aklog: No credentials cache found  while getting realm
/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 183 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 = 7709
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J0428.6-3756_daily_bin1692
RA = 67.173, Dec = -37.9403
tmin = 677894401, tmax = 678153601
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='404022', job_status='RUN', time_executed='2022-06-29 04:08:24.471099', time_epoch_executed='1656500904.47' WHERE source_name='4FGL J0428.6-3756' and cadence='daily' and bin_id='1692'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/404022

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/404022/ft1_4FGL_J0428.6-3756_daily_bin1692.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/404022/ft2_4FGL_J0428.6-3756_daily_bin1692.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/404022/ft1_4FGL_J0428.6-3756_daily_bin1692.fits outfile=/scratch/kocevski/404022/ft1_filteredMKT_4FGL_J0428.6-3756_daily_bin1692.fits ra=67.173 dec=-37.9403 rad=12.0 tmin=677894401.0 tmax=678153601.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 4.49
user 4.22
sys 0.23

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/404022/ft2_4FGL_J0428.6-3756_daily_bin1692.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/404022/ft1_filteredMKT_4FGL_J0428.6-3756_daily_bin1692.fits evtable="EVENTS" outfile="/scratch/kocevski/404022/ft1_filtered_4FGL_J0428.6-3756_daily_bin1692.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 0.52
user 0.37
sys 0.13

Number of photons that the gtmktime cut: 601

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/404022/ft1_filtered_4FGL_J0428.6-3756_daily_bin1692.fits" evtable="EVENTS" scfile=/scratch/kocevski/404022/ft2_4FGL_J0428.6-3756_daily_bin1692.fits sctable="SC_DATA" outfile=/scratch/kocevski/404022/ltcube_677894401_678153601_4FGL_J0428.6-3756_daily_bin1692.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/404022/ft2_4FGL_J0428.6-3756_daily_bin1692.fits
.....................!
real 14.96
user 14.58
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/404022/ft1_filtered_4FGL_J0428.6-3756_daily_bin1692.fits evtable="EVENTS" scfile=/scratch/kocevski/404022/ft2_4FGL_J0428.6-3756_daily_bin1692.fits sctable="SC_DATA" expcube=/scratch/kocevski/404022/ltcube_677894401_678153601_4FGL_J0428.6-3756_daily_bin1692.fits outfile=/scratch/kocevski/404022/expmap_677894401_678153601_4FGL_J0428.6-3756_daily_bin1692.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/404022/ltcube_677894401_678153601_4FGL_J0428.6-3756_daily_bin1692.fits
.....................!
real 191.91
user 186.50
sys 4.91

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/404022/ft1_filtered_4FGL_J0428.6-3756_daily_bin1692.fits scfile=/scratch/kocevski/404022/ft2_4FGL_J0428.6-3756_daily_bin1692.fits outfile=/scratch/kocevski/404022/cmap_677894401_678153601_4FGL_J0428.6-3756_daily_bin1692.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 0.58
user 0.38
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/404022/ft1_filtered_4FGL_J0428.6-3756_daily_bin1692.fits scfile=/scratch/kocevski/404022/ft2_4FGL_J0428.6-3756_daily_bin1692.fits outfile=/scratch/kocevski/404022/cmap_HighResolution_677894401_678153601_4FGL_J0428.6-3756_daily_bin1692.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 0.56
user 0.40
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/404022/ft1_filtered_4FGL_J0428.6-3756_daily_bin1692.fits evtable="EVENTS" scfile=/scratch/kocevski/404022/ft2_4FGL_J0428.6-3756_daily_bin1692.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/404022/Model_4FGL_J0428.6-3756_daily_bin1692.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/404022/ft1_filtered_4FGL_J0428.6-3756_daily_bin1692.fits.....................!
real 146.81
user 138.78
sys 1.36

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10790E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .89545       1.0000         .10000E-03   10000.    
     3 'Prefactor '    23.104       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .47262E-01   1.0000         .10000E-03   10000.    
     5 'norm      '    .92022       1.0000         .10000E-03   10000.    
     6 'norm      '    20.683       1.0000         .10000E-03   10000.    
     7 'Prefactor '    7.5189       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10296E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .96676       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .48762       1.0000         .10000E-03   10000.    
    12 'norm      '    34.100       1.0000         .10000E-03   10000.    
    13 'norm      '    .10074E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .71613       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10045E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    11.129       1.0000         .10000E-03   10000.    
    17 'norm      '    21.281       1.0000         .10000E-03   10000.    
    18 'norm      '    1.0670       1.0000         .10000E-03   10000.    
    19 'Prefactor '    69.808       1.0000         .10000E-03   10000.    
    20 'Prefactor '    4.4848       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10214E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    5.4049       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .11217E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    1.8681       1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.1583       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .81599       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6436.729     FROM MIGRAD    STATUS=CONVERGED   1124 CALLS     3644 TOTAL
                     EDM=   .28E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    3.3746        .28318E-03** at limit **
   2  norm          .89553        .66794        .55024E-04   -.11116E-03
   3  Prefactor     23.095        20.920        .83333E-04    .18963E-04
   4  Prefactor     .10009E-03    93.061        .23270    ** at limit **
   5  norm          .92048        .40035        .30835E-04    .36022E-03
   6  norm          20.682        9.5466        .88071E-04   -.46213E-04
   7  Prefactor     7.5320        27.438        .14626E-03    .36534E-05
   8  Prefactor     .10000E-03    7.8241        .18142E-02** at limit **
   9  Prefactor     .10000E-03    6.0811        .18142E-02** at limit **
  10  norm          .96672        .48524        .38262E-04    .75768E-04
  11  Prefactor     .48966        2.4797        .22785E-03    .29489E-04
  12  norm          34.106        12.556        .68624E-04    .46065E-03
  13  norm          .10000E-03    64.863        .18142E-02** at limit **
  14  norm          .71629        .76153        .68763E-04    .28238E-03
  15  Prefactor     .10000E-03    2.3808        .18385E-02** at limit **
  16  Prefactor     11.128        13.407        .12009E-03   -.48848E-04
  17  norm          21.283        5.8289        .86826E-04    .37972E-05
  18  norm          1.0710        4.1757        .28153E-03    .41674E-04
  19  Prefactor     69.797        58.850        .48044E-04   -.22243E-05
  20  Prefactor     4.4875        5.6171        .19012E-03   -.36774E-04
  21  Prefactor     .10000E-03    74.075        .18142E-02** at limit **
  22  Prefactor     5.4068        3.5829        .11656E-03    .18181E-03
  23  Prefactor     .10000E-03    5.8877        .26343E-02** at limit **
  24  norm          1.8673        1.6370        .92577E-04    .27201E-03
  25  Normalizat    1.1578        .23210        .25023E-03    .10381E-03
  26  Prefactor     .81612        .22234        .30250E-03    .11079E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 0.895532
  Prefactor  = 23.0949
  Prefactor  = 0.000100087
  norm       = 0.920483
  norm       = 20.6822
  Prefactor  = 7.532
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.966716
  Prefactor  = 0.489661
  norm       = 34.106
  norm       = 0.0001
  norm       = 0.716285
  Prefactor  = 0.0001
  Prefactor  = 11.128
  norm       = 21.283
  norm       = 1.07096
  Prefactor  = 69.7972
  Prefactor  = 4.48752
  Prefactor  = 0.000100002
  Prefactor  = 5.40684
  Prefactor  = 0.000100001
  norm       = 1.86726
  Normalizat = 1.15775
  Prefactor  = 0.816122  **********
 **   18 **HESSE 
 **********

 FCN=   6436.729     FROM HESSE     STATUS=OK           440 CALLS     4084 TOTAL
                     EDM=   .28E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    3.3747        .56637E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .89553        .66793        .22009E-05   -1.5519    
   3  Prefactor     23.095        20.918        .33333E-05   -1.4746    
   4  Prefactor     .10009E-03    94.103        .23074       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .92048        .40034        .12334E-05   -1.5516    
   6  norm          20.682        9.5463        .35228E-05   -1.4798    
   7  Prefactor     7.5320        27.433        .58502E-05   -1.5159    
   8  Prefactor     .10000E-03    7.8253        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    6.0838        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .96672        .48522        .15305E-05   -1.5511    
  11  Prefactor     .48966        2.4757        .91139E-05   -1.5568    
  12  norm          34.106        12.550        .13725E-04   -1.4539    
  13  norm          .10000E-03    64.863        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .71629        .76150        .27505E-05   -1.5539    
  15  Prefactor     .10000E-03    2.3844        .36770E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     11.128        13.394        .48036E-05   -1.5041    
  17  norm          21.283        5.8288        .34730E-05   -1.4785    
  18  norm          1.0710        4.1707        .11261E-04   -1.5501    
  19  Prefactor     69.797        58.850        .96088E-05   -1.4035    
  20  Prefactor     4.4875        5.6167        .76050E-05   -1.5284    
  21  Prefactor     .10000E-03    74.094        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     5.4068        3.5825        .46623E-05   -1.5243    
  23  Prefactor     .10000E-03    5.9120        .52687E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          1.8673        1.6368        .37031E-05   -1.5435    
  25  Normalizat    1.1578        .23230        .10009E-04   -.87919    
  26  Prefactor     .81612        .22255        .12100E-04   -.99137    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.8274e-10
Minuit parameter uncertainties:
  1  1.8897e-05
  2  0.667938
  3  20.9242
  4  0.00572879
  5  0.400339
  6  9.54702
  7  27.4792
  8  1.99391e-06
  9  1.62002e-05
  10  0.485224
  11  2.20198
  12  12.5508
  13  0.000244963
  14  0.761506
  15  1.70516e-05
  16  13.3972
  17  5.82895
  18  4.1718
  19  58.8987
  20  5.61737
  21  0.00067814
  22  3.58261
  23  0.000116247
  24  1.63684
  25  0.23251
  26  0.222793
Done.

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

Extracting fit parameters...

4FGL J0428.6-3756
   Spectrum: LogParabola
257         norm:  9.667e-01  4.852e-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.161e-01  2.228e-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.158e+00  2.325e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 13.64
Ra Dec: 67.173 -37.940
Photon Index (Fixed Index): 1.99 +/- 0.00
Photon Flux (Fixed Index): 5.32e-08 +/- 2.67e-08
Energy Flux (Fixed Index): 3.05e-05 +/- 1.53e-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) = 6436.57488625
delta logL = 0.154194302519

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6436.57089868
delta logL = 0.158181876304

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .93588       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.7449       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1703       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .81075       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=   6436.571     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      206 TOTAL
                     EDM=   .22E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .93623        .61534        .88447E-02   -.18870E-03
   2  alpha         1.7447        .47945        .31227       -.15462E-04
   3  Normalizat    1.1707        .18010        .56323E-01   -.63184E-04
   4  Prefactor     .81026        .18627        .68606E-01    .11934E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.936231
  alpha      = 1.74472
  Normalizat = 1.17073
  Prefactor  = 0.810263
 **********
 **   18 **HESSE 
 **********

 FCN=   6436.571     FROM HESSE     STATUS=OK            33 CALLS      239 TOTAL
                     EDM=   .18E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .93623        .50455        .39073E-04   -1.5514    
   2  alpha         1.7447        .43680        .12387E-01   -.30691    
   3  Normalizat    1.1707        .21261        .24906E-03   -.87512    
   4  Prefactor     .81026        .21989        .30354E-03   -.99351    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.78556e-10
Minuit parameter uncertainties:
  1  0.504554
  2  0.439287
  3  0.212766
  4  0.220129
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/404022': 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) = 6436.57089572
delta logL = 0.158184837741

Extracting fit parameters...

4FGL J0428.6-3756
   Spectrum: LogParabola
257         norm:  9.362e-01  5.046e-01  1.000e-04  1.000e+04 ( 1.000e-11)
258        alpha:  1.745e+00  4.393e-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.103e-01  2.201e-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.171e+00  2.128e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 13.93
Ra Dec: 67.173 -37.940
Photon Index (Free Index): 1.74 +/- 0.44
Photon Flux (Free Index): 4.08e-08 +/- 2.92e-08
Energy Flux (Free Index): 3.88e-05 +/- 2.79e-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/404022/cmap_HighResolution_677894401_678153601_4FGL_J0428.6-3756_daily_bin1692.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='5.32e-08', energy_flux2='3.88e-05', photon_flux_error='2.67e-08', dlogl='1.58e-01', energy_flux='3.05e-05', photon_flux2='4.08e-08', job_status='DONE', time_completed='2022-06-29 04:24:08.671984', photon_index_error2='0.44', photon_index2='1.74', ts='13.64', fit_tolerance='1e-08', GAL='0.82', photon_index_error='0.00', energy_flux_error2='2.79e-05', EG='1.16', time_epoch_completed='1656501848.67', return_code='0', job_id='404022', GAL2='0.81', EG2='1.17', return_code2='0', energy_flux_error='1.53e-05', photon_flux_error2='2.92e-08', ts2='13.93', photon_index='1.99' WHERE bin_id='1692' AND source_name='4FGL J0428.6-3756' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Jun 29 04:24:08 PDT 2022

------------------------------------------------------------
Sender: LSF System <lsf@bullet0248>
Subject: Job 404021: <4FGL_J0428.6-3756_daily_bin1692> in cluster <slac> Done

Job <4FGL_J0428.6-3756_daily_bin1692> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Wed Jun 29 00:05:30 2022
Job was executed on host(s) <bullet0248>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Jun 29 04:05:07 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Jun 29 04:05:07 2022
Terminated at Wed Jun 29 04:23:49 2022
Results reported at Wed Jun 29 04:23:49 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0428.6-3756_daily_bin1692 67.173 -37.9403 677894401 678153601 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 :                                   810.41 sec.
    Max Memory :                                 632 MB
    Average Memory :                             274.83 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   2931 MB
    Max Processes :                              6
    Max Threads :                                21
    Run time :                                   1122 sec.
    Turnaround time :                            15499 sec.

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


------------------------------------------------------------
Sender: LSF System <lsf@bullet0039>
Subject: Job 404022: <4FGL_J0428.6-3756_daily_bin1692> in cluster <slac> Done

Job <4FGL_J0428.6-3756_daily_bin1692> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Wed Jun 29 00:05:30 2022
Job was executed on host(s) <bullet0039>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Jun 29 04:05:08 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Jun 29 04:05:08 2022
Terminated at Wed Jun 29 04:24:09 2022
Results reported at Wed Jun 29 04:24:09 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0428.6-3756_daily_bin1692 67.173 -37.9403 677894401 678153601 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 :                                   831.54 sec.
    Max Memory :                                 1295 MB
    Average Memory :                             318.74 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   2931 MB
    Max Processes :                              6
    Max Threads :                                21
    Run time :                                   1141 sec.
    Turnaround time :                            15519 sec.

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

