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


Performing analysis on: 4FGL_J0416.5-1852_daily_bin980
RA = 64.1373, Dec = -18.8724
tmin = 493344001, tmax = 493603201
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='340960', job_status='RUN', time_executed='2021-08-20 09:47:09.046209', time_epoch_executed='1629478029.05' WHERE source_name='4FGL J0416.5-1852' and cadence='daily' and bin_id='980'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/340960

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/340960/ft1_4FGL_J0416.5-1852_daily_bin980.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/340960/ft2_4FGL_J0416.5-1852_daily_bin980.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/340960/ft1_4FGL_J0416.5-1852_daily_bin980.fits outfile=/scratch/kocevski/340960/ft1_filteredMKT_4FGL_J0416.5-1852_daily_bin980.fits ra=64.1373 dec=-18.8724 rad=12.0 tmin=493344001.0 tmax=493603201.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 9.25
user 4.22
sys 4.98

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/340960/ft2_4FGL_J0416.5-1852_daily_bin980.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/340960/ft2_4FGL_J0416.5-1852_daily_bin980.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/340960/ft1_filteredMKT_4FGL_J0416.5-1852_daily_bin980.fits evtable="EVENTS" outfile="/scratch/kocevski/340960/ft1_filtered_4FGL_J0416.5-1852_daily_bin980.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 5.22
user 0.35
sys 4.86

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/340960/ft1_filtered_4FGL_J0416.5-1852_daily_bin980.fits" evtable="EVENTS" scfile=/scratch/kocevski/340960/ft2_4FGL_J0416.5-1852_daily_bin980.fits sctable="SC_DATA" outfile=/scratch/kocevski/340960/ltcube_493344001_493603201_4FGL_J0416.5-1852_daily_bin980.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/340960/ft2_4FGL_J0416.5-1852_daily_bin980.fits
.....................!
real 17.38
user 11.70
sys 5.63

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/340960/ft1_filtered_4FGL_J0416.5-1852_daily_bin980.fits evtable="EVENTS" scfile=/scratch/kocevski/340960/ft2_4FGL_J0416.5-1852_daily_bin980.fits sctable="SC_DATA" expcube=/scratch/kocevski/340960/ltcube_493344001_493603201_4FGL_J0416.5-1852_daily_bin980.fits outfile=/scratch/kocevski/340960/expmap_493344001_493603201_4FGL_J0416.5-1852_daily_bin980.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/340960/ltcube_493344001_493603201_4FGL_J0416.5-1852_daily_bin980.fits
.....................!
real 198.26
user 186.42
sys 11.50

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 149 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 J0416.5-1852 @ 64.1373 -18.8724

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/340960/ft1_filtered_4FGL_J0416.5-1852_daily_bin980.fits scfile=/scratch/kocevski/340960/ft2_4FGL_J0416.5-1852_daily_bin980.fits outfile=/scratch/kocevski/340960/cmap_493344001_493603201_4FGL_J0416.5-1852_daily_bin980.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=64.1373 yref=-18.8724 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 5.34
user 0.36
sys 4.75

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/340960/ft1_filtered_4FGL_J0416.5-1852_daily_bin980.fits scfile=/scratch/kocevski/340960/ft2_4FGL_J0416.5-1852_daily_bin980.fits outfile=/scratch/kocevski/340960/cmap_HighResolution_493344001_493603201_4FGL_J0416.5-1852_daily_bin980.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=64.1373 yref=-18.8724 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 5.80
user 0.37
sys 4.79

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/340960/ft1_filtered_4FGL_J0416.5-1852_daily_bin980.fits evtable="EVENTS" scfile=/scratch/kocevski/340960/ft2_4FGL_J0416.5-1852_daily_bin980.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/340960/Model_4FGL_J0416.5-1852_daily_bin980.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/340960/ft1_filtered_4FGL_J0416.5-1852_daily_bin980.fits....................!
real 170.52
user 162.90
sys 7.30

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/340960/ft1_filtered_4FGL_J0416.5-1852_daily_bin980.fits', '/scratch/kocevski/340960/ft2_4FGL_J0416.5-1852_daily_bin980.fits', expMap='/scratch/kocevski/340960/expmap_493344001_493603201_4FGL_J0416.5-1852_daily_bin980.fits', expCube='/scratch/kocevski/340960/ltcube_493344001_493603201_4FGL_J0416.5-1852_daily_bin980.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/340960/Model_4FGL_J0416.5-1852_daily_bin980.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0416.5-1852'

4FGL J0416.5-1852
   Spectrum: PowerLaw
265    Prefactor:  1.793e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
266        Index:  2.395e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
267        Scale:  7.587e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/340960/ft1_filtered_4FGL_J0416.5-1852_daily_bin980.fits
Spacecraft file(s): /scratch/kocevski/340960/ft2_4FGL_J0416.5-1852_daily_bin980.fits
Exposure map: /scratch/kocevski/340960/expmap_493344001_493603201_4FGL_J0416.5-1852_daily_bin980.fits
Exposure cube: /scratch/kocevski/340960/ltcube_493344001_493603201_4FGL_J0416.5-1852_daily_bin980.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/340960/Model_4FGL_J0416.5-1852_daily_bin980.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) = 6940.77704678

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.7576       1.0000         .10000E-03   10000.    
     2 'Prefactor '    10.842       1.0000         .10000E-03   10000.    
     3 'Prefactor '    1.5756       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .79732       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .16498E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    1.2583       1.0000         .10000E-03   10000.    
     7 'Prefactor '    6.7178       1.0000         .10000E-03   10000.    
     8 'norm      '    .73045       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    2.1145       1.0000         .10000E-03   10000.    
    11 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .64930       1.0000         .10000E-03   10000.    
    13 'Prefactor '    25.864       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10035E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    10.197       1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    75.968       1.0000         .10000E-03   10000.    
    20 'norm      '    .53826       1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.3952       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .89244       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .4850E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6940.773     FROM MIGRAD    STATUS=CONVERGED    848 CALLS     2784 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.7487        41.772        .24512E-03   -.74208E-05
   2  Prefactor     10.851        42.005        .12168E-03   -.18687E-05
   3  Prefactor     1.5763        1.4919        .94612E-04    .16534E-03
   4  Prefactor     .79767        2.8442        .25299E-03   -.60037E-04
   5  Prefactor     .10001E-03    6.6876        .19865E-02** at limit **
   6  norm          1.2587        .77911        .56124E-04    .26860E-03
   7  Prefactor     6.7214        23.791        .15481E-03   -.10281E-04
   8  norm          .73021        .99710        .10435E-02    .11247E-02
   9  Prefactor     .10000E-03    9.7962        .18142E-02** at limit **
  10  Prefactor     2.1150        1.9913        .11034E-03   -.60993E-04
  11  norm          .10000E-03    3.6759        .15596E-02** at limit **
  12  Prefactor     .59016        167.53        .64958E-02    .44218E-04
  13  Prefactor     25.866        11.018        .78769E-04    .25402E-04
  14  Prefactor     .10000E-03    4.1055        .32381E-03** at limit **
  15  Prefactor     .10000E-03    16.947        .18142E-02** at limit **
  16  Prefactor     10.193        21.750        .12548E-03    .11325E-04
  17  norm          .10000E-03    54.692        .18142E-02** at limit **
  18  Prefactor     .10000E-03    1.3097        .93071E-03** at limit **
  19  Prefactor     75.960        52.773        .46069E-04    .18705E-04
  20  norm          .53829        .21250        .22736E-04    .73006E-04
  21  Normalizat    1.3950        .23490        .26281E-03    .16357E-03
  22  Prefactor     .89266        .16735        .24501E-03    .99158E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.74866
  Prefactor  = 10.8513
  Prefactor  = 1.5763
  Prefactor  = 0.797675
  Prefactor  = 0.00010001
  norm       = 1.25866
  Prefactor  = 6.72141
  norm       = 0.730211
  Prefactor  = 0.0001
  Prefactor  = 2.11501
  norm       = 0.0001
  Prefactor  = 0.590162
  Prefactor  = 25.8656
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10.193
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 75.96
  norm       = 0.53829
  Normalizat = 1.39504
  Prefactor  = 0.892664
 **********
 **   18 **HESSE 
 **********

 FCN=   6940.773     FROM HESSE     STATUS=OK           324 CALLS     3108 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.7487        41.720        .98049E-05   -1.5376    
   2  Prefactor     10.851        41.983        .48671E-05   -1.5049    
   3  Prefactor     1.5763        1.4917        .37845E-05   -1.5457    
   4  Prefactor     .79767        2.8433        .10119E-04   -1.5529    
   5  Prefactor     .10001E-03    6.7460        .39731E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          1.2587        .77902        .22450E-05   -1.5484    
   7  Prefactor     6.7214        23.780        .61925E-05   -1.5189    
   8  norm          .73021        .99621        .41741E-04   -1.5537    
   9  Prefactor     .10000E-03    9.7967        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     2.1150        1.9909        .44138E-05   -1.5417    
  11  norm          .10000E-03    3.6759        .31193E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .59016        170.07        .25983E-03   -1.5554    
  13  Prefactor     25.866        11.009        .31508E-05   -1.4690    
  14  Prefactor     .10000E-03    4.1057        .64762E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    16.963        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     10.193        21.736        .50192E-05   -1.5069    
  17  norm          .10000E-03    54.692        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    1.3097        .18614E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     75.960        52.752        .92138E-05   -1.3963    
  20  norm          .53829        .21247        .90942E-06   -1.5561    
  21  Normalizat    1.3950        .23386        .52563E-04   -.80772    
  22  Prefactor     .89266        .16744        .98004E-05   -.96398    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.58667e-09
Minuit parameter uncertainties:
  1  21.4347
  2  42.0972
  3  1.49169
  4  2.84374
  5  0.000508313
  6  0.779021
  7  23.8136
  8  0.996229
  9  5.27989e-06
  10  1.99098
  11  3.39611e-07
  12  20.0932
  13  11.01
  14  3.87402e-06
  15  2.13019e-06
  16  21.753
  17  0.00015891
  18  8.37861e-08
  19  52.7842
  20  0.212469
  21  0.234044
  22  0.167539
Done.

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

Extracting fit parameters...

4FGL J0416.5-1852
   Spectrum: PowerLaw
265    Prefactor:  1.000e-04  3.874e-06  1.000e-04  1.000e+04 ( 1.000e-12)
266        Index:  2.395e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
267        Scale:  7.587e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
482    Prefactor:  8.927e-01  1.675e-01  0.000e+00  1.000e+01 ( 1.000e+00)
483        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
484        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
478   Normalization:  1.395e+00  2.340e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 64.137 -18.872
Photon Flux Upper Limit: 8.21e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.34e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/340960/likelihoodResults_493344001_493603201_4FGL_J0416.5-1852_daily_bin980.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) = 6940.77452688
delta logL = -0.00116232746768

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6940.46487249
delta logL = 0.308492065395

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6940.465     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      307 TOTAL
                     EDM=   .20E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .12754E-01    .20107        .27327E-02    .11503E-01
   2  Index         5.9325        2.5117        .20518        .11026E-03
   3  Normalizat    1.3389        .30720E-01    .60472E-01   -.19682E-03
   4  Prefactor     .92019        .23652E-01    .45261E-01   -.25294E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0127542
  Index      = 5.93247
  Normalizat = 1.33887
  Prefactor  = 0.92019
 **********
 **   18 **HESSE 
 **********

 FCN=   6940.465     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      336 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .12754E-01    1.1460        .12318E-04   -1.5685    
   2  Index         5.9325        7.8578        .73723E-02    .18759    
   3  Normalizat    1.3389        .17567        .26745E-03   -.82413    
   4  Prefactor     .92019        .13231        .24184E-03   -.95439    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.32703e-09
Minuit parameter uncertainties:
  1  0.24085
  2  10.09
  3  0.175748
  4  0.132357
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/340960': 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) = 6940.46487138
delta logL = 0.30849317529

Extracting fit parameters...

4FGL J0416.5-1852
   Spectrum: PowerLaw
265    Prefactor:  1.275e-02  2.409e-01  1.000e-04  1.000e+04 ( 1.000e-12)
266        Index:  5.932e+00  1.009e+01  0.000e+00  1.000e+01 (-1.000e+00)
267        Scale:  7.587e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
482    Prefactor:  9.202e-01  1.324e-01  0.000e+00  1.000e+01 ( 1.000e+00)
483        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
484        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
478   Normalization:  1.339e+00  1.757e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 64.137 -18.872

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/340960/cmap_HighResolution_493344001_493603201_4FGL_J0416.5-1852_daily_bin980.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.34e-03', job_status='DONE', photon_flux_upper_limit='8.21e-08', time_completed='2021-08-20 10:01:00.930028', job_id='340960', GAL2='0.92', fit_tolerance='1e-08', EG2='1.34', EG='1.40', time_epoch_completed='1629478860.93', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.89', dlogl='3.08e-01', ts2='0.67', photon_index_error='0.00', photon_index='2.39' WHERE bin_id='980' AND source_name='4FGL J0416.5-1852' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 20 10:01:01 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0131>
Subject: Job 340960: <4FGL_J0416.5-1852_daily_bin980> in cluster <slac> Done

Job <4FGL_J0416.5-1852_daily_bin980> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Fri Aug 20 09:45:38 2021
Job was executed on host(s) <bullet0131>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Aug 20 09:45:40 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Aug 20 09:45:40 2021
Terminated at Fri Aug 20 10:01:02 2021
Results reported at Fri Aug 20 10:01:02 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0416.5-1852_daily_bin980 64.1373 -18.8724 493344001 493603201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0416.5-1852 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   903.03 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             320.75 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   921 sec.
    Turnaround time :                            924 sec.

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

