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


Performing analysis on: 4FGL_J0449.4-4350_daily_bin1074
RA = 72.3582, Dec = -43.835
tmin = 517708801, tmax = 517968001
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='788879', job_status='RUN', time_executed='2021-08-21 10:43:40.233213', time_epoch_executed='1629567820.23' WHERE source_name='4FGL J0449.4-4350' and cadence='daily' and bin_id='1074'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/788879

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/788879/ft1_4FGL_J0449.4-4350_daily_bin1074.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/788879/ft2_4FGL_J0449.4-4350_daily_bin1074.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/788879/ft1_4FGL_J0449.4-4350_daily_bin1074.fits outfile=/scratch/kocevski/788879/ft1_filteredMKT_4FGL_J0449.4-4350_daily_bin1074.fits ra=72.3582 dec=-43.835 rad=12.0 tmin=517708801.0 tmax=517968001.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.69
user 3.48
sys 0.19

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/788879/ft2_4FGL_J0449.4-4350_daily_bin1074.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/788879/ft2_4FGL_J0449.4-4350_daily_bin1074.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/788879/ft1_filteredMKT_4FGL_J0449.4-4350_daily_bin1074.fits evtable="EVENTS" outfile="/scratch/kocevski/788879/ft1_filtered_4FGL_J0449.4-4350_daily_bin1074.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.50
user 0.32
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/788879/ft1_filtered_4FGL_J0449.4-4350_daily_bin1074.fits" evtable="EVENTS" scfile=/scratch/kocevski/788879/ft2_4FGL_J0449.4-4350_daily_bin1074.fits sctable="SC_DATA" outfile=/scratch/kocevski/788879/ltcube_517708801_517968001_4FGL_J0449.4-4350_daily_bin1074.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/788879/ft2_4FGL_J0449.4-4350_daily_bin1074.fits
.....................!
real 12.26
user 11.85
sys 0.37

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/788879/ft1_filtered_4FGL_J0449.4-4350_daily_bin1074.fits evtable="EVENTS" scfile=/scratch/kocevski/788879/ft2_4FGL_J0449.4-4350_daily_bin1074.fits sctable="SC_DATA" expcube=/scratch/kocevski/788879/ltcube_517708801_517968001_4FGL_J0449.4-4350_daily_bin1074.fits outfile=/scratch/kocevski/788879/expmap_517708801_517968001_4FGL_J0449.4-4350_daily_bin1074.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/788879/ltcube_517708801_517968001_4FGL_J0449.4-4350_daily_bin1074.fits
.....................!
real 190.26
user 184.72
sys 5.19

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 190 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 J0449.4-4350 @ 72.3582 -43.835

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/788879/ft1_filtered_4FGL_J0449.4-4350_daily_bin1074.fits scfile=/scratch/kocevski/788879/ft2_4FGL_J0449.4-4350_daily_bin1074.fits outfile=/scratch/kocevski/788879/cmap_517708801_517968001_4FGL_J0449.4-4350_daily_bin1074.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.3582 yref=-43.835 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.54
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/788879/ft1_filtered_4FGL_J0449.4-4350_daily_bin1074.fits scfile=/scratch/kocevski/788879/ft2_4FGL_J0449.4-4350_daily_bin1074.fits outfile=/scratch/kocevski/788879/cmap_HighResolution_517708801_517968001_4FGL_J0449.4-4350_daily_bin1074.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.3582 yref=-43.835 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.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/788879/ft1_filtered_4FGL_J0449.4-4350_daily_bin1074.fits evtable="EVENTS" scfile=/scratch/kocevski/788879/ft2_4FGL_J0449.4-4350_daily_bin1074.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/788879/Model_4FGL_J0449.4-4350_daily_bin1074.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/788879/ft1_filtered_4FGL_J0449.4-4350_daily_bin1074.fits.....................!
real 110.43
user 108.82
sys 1.35

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/788879/ft1_filtered_4FGL_J0449.4-4350_daily_bin1074.fits', '/scratch/kocevski/788879/ft2_4FGL_J0449.4-4350_daily_bin1074.fits', expMap='/scratch/kocevski/788879/expmap_517708801_517968001_4FGL_J0449.4-4350_daily_bin1074.fits', expCube='/scratch/kocevski/788879/ltcube_517708801_517968001_4FGL_J0449.4-4350_daily_bin1074.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/788879/Model_4FGL_J0449.4-4350_daily_bin1074.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0449.4-4350'

4FGL J0449.4-4350
   Spectrum: LogParabola
290         norm:  4.279e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
291        alpha:  1.750e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
292         beta:  6.187e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
293           Eb:  1.581e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/788879/ft1_filtered_4FGL_J0449.4-4350_daily_bin1074.fits
Spacecraft file(s): /scratch/kocevski/788879/ft2_4FGL_J0449.4-4350_daily_bin1074.fits
Exposure map: /scratch/kocevski/788879/expmap_517708801_517968001_4FGL_J0449.4-4350_daily_bin1074.fits
Exposure cube: /scratch/kocevski/788879/ltcube_517708801_517968001_4FGL_J0449.4-4350_daily_bin1074.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/788879/Model_4FGL_J0449.4-4350_daily_bin1074.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) = 5193.5575188

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.6651       1.0000         .10000E-03   10000.    
     2 'norm      '    6.0053       1.0000         .10000E-03   10000.    
     3 'Prefactor '    7.7751       1.0000         .10000E-03   10000.    
     4 'Prefactor '    9.0953       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10014E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    16.674       1.0000         .10000E-03   10000.    
     8 'norm      '    4.3855       1.0000         .10000E-03   10000.    
     9 'Prefactor '    73.821       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10146E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    20.369       1.0000         .10000E-03   10000.    
    12 'norm      '    2.5750       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .91394       1.0000         .10000E-03   10000.    
    14 'Prefactor '    32.109       1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    9.9353       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    6.2868       1.0000         .10000E-03   10000.    
    22 'norm      '    4.6556       1.0000         .10000E-03   10000.    
    23 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    5.4184       1.0000         .10000E-03   10000.    
    25 'Prefactor '    1.4660       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    .86605       1.0000         .10000E-03   10000.    
    28 'Normalizat'    .54428       1.0000         .10000E-01   10.000    
    29 'Prefactor '    1.3386       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6180E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5193.541     FROM MIGRAD    STATUS=CONVERGED    730 CALLS     3714 TOTAL
                     EDM=   .35E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.6652        .71370        .35698E-07    .34836E-03
   2  norm          6.0050        7.7928        .72843E-07    .63859E-05
   3  Prefactor     7.7766        22.859       -.38017E-07   -.11693E-04
   4  Prefactor     9.1198        60.522       -.41802E-05   -.15197E-04
   5  Prefactor     .10000E-03    12.472       -.81204E-07** at limit **
   6  norm          .10000E-03    1.7966       -.24140E-06** at limit **
   7  Prefactor     16.675        17.441        .22544E-06   -.31177E-04
   8  norm          4.3854        1.2685        .13857E-07    .37760E-04
   9  Prefactor     73.804        71.413        .18795E-05   -.32056E-04
  10  Prefactor     .10000E-03    2.4193        .21029E-05** at limit **
  11  norm          20.369        12.815        .35360E-07   -.24828E-03
  12  norm          2.5749        1.8741       -.67421E-07   -.24922E-03
  13  Prefactor     .91390        2.7501        .47198E-06   -.76007E-04
  14  Prefactor     32.110        21.877       -.45204E-06   -.33785E-03
  15  norm          .10000E-03    4.3947        .19725E-06** at limit **
  16  Prefactor     .10000E-03    46.763       -.24323E-06** at limit **
  17  Prefactor     .10000E-03    13.615        .86748E-07** at limit **
  18  Prefactor     .10000E-03    16.182       -.26821E-06** at limit **
  19  Prefactor     9.9354        3.3863       -.88681E-07   -.31747E-03
  20  Prefactor     .10000E-03    5.6381       -.35184E-06** at limit **
  21  norm          6.2864        3.1668       -.37586E-06   -.30919E-03
  22  norm          4.6555        3.6006        .13364E-06   -.11960E-03
  23  norm          .10000E-03    .97093       -.11007E-06** at limit **
  24  Prefactor     5.4183        5.9327       -.51010E-08   -.16407E-03
  25  Prefactor     1.4640        25.380        .16095E-04   -.87363E-04
  26  Prefactor     .10000E-03    8.6560       -.12355E-06** at limit **
  27  norm          .86587        .82254       -.28745E-07   -.33855E-03
  28  Normalizat    .54395        .24370       -.16633E-05   -.17621E-03
  29  Prefactor     1.3390        .21929        .45612E-06   -.10142E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 1.66524
  norm       = 6.00504
  Prefactor  = 7.77658
  Prefactor  = 9.11977
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 16.675
  norm       = 4.38542
  Prefactor  = 73.8042
  Prefactor  = 0.000100001
  norm       = 20.3694
  norm       = 2.57494
  Prefactor  = 0.913903
  Prefactor  = 32.1097
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 9.93543
  Prefactor  = 0.0001
  norm       = 6.28638
  norm       = 4.65551
  norm       = 0.0001
  Prefactor  = 5.41829
  Prefactor  = 1.464
  Prefactor  = 0.0001
  norm       = 0.86587
  Normalizat = 0.543949
  Prefactor  = 1.33898
 **********
 **   18 **HESSE 
 **********

 FCN=   5193.541     FROM HESSE     STATUS=OK           555 CALLS     4269 TOTAL
                     EDM=   .76E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.6652        .71225        .37318E-04   -1.5450    
   2  norm          6.0050        7.8010        .16385E-03   -1.5218    
   3  Prefactor     7.7766        22.836        .14381E-03   -1.5150    
   4  Prefactor     9.1198        60.514        .13290E-03   -1.5104    
   5  Prefactor     .10000E-03    12.495        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    1.8021        .94289E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     16.675        17.644        .98085E-04   -1.4891    
   8  norm          4.3854        1.2839        .36830E-04   -1.5289    
   9  Prefactor     73.804        71.631        .46729E-04   -1.3988    
  10  Prefactor     .10000E-03    4.6616        .20614E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          20.369        12.666        .88746E-04   -1.4805    
  12  norm          2.5749        1.8792        .74231E-04   -1.5387    
  13  Prefactor     .91390        2.6212        .17353E-03   -1.5517    
  14  Prefactor     32.110        21.620        .70713E-04   -1.4574    
  15  norm          .10000E-03    4.4455        .14699E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    46.826        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    13.625        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    16.186        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     9.9354        3.3820        .73191E-04   -1.5077    
  20  Prefactor     .10000E-03    5.7951        .33261E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          6.2864        3.1571        .85187E-04   -1.5206    
  22  norm          4.6555        3.5953        .11572E-03   -1.5276    
  23  norm          .10000E-03    .97249        .69338E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     5.4183        5.8876        .85444E-03   -1.5242    
  25  Prefactor     1.4640        26.461        .17757E-02   -1.5466    
  26  Prefactor     .10000E-03    8.6575        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          .86587        .80820        .61065E-04   -1.5522    
  28  Normalizat    .54395        .27519        .36655E-03   -1.1042    
  29  Prefactor     1.3390        .25305        .24293E-03   -.82155    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.56395e-10
Minuit parameter uncertainties:
  1  0.712252
  2  7.80233
  3  22.8615
  4  47.0529
  5  2.89998e-05
  6  2.09214e-05
  7  17.6492
  8  1.28391
  9  71.715
  10  0.000147445
  11  12.6672
  12  1.8792
  13  2.62155
  14  21.6258
  15  9.94261e-06
  16  0.00012173
  17  3.79301e-05
  18  3.2723e-06
  19  3.38208
  20  8.03947e-05
  21  3.1572
  22  3.5955
  23  8.17167e-06
  24  5.88821
  25  12.4541
  26  1.56998e-06
  27  0.808207
  28  0.275883
  29  0.253284
Done.

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

Extracting fit parameters...

4FGL J0449.4-4350
   Spectrum: LogParabola
290         norm:  2.575e+00  1.879e+00  1.000e-04  1.000e+04 ( 1.000e-12)
291        alpha:  1.750e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
292         beta:  6.187e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
293           Eb:  1.581e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
615    Prefactor:  1.339e+00  2.533e-01  0.000e+00  1.000e+01 ( 1.000e+00)
616        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
617        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
611   Normalization:  5.439e-01  2.759e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 12.78
Ra Dec: 72.358 -43.835
Photon Index (Fixed Index): 1.75 +/- 0.00
Photon Flux (Fixed Index): 3.45e-08 +/- 2.52e-08
Energy Flux (Fixed Index): 4.29e-05 +/- 3.13e-05

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) = 5193.47886439
delta logL = 0.0622003936614

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5193.47743169
delta logL = 0.0636330932321

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.4991       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.5659       1.0000          .0000       5.0000    
     3 'Normalizat'    .54903       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3381       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6180E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5193.477     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      202 TOTAL
                     EDM=   .10E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.4995        3.1290        .64631E-02   -.83098E-04
   2  alpha         1.5661        .77829        .34275       -.45990E-05
   3  Normalizat    .54902        .21813        .82423E-01    .31253E-04
   4  Prefactor     1.3381        .21665        .54985E-01    .26002E-06
                               ERR DEF=  .500    
Final values: 
  norm       = 2.49949
  alpha      = 1.56609
  Normalizat = 0.549019
  Prefactor  = 1.3381
 **********
 **   18 **HESSE 
 **********

 FCN=   5193.477     FROM HESSE     STATUS=OK            33 CALLS      235 TOTAL
                     EDM=   .17E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.4995        1.7779        .76203E-04   -1.5392    
   2  alpha         1.5661        .51472        .13028E-01   -.38285    
   3  Normalizat    .54902        .24474        .36507E-03   -1.1019    
   4  Prefactor     1.3381        .24640        .24310E-03   -.82181    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.68875e-11
Minuit parameter uncertainties:
  1  1.77796
  2  0.519044
  3  0.24522
  4  0.246613
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/788879': 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) = 5193.4774316
delta logL = 0.0636331899777

Extracting fit parameters...

4FGL J0449.4-4350
   Spectrum: LogParabola
290         norm:  2.499e+00  1.778e+00  1.000e-04  1.000e+04 ( 1.000e-12)
291        alpha:  1.566e+00  5.190e-01  0.000e+00  5.000e+00 ( 1.000e+00)
292         beta:  6.187e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
293           Eb:  1.581e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
615    Prefactor:  1.338e+00  2.466e-01  0.000e+00  1.000e+01 ( 1.000e+00)
616        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
617        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
611   Normalization:  5.490e-01  2.452e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 12.92
Ra Dec: 72.358 -43.835
Photon Index (Free Index): 1.57 +/- 0.52
Photon Flux (Free Index): 2.68e-08 +/- 2.69e-08
Energy Flux (Free Index): 5.48e-05 +/- 5.51e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/788879/cmap_HighResolution_517708801_517968001_4FGL_J0449.4-4350_daily_bin1074.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='3.45e-08', energy_flux2='5.48e-05', photon_flux_error='2.52e-08', dlogl='6.36e-02', energy_flux='4.29e-05', photon_flux2='2.68e-08', job_status='DONE', time_completed='2021-08-21 10:55:59.336350', photon_index_error2='0.52', photon_index2='1.57', ts='12.78', fit_tolerance='1e-08', GAL='1.34', photon_index_error='0.00', energy_flux_error2='5.51e-05', EG='0.54', time_epoch_completed='1629568559.34', return_code='0', job_id='788879', GAL2='1.34', EG2='0.55', return_code2='0', energy_flux_error='3.13e-05', photon_flux_error2='2.69e-08', ts2='12.92', photon_index='1.75' WHERE bin_id='1074' AND source_name='4FGL J0449.4-4350' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 21 10:55:59 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0246>
Subject: Job 788879: <4FGL_J0449.4-4350_daily_bin1074> in cluster <slac> Done

Job <4FGL_J0449.4-4350_daily_bin1074> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sat Aug 21 10:40:36 2021
Job was executed on host(s) <bullet0246>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Aug 21 10:40:37 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Aug 21 10:40:37 2021
Terminated at Sat Aug 21 10:56:00 2021
Results reported at Sat Aug 21 10:56:00 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0449.4-4350_daily_bin1074 72.3582 -43.835 517708801 517968001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0449.4-4350 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   733.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             264.83 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   922 sec.
    Turnaround time :                            924 sec.

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

