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


Performing analysis on: 4FGL_J0416.9+0105_daily_bin1319
RA = 64.2269, Dec = 1.088
tmin = 581212801, tmax = 581472001
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='351092', job_status='RUN', time_executed='2021-08-20 10:24:39.621151', time_epoch_executed='1629480279.62' WHERE source_name='4FGL J0416.9+0105' and cadence='daily' and bin_id='1319'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/351092

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/351092/ft1_4FGL_J0416.9+0105_daily_bin1319.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/351092/ft2_4FGL_J0416.9+0105_daily_bin1319.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/351092/ft1_4FGL_J0416.9+0105_daily_bin1319.fits outfile=/scratch/kocevski/351092/ft1_filteredMKT_4FGL_J0416.9+0105_daily_bin1319.fits ra=64.2269 dec=1.088 rad=12.0 tmin=581212801.0 tmax=581472001.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 8.01
user 2.75
sys 5.22

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/351092/ft2_4FGL_J0416.9+0105_daily_bin1319.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/351092/ft2_4FGL_J0416.9+0105_daily_bin1319.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/351092/ft1_filteredMKT_4FGL_J0416.9+0105_daily_bin1319.fits evtable="EVENTS" outfile="/scratch/kocevski/351092/ft1_filtered_4FGL_J0416.9+0105_daily_bin1319.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.54
user 0.34
sys 5.19

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/351092/ft1_filtered_4FGL_J0416.9+0105_daily_bin1319.fits" evtable="EVENTS" scfile=/scratch/kocevski/351092/ft2_4FGL_J0416.9+0105_daily_bin1319.fits sctable="SC_DATA" outfile=/scratch/kocevski/351092/ltcube_581212801_581472001_4FGL_J0416.9+0105_daily_bin1319.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/351092/ft2_4FGL_J0416.9+0105_daily_bin1319.fits
.....................!
real 18.22
user 12.05
sys 6.11

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/351092/ft1_filtered_4FGL_J0416.9+0105_daily_bin1319.fits evtable="EVENTS" scfile=/scratch/kocevski/351092/ft2_4FGL_J0416.9+0105_daily_bin1319.fits sctable="SC_DATA" expcube=/scratch/kocevski/351092/ltcube_581212801_581472001_4FGL_J0416.9+0105_daily_bin1319.fits outfile=/scratch/kocevski/351092/expmap_581212801_581472001_4FGL_J0416.9+0105_daily_bin1319.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/351092/ltcube_581212801_581472001_4FGL_J0416.9+0105_daily_bin1319.fits
.....................!
real 196.77
user 185.42
sys 11.02

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
Added 140 point sources and 0 extended sources

Setting source of interest to:
4FGL J0416.9+0105 @ 64.2269 1.088

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/351092/ft1_filtered_4FGL_J0416.9+0105_daily_bin1319.fits scfile=/scratch/kocevski/351092/ft2_4FGL_J0416.9+0105_daily_bin1319.fits outfile=/scratch/kocevski/351092/cmap_581212801_581472001_4FGL_J0416.9+0105_daily_bin1319.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.2269 yref=1.088 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.60
user 0.36
sys 5.19

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/351092/ft1_filtered_4FGL_J0416.9+0105_daily_bin1319.fits scfile=/scratch/kocevski/351092/ft2_4FGL_J0416.9+0105_daily_bin1319.fits outfile=/scratch/kocevski/351092/cmap_HighResolution_581212801_581472001_4FGL_J0416.9+0105_daily_bin1319.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.2269 yref=1.088 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.06
user 0.39
sys 4.66

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/351092/ft1_filtered_4FGL_J0416.9+0105_daily_bin1319.fits evtable="EVENTS" scfile=/scratch/kocevski/351092/ft2_4FGL_J0416.9+0105_daily_bin1319.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/351092/Model_4FGL_J0416.9+0105_daily_bin1319.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 GAL_V02
Working on...
/scratch/kocevski/351092/ft1_filtered_4FGL_J0416.9+0105_daily_bin1319.fits......................!
real 38.35
user 30.35
sys 7.91

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/351092/ft1_filtered_4FGL_J0416.9+0105_daily_bin1319.fits', '/scratch/kocevski/351092/ft2_4FGL_J0416.9+0105_daily_bin1319.fits', expMap='/scratch/kocevski/351092/expmap_581212801_581472001_4FGL_J0416.9+0105_daily_bin1319.fits', expCube='/scratch/kocevski/351092/ltcube_581212801_581472001_4FGL_J0416.9+0105_daily_bin1319.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/351092/Model_4FGL_J0416.9+0105_daily_bin1319.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0416.9+0105'

4FGL J0416.9+0105
   Spectrum: PowerLaw
210    Prefactor:  4.655e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-14)
211        Index:  1.876e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
212        Scale:  3.731e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/351092/ft1_filtered_4FGL_J0416.9+0105_daily_bin1319.fits
Spacecraft file(s): /scratch/kocevski/351092/ft2_4FGL_J0416.9+0105_daily_bin1319.fits
Exposure map: /scratch/kocevski/351092/expmap_581212801_581472001_4FGL_J0416.9+0105_daily_bin1319.fits
Exposure cube: /scratch/kocevski/351092/ltcube_581212801_581472001_4FGL_J0416.9+0105_daily_bin1319.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/351092/Model_4FGL_J0416.9+0105_daily_bin1319.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) = 1412.66982482

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    6.2227       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    47.727       1.0000         .10000E-03   10000.    
     6 'norm      '    .10010E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    4.9052       1.0000         .10000E-03   10000.    
     9 'norm      '    .36469E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    2.3269       1.0000         .10000E-03   10000.    
    11 'Prefactor '    6.8010       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    31.589       1.0000         .10000E-03   10000.    
    15 'norm      '    .10021E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10011E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    2.5454       1.0000         .10000E-03   10000.    
    19 'Prefactor '    1.3438       1.0000         .10000E-03   10000.    
    20 'norm      '    9.0722       1.0000         .10000E-03   10000.    
    21 'Normalizat'    .75748       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .85355       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .4550E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   1412.606     FROM MIGRAD    STATUS=CONVERGED    464 CALLS     2352 TOTAL
                     EDM=   .45E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          6.2199        5.4196       -.83381E-06    .68438E-04
   2  Prefactor     .10001E-03    330.26       -.18375E-05** at limit **
   3  Prefactor     .10000E-03    177.67        .33094E-06** at limit **
   4  norm          .10000E-03    28.381       -.98353E-08** at limit **
   5  Prefactor     47.138        180.38       -.25522E-04   -.65749E-04
   6  norm          .10000E-03    5.8318       -.43149E-06** at limit **
   7  Prefactor     .10000E-03    212.08       -.26572E-06** at limit **
   8  norm          4.9043        13.281        .45544E-06    .45646E-04
   9  norm          .10003E-03    222.17       -.11743E-04** at limit **
  10  norm          2.3249        3.4538       -.12267E-05   -.49290E-03
  11  Prefactor     6.7997        8.3604        .10439E-05    .21576E-03
  12  Prefactor     .10000E-03    129.41       -.77099E-06** at limit **
  13  Prefactor     .10000E-03    100.75        .24361E-07** at limit **
  14  Prefactor     31.593        27.725        .11572E-05    .19129E-04
  15  norm          .10000E-03    7.1250       -.15622E-06** at limit **
  16  Prefactor     .10000E-03    126.71        .41037E-06** at limit **
  17  norm          .10000E-03    2.9632        .54921E-06** at limit **
  18  Prefactor     2.5260        73.671       -.57296E-05    .34429E-04
  19  Prefactor     1.3475        1714.4       -.37345E-05    .83934E-05
  20  norm          9.0724        5.9764       -.42173E-07    .23861E-04
  21  Normalizat    .75562        .60313       -.46827E-04    .34640E-04
  22  Prefactor     .85445        .30695        .23185E-04   -.49981E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 6.21987
  Prefactor  = 0.000100008
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 47.1383
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 4.90427
  norm       = 0.000100025
  norm       = 2.3249
  Prefactor  = 6.79967
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 31.5932
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 2.52604
  Prefactor  = 1.3475
  norm       = 9.07241
  Normalizat = 0.755625
  Prefactor  = 0.854449
 **********
 **   18 **HESSE 
 **********

 FCN=   1412.606     FROM HESSE     STATUS=OK           340 CALLS     2692 TOTAL
                     EDM=   .96E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          6.2199        5.4148        .75797E-04   -1.5209    
   2  Prefactor     .10001E-03    330.95        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    177.71        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    28.395        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     47.138        182.60        .29021E-03   -1.4334    
   6  norm          .10000E-03    5.8428        .88650E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    212.09        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          4.9043        13.254        .18161E-03   -1.5265    
   9  norm          .10003E-03    224.91        .21305E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          2.3249        3.4456        .76108E-04   -1.5403    
  11  Prefactor     6.7997        8.4252        .10171E-03   -1.5186    
  12  Prefactor     .10000E-03    129.61        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    100.81        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     31.593        27.681        .71291E-04   -1.4583    
  15  norm          .10000E-03    7.1514        .97995E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    126.75        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    2.9835        .63190E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     2.5260        72.209        .25595E-03   -1.5390    
  19  Prefactor     1.3475        1710.6        .37788E-03   -1.5476    
  20  norm          9.0724        5.9754        .70667E-04   -1.5105    
  21  Normalizat    .75562        .60389        .40700E-03   -1.0174    
  22  Prefactor     .85445        .30752        .18574E-03   -.97751    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.61539e-10
Minuit parameter uncertainties:
  1  5.41522
  2  0.00336769
  3  0.000553219
  4  1.77944e-05
  5  184.838
  6  2.39637e-05
  7  0.000115091
  8  13.2617
  9  0.00480488
  10  3.44589
  11  8.42669
  12  9.00281e-05
  13  0.000359421
  14  27.692
  15  2.39522e-05
  16  0.00047166
  17  1.86737e-05
  18  27.0468
  19  98.9965
  20  5.9758
  21  0.609345
  22  0.308142
Done.

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

Extracting fit parameters...

4FGL J0416.9+0105
   Spectrum: PowerLaw
210    Prefactor:  4.714e+01  1.848e+02  1.000e-04  1.000e+04 ( 1.000e-14)
211        Index:  1.876e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
212        Scale:  3.731e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
452    Prefactor:  8.544e-01  3.081e-01  0.000e+00  1.000e+01 ( 1.000e+00)
453        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
454        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
451   Normalization:  7.556e-01  6.093e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.09
Ra Dec: 64.227 1.088
Photon Flux Upper Limit: 5.17e-07 ph cm-2 s-1
Energy Flux Upper Limit: 3.83e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/351092/likelihoodResults_581212801_581472001_4FGL_J0416.9+0105_daily_bin1319.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 1412.57558035
delta logL = 0.030529773619

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 1412.57413769
delta logL = 0.0319724350736

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    87.664       1.0000         .10000E-03   10000.    
     2 'Index     '    1.5474       1.0000          .0000       10.000    
     3 'Normalizat'    .76226       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .84984       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .4550E+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=   1412.574     FROM MIGRAD    STATUS=CONVERGED     83 CALLS      302 TOTAL
                     EDM=   .46E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     87.690        259.93        .42911E-04   -.17084E-03
   2  Index         1.5470        1.1664        .93278E-02   -.18338E-03
   3  Normalizat    .76335        .58074        .40519E-03    .51472E-04
   4  Prefactor     .84930        .28955        .18617E-03    .22931E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 87.6901
  Index      = 1.54703
  Normalizat = 0.763352
  Prefactor  = 0.849305
 **********
 **   18 **HESSE 
 **********

 FCN=   1412.574     FROM HESSE     STATUS=OK            23 CALLS      325 TOTAL
                     EDM=   .49E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     87.690        254.88        .85822E-05   -1.3832    
   2  Index         1.5470        1.1442        .37311E-03   -.76231    
   3  Normalizat    .76335        .58123        .16207E-04   -1.0144    
   4  Prefactor     .84930        .28988        .37234E-04   -.97936    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.87066e-09
Minuit parameter uncertainties:
  1  258.165
  2  1.16416
  3  0.586039
  4  0.290405
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/351092': 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) = 1412.57413569
delta logL = 0.0319744325943

Extracting fit parameters...

4FGL J0416.9+0105
   Spectrum: PowerLaw
210    Prefactor:  8.769e+01  2.582e+02  1.000e-04  1.000e+04 ( 1.000e-14)
211        Index:  1.547e+00  1.164e+00  0.000e+00  1.000e+01 (-1.000e+00)
212        Scale:  3.731e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
452    Prefactor:  8.493e-01  2.904e-01  0.000e+00  1.000e+01 ( 1.000e+00)
453        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
454        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
451   Normalization:  7.634e-01  5.860e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.09
Ra Dec: 64.227 1.088

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/351092/cmap_HighResolution_581212801_581472001_4FGL_J0416.9+0105_daily_bin1319.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.83e-02', job_status='DONE', photon_flux_upper_limit='5.17e-07', time_completed='2021-08-20 10:31:59.613177', job_id='351092', GAL2='0.85', fit_tolerance='1e-08', EG2='0.76', EG='0.76', time_epoch_completed='1629480719.61', return_code2='0', ts='0.09', comment='SUCCESS', return_code='0', GAL='0.85', dlogl='3.20e-02', ts2='0.16', photon_index_error='0.00', photon_index='1.88' WHERE bin_id='1319' AND source_name='4FGL J0416.9+0105' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 20 10:31:59 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0094>
Subject: Job 351092: <4FGL_J0416.9+0105_daily_bin1319> in cluster <slac> Done

Job <4FGL_J0416.9+0105_daily_bin1319> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Fri Aug 20 10:20:46 2021
Job was executed on host(s) <bullet0094>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Aug 20 10:20:48 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Aug 20 10:20:48 2021
Terminated at Fri Aug 20 10:32:01 2021
Results reported at Fri Aug 20 10:32:01 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0416.9+0105_daily_bin1319 64.2269 1.088 581212801 581472001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0416.9+0105 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   519.48 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             258.57 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   672 sec.
    Turnaround time :                            675 sec.

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

