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


Performing analysis on: 4FGL_J0451.8-4651_daily_bin1024
RA = 72.9556, Dec = -46.8575
tmin = 504748801, tmax = 505008001
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='808306', job_status='RUN', time_executed='2021-08-21 11:46:14.510342', time_epoch_executed='1629571574.51' WHERE source_name='4FGL J0451.8-4651' and cadence='daily' and bin_id='1024'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/808306

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/808306/ft1_4FGL_J0451.8-4651_daily_bin1024.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/808306/ft2_4FGL_J0451.8-4651_daily_bin1024.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/808306/ft1_4FGL_J0451.8-4651_daily_bin1024.fits outfile=/scratch/kocevski/808306/ft1_filteredMKT_4FGL_J0451.8-4651_daily_bin1024.fits ra=72.9556 dec=-46.8575 rad=12.0 tmin=504748801.0 tmax=505008001.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 8.88
user 7.97
sys 0.87

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/808306/ft2_4FGL_J0451.8-4651_daily_bin1024.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/808306/ft2_4FGL_J0451.8-4651_daily_bin1024.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/808306/ft1_filteredMKT_4FGL_J0451.8-4651_daily_bin1024.fits evtable="EVENTS" outfile="/scratch/kocevski/808306/ft1_filtered_4FGL_J0451.8-4651_daily_bin1024.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.09
user 0.30
sys 0.75

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/808306/ft1_filtered_4FGL_J0451.8-4651_daily_bin1024.fits" evtable="EVENTS" scfile=/scratch/kocevski/808306/ft2_4FGL_J0451.8-4651_daily_bin1024.fits sctable="SC_DATA" outfile=/scratch/kocevski/808306/ltcube_504748801_505008001_4FGL_J0451.8-4651_daily_bin1024.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/808306/ft2_4FGL_J0451.8-4651_daily_bin1024.fits
.....................!
real 12.16
user 11.12
sys 1.01

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/808306/ft1_filtered_4FGL_J0451.8-4651_daily_bin1024.fits evtable="EVENTS" scfile=/scratch/kocevski/808306/ft2_4FGL_J0451.8-4651_daily_bin1024.fits sctable="SC_DATA" expcube=/scratch/kocevski/808306/ltcube_504748801_505008001_4FGL_J0451.8-4651_daily_bin1024.fits outfile=/scratch/kocevski/808306/expmap_504748801_505008001_4FGL_J0451.8-4651_daily_bin1024.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/808306/ltcube_504748801_505008001_4FGL_J0451.8-4651_daily_bin1024.fits
.....................!
real 191.26
user 185.20
sys 5.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.
Extended source LMC-North in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_archive_v18/Templates/LMC-North.fits is the correct path to the extended template.
Added 189 point sources and 2 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 J0451.8-4651 @ 72.9556 -46.8575

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/808306/ft1_filtered_4FGL_J0451.8-4651_daily_bin1024.fits scfile=/scratch/kocevski/808306/ft2_4FGL_J0451.8-4651_daily_bin1024.fits outfile=/scratch/kocevski/808306/cmap_504748801_505008001_4FGL_J0451.8-4651_daily_bin1024.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=72.9556 yref=-46.8575 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.11
user 0.35
sys 0.73

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/808306/ft1_filtered_4FGL_J0451.8-4651_daily_bin1024.fits scfile=/scratch/kocevski/808306/ft2_4FGL_J0451.8-4651_daily_bin1024.fits outfile=/scratch/kocevski/808306/cmap_HighResolution_504748801_505008001_4FGL_J0451.8-4651_daily_bin1024.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=72.9556 yref=-46.8575 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.10
user 0.36
sys 0.73

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/808306/ft1_filtered_4FGL_J0451.8-4651_daily_bin1024.fits evtable="EVENTS" scfile=/scratch/kocevski/808306/ft2_4FGL_J0451.8-4651_daily_bin1024.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/808306/Model_4FGL_J0451.8-4651_daily_bin1024.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
adding source LMC-North
Working on...
/scratch/kocevski/808306/ft1_filtered_4FGL_J0451.8-4651_daily_bin1024.fits.....................!
real 138.76
user 136.43
sys 2.00

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/808306/ft1_filtered_4FGL_J0451.8-4651_daily_bin1024.fits', '/scratch/kocevski/808306/ft2_4FGL_J0451.8-4651_daily_bin1024.fits', expMap='/scratch/kocevski/808306/expmap_504748801_505008001_4FGL_J0451.8-4651_daily_bin1024.fits', expCube='/scratch/kocevski/808306/ltcube_504748801_505008001_4FGL_J0451.8-4651_daily_bin1024.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/808306/Model_4FGL_J0451.8-4651_daily_bin1024.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0451.8-4651'

4FGL J0451.8-4651
   Spectrum: PowerLaw
295    Prefactor:  4.874e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
296        Index:  2.453e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
297        Scale:  1.093e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/808306/ft1_filtered_4FGL_J0451.8-4651_daily_bin1024.fits
Spacecraft file(s): /scratch/kocevski/808306/ft2_4FGL_J0451.8-4651_daily_bin1024.fits
Exposure map: /scratch/kocevski/808306/expmap_504748801_505008001_4FGL_J0451.8-4651_daily_bin1024.fits
Exposure cube: /scratch/kocevski/808306/ltcube_504748801_505008001_4FGL_J0451.8-4651_daily_bin1024.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/808306/Model_4FGL_J0451.8-4651_daily_bin1024.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) = 2328.28527574

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .39901E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10230E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .11103E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    50.111       1.0000         .10000E-03   10000.    
     5 'norm      '    .13383E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    51.029       1.0000         .10000E-03   10000.    
     7 'norm      '    4.2108       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .83378E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .12910E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    32.125       1.0000         .10000E-03   10000.    
    11 'norm      '    14.673       1.0000         .10000E-03   10000.    
    12 'Prefactor '    2.2491       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .61572E-01   1.0000         .10000E-03   10000.    
    14 'norm      '    .10243E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    133.10       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .14747E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10244       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10343E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    13.577       1.0000         .10000E-03   10000.    
    20 'norm      '    .11431E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .15117E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    20.653       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10608E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    3.9633       1.0000         .10000E-03   10000.    
    25 'Prefactor '    39.707       1.0000         .10000E-03   10000.    
    26 'norm      '    5.0300       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
    28 'norm      '    20.820       1.0000         .10000E-03   10000.    
    29 'norm      '    .12632E-03   1.0000         .10000E-03   10000.    
    30 'Normalizat'    .84362       1.0000         .10000E-01   10.000    
    31 'Prefactor '    .83007       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6190E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   2328.112     FROM MIGRAD    STATUS=CONVERGED    212 CALLS     2920 TOTAL
                     EDM=   .19E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    13.649        .68728E-06** at limit **
   2  Prefactor     .10000E-03    23.187       -.15668E-05** at limit **
   3  Prefactor     .10028E-03    27.782       -.31996E-06** at limit **
   4  Prefactor     50.515        6.5482       -.20573E-06    .88172E-02
   5  norm          .10000E-03    2.5411        .41443E-06** at limit **
   6  Prefactor     51.073        22.053        .37773E-06   -.42799E-02
   7  norm          4.2019        1.7289       -.21605E-06   -.83873E-03
   8  Prefactor     .10740E-03    15.617        .34635E-06** at limit **
   9  Prefactor     .10000E-03    2.3800       -.64875E-06** at limit **
  10  norm          32.056        12.727       -.26284E-06    .15136E-02
  11  norm          14.657        6.0587       -.41761E-06    .13301E-03
  12  Prefactor     2.2233        7.5096        .34937E-05    .19393E-03
  13  Prefactor     .10000E-03    79.084        .15777E-05** at limit **
  14  norm          .10000E-03    6.6533        .11230E-05** at limit **
  15  Prefactor     139.16        152.84       -.22271E-05   -.51553E-03
  16  Prefactor     .10001E-03    15.041        .55264E-06** at limit **
  17  Prefactor     .10015E-03    142.32        .52447E-05** at limit **
  18  Prefactor     .10003E-03    20.415       -.38790E-05** at limit **
  19  Prefactor     13.603        9.5825        .55348E-06   -.44951E-02
  20  norm          .10000E-03    6.8616        .91612E-07** at limit **
  21  norm          .10000E-03    3.3838        .68744E-07** at limit **
  22  norm          20.689        7.9105        .17854E-06    .12888E-01
  23  Prefactor     .10000E-03    4.3504       -.74045E-07** at limit **
  24  Prefactor     4.4417        8.8903        .38361E-06   -.44969E-03
  25  Prefactor     36.894        40.857        .29446E-06    .62032E-03
  26  norm          5.0347        2.0041        .10412E-06   -.34406E-04
  27  Prefactor     .10000E-03    11.515       -.23397E-05** at limit **
  28  norm          21.007        21.568       -.95566E-06   -.11686E-02
  29  norm          .10000E-03    10.329       -.22223E-06** at limit **
  30  Normalizat    .84029        .37600       -.24874E-05   -.18345E-03
  31  Prefactor     .83179        .32826       -.24457E-05   -.23542E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 0.000100004
  Prefactor  = 0.000100275
  Prefactor  = 50.5152
  norm       = 0.0001
  Prefactor  = 51.0733
  norm       = 4.20186
  Prefactor  = 0.000107403
  Prefactor  = 0.0001
  norm       = 32.0558
  norm       = 14.6567
  Prefactor  = 2.22326
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 139.16
  Prefactor  = 0.000100005
  Prefactor  = 0.000100153
  Prefactor  = 0.000100031
  Prefactor  = 13.6035
  norm       = 0.0001
  norm       = 0.0001
  norm       = 20.6889
  Prefactor  = 0.0001
  Prefactor  = 4.44166
  Prefactor  = 36.8941
  norm       = 5.03469
  Prefactor  = 0.000100001
  norm       = 21.0065
  norm       = 0.0001
  Normalizat = 0.840292
  Prefactor  = 0.831787
 **********
 **   18 **HESSE 
 **********

 FCN=   2328.112     FROM HESSE     STATUS=OK           694 CALLS     3614 TOTAL
                     EDM=   .67E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    13.642        .10632E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    23.168        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10028E-03    28.613        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     50.515        44.227        .14163E-02   -1.4285    
   5  norm          .10000E-03    2.5412        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     51.073        28.062        .14035E-02   -1.4277    
   7  norm          4.2019        1.8115        .49096E-02   -1.5298    
   8  Prefactor     .10740E-03    37.491        .10439E-01   -1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    2.3772        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          32.056        26.774        .17674E-02   -1.4575    
  11  norm          14.657        6.1937        .26140E-02   -1.4942    
  12  Prefactor     2.2233        7.9627        .68498E-02   -1.5410    
  13  Prefactor     .10000E-03    78.996        .93264E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    6.6406        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     139.16        152.18        .87261E-03   -1.3343    
  16  Prefactor     .10001E-03    15.063        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10015E-03    145.17        .95229E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10003E-03    2.8335        .52564E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     13.603        10.257        .27176E-02   -1.4970    
  20  norm          .10000E-03    6.8088        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    3.3814        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          20.689        8.6476        .22033E-02   -1.4798    
  23  Prefactor     .10000E-03    4.3474        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     4.4417        46.580        .50653E-02   -1.5286    
  25  Prefactor     36.894        41.258        .15903E-02   -1.4492    
  26  norm          5.0347        2.0065        .44824E-02   -1.5259    
  27  Prefactor     .10000E-03    11.123        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  norm          21.007        21.725        .21945E-02   -1.4791    
  29  norm          .10000E-03    10.329        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Normalizat    .84029        .32644        .68319E-01   -.98591    
  31  Prefactor     .83179        .28010        .63040E-01   -.98567    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.73024e-07
Minuit parameter uncertainties:
  1  5.4684e-05
  2  0.000582751
  3  0.0056143
  4  44.2561
  5  1.53509e-05
  6  28.0693
  7  1.81156
  8  0.0333403
  9  2.36706e-05
  10  26.7845
  11  6.19393
  12  7.96647
  13  0.000649032
  14  6.39093e-05
  15  152.61
  16  0.000574422
  17  0.00944112
  18  0.000595369
  19  10.2583
  20  9.35502e-07
  21  2.91673e-06
  22  8.64811
  23  1.34268e-06
  24  28.7959
  25  41.2899
  26  2.00654
  27  0.000210177
  28  21.7327
  29  2.4099e-05
  30  0.327208
  31  0.280586
Done.

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

Extracting fit parameters...

4FGL J0451.8-4651
   Spectrum: PowerLaw
295    Prefactor:  1.000e-04  6.490e-04  1.000e-04  1.000e+04 ( 1.000e-13)
296        Index:  2.453e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
297        Scale:  1.093e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
613    Prefactor:  8.318e-01  2.806e-01  0.000e+00  1.000e+01 ( 1.000e+00)
614        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
615        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
609   Normalization:  8.403e-01  3.272e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 72.956 -46.858
Photon Flux Upper Limit: 1.67e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.29e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/808306/likelihoodResults_504748801_505008001_4FGL_J0451.8-4651_daily_bin1024.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): 102
logL (Free Index) = 2328.11226663
delta logL = -5.91388670728e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 2328.11220768
delta logL = -1.92933384824e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4049       1.0000          .0000       10.000    
     3 'Normalizat'    .84029       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .83180       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6190E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   2328.112     FROM MIGRAD    STATUS=CONVERGED     64 CALLS      253 TOTAL
                     EDM=   .88E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10014E-03    32.241        .90712E-01** at limit **
   2  Index         2.5202        6.2584        .50000       -.21076E-04
   3  Normalizat    .84030        .85951E-02    .68319E-01    .90811E-04
   4  Prefactor     .83179        .79351E-02    .44130E-01   -.23820E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100142
  Index      = 2.52016
  Normalizat = 0.840297
  Prefactor  = 0.831786
 **********
 **   18 **HESSE 
 **********

 FCN=   2328.112     FROM HESSE     STATUS=NOT POSDEF    35 CALLS      288 TOTAL
                     EDM=   .69E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10014E-03    6760.1        .49475E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.5202        7.4428        .50000       -.51895    
   3  Normalizat    .84030        .42715E-01    .30227E-03   -.98591    
   4  Prefactor     .83179        .39460E-01    .27860E-03   -.98567    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 6.92614e-08
Minuit parameter uncertainties:
  1  0.0479331
  2  22.8471
  3  0.0427164
  4  0.0394617
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/808306': 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): 102
logL (Free Index) = 2328.11220719
delta logL = 3.01859472529e-07

Extracting fit parameters...

4FGL J0451.8-4651
   Spectrum: PowerLaw
295    Prefactor:  1.001e-04  4.793e-02  1.000e-04  1.000e+04 ( 1.000e-13)
296        Index:  2.520e+00  2.285e+01  0.000e+00  1.000e+01 (-1.000e+00)
297        Scale:  1.093e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
613    Prefactor:  8.318e-01  3.946e-02  0.000e+00  1.000e+01 ( 1.000e+00)
614        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
615        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
609   Normalization:  8.403e-01  4.272e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 72.956 -46.858

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/808306/cmap_HighResolution_504748801_505008001_4FGL_J0451.8-4651_daily_bin1024.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.29e-02', job_status='DONE', photon_flux_upper_limit='1.67e-07', time_completed='2021-08-21 11:57:16.353219', job_id='808306', GAL2='0.83', fit_tolerance='1e-08', EG2='0.84', EG='0.84', time_epoch_completed='1629572236.35', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.83', dlogl='3.02e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.45' WHERE bin_id='1024' AND source_name='4FGL J0451.8-4651' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 21 11:57:16 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0031>
Subject: Job 808306: <4FGL_J0451.8-4651_daily_bin1024> in cluster <slac> Done

Job <4FGL_J0451.8-4651_daily_bin1024> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Sat Aug 21 11:45:30 2021
Job was executed on host(s) <bullet0031>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Aug 21 11:45:31 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Aug 21 11:45:31 2021
Terminated at Sat Aug 21 11:57:17 2021
Results reported at Sat Aug 21 11:57:17 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0451.8-4651_daily_bin1024 72.9556 -46.8575 504748801 505008001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0451.8-4651 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   667.05 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             319.50 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   705 sec.
    Turnaround time :                            707 sec.

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

