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


Performing analysis on: 4FGL_J0416.5-1852_daily_bin1499
RA = 64.1373, Dec = -18.8724
tmin = 627868801, tmax = 628128001
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='343881', job_status='RUN', time_executed='2021-08-20 09:57:45.480613', time_epoch_executed='1629478665.48' WHERE source_name='4FGL J0416.5-1852' and cadence='daily' and bin_id='1499'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/343881

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/343881/ft1_4FGL_J0416.5-1852_daily_bin1499.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/343881/ft2_4FGL_J0416.5-1852_daily_bin1499.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/343881/ft1_4FGL_J0416.5-1852_daily_bin1499.fits outfile=/scratch/kocevski/343881/ft1_filteredMKT_4FGL_J0416.5-1852_daily_bin1499.fits ra=64.1373 dec=-18.8724 rad=12.0 tmin=627868801.0 tmax=628128001.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 2.71
user 2.26
sys 0.44

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/343881/ft2_4FGL_J0416.5-1852_daily_bin1499.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/343881/ft1_filteredMKT_4FGL_J0416.5-1852_daily_bin1499.fits evtable="EVENTS" outfile="/scratch/kocevski/343881/ft1_filtered_4FGL_J0416.5-1852_daily_bin1499.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.72
user 0.32
sys 0.38

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/343881/ft1_filtered_4FGL_J0416.5-1852_daily_bin1499.fits" evtable="EVENTS" scfile=/scratch/kocevski/343881/ft2_4FGL_J0416.5-1852_daily_bin1499.fits sctable="SC_DATA" outfile=/scratch/kocevski/343881/ltcube_627868801_628128001_4FGL_J0416.5-1852_daily_bin1499.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/343881/ft2_4FGL_J0416.5-1852_daily_bin1499.fits
.....................!
real 12.58
user 11.96
sys 0.59

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/343881/ft1_filtered_4FGL_J0416.5-1852_daily_bin1499.fits evtable="EVENTS" scfile=/scratch/kocevski/343881/ft2_4FGL_J0416.5-1852_daily_bin1499.fits sctable="SC_DATA" expcube=/scratch/kocevski/343881/ltcube_627868801_628128001_4FGL_J0416.5-1852_daily_bin1499.fits outfile=/scratch/kocevski/343881/expmap_627868801_628128001_4FGL_J0416.5-1852_daily_bin1499.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/343881/ltcube_627868801_628128001_4FGL_J0416.5-1852_daily_bin1499.fits
.....................!
real 192.09
user 186.59
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 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/343881/ft1_filtered_4FGL_J0416.5-1852_daily_bin1499.fits scfile=/scratch/kocevski/343881/ft2_4FGL_J0416.5-1852_daily_bin1499.fits outfile=/scratch/kocevski/343881/cmap_627868801_628128001_4FGL_J0416.5-1852_daily_bin1499.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 0.76
user 0.38
sys 0.38

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/343881/ft1_filtered_4FGL_J0416.5-1852_daily_bin1499.fits scfile=/scratch/kocevski/343881/ft2_4FGL_J0416.5-1852_daily_bin1499.fits outfile=/scratch/kocevski/343881/cmap_HighResolution_627868801_628128001_4FGL_J0416.5-1852_daily_bin1499.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 0.78
user 0.37
sys 0.40

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/343881/ft1_filtered_4FGL_J0416.5-1852_daily_bin1499.fits evtable="EVENTS" scfile=/scratch/kocevski/343881/ft2_4FGL_J0416.5-1852_daily_bin1499.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/343881/Model_4FGL_J0416.5-1852_daily_bin1499.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/343881/ft1_filtered_4FGL_J0416.5-1852_daily_bin1499.fits.....................!
real 194.86
user 192.96
sys 1.55

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/343881/ft1_filtered_4FGL_J0416.5-1852_daily_bin1499.fits', '/scratch/kocevski/343881/ft2_4FGL_J0416.5-1852_daily_bin1499.fits', expMap='/scratch/kocevski/343881/expmap_627868801_628128001_4FGL_J0416.5-1852_daily_bin1499.fits', expCube='/scratch/kocevski/343881/ltcube_627868801_628128001_4FGL_J0416.5-1852_daily_bin1499.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/343881/Model_4FGL_J0416.5-1852_daily_bin1499.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/343881/ft1_filtered_4FGL_J0416.5-1852_daily_bin1499.fits
Spacecraft file(s): /scratch/kocevski/343881/ft2_4FGL_J0416.5-1852_daily_bin1499.fits
Exposure map: /scratch/kocevski/343881/expmap_627868801_628128001_4FGL_J0416.5-1852_daily_bin1499.fits
Exposure cube: /scratch/kocevski/343881/ltcube_627868801_628128001_4FGL_J0416.5-1852_daily_bin1499.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/343881/Model_4FGL_J0416.5-1852_daily_bin1499.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) = 8601.96035025

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    2.5896       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .48419E-01   1.0000         .10000E-03   10000.    
     6 'norm      '    18.150       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10060E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .47555       1.0000         .10000E-03   10000.    
     9 'Prefactor '    13.088       1.0000         .10000E-03   10000.    
    10 'Prefactor '    2.5290       1.0000         .10000E-03   10000.    
    11 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    9.7645       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .12031E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .31593E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    7.3846       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .99917       1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.0446       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.0692       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.

 FCN=   8601.957     FROM MIGRAD    STATUS=CONVERGED    490 CALLS     2390 TOTAL
                     EDM=   .32E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    19.810        .98220E-06** at limit **
   2  Prefactor     .10000E-03    19.306        .53728E-06** at limit **
   3  Prefactor     2.5907        2.2128        .19289E-06    .65306E-03
   4  Prefactor     .10000E-03    2.4704        .20334E-07** at limit **
   5  Prefactor     .32349E-01    2.7176       -.18541E-05    .71568E-03
   6  norm          18.151        1.9798       -.21990E-08    .32097E-03
   7  Prefactor     .10000E-03    32.508       -.98416E-06** at limit **
   8  norm          .47597        1.1542       -.68858E-06    .40219E-03
   9  Prefactor     13.080        20.137        .29078E-06    .12891E-03
  10  Prefactor     2.5291        2.2264        .10641E-06    .55471E-03
  11  norm          .10000E-03    2.3073        .23077E-07** at limit **
  12  Prefactor     9.7658        13.600       -.74698E-06    .15445E-03
  13  Prefactor     .10000E-03    17.147        .71068E-05** at limit **
  14  Prefactor     .10000E-03    .87323       -.10010E-08** at limit **
  15  Prefactor     .10000E-03    6.7224       -.34583E-07** at limit **
  16  Prefactor     .10000E-03    11.760        .39197E-07** at limit **
  17  norm          .10003E-03    299.53        .13122E-04** at limit **
  18  Prefactor     7.3846        5.0384       -.14439E-06   -.48923E-04
  19  Prefactor     .10000E-03    28.248        .42528E-06** at limit **
  20  norm          .99914        .19721       -.63709E-08    .82018E-04
  21  Normalizat    1.0447        .18467        .76483E-06    .25651E-03
  22  Prefactor     1.0692        .14010        .13577E-06    .25574E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.59066
  Prefactor  = 0.0001
  Prefactor  = 0.0323495
  norm       = 18.151
  Prefactor  = 0.0001
  norm       = 0.475971
  Prefactor  = 13.0802
  Prefactor  = 2.52905
  norm       = 0.0001
  Prefactor  = 9.76577
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000100027
  Prefactor  = 7.38456
  Prefactor  = 0.0001
  norm       = 0.999142
  Normalizat = 1.04467
  Prefactor  = 1.06919
 **********
 **   18 **HESSE 
 **********

 FCN=   8601.957     FROM HESSE     STATUS=OK           350 CALLS     2740 TOTAL
                     EDM=   .21E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    19.985        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    19.336        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     2.5907        2.2054        .11985E-03   -1.5386    
   4  Prefactor     .10000E-03    2.5283        .28415E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .32349E-01    3.2274        .38401E-01   -1.5672    
   6  norm          18.151        1.9829        .41469E-04   -1.4856    
   7  Prefactor     .10000E-03    32.930        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .47597        1.1599        .14629E-03   -1.5570    
   9  Prefactor     13.080        20.132        .11072E-03   -1.4984    
  10  Prefactor     2.5291        2.2164        .12432E-03   -1.5390    
  11  norm          .10000E-03    2.3077        .13759E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     9.7658        13.592        .64120E-03   -1.5083    
  13  Prefactor     .10000E-03    17.287        .34594E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    .87918        .84625E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    6.7419        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    11.793        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10003E-03    311.09        .21368E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     7.3846        5.0389        .14759E-03   -1.5164    
  19  Prefactor     .10000E-03    28.341        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .99914        .19753        .17550E-04   -1.5508    
  21  Normalizat    1.0447        .21337        .30912E-03   -.91549    
  22  Prefactor     1.0692        .16282        .23872E-03   -.90457    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.14098e-09
Minuit parameter uncertainties:
  1  0.000110531
  2  7.07537e-05
  3  2.20547
  4  3.9231e-06
  5  0.645266
  6  1.98295
  7  0.000232813
  8  1.15991
  9  20.1426
  10  2.2165
  11  1.38123e-06
  12  13.5961
  13  0.000346274
  14  7.8015e-07
  15  7.28602e-06
  16  4.15483e-06
  17  0.00577479
  18  5.03915
  19  5.25284e-05
  20  0.197531
  21  0.213544
  22  0.162891
Done.

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

Extracting fit parameters...

4FGL J0416.5-1852
   Spectrum: PowerLaw
265    Prefactor:  1.000e-04  7.801e-07  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:  1.069e+00  1.629e-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.045e+00  2.135e-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: 4.08e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.15e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/343881/likelihoodResults_627868801_628128001_4FGL_J0416.5-1852_daily_bin1499.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) = 8601.96248346
delta logL = -0.00525489835491

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8601.95723109
delta logL = -2.52352765528e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10814E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.3626       1.0000          .0000       10.000    
     3 'Normalizat'    1.0445       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0694       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   8601.955     FROM MIGRAD    STATUS=FAILED       192 CALLS      342 TOTAL
                     EDM=   .26E-07    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .72809E-01    4.4435        .18941E-02    .29244E-03
   2  Index         1.2386        2.0379        .36541E-01   -.24066E-03
   3  Normalizat    1.0450        .20592        .30909E-03   -.13315E-04
   4  Prefactor     1.0686        .16191        .23878E-03    .26949E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   8601.955     FROM SIMPLEX   STATUS=UNCHANGED     78 CALLS      420 TOTAL
                     EDM=   .18E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .72809E-01    4.4435        .18870E-03   -1.5654    
   2  Index         1.2386        2.0379        .39032E-02   -.85150    
   3  Normalizat    1.0450        .20592        .11934E-03   -.91539    
   4  Prefactor     1.0686        .16191        .95985E-04   -.90475    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   8601.955     FROM MIGRAD    STATUS=CONVERGED     40 CALLS      460 TOTAL
                     EDM=   .40E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .72808E-01    4.5838        .75762E-04    .54021E-05
   2  Index         1.2386        2.0630        .73081E-02   -.93661E-05
   3  Normalizat    1.0450        .20610        .12363E-04    .14713E-06
   4  Prefactor     1.0686        .16201        .95510E-05    .47612E-06
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0728084
  Index      = 1.23864
  Normalizat = 1.04495
  Prefactor  = 1.06864
 **********
 **   18 **HESSE 
 **********

 FCN=   8601.955     FROM HESSE     STATUS=OK            25 CALLS      485 TOTAL
                     EDM=   .90E-13    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .72808E-01    4.6880        .30305E-05   -1.5654    
   2  Index         1.2386        2.0832        .14616E-02   -.85150    
   3  Normalizat    1.0450        .20617        .12363E-04   -.91539    
   4  Prefactor     1.0686        .16208        .19102E-05   -.90475    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.96553e-14
Minuit parameter uncertainties:
  1  1.16775
  2  2.25523
  3  0.206324
  4  0.162155
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/343881': 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) = 8601.95505813
delta logL = 0.00217043223529

Extracting fit parameters...

4FGL J0416.5-1852
   Spectrum: PowerLaw
265    Prefactor:  7.281e-02  1.168e+00  1.000e-04  1.000e+04 ( 1.000e-12)
266        Index:  1.239e+00  2.255e+00  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:  1.069e+00  1.622e-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.045e+00  2.063e-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/343881/cmap_HighResolution_627868801_628128001_4FGL_J0416.5-1852_daily_bin1499.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.15e-03', job_status='DONE', photon_flux_upper_limit='4.08e-08', time_completed='2021-08-20 10:11:35.039939', job_id='343881', GAL2='1.07', fit_tolerance='1e-08', EG2='1.04', EG='1.04', time_epoch_completed='1629479495.04', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.07', dlogl='2.17e-03', ts2='0.00', photon_index_error='0.00', photon_index='2.39' WHERE bin_id='1499' AND source_name='4FGL J0416.5-1852' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 20 10:11:35 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0098>
Subject: Job 343881: <4FGL_J0416.5-1852_daily_bin1499> in cluster <slac> Done

Job <4FGL_J0416.5-1852_daily_bin1499> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Fri Aug 20 09:55:42 2021
Job was executed on host(s) <bullet0098>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Aug 20 09:55:43 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:55:43 2021
Terminated at Fri Aug 20 10:11:35 2021
Results reported at Fri Aug 20 10:11:35 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0416.5-1852_daily_bin1499 64.1373 -18.8724 627868801 628128001 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 :                                   832.06 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             351.81 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   952 sec.
    Turnaround time :                            953 sec.

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

