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


Performing analysis on: 4FGL_J0416.5-1852_daily_bin1230
RA = 64.1373, Dec = -18.8724
tmin = 558144001, tmax = 558403201
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='342395', job_status='RUN', time_executed='2021-08-20 09:52:28.505172', time_epoch_executed='1629478348.51' WHERE source_name='4FGL J0416.5-1852' and cadence='daily' and bin_id='1230'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/342395

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/342395/ft1_4FGL_J0416.5-1852_daily_bin1230.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/342395/ft2_4FGL_J0416.5-1852_daily_bin1230.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/342395/ft1_4FGL_J0416.5-1852_daily_bin1230.fits outfile=/scratch/kocevski/342395/ft1_filteredMKT_4FGL_J0416.5-1852_daily_bin1230.fits ra=64.1373 dec=-18.8724 rad=12.0 tmin=558144001.0 tmax=558403201.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 4.87
user 4.00
sys 0.84

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/342395/ft1_filtered_4FGL_J0416.5-1852_daily_bin1230.fits" evtable="EVENTS" scfile=/scratch/kocevski/342395/ft2_4FGL_J0416.5-1852_daily_bin1230.fits sctable="SC_DATA" outfile=/scratch/kocevski/342395/ltcube_558144001_558403201_4FGL_J0416.5-1852_daily_bin1230.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/342395/ft2_4FGL_J0416.5-1852_daily_bin1230.fits
.....................!
real 12.50
user 11.45
sys 1.02

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/342395/ft1_filtered_4FGL_J0416.5-1852_daily_bin1230.fits evtable="EVENTS" scfile=/scratch/kocevski/342395/ft2_4FGL_J0416.5-1852_daily_bin1230.fits sctable="SC_DATA" expcube=/scratch/kocevski/342395/ltcube_558144001_558403201_4FGL_J0416.5-1852_daily_bin1230.fits outfile=/scratch/kocevski/342395/expmap_558144001_558403201_4FGL_J0416.5-1852_daily_bin1230.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/342395/ltcube_558144001_558403201_4FGL_J0416.5-1852_daily_bin1230.fits
.....................!
real 192.24
user 185.45
sys 6.48

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/342395/ft1_filtered_4FGL_J0416.5-1852_daily_bin1230.fits scfile=/scratch/kocevski/342395/ft2_4FGL_J0416.5-1852_daily_bin1230.fits outfile=/scratch/kocevski/342395/cmap_558144001_558403201_4FGL_J0416.5-1852_daily_bin1230.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 1.15
user 0.34
sys 0.79

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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/342395/ft1_filtered_4FGL_J0416.5-1852_daily_bin1230.fits evtable="EVENTS" scfile=/scratch/kocevski/342395/ft2_4FGL_J0416.5-1852_daily_bin1230.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/342395/Model_4FGL_J0416.5-1852_daily_bin1230.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/342395/ft1_filtered_4FGL_J0416.5-1852_daily_bin1230.fits.....................!
real 94.23
user 91.98
sys 2.05

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.9293       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    3.0127       1.0000         .10000E-03   10000.    
     5 'Prefactor '    9.0711       1.0000         .10000E-03   10000.    
     6 'norm      '    11.491       1.0000         .10000E-03   10000.    
     7 'Prefactor '    68.045       1.0000         .10000E-03   10000.    
     8 'norm      '    4.2291       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .12794E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    5.0271       1.0000         .10000E-03   10000.    
    11 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    70.257       1.0000         .10000E-03   10000.    
    17 'norm      '    35.045       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    6.6426       1.0000         .10000E-03   10000.    
    20 'norm      '    .55588       1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.1558       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .84869       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=   3886.072     FROM MIGRAD    STATUS=CONVERGED    472 CALLS     2352 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.9250        39.845       -.80140E-05    .85321E-06
   2  Prefactor     .10000E-03    22.683       -.38365E-05** at limit **
   3  Prefactor     .10000E-03    1.9478        .11096E-06** at limit **
   4  Prefactor     3.0127        5.5550       -.60846E-05   -.27269E-03
   5  Prefactor     9.0695        7.0912       -.16379E-05    .11835E-03
   6  norm          11.491        2.1717        .17063E-06    .54825E-03
   7  Prefactor     68.043        46.323       -.85799E-06    .78308E-05
   8  norm          4.2286        2.7478       -.30223E-06    .12170E-03
   9  Prefactor     .10000E-03    96.828        .53290E-05** at limit **
  10  Prefactor     5.0262        5.6609        .19596E-05   -.56406E-04
  11  norm          .10000E-03    4.1956       -.25054E-07** at limit **
  12  Prefactor     .10000E-03    16.810        .12541E-05** at limit **
  13  Prefactor     .10000E-03    27.367        .19289E-05** at limit **
  14  Prefactor     .10000E-03    2.7973       -.40057E-07** at limit **
  15  Prefactor     .10000E-03    9.4977        .17660E-06** at limit **
  16  Prefactor     70.270        61.089        .11668E-04    .39749E-05
  17  norm          35.210        144.34        .26717E-03    .37630E-05
  18  Prefactor     .10000E-03    5.1562        .49950E-07** at limit **
  19  Prefactor     6.5738        137.83       -.20437E-03    .21633E-04
  20  norm          .55589        .27757        .65657E-06    .26924E-02
  21  Normalizat    1.1560        .28205        .16325E-04   -.22814E-03
  22  Prefactor     .84849        .20404       -.87726E-05    .56891E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.92503
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.01272
  Prefactor  = 9.0695
  norm       = 11.4912
  Prefactor  = 68.0431
  norm       = 4.22856
  Prefactor  = 0.000100001
  Prefactor  = 5.02624
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 70.27
  norm       = 35.2102
  Prefactor  = 0.0001
  Prefactor  = 6.57385
  norm       = 0.555888
  Normalizat = 1.15599
  Prefactor  = 0.848489
 **********
 **   18 **HESSE 
 **********

 FCN=   3886.072     FROM HESSE     STATUS=OK           336 CALLS     2688 TOTAL
                     EDM=   .50E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.9250        39.915        .16491E-03   -1.5221    
   2  Prefactor     .10000E-03    22.685        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    1.9641        .84777E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     3.0127        5.5106        .18116E-03   -1.5361    
   5  Prefactor     9.0695        7.0629        .12933E-03   -1.5106    
   6  norm          11.491        2.1761        .37469E-04   -1.5030    
   7  Prefactor     68.043        46.305        .48658E-04   -1.4056    
   8  norm          4.2286        2.7334        .73319E-04   -1.5297    
   9  Prefactor     .10000E-03    98.014        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     5.0262        5.6589        .14043E-03   -1.5260    
  11  norm          .10000E-03    4.1967        .12471E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    16.833        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    27.778        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    2.8075        .10178E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    9.5042        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     70.270        61.363        .47891E-04   -1.4029    
  17  norm          35.210        143.75        .33848E-03   -1.4521    
  18  Prefactor     .10000E-03    5.1704        .13824E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     6.5738        139.15        .15570E-03   -1.5195    
  20  norm          .55589        .27592        .21772E-04   -1.5559    
  21  Normalizat    1.1560        .32383        .30320E-03   -.87974    
  22  Prefactor     .84849        .23324        .26667E-03   -.97965    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.98091e-09
Minuit parameter uncertainties:
  1  30.7864
  2  4.7343e-06
  3  9.64133e-06
  4  5.5115
  5  7.06354
  6  2.17615
  7  46.3293
  8  2.73349
  9  0.000603426
  10  5.65946
  11  2.41617e-06
  12  3.41624e-05
  13  0.000275835
  14  1.69714e-05
  15  8.01745e-05
  16  61.4181
  17  142.884
  18  3.02448e-05
  19  60.6505
  20  0.275923
  21  0.324395
  22  0.233515
Done.

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

Extracting fit parameters...

4FGL J0416.5-1852
   Spectrum: PowerLaw
265    Prefactor:  1.000e-04  1.697e-05  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.485e-01  2.335e-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.156e+00  3.244e-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: 1.15e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.87e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/342395/likelihoodResults_558144001_558403201_4FGL_J0416.5-1852_daily_bin1230.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) = 3886.0738823
delta logL = -0.00167704933392

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 3886.07220527
delta logL = -2.37423591898e-08

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 'Index     '    2.3948       1.0000          .0000       10.000    
     3 'Normalizat'    1.1560       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .84851       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=   3886.072     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      201 TOTAL
                     EDM=   .55E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    15.724        .90712E-02** at limit **
   2  Index         2.3951        5.7802        .50000       -.92082E-06
   3  Normalizat    1.1560        .16906E-01    .68530E-01    .15624E-04
   4  Prefactor     .84847        .13016E-01    .44345E-01    .19912E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.39511
  Normalizat = 1.15601
  Prefactor  = 0.848475
 **********
 **   18 **HESSE 
 **********

 FCN=   3886.072     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      234 TOTAL
                     EDM=   .84E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    240.96        .10178E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.3951        8.0005        .50000       -.54800    
   3  Normalizat    1.1560        .73487E-01    .30319E-03   -.87973    
   4  Prefactor     .84847        .56610E-01    .26668E-03   -.97965    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 8.39888e-08
Minuit parameter uncertainties:
  1  5.06824e-05
  2  1301.41
  3  0.0734936
  4  0.0566135
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/342395': 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) = 3886.07220525
delta logL = 2.17323758989e-09

Extracting fit parameters...

4FGL J0416.5-1852
   Spectrum: PowerLaw
265    Prefactor:  1.000e-04  5.068e-05  1.000e-04  1.000e+04 ( 1.000e-12)
266        Index:  2.395e+00  1.301e+03  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:  8.485e-01  5.661e-02  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.156e+00  7.349e-02  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  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/342395/cmap_HighResolution_558144001_558403201_4FGL_J0416.5-1852_daily_bin1230.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.87e-03', job_status='DONE', photon_flux_upper_limit='1.15e-07', time_completed='2021-08-20 10:01:25.767619', job_id='342395', GAL2='0.85', fit_tolerance='1e-08', EG2='1.16', EG='1.16', time_epoch_completed='1629478885.77', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.85', dlogl='2.17e-09', ts2='-0.00', photon_index_error='0.00', photon_index='2.39' WHERE bin_id='1230' AND source_name='4FGL J0416.5-1852' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 20 10:01:25 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0078>
Subject: Job 342395: <4FGL_J0416.5-1852_daily_bin1230> in cluster <slac> Done

Job <4FGL_J0416.5-1852_daily_bin1230> was submitted from host <rhel6-64n> by user <kocevski> in cluster <slac> at Fri Aug 20 09:50:40 2021
Job was executed on host(s) <bullet0078>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Aug 20 09:50:42 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:50:42 2021
Terminated at Fri Aug 20 10:01:26 2021
Results reported at Fri Aug 20 10:01:26 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0416.5-1852_daily_bin1230 64.1373 -18.8724 558144001 558403201 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 :                                   545.49 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             299.59 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   644 sec.
    Turnaround time :                            646 sec.

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

