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


Performing analysis on: 4FGL_J0428.6-3756_daily_bin347
RA = 67.173, Dec = -37.9403
tmin = 329270401, tmax = 329529601
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='473343', job_status='RUN', time_executed='2021-08-20 16:52:57.223534', time_epoch_executed='1629503577.22' WHERE source_name='4FGL J0428.6-3756' and cadence='daily' and bin_id='347'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/473343

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/473343/ft1_4FGL_J0428.6-3756_daily_bin347.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/473343/ft2_4FGL_J0428.6-3756_daily_bin347.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/473343/ft1_4FGL_J0428.6-3756_daily_bin347.fits outfile=/scratch/kocevski/473343/ft1_filteredMKT_4FGL_J0428.6-3756_daily_bin347.fits ra=67.173 dec=-37.9403 rad=12.0 tmin=329270401.0 tmax=329529601.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.59
user 3.37
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/473343/ft1_filtered_4FGL_J0428.6-3756_daily_bin347.fits" evtable="EVENTS" scfile=/scratch/kocevski/473343/ft2_4FGL_J0428.6-3756_daily_bin347.fits sctable="SC_DATA" outfile=/scratch/kocevski/473343/ltcube_329270401_329529601_4FGL_J0428.6-3756_daily_bin347.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/473343/ft2_4FGL_J0428.6-3756_daily_bin347.fits
.....................!
real 11.81
user 11.45
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/473343/ft1_filtered_4FGL_J0428.6-3756_daily_bin347.fits evtable="EVENTS" scfile=/scratch/kocevski/473343/ft2_4FGL_J0428.6-3756_daily_bin347.fits sctable="SC_DATA" expcube=/scratch/kocevski/473343/ltcube_329270401_329529601_4FGL_J0428.6-3756_daily_bin347.fits outfile=/scratch/kocevski/473343/expmap_329270401_329529601_4FGL_J0428.6-3756_daily_bin347.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/473343/ltcube_329270401_329529601_4FGL_J0428.6-3756_daily_bin347.fits
.....................!
real 189.51
user 184.91
sys 4.29

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/473343/ft1_filtered_4FGL_J0428.6-3756_daily_bin347.fits scfile=/scratch/kocevski/473343/ft2_4FGL_J0428.6-3756_daily_bin347.fits outfile=/scratch/kocevski/473343/cmap_329270401_329529601_4FGL_J0428.6-3756_daily_bin347.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.54
user 0.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/473343/ft1_filtered_4FGL_J0428.6-3756_daily_bin347.fits scfile=/scratch/kocevski/473343/ft2_4FGL_J0428.6-3756_daily_bin347.fits outfile=/scratch/kocevski/473343/cmap_HighResolution_329270401_329529601_4FGL_J0428.6-3756_daily_bin347.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.53
user 0.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/473343/ft1_filtered_4FGL_J0428.6-3756_daily_bin347.fits evtable="EVENTS" scfile=/scratch/kocevski/473343/ft2_4FGL_J0428.6-3756_daily_bin347.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/473343/Model_4FGL_J0428.6-3756_daily_bin347.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/473343/ft1_filtered_4FGL_J0428.6-3756_daily_bin347.fits.....................!
real 92.04
user 90.69
sys 1.16

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.6325       1.0000         .10000E-03   10000.    
     2 'norm      '    .49787       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .12248E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    32.654       1.0000         .10000E-03   10000.    
     5 'norm      '    .10013E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    3.4200       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .73593E-02   1.0000         .10000E-03   10000.    
     8 'Prefactor '    18.648       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .14256       1.0000         .10000E-03   10000.    
    10 'norm      '    .52479       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .80135       1.0000         .10000E-03   10000.    
    12 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    286.59       1.0000         .10000E-03   10000.    
    14 'norm      '    2.7552       1.0000         .10000E-03   10000.    
    15 'Prefactor '    4.7332       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10018E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    2.7596       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .11733E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .12205E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .20918E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10130E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    3.6120       1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.3462       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .84389       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=   4276.587     FROM MIGRAD    STATUS=CONVERGED    659 CALLS     3181 TOTAL
                     EDM=   .33E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.6322        4.1527        .12995E-06    .75397E-04
   2  norm          .49797        .76267        .78716E-07    .29258E-03
   3  Prefactor     .10000E-03    24.190       -.14868E-05** at limit **
   4  Prefactor     32.482        233.31       -.38136E-05   -.74229E-05
   5  norm          .10000E-03    .19913       -.42902E-06** at limit **
   6  norm          3.4305        8.2331        .98450E-06    .31133E-03
   7  Prefactor     .10000E-03    152.90        .17904E-05** at limit **
   8  Prefactor     18.623        16.096       -.39207E-06    .16174E-03
   9  Prefactor     .22032        13.106       -.12926E-05    .22496E-03
  10  norm          .52350        .50729       -.34890E-07    .38992E-03
  11  Prefactor     .80236        2.9596        .14964E-05    .28640E-03
  12  norm          .10000E-03    3.3838       -.93804E-08** at limit **
  13  norm          286.52        253.88        .27086E-06   -.16885E-04
  14  norm          2.7552        1.9415        .27270E-07   -.20775E-03
  15  Prefactor     4.7296        4.6233       -.64114E-06   -.24787E-03
  16  Prefactor     .10000E-03    5.6862        .19927E-07** at limit **
  17  norm          .10000E-03    3.3274       -.87361E-07** at limit **
  18  norm          2.7600        4.0270        .22158E-08   -.76613E-04
  19  Prefactor     .10000E-03    36.756        .27664E-06** at limit **
  20  Prefactor     .10000E-03    8.4860        .72217E-06** at limit **
  21  Prefactor     .10000E-03    34.215        .17151E-06** at limit **
  22  Prefactor     .10000E-03    2.4306        .38886E-06** at limit **
  23  Prefactor     .10000E-03    6.3106        .54126E-06** at limit **
  24  norm          3.6093        2.6445       -.82676E-08   -.65342E-04
  25  Normalizat    1.3457        .26606        .43472E-05    .38458E-04
  26  Prefactor     .84434        .25797       -.57573E-05    .13141E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 3.63216
  norm       = 0.497973
  Prefactor  = 0.0001
  Prefactor  = 32.4816
  norm       = 0.0001
  norm       = 3.43049
  Prefactor  = 0.0001
  Prefactor  = 18.6229
  Prefactor  = 0.220325
  norm       = 0.523502
  Prefactor  = 0.802365
  norm       = 0.0001
  norm       = 286.52
  norm       = 2.75516
  Prefactor  = 4.72961
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 2.76001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 3.60926
  Normalizat = 1.34566
  Prefactor  = 0.844344
 **********
 **   18 **HESSE 
 **********

 FCN=   4276.587     FROM HESSE     STATUS=OK           464 CALLS     3645 TOTAL
                     EDM=   .44E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.6322        4.1372        .13710E-03   -1.5327    
   2  norm          .49797        .71052        .68327E-03   -1.5567    
   3  Prefactor     .10000E-03    24.382        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     32.482        236.09        .35061E-03   -1.4567    
   5  norm          .10000E-03    .23970        .54444E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          3.4305        8.3126        .21874E-03   -1.5338    
   7  Prefactor     .10000E-03    158.28        .37236E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     18.623        16.127        .92748E-04   -1.4845    
   9  Prefactor     .22032        155.94        .39005E-02   -1.5614    
  10  norm          .52350        .53778        .41828E-04   -1.5563    
  11  Prefactor     .80236        2.9787        .20176E-03   -1.5529    
  12  norm          .10000E-03    3.3854        .11746E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          286.52        251.81        .11987E-03   -1.2306    
  14  norm          2.7552        1.9523        .69262E-04   -1.5376    
  15  Prefactor     4.7296        4.5917        .11490E-03   -1.5273    
  16  Prefactor     .10000E-03    5.6890        .15228E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    15.980        .22702E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          2.7600        3.9995        .15104E-03   -1.5376    
  19  Prefactor     .10000E-03    36.780        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    8.6328        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    34.243        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    9.8949        .19380E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    6.5215        .32051E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          3.6093        2.6393        .87971E-04   -1.5328    
  25  Normalizat    1.3457        .28976        .23655E-03   -.82213    
  26  Prefactor     .84434        .27663        .29640E-03   -.98114    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.41837e-09
Minuit parameter uncertainties:
  1  4.13751
  2  0.710535
  3  0.00011247
  4  176.13
  5  5.27967e-08
  6  8.3154
  7  0.000273146
  8  16.1304
  9  11.751
  10  0.537782
  11  2.97925
  12  2.20112e-06
  13  252.779
  14  1.9523
  15  4.59205
  16  2.39002e-07
  17  4.25536e-05
  18  3.99985
  19  7.12744e-05
  20  3.31407e-05
  21  1.21588e-05
  22  0.000227772
  23  2.77182e-05
  24  2.63942
  25  0.290113
  26  0.277087
Done.

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

Extracting fit parameters...

4FGL J0428.6-3756
   Spectrum: LogParabola
257         norm:  5.235e-01  5.378e-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.443e-01  2.771e-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.346e+00  2.901e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.53
Ra Dec: 67.173 -37.940
Photon Index (Fixed Index): 1.99 +/- 0.00
Photon Flux (Fixed Index): 2.88e-08 +/- 2.96e-08
Energy Flux (Fixed Index): 1.65e-05 +/- 1.70e-05

TS (Fixed Index): 3.53
Ra Dec: 67.173 -37.940
Photon Flux Upper Limit: 9.99e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.74e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/473343/likelihoodResults_329270401_329529601_4FGL_J0428.6-3756_daily_bin347.txt

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) = 4276.56975619
delta logL = 0.0168614894037

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4276.56911036
delta logL = 0.0175073201162

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .51027       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.8247       1.0000          .0000       5.0000    
     3 'Normalizat'    1.3514       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .84096       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=   4276.569     FROM MIGRAD    STATUS=CONVERGED     86 CALLS      240 TOTAL
                     EDM=   .51E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .51026        .48337        .41857E-04    .54914E-03
   2  alpha         1.8247        .85720        .18113E-01   -.63297E-04
   3  Normalizat    1.3514        .26212        .23614E-03    .13576E-04
   4  Prefactor     .84096        .26728        .29696E-03    .14433E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.510263
  alpha      = 1.82468
  Normalizat = 1.3514
  Prefactor  = 0.840962
 **********
 **   18 **HESSE 
 **********

 FCN=   4276.569     FROM HESSE     STATUS=OK            25 CALLS      265 TOTAL
                     EDM=   .21E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .51026        .48635        .83714E-05   -1.5565    
   2  alpha         1.8247        .86232        .36226E-02   -.27353    
   3  Normalizat    1.3514        .26233        .94457E-05   -.82045    
   4  Prefactor     .84096        .26751        .11878E-04   -.98236    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.05074e-11
Minuit parameter uncertainties:
  1  0.486353
  2  0.881925
  3  0.262592
  4  0.26793
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/473343': 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) = 4276.56911036
delta logL = 0.0175073210721

Extracting fit parameters...

4FGL J0428.6-3756
   Spectrum: LogParabola
257         norm:  5.103e-01  4.864e-01  1.000e-04  1.000e+04 ( 1.000e-11)
258        alpha:  1.825e+00  8.819e-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.410e-01  2.679e-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.351e+00  2.626e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.57
Ra Dec: 67.173 -37.940
Photon Index (Free Index): 1.82 +/- 0.88
Photon Flux (Free Index): 2.38e-08 +/- 3.27e-08
Energy Flux (Free Index): 1.90e-05 +/- 2.37e-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/473343/cmap_HighResolution_329270401_329529601_4FGL_J0428.6-3756_daily_bin347.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.74e-05', comment='SUCCESS', photon_flux='2.88e-08', energy_flux2='1.90e-05', photon_flux_error='2.96e-08', dlogl='1.75e-02', energy_flux='1.65e-05', photon_flux2='2.38e-08', job_status='DONE', time_completed='2021-08-20 17:03:39.580548', photon_index_error2='0.88', photon_index2='1.82', ts='3.53', fit_tolerance='1e-08', GAL='0.84', photon_index_error='0.00', photon_flux_upper_limit='9.99e-08', energy_flux_error2='2.37e-05', EG='1.35', time_epoch_completed='1629504219.58', return_code='0', job_id='473343', GAL2='0.84', EG2='1.35', return_code2='0', energy_flux_error='1.70e-05', photon_flux_error2='3.27e-08', ts2='3.57', photon_index='1.99' WHERE bin_id='347' AND source_name='4FGL J0428.6-3756' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 20 17:03:39 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0129>
Subject: Job 473343: <4FGL_J0428.6-3756_daily_bin347> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0428.6-3756_daily_bin347 67.173 -37.9403 329270401 329529601 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 :                                   642.26 sec.
    Max Memory :                                 1140 MB
    Average Memory :                             294.56 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   781 sec.
    Turnaround time :                            783 sec.

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

