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


Performing analysis on: 4FGL_J0450.3-4419_daily_bin1018
RA = 72.5788, Dec = -44.3195
tmin = 503193601, tmax = 503452801
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='798164', job_status='RUN', time_executed='2021-08-21 11:11:10.518082', time_epoch_executed='1629569470.52' WHERE source_name='4FGL J0450.3-4419' and cadence='daily' and bin_id='1018'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/798164

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/798164/ft1_4FGL_J0450.3-4419_daily_bin1018.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/798164/ft2_4FGL_J0450.3-4419_daily_bin1018.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/798164/ft1_4FGL_J0450.3-4419_daily_bin1018.fits outfile=/scratch/kocevski/798164/ft1_filteredMKT_4FGL_J0450.3-4419_daily_bin1018.fits ra=72.5788 dec=-44.3195 rad=12.0 tmin=503193601.0 tmax=503452801.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 5.36
user 4.79
sys 0.53

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/798164/ft2_4FGL_J0450.3-4419_daily_bin1018.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/798164/ft1_filteredMKT_4FGL_J0450.3-4419_daily_bin1018.fits evtable="EVENTS" outfile="/scratch/kocevski/798164/ft1_filtered_4FGL_J0450.3-4419_daily_bin1018.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.78
user 0.33
sys 0.43

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/798164/ft1_filtered_4FGL_J0450.3-4419_daily_bin1018.fits" evtable="EVENTS" scfile=/scratch/kocevski/798164/ft2_4FGL_J0450.3-4419_daily_bin1018.fits sctable="SC_DATA" outfile=/scratch/kocevski/798164/ltcube_503193601_503452801_4FGL_J0450.3-4419_daily_bin1018.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/798164/ft2_4FGL_J0450.3-4419_daily_bin1018.fits
.....................!
real 12.24
user 11.58
sys 0.62

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/798164/ft1_filtered_4FGL_J0450.3-4419_daily_bin1018.fits evtable="EVENTS" scfile=/scratch/kocevski/798164/ft2_4FGL_J0450.3-4419_daily_bin1018.fits sctable="SC_DATA" expcube=/scratch/kocevski/798164/ltcube_503193601_503452801_4FGL_J0450.3-4419_daily_bin1018.fits outfile=/scratch/kocevski/798164/expmap_503193601_503452801_4FGL_J0450.3-4419_daily_bin1018.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/798164/ltcube_503193601_503452801_4FGL_J0450.3-4419_daily_bin1018.fits
.....................!
real 190.55
user 185.21
sys 4.94

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/798164/ft1_filtered_4FGL_J0450.3-4419_daily_bin1018.fits scfile=/scratch/kocevski/798164/ft2_4FGL_J0450.3-4419_daily_bin1018.fits outfile=/scratch/kocevski/798164/cmap_503193601_503452801_4FGL_J0450.3-4419_daily_bin1018.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.78
user 0.37
sys 0.38

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/798164/ft1_filtered_4FGL_J0450.3-4419_daily_bin1018.fits scfile=/scratch/kocevski/798164/ft2_4FGL_J0450.3-4419_daily_bin1018.fits outfile=/scratch/kocevski/798164/cmap_HighResolution_503193601_503452801_4FGL_J0450.3-4419_daily_bin1018.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.80
user 0.38
sys 0.41

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/798164/ft1_filtered_4FGL_J0450.3-4419_daily_bin1018.fits evtable="EVENTS" scfile=/scratch/kocevski/798164/ft2_4FGL_J0450.3-4419_daily_bin1018.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/798164/Model_4FGL_J0450.3-4419_daily_bin1018.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/798164/ft1_filtered_4FGL_J0450.3-4419_daily_bin1018.fits.....................!
real 114.10
user 112.17
sys 1.56

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/798164/ft1_filtered_4FGL_J0450.3-4419_daily_bin1018.fits', '/scratch/kocevski/798164/ft2_4FGL_J0450.3-4419_daily_bin1018.fits', expMap='/scratch/kocevski/798164/expmap_503193601_503452801_4FGL_J0450.3-4419_daily_bin1018.fits', expCube='/scratch/kocevski/798164/ltcube_503193601_503452801_4FGL_J0450.3-4419_daily_bin1018.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/798164/Model_4FGL_J0450.3-4419_daily_bin1018.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/798164/ft1_filtered_4FGL_J0450.3-4419_daily_bin1018.fits
Spacecraft file(s): /scratch/kocevski/798164/ft2_4FGL_J0450.3-4419_daily_bin1018.fits
Exposure map: /scratch/kocevski/798164/expmap_503193601_503452801_4FGL_J0450.3-4419_daily_bin1018.fits
Exposure cube: /scratch/kocevski/798164/ltcube_503193601_503452801_4FGL_J0450.3-4419_daily_bin1018.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/798164/Model_4FGL_J0450.3-4419_daily_bin1018.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) = 4944.20395826

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .99894E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    3.3256       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10456E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    3.4187       1.0000         .10000E-03   10000.    
     5 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10172E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    3.1948       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .82125E-02   1.0000         .10000E-03   10000.    
    10 'norm      '    158.75       1.0000         .10000E-03   10000.    
    11 'norm      '    5.2170       1.0000         .10000E-03   10000.    
    12 'Prefactor '    1.3036       1.0000         .10000E-03   10000.    
    13 'Prefactor '    44.123       1.0000         .10000E-03   10000.    
    14 'norm      '    .10129E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10344E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    18.719       1.0000         .10000E-03   10000.    
    18 'Prefactor '    4.2737       1.0000         .10000E-03   10000.    
    19 'Prefactor '    6.1795       1.0000         .10000E-03   10000.    
    20 'norm      '    6.5915       1.0000         .10000E-03   10000.    
    21 'norm      '    12.290       1.0000         .10000E-03   10000.    
    22 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    9.8437       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10466E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10059E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    5.0157       1.0000         .10000E-03   10000.    
    27 'norm      '    .10053E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.4185       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .61543       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.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   4944.134     FROM MIGRAD    STATUS=CONVERGED    750 CALLS     3767 TOTAL
                     EDM=   .30E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10001E-03    7.7418       -.53130E-06** at limit **
   2  Prefactor     3.3207        18.968        .76246E-06   -.66563E-05
   3  Prefactor     .10000E-03    37.930        .99740E-06** at limit **
   4  Prefactor     3.4219        10.711        .34193E-06   -.13948E-05
   5  norm          .10000E-03    1.6133       -.11869E-07** at limit **
   6  Prefactor     .10000E-03    14.346        .28503E-06** at limit **
   7  norm          3.1951        1.0382       -.62449E-09    .92020E-04
   8  Prefactor     .10000E-03    56.347        .70115E-06** at limit **
   9  Prefactor     .10027E-03    3.2370       -.86249E-06** at limit **
  10  norm          158.83        31.735        .22827E-06    .60780E-03
  11  norm          5.2173        3.1713       -.45812E-06    .24090E-04
  12  Prefactor     1.3072        6.7245        .27280E-05    .19578E-03
  13  Prefactor     44.156        26.113       -.11759E-05    .83366E-04
  14  norm          .10000E-03    8.8073       -.23173E-06** at limit **
  15  Prefactor     .10000E-03    151.18        .35321E-05** at limit **
  16  Prefactor     .10000E-03    12.054       -.89173E-07** at limit **
  17  Prefactor     18.748        67.703        .70825E-05    .55986E-04
  18  Prefactor     4.2735        3.1721       -.24004E-09   -.21758E-04
  19  Prefactor     6.1792        6.0112       -.33294E-06   -.54617E-04
  20  norm          6.5917        4.0804        .69732E-06   -.45970E-03
  21  norm          12.290        6.8094        .11416E-06    .41118E-05
  22  norm          .10000E-03    3.1370       -.34417E-08** at limit **
  23  Prefactor     9.8425        9.3493        .22258E-07   -.18122E-04
  24  Prefactor     .10000E-03    6.3196       -.31503E-07** at limit **
  25  Prefactor     .10000E-03    19.935       -.11242E-06** at limit **
  26  norm          5.0153        1.7190        .25732E-07   -.28619E-04
  27  norm          .10000E-03    8.6783       -.49205E-07** at limit **
  28  Normalizat    1.4186        .25475       -.97762E-06    .12477E-03
  29  Prefactor     .61557        .23156       -.53238E-06    .37360E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100005
  Prefactor  = 3.32075
  Prefactor  = 0.0001
  Prefactor  = 3.42186
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 3.19513
  Prefactor  = 0.0001
  Prefactor  = 0.000100266
  norm       = 158.831
  norm       = 5.21732
  Prefactor  = 1.30718
  Prefactor  = 44.156
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 18.7482
  Prefactor  = 4.27349
  Prefactor  = 6.17919
  norm       = 6.59171
  norm       = 12.2897
  norm       = 0.0001
  Prefactor  = 9.84249
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 5.01534
  norm       = 0.0001
  Normalizat = 1.41858
  Prefactor  = 0.615574
 **********
 **   18 **HESSE 
 **********

 FCN=   4944.134     FROM HESSE     STATUS=OK           553 CALLS     4320 TOTAL
                     EDM=   .58E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10001E-03    20.569        .37530E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     3.3207        18.935        .22197E-03   -1.5343    
   3  Prefactor     .10000E-03    38.014        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     3.4219        10.666        .21878E-03   -1.5338    
   5  norm          .10000E-03    1.6158        .87170E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    14.460        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          3.1951        1.0374        .22670E-04   -1.5350    
   8  Prefactor     .10000E-03    56.578        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10027E-03    47.424        .21701E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          158.83        31.746        .16001E-03   -1.3181    
  11  norm          5.2173        3.1438        .84252E-04   -1.5251    
  12  Prefactor     1.3072        6.5956        .27972E-03   -1.5479    
  13  Prefactor     44.156        25.630        .60355E-04   -1.4378    
  14  norm          .10000E-03    8.9167        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    151.66        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    12.062        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     18.748        69.426        .92572E-04   -1.4842    
  18  Prefactor     4.2735        3.1611        .10236E-03   -1.5294    
  19  Prefactor     6.1792        5.9960        .15475E-03   -1.5211    
  20  norm          6.5917        4.0983        .51989E-03   -1.5194    
  21  norm          12.290        6.7899        .11426E-03   -1.5007    
  22  norm          .10000E-03    3.1714        .12132E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     9.8425        9.3350        .12772E-03   -1.5080    
  24  Prefactor     .10000E-03    6.3210        .17263E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    19.946        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          5.0153        1.7182        .51486E-04   -1.5260    
  27  norm          .10000E-03    8.6801        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    1.4186        .29474        .27258E-03   -.80093    
  29  Prefactor     .61557        .26757        .36619E-03   -1.0693    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.77429e-09
Minuit parameter uncertainties:
  1  0.00065072
  2  15.8664
  3  0.000129225
  4  10.6723
  5  7.51388e-07
  6  1.80809e-05
  7  1.03745
  8  0.00016057
  9  0.00711204
  10  31.7494
  11  3.14387
  12  5.87332
  13  25.6362
  14  4.16772e-05
  15  0.000507975
  16  1.03099e-06
  17  69.7276
  18  3.16121
  19  5.99658
  20  4.09846
  21  6.79037
  22  2.39615e-06
  23  9.33635
  24  2.56543e-06
  25  6.33275e-06
  26  1.71826
  27  1.36155e-06
  28  0.29509
  29  0.268128
Done.

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

Extracting fit parameters...

4FGL J0450.3-4419
   Spectrum: PowerLaw
295    Prefactor:  1.307e+00  5.873e+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:  6.156e-01  2.681e-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.419e+00  2.951e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.07
Ra Dec: 72.579 -44.319
Photon Flux Upper Limit: 2.21e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.75e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/798164/likelihoodResults_503193601_503452801_4FGL_J0450.3-4419_daily_bin1018.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) = 4944.12694216
delta logL = 0.00687636412658

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4944.12560163
delta logL = 0.00821689470831

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.5513       1.0000         .10000E-03   10000.    
     2 'Index     '    2.4624       1.0000          .0000       10.000    
     3 'Normalizat'    1.4210       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .61323       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4944.126     FROM MIGRAD    STATUS=CONVERGED    102 CALLS      296 TOTAL
                     EDM=   .15E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.5553        5.2791        .28188E-03   -.65337E-05
   2  Index         2.4708        2.2199        .92102E-02   -.21274E-04
   3  Normalizat    1.4216        .28687        .27233E-03   -.83008E-04
   4  Prefactor     .61271        .26221        .36689E-03   -.17817E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.55532
  Index      = 2.47083
  Normalizat = 1.42165
  Prefactor  = 0.612714
 **********
 **   18 **HESSE 
 **********

 FCN=   4944.126     FROM HESSE     STATUS=OK            25 CALLS      321 TOTAL
                     EDM=   .29E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.5553        5.2733        .11275E-04   -1.5459    
   2  Index         2.4708        2.2193        .18420E-02   -.53035    
   3  Normalizat    1.4216        .28720        .54466E-04   -.80005    
   4  Prefactor     .61271        .26244        .14676E-04   -1.0705    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.85283e-11
Minuit parameter uncertainties:
  1  5.27487
  2  2.3312
  3  0.287522
  4  0.262968
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/798164': 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) = 4944.12559052
delta logL = 0.00822801326922

Extracting fit parameters...

4FGL J0450.3-4419
   Spectrum: PowerLaw
295    Prefactor:  1.555e+00  5.275e+00  1.000e-04  1.000e+04 ( 1.000e-11)
296        Index:  2.471e+00  2.331e+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:  6.127e-01  2.630e-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.422e+00  2.875e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.07
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/798164/cmap_HighResolution_503193601_503452801_4FGL_J0450.3-4419_daily_bin1018.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.75e-02', job_status='DONE', photon_flux_upper_limit='2.21e-07', time_completed='2021-08-21 11:25:19.081962', job_id='798164', GAL2='0.61', fit_tolerance='1e-08', EG2='1.42', EG='1.42', time_epoch_completed='1629570319.08', return_code2='0', ts='0.07', comment='SUCCESS', return_code='0', GAL='0.62', dlogl='8.23e-03', ts2='0.09', photon_index_error='0.00', photon_index='2.84' WHERE bin_id='1018' AND source_name='4FGL J0450.3-4419' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 21 11:25:19 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0041>
Subject: Job 798164: <4FGL_J0450.3-4419_daily_bin1018> in cluster <slac> Done

Job <4FGL_J0450.3-4419_daily_bin1018> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Sat Aug 21 11:10:36 2021
Job was executed on host(s) <bullet0041>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Aug 21 11:10:39 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:10:39 2021
Terminated at Sat Aug 21 11:25:19 2021
Results reported at Sat Aug 21 11:25:19 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0450.3-4419_daily_bin1018 72.5788 -44.3195 503193601 503452801 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 :                                   844.27 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             341.60 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   880 sec.
    Turnaround time :                            883 sec.

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

