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


Performing analysis on: 4FGL_J0428.6-3756_daily_bin931
RA = 67.173, Dec = -37.9403
tmin = 480643201, tmax = 480902401
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='477968', job_status='RUN', time_executed='2021-08-20 17:07:46.983189', time_epoch_executed='1629504466.98' WHERE source_name='4FGL J0428.6-3756' and cadence='daily' and bin_id='931'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/477968

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/477968/ft1_4FGL_J0428.6-3756_daily_bin931.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/477968/ft2_4FGL_J0428.6-3756_daily_bin931.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/477968/ft1_4FGL_J0428.6-3756_daily_bin931.fits outfile=/scratch/kocevski/477968/ft1_filteredMKT_4FGL_J0428.6-3756_daily_bin931.fits ra=67.173 dec=-37.9403 rad=12.0 tmin=480643201.0 tmax=480902401.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.74
user 3.50
sys 1.18

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/477968/ft2_4FGL_J0428.6-3756_daily_bin931.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/477968/ft1_filteredMKT_4FGL_J0428.6-3756_daily_bin931.fits evtable="EVENTS" outfile="/scratch/kocevski/477968/ft1_filtered_4FGL_J0428.6-3756_daily_bin931.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.55
user 0.36
sys 1.13

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/477968/ft1_filtered_4FGL_J0428.6-3756_daily_bin931.fits" evtable="EVENTS" scfile=/scratch/kocevski/477968/ft2_4FGL_J0428.6-3756_daily_bin931.fits sctable="SC_DATA" outfile=/scratch/kocevski/477968/ltcube_480643201_480902401_4FGL_J0428.6-3756_daily_bin931.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/477968/ft2_4FGL_J0428.6-3756_daily_bin931.fits
.....................!
real 18.57
user 16.91
sys 1.43

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/477968/ft1_filtered_4FGL_J0428.6-3756_daily_bin931.fits evtable="EVENTS" scfile=/scratch/kocevski/477968/ft2_4FGL_J0428.6-3756_daily_bin931.fits sctable="SC_DATA" expcube=/scratch/kocevski/477968/ltcube_480643201_480902401_4FGL_J0428.6-3756_daily_bin931.fits outfile=/scratch/kocevski/477968/expmap_480643201_480902401_4FGL_J0428.6-3756_daily_bin931.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/477968/ltcube_480643201_480902401_4FGL_J0428.6-3756_daily_bin931.fits
.....................!
real 195.85
user 188.87
sys 6.49

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/477968/ft1_filtered_4FGL_J0428.6-3756_daily_bin931.fits scfile=/scratch/kocevski/477968/ft2_4FGL_J0428.6-3756_daily_bin931.fits outfile=/scratch/kocevski/477968/cmap_480643201_480902401_4FGL_J0428.6-3756_daily_bin931.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.51
user 0.39
sys 1.10

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/477968/ft1_filtered_4FGL_J0428.6-3756_daily_bin931.fits scfile=/scratch/kocevski/477968/ft2_4FGL_J0428.6-3756_daily_bin931.fits outfile=/scratch/kocevski/477968/cmap_HighResolution_480643201_480902401_4FGL_J0428.6-3756_daily_bin931.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.43
user 0.41
sys 1.00

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/477968/ft1_filtered_4FGL_J0428.6-3756_daily_bin931.fits evtable="EVENTS" scfile=/scratch/kocevski/477968/ft2_4FGL_J0428.6-3756_daily_bin931.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/477968/Model_4FGL_J0428.6-3756_daily_bin931.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/477968/ft1_filtered_4FGL_J0428.6-3756_daily_bin931.fits.....................!
real 101.52
user 98.60
sys 2.59

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .32674E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .97799       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10058E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10886E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    47.264       1.0000         .10000E-03   10000.    
     7 'Prefactor '    31.002       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    29.538       1.0000         .10000E-03   10000.    
    10 'norm      '    .11525E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .19818E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .39854E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    7.4732       1.0000         .10000E-03   10000.    
    15 'Prefactor '    2.6326       1.0000         .10000E-03   10000.    
    16 'Prefactor '    23.332       1.0000         .10000E-03   10000.    
    17 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10250E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    8.8343       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10183E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    3.7277       1.0000         .10000E-03   10000.    
    23 'Prefactor '    5.4390       1.0000         .10000E-03   10000.    
    24 'norm      '    2.4374       1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.1379       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .93737       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=   4508.912     FROM MIGRAD    STATUS=CONVERGED    658 CALLS     3211 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .12982E-03    4.7389       -.25488E-05** at limit **
   2  norm          .97810        .87844        .27509E-08    .75092E-03
   3  Prefactor     .10000E-03    9.3656       -.10385E-06** at limit **
   4  Prefactor     .10000E-03    98.088       -.42049E-06** at limit **
   5  norm          .10000E-03    .26637        .14217E-07** at limit **
   6  norm          47.273        15.120        .20598E-06    .44185E-03
   7  Prefactor     31.063        45.681       -.75906E-06   -.54039E-05
   8  Prefactor     .10000E-03    8.3998       -.83650E-07** at limit **
   9  Prefactor     29.546        15.893        .11392E-05    .49904E-03
  10  norm          .10000E-03    .55439       -.19839E-06** at limit **
  11  Prefactor     .10002E-03    3.5132        .14527E-05** at limit **
  12  norm          .10011E-03    40.081       -.10799E-04** at limit **
  13  norm          .10000E-03    64.839        .25886E-06** at limit **
  14  norm          7.4728        2.9987       -.11403E-06    .16268E-03
  15  Prefactor     2.6404        4.8732        .72635E-06    .60590E-03
  16  Prefactor     23.316        24.342        .85562E-07    .36850E-05
  17  norm          .10000E-03    1.4981       -.53658E-07** at limit **
  18  norm          .10000E-03    4.1528       -.31791E-06** at limit **
  19  Prefactor     .10000E-03    25.134       -.14376E-06** at limit **
  20  Prefactor     8.8360        7.6056        .75511E-07    .12110E-03
  21  Prefactor     .10000E-03    73.569       -.85627E-06** at limit **
  22  Prefactor     3.7267        4.1246        .29826E-08    .27482E-03
  23  Prefactor     5.4388        4.1676       -.12430E-07    .17783E-03
  24  norm          2.4373        2.3432       -.29928E-07    .37832E-04
  25  Normalizat    1.1372        .24578       -.40633E-05    .12424E-03
  26  Prefactor     .93802        .23410        .53268E-05    .62228E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000129823
  norm       = 0.9781
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 47.2729
  Prefactor  = 31.0633
  Prefactor  = 0.0001
  Prefactor  = 29.5459
  norm       = 0.0001
  Prefactor  = 0.000100017
  norm       = 0.000100112
  norm       = 0.0001
  norm       = 7.47277
  Prefactor  = 2.64042
  Prefactor  = 23.3163
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 8.83598
  Prefactor  = 0.000100001
  Prefactor  = 3.72673
  Prefactor  = 5.4388
  norm       = 2.43732
  Normalizat = 1.13723
  Prefactor  = 0.938021
 **********
 **   18 **HESSE 
 **********

 FCN=   4508.912     FROM HESSE     STATUS=OK           462 CALLS     3673 TOTAL
                     EDM=   .72E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .12982E-03    5.9001        .36884E-01   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .97810        .87461        .57469E-04   -1.5510    
   3  Prefactor     .10000E-03    9.3770        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    98.158        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    3.6018        .64385E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          47.273        14.867        .29162E-03   -1.4332    
   7  Prefactor     31.063        45.601        .71961E-04   -1.4593    
   8  Prefactor     .10000E-03    8.4247        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     29.546        15.167        .73718E-04   -1.4620    
  10  norm          .10000E-03    3.2756        .85571E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10002E-03    12.293        .19733E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10011E-03    58.568        .37170E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    64.836        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          7.4728        2.9818        .62765E-04   -1.5161    
  15  Prefactor     2.6404        4.6206        .15118E-03   -1.5383    
  16  Prefactor     23.316        23.968        .82927E-04   -1.4742    
  17  norm          .10000E-03    1.5022        .80261E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    4.1750        .13342E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    25.147        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     8.8360        7.6138        .13486E-03   -1.5113    
  21  Prefactor     .10000E-03    73.795        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     3.7267        4.1123        .13684E-03   -1.5322    
  23  Prefactor     5.4388        4.1637        .11588E-03   -1.5242    
  24  norm          2.4373        2.3450        .97168E-04   -1.5396    
  25  Normalizat    1.1372        .28139        .26451E-03   -.88565    
  26  Prefactor     .93802        .27374        .29457E-03   -.94825    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.20389e-09
Minuit parameter uncertainties:
  1  0.0265324
  2  0.874624
  3  2.26726e-05
  4  0.000248603
  5  1.02112e-07
  6  14.8682
  7  45.6518
  8  6.18544e-06
  9  15.1686
  10  2.94066e-05
  11  0.000909335
  12  0.00511897
  13  3.19751e-05
  14  2.98188
  15  4.62127
  16  23.9775
  17  6.98332e-06
  18  4.90093e-05
  19  4.55381e-05
  20  7.61466
  21  0.00039702
  22  4.11262
  23  4.16388
  24  2.34505
  25  0.281761
  26  0.274144
Done.

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

Extracting fit parameters...

4FGL J0428.6-3756
   Spectrum: LogParabola
257         norm:  1.000e-04  2.941e-05  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:  9.380e-01  2.741e-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.137e+00  2.818e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 67.173 -37.940
Photon Flux Upper Limit: 1.02e-07 ph cm-2 s-1
Energy Flux Upper Limit: 5.87e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/477968/likelihoodResults_480643201_480902401_4FGL_J0428.6-3756_daily_bin931.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) = 4508.9133899
delta logL = -0.0015173088068

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4508.84430282
delta logL = 0.0675697716679

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .17185       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.6778       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1263       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .93719       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=   4508.844     FROM MIGRAD    STATUS=CONVERGED     49 CALLS      288 TOTAL
                     EDM=   .86E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .17185        8.8516        .16073E-01    .33498E-02
   2  alpha         2.6778        3.6176        .41284        .88341E-04
   3  Normalizat    1.1263        .36015E-01    .60000E-01   -.17497E-05
   4  Prefactor     .93720        .37225E-01    .66550E-01    .14798E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.171851
  alpha      = 2.67778
  Normalizat = 1.12627
  Prefactor  = 0.937195
 **********
 **   18 **HESSE 
 **********

 FCN=   4508.844     FROM HESSE     STATUS=OK            35 CALLS      323 TOTAL
                     EDM=   .98E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .17185        .61284        .65135E-03   -1.5625    
   2  alpha         2.6778        1.3811        .24591E-01    .71173E-01
   3  Normalizat    1.1263        .26422        .26536E-03   -.88913    
   4  Prefactor     .93720        .26952        .29436E-03   -.94853    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.82794e-10
Minuit parameter uncertainties:
  1  0.612866
  2  1.46366
  3  0.264528
  4  0.269907
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/477968': 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) = 4508.84430278
delta logL = 0.0675698118766

Extracting fit parameters...

4FGL J0428.6-3756
   Spectrum: LogParabola
257         norm:  1.719e-01  6.129e-01  1.000e-04  1.000e+04 ( 1.000e-11)
258        alpha:  2.678e+00  1.464e+00  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:  9.372e-01  2.699e-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.126e+00  2.645e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 67.173 -37.940

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/477968/cmap_HighResolution_480643201_480902401_4FGL_J0428.6-3756_daily_bin931.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.87e-05', job_status='DONE', photon_flux_upper_limit='1.02e-07', time_completed='2021-08-20 17:19:43.465676', job_id='477968', GAL2='0.94', fit_tolerance='1e-08', EG2='1.13', EG='1.14', time_epoch_completed='1629505183.47', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.94', dlogl='6.76e-02', ts2='0.14', photon_index_error='0.00', photon_index='1.99' WHERE bin_id='931' AND source_name='4FGL J0428.6-3756' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 20 17:19:43 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0054>
Subject: Job 477968: <4FGL_J0428.6-3756_daily_bin931> in cluster <slac> Done

Job <4FGL_J0428.6-3756_daily_bin931> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Fri Aug 20 17:05:21 2021
Job was executed on host(s) <bullet0054>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Aug 20 17:05:23 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:05:23 2021
Terminated at Fri Aug 20 17:19:43 2021
Results reported at Fri Aug 20 17:19:43 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0428.6-3756_daily_bin931 67.173 -37.9403 480643201 480902401 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 :                                   730.09 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             277.07 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   860 sec.
    Turnaround time :                            863 sec.

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

