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


Performing analysis on: 4FGL_J0450.3-4419_daily_bin1246
RA = 72.5788, Dec = -44.3195
tmin = 562291201, tmax = 562550401
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='799572', job_status='RUN', time_executed='2021-08-21 11:17:21.558504', time_epoch_executed='1629569841.56' WHERE source_name='4FGL J0450.3-4419' and cadence='daily' and bin_id='1246'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/799572

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/799572/ft1_4FGL_J0450.3-4419_daily_bin1246.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/799572/ft2_4FGL_J0450.3-4419_daily_bin1246.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/799572/ft1_4FGL_J0450.3-4419_daily_bin1246.fits outfile=/scratch/kocevski/799572/ft1_filteredMKT_4FGL_J0450.3-4419_daily_bin1246.fits ra=72.5788 dec=-44.3195 rad=12.0 tmin=562291201.0 tmax=562550401.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.52
user 3.30
sys 0.21

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/799572/ft2_4FGL_J0450.3-4419_daily_bin1246.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/799572/ft2_4FGL_J0450.3-4419_daily_bin1246.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/799572/ft1_filteredMKT_4FGL_J0450.3-4419_daily_bin1246.fits evtable="EVENTS" outfile="/scratch/kocevski/799572/ft1_filtered_4FGL_J0450.3-4419_daily_bin1246.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.33
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/799572/ft1_filtered_4FGL_J0450.3-4419_daily_bin1246.fits" evtable="EVENTS" scfile=/scratch/kocevski/799572/ft2_4FGL_J0450.3-4419_daily_bin1246.fits sctable="SC_DATA" outfile=/scratch/kocevski/799572/ltcube_562291201_562550401_4FGL_J0450.3-4419_daily_bin1246.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/799572/ft2_4FGL_J0450.3-4419_daily_bin1246.fits
.....................!
real 11.74
user 11.39
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/799572/ft1_filtered_4FGL_J0450.3-4419_daily_bin1246.fits evtable="EVENTS" scfile=/scratch/kocevski/799572/ft2_4FGL_J0450.3-4419_daily_bin1246.fits sctable="SC_DATA" expcube=/scratch/kocevski/799572/ltcube_562291201_562550401_4FGL_J0450.3-4419_daily_bin1246.fits outfile=/scratch/kocevski/799572/expmap_562291201_562550401_4FGL_J0450.3-4419_daily_bin1246.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/799572/ltcube_562291201_562550401_4FGL_J0450.3-4419_daily_bin1246.fits
.....................!
real 192.13
user 187.36
sys 4.34

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 191 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 J0450.3-4419 @ 72.5788 -44.3195

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/799572/ft1_filtered_4FGL_J0450.3-4419_daily_bin1246.fits scfile=/scratch/kocevski/799572/ft2_4FGL_J0450.3-4419_daily_bin1246.fits outfile=/scratch/kocevski/799572/cmap_562291201_562550401_4FGL_J0450.3-4419_daily_bin1246.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.5788 yref=-44.3195 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.55
user 0.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/799572/ft1_filtered_4FGL_J0450.3-4419_daily_bin1246.fits scfile=/scratch/kocevski/799572/ft2_4FGL_J0450.3-4419_daily_bin1246.fits outfile=/scratch/kocevski/799572/cmap_HighResolution_562291201_562550401_4FGL_J0450.3-4419_daily_bin1246.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.5788 yref=-44.3195 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.38
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/799572/ft1_filtered_4FGL_J0450.3-4419_daily_bin1246.fits evtable="EVENTS" scfile=/scratch/kocevski/799572/ft2_4FGL_J0450.3-4419_daily_bin1246.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/799572/Model_4FGL_J0450.3-4419_daily_bin1246.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/799572/ft1_filtered_4FGL_J0450.3-4419_daily_bin1246.fits...................................!
real 21.58
user 20.32
sys 1.21

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/799572/ft1_filtered_4FGL_J0450.3-4419_daily_bin1246.fits', '/scratch/kocevski/799572/ft2_4FGL_J0450.3-4419_daily_bin1246.fits', expMap='/scratch/kocevski/799572/expmap_562291201_562550401_4FGL_J0450.3-4419_daily_bin1246.fits', expCube='/scratch/kocevski/799572/ltcube_562291201_562550401_4FGL_J0450.3-4419_daily_bin1246.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/799572/Model_4FGL_J0450.3-4419_daily_bin1246.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0450.3-4419'

4FGL J0450.3-4419
   Spectrum: PowerLaw
295    Prefactor:  1.357e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-11)
296        Index:  2.843e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
297        Scale:  3.439e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/799572/ft1_filtered_4FGL_J0450.3-4419_daily_bin1246.fits
Spacecraft file(s): /scratch/kocevski/799572/ft2_4FGL_J0450.3-4419_daily_bin1246.fits
Exposure map: /scratch/kocevski/799572/expmap_562291201_562550401_4FGL_J0450.3-4419_daily_bin1246.fits
Exposure cube: /scratch/kocevski/799572/ltcube_562291201_562550401_4FGL_J0450.3-4419_daily_bin1246.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/799572/Model_4FGL_J0450.3-4419_daily_bin1246.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 449.224109445

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 446.516174021

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    57.364       1.0000         .10000E-03   10000.    
     2 'Prefactor '    4.8723       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10575E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .66332E-02   1.0000         .10000E-03   10000.    
     5 'norm      '    1.6359       1.0000         .10000E-03   10000.    
     6 'Prefactor '    86.005       1.0000         .10000E-03   10000.    
     7 'norm      '    .52472       1.0000         .10000E-03   10000.    
     8 'Prefactor '    8.2238       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10566E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .52589E-02   1.0000         .10000E-03   10000.    
    11 'norm      '    .10059E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    8.1991       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .82351E-01   1.0000         .10000E-03   10000.    
    14 'norm      '    .69669E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    271.72       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .34429E-01   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .31143E-02   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10192E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .17451E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    14.446       1.0000         .10000E-03   10000.    
    21 'norm      '    .90202E-02   1.0000         .10000E-03   10000.    
    22 'norm      '    .73581E-02   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10311E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .11193E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .75250E-02   1.0000         .10000E-03   10000.    
    26 'norm      '    3.8738       1.0000         .10000E-03   10000.    
    27 'norm      '    .35246E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
    29 'Prefactor '    1.2846       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6220E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   446.5156     FROM MIGRAD    STATUS=CONVERGED    144 CALLS      533 TOTAL
                     EDM=   .86E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          57.326        52.838        .13242E-02   -.11276E-02
   2  Prefactor     4.8723        1.0054         .0000         .0000    
   3  Prefactor     .17690E-03    .20571        .27739E-05** at limit **
   4  Prefactor     .10010E-03    .22056       -.37430E-04** at limit **
   5  norm          1.6359        1.0566         .0000         .0000    
   6  Prefactor     85.928        .99958       -.70370E-05    .62287E-02
   7  norm          .52222        .82162        .57647E-05    .28363E-04
   8  Prefactor     8.2238        1.0019         .0000         .0000    
   9  Prefactor     .10013E-03    .20571       -.57544E-05** at limit **
  10  norm          .10233E-03    .22877        .11343E-03** at limit **
  11  norm          .10000E-03    .20571       -.70485E-05** at limit **
  12  Prefactor     8.2206        1.0032        .93416E-05   -.17747E-03
  13  Prefactor     .10424E-03    .22216        .10856E-03** at limit **
  14  norm          .10076E-03    .27516        .18084E-04** at limit **
  15  Prefactor     271.76        1.0001        .25432E-05   -.84997E-02
  16  Prefactor     .17844E-03    .21131       -.15371E-03** at limit **
  17  Prefactor     .12550E-03    .24471       -.10981E-03** at limit **
  18  Prefactor     .10000E-03    .20571       -.50083E-05** at limit **
  19  Prefactor     .12981E-03    .20571       -.16598E-03** at limit **
  20  norm          14.474        1.0015        .74550E-05    .98941E-03
  21  norm          .10008E-03    .20850        .26531E-04** at limit **
  22  norm          .10002E-03    .21665        .13945E-04** at limit **
  23  Prefactor     .10000E-03    .20571        .39599E-05** at limit **
  24  Prefactor     .10002E-03    .20571        .38045E-05** at limit **
  25  Prefactor     .10439E-03    .21578       -.66586E-04** at limit **
  26  norm          3.8736        1.0085       -.75881E-05   -.16755E-03
  27  norm          .10346E-03    .28410       -.41883E-04** at limit **
  28  Normalizat    .10000E-01    .25505       -.17056E-04** at limit **
  29  Prefactor     1.2851        1.0807       -.20283E-05    .76216E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 57.3259
  Prefactor  = 4.87233
  Prefactor  = 0.000176904
  Prefactor  = 0.000100097
  norm       = 1.6359
  Prefactor  = 85.9285
  norm       = 0.522217
  Prefactor  = 8.22376
  Prefactor  = 0.000100133
  norm       = 0.000102329
  norm       = 0.0001
  Prefactor  = 8.2206
  Prefactor  = 0.000104244
  norm       = 0.000100756
  Prefactor  = 271.758
  Prefactor  = 0.000178435
  Prefactor  = 0.000125498
  Prefactor  = 0.0001
  Prefactor  = 0.000129808
  norm       = 14.4738
  norm       = 0.000100079
  norm       = 0.000100017
  Prefactor  = 0.0001
  Prefactor  = 0.000100019
  Prefactor  = 0.00010439
  norm       = 3.87355
  norm       = 0.000103457
  Normalizat = 0.01
  Prefactor  = 1.28507
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   446.5156     FROM HESSE     STATUS=FAILED        13 CALLS      546 TOTAL
                     EDM=   .86E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          57.326        52.838        .13242E-02   -1.4192    
   2  Prefactor     532.80        527.88         .0000       -1.5266    
   3  Prefactor     .17690E-03    .20571        .27739E-05   -1.5710    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10010E-03    .22056       -.37430E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          1.6359        1.0566         .0000       -1.5452    
   6  Prefactor     85.928        .99958       -.70370E-05   -1.3851    
   7  norm          .52222        .82162        .57647E-05   -1.5563    
   8  Prefactor     8.2238        1.0019         .0000       -1.5134    
   9  Prefactor     .10013E-03    .20571       -.57544E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10233E-03    .22877        .11343E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    .20571       -.70485E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     8.2206        1.0032        .93416E-05   -1.5134    
  13  Prefactor     .10424E-03    .22216        .10856E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10076E-03    .27516        .18084E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     271.76        1.0001        .25432E-05   -1.2396    
  16  Prefactor     .17844E-03    .21131       -.15371E-03   -1.5706    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .12550E-03    .24471       -.10981E-03   -1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    .20571       -.50083E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .12981E-03    .20571       -.16598E-03   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          14.474        1.0015        .74550E-05   -1.4947    
  21  norm          .10008E-03    .20850        .26531E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10002E-03    .21665        .13945E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    .20571        .39599E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10002E-03    .20571        .38045E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10439E-03    .21578       -.66586E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          3.8736        1.0085       -.75881E-05   -1.5314    
  27  norm          .10346E-03    .28410       -.41883E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    .10000E-01    .25505       -.17056E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     1.2851        1.0807       -.20283E-05   -.83752    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 8.57568e-10
Minuit parameter uncertainties:
  1  52.8816
  2  1.00536
  3  0.00795494
  4  0.000293262
  5  1.05662
  6  0.999576
  7  0.821642
  8  1.00186
  9  0.000330611
  10  0.00145996
  11  5.76494e-06
  12  1.00319
  13  0.00194208
  14  0.000912298
  15  1.00007
  16  0.00814239
  17  0.00499586
  18  3.74025e-07
  19  0.00495256
  20  1.00154
  21  0.000256978
  22  0.000123147
  23  2.83603e-06
  24  0.000124747
  25  0.00194646
  26  1.00855
  27  0.00198196
  28  1.37338e-07
  29  1.10045
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 446.51564029

Extracting fit parameters...

4FGL J0450.3-4419
   Spectrum: PowerLaw
295    Prefactor:  8.221e+00  1.003e+00  1.000e-04  1.000e+04 ( 1.000e-11)
296        Index:  2.843e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
297        Scale:  3.439e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
619    Prefactor:  1.285e+00  1.100e+00  0.000e+00  1.000e+01 ( 1.000e+00)
620        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
621        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
615   Normalization:  1.000e-02  1.373e-07  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.12
Ra Dec: 72.579 -44.319
Photon Flux Upper Limit: 1.90e-06 ph cm-2 s-1
Energy Flux Upper Limit: 1.51e-01 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/799572/likelihoodResults_562291201_562550401_4FGL_J0450.3-4419_daily_bin1246.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) = 446.494928221
delta logL = 0.0207120681545

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 446.494645301
delta logL = 0.0209949881731

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   446.4946     FROM MIGRAD    STATUS=CONVERGED     46 CALLS      227 TOTAL
                     EDM=   .14E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     8.7275        6519.7        .33921E-02    .23315E-03
   2  Index         3.4443        5.2628        .21257        .19310E-04
   3  Normalizat    .10000E-01    .43515        .23359    ** at limit **
   4  Prefactor     1.2802        .46609        .51773E-01   -.37433E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 8.72746
  Index      = 3.4443
  Normalizat = 0.01
  Prefactor  = 1.28024
 **********
 **   18 **HESSE 
 **********

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

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     8.7275        25.750        .13568E-03   -1.5117    
   2  Index         3.4443        2.9353        .12016E-01   -.31639    
   3  Normalizat    .10000E-01    .61611        .87716E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     1.2802        .37383        .22883E-03   -.83897    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.74794e-10
Minuit parameter uncertainties:
  1  25.7824
  2  3.16391
  3  3.42786e-07
  4  0.374611
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/799572': 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) = 446.494645264
delta logL = 0.0209950251326

Extracting fit parameters...

4FGL J0450.3-4419
   Spectrum: PowerLaw
295    Prefactor:  8.727e+00  2.578e+01  1.000e-04  1.000e+04 ( 1.000e-11)
296        Index:  3.444e+00  3.164e+00  0.000e+00  1.000e+01 (-1.000e+00)
297        Scale:  3.439e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
619    Prefactor:  1.280e+00  3.746e-01  0.000e+00  1.000e+01 ( 1.000e+00)
620        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
621        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
615   Normalization:  1.000e-02  3.428e-07  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.12
Ra Dec: 72.579 -44.319

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/799572/cmap_HighResolution_562291201_562550401_4FGL_J0450.3-4419_daily_bin1246.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.51e-01', job_status='DONE', photon_flux_upper_limit='1.90e-06', time_completed='2021-08-21 11:23:05.615584', job_id='799572', GAL2='1.28', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1629570185.62', return_code2='0', ts='0.12', comment='SUCCESS', return_code='101', GAL='1.29', dlogl='2.10e-02', ts2='0.17', photon_index_error='0.00', photon_index='2.84' WHERE bin_id='1246' AND source_name='4FGL J0450.3-4419' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 21 11:23:05 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0213>
Subject: Job 799572: <4FGL_J0450.3-4419_daily_bin1246> in cluster <slac> Done

Job <4FGL_J0450.3-4419_daily_bin1246> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Sat Aug 21 11:15:35 2021
Job was executed on host(s) <bullet0213>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Aug 21 11:15:38 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:15:38 2021
Terminated at Sat Aug 21 11:23:06 2021
Results reported at Sat Aug 21 11:23:06 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0450.3-4419_daily_bin1246 72.5788 -44.3195 562291201 562550401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0450.3-4419 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   338.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             307.80 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   447 sec.
    Turnaround time :                            451 sec.

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

