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


Performing analysis on: 4FGL_J0416.9+0105_daily_bin694
RA = 64.2269, Dec = 1.088
tmin = 419212801, tmax = 419472001
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='348095', job_status='RUN', time_executed='2021-08-20 10:12:02.112190', time_epoch_executed='1629479522.11' WHERE source_name='4FGL J0416.9+0105' and cadence='daily' and bin_id='694'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/348095

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/348095/ft1_4FGL_J0416.9+0105_daily_bin694.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/348095/ft2_4FGL_J0416.9+0105_daily_bin694.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/348095/ft1_4FGL_J0416.9+0105_daily_bin694.fits outfile=/scratch/kocevski/348095/ft1_filteredMKT_4FGL_J0416.9+0105_daily_bin694.fits ra=64.2269 dec=1.088 rad=12.0 tmin=419212801.0 tmax=419472001.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 5.75
user 5.14
sys 0.57

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/348095/ft2_4FGL_J0416.9+0105_daily_bin694.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/348095/ft1_filteredMKT_4FGL_J0416.9+0105_daily_bin694.fits evtable="EVENTS" outfile="/scratch/kocevski/348095/ft1_filtered_4FGL_J0416.9+0105_daily_bin694.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.82
user 0.33
sys 0.46

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/348095/ft1_filtered_4FGL_J0416.9+0105_daily_bin694.fits" evtable="EVENTS" scfile=/scratch/kocevski/348095/ft2_4FGL_J0416.9+0105_daily_bin694.fits sctable="SC_DATA" outfile=/scratch/kocevski/348095/ltcube_419212801_419472001_4FGL_J0416.9+0105_daily_bin694.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/348095/ft2_4FGL_J0416.9+0105_daily_bin694.fits
.....................!
real 12.41
user 11.60
sys 0.72

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/348095/ft1_filtered_4FGL_J0416.9+0105_daily_bin694.fits evtable="EVENTS" scfile=/scratch/kocevski/348095/ft2_4FGL_J0416.9+0105_daily_bin694.fits sctable="SC_DATA" expcube=/scratch/kocevski/348095/ltcube_419212801_419472001_4FGL_J0416.9+0105_daily_bin694.fits outfile=/scratch/kocevski/348095/expmap_419212801_419472001_4FGL_J0416.9+0105_daily_bin694.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/348095/ltcube_419212801_419472001_4FGL_J0416.9+0105_daily_bin694.fits
.....................!
real 190.65
user 184.93
sys 5.26

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/348095/ft1_filtered_4FGL_J0416.9+0105_daily_bin694.fits scfile=/scratch/kocevski/348095/ft2_4FGL_J0416.9+0105_daily_bin694.fits outfile=/scratch/kocevski/348095/cmap_419212801_419472001_4FGL_J0416.9+0105_daily_bin694.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 0.83
user 0.38
sys 0.44

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/348095/ft1_filtered_4FGL_J0416.9+0105_daily_bin694.fits scfile=/scratch/kocevski/348095/ft2_4FGL_J0416.9+0105_daily_bin694.fits outfile=/scratch/kocevski/348095/cmap_HighResolution_419212801_419472001_4FGL_J0416.9+0105_daily_bin694.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 0.85
user 0.38
sys 0.46

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/348095/ft1_filtered_4FGL_J0416.9+0105_daily_bin694.fits evtable="EVENTS" scfile=/scratch/kocevski/348095/ft2_4FGL_J0416.9+0105_daily_bin694.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/348095/Model_4FGL_J0416.9+0105_daily_bin694.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/348095/ft1_filtered_4FGL_J0416.9+0105_daily_bin694.fits.....................!
real 130.10
user 127.96
sys 1.76

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/348095/ft1_filtered_4FGL_J0416.9+0105_daily_bin694.fits', '/scratch/kocevski/348095/ft2_4FGL_J0416.9+0105_daily_bin694.fits', expMap='/scratch/kocevski/348095/expmap_419212801_419472001_4FGL_J0416.9+0105_daily_bin694.fits', expCube='/scratch/kocevski/348095/ltcube_419212801_419472001_4FGL_J0416.9+0105_daily_bin694.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/348095/Model_4FGL_J0416.9+0105_daily_bin694.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/348095/ft1_filtered_4FGL_J0416.9+0105_daily_bin694.fits
Spacecraft file(s): /scratch/kocevski/348095/ft2_4FGL_J0416.9+0105_daily_bin694.fits
Exposure map: /scratch/kocevski/348095/expmap_419212801_419472001_4FGL_J0416.9+0105_daily_bin694.fits
Exposure cube: /scratch/kocevski/348095/ltcube_419212801_419472001_4FGL_J0416.9+0105_daily_bin694.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/348095/Model_4FGL_J0416.9+0105_daily_bin694.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) = 9727.92780191

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    7.2643       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    22.583       1.0000         .10000E-03   10000.    
     4 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    68.413       1.0000         .10000E-03   10000.    
     6 'norm      '    4.3655       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    34.151       1.0000         .10000E-03   10000.    
     9 'norm      '    20.809       1.0000         .10000E-03   10000.    
    10 'norm      '    .10991E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10066E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    3.6895       1.0000         .10000E-03   10000.    
    13 'Prefactor '    33.092       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .37983       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10042E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    7.2995       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10342E-02   1.0000         .10000E-03   10000.    
    19 'Prefactor '    25.857       1.0000         .10000E-03   10000.    
    20 'norm      '    3.6976       1.0000         .10000E-03   10000.    
    21 'Normalizat'    .52880       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.0591       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=   9727.920     FROM MIGRAD    STATUS=CONVERGED    487 CALLS     2434 TOTAL
                     EDM=   .90E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          7.2643        1.8395        .22526E-07   -.15639E-04
   2  Prefactor     .10000E-03    28.833       -.43646E-06** at limit **
   3  Prefactor     22.581        16.595        .24300E-07   -.25246E-04
   4  norm          .10000E-03    6.2427        .42875E-07** at limit **
   5  Prefactor     68.430        36.332        .10418E-05    .10677E-03
   6  norm          4.3661        4.6651       -.40145E-07   -.25525E-03
   7  Prefactor     .10000E-03    24.025        .20806E-05** at limit **
   8  norm          34.151        11.254        .63803E-08   -.94865E-04
   9  norm          20.811        24.883       -.36145E-06   -.35112E-04
  10  norm          .10000E-03    .47056        .27293E-06** at limit **
  11  Prefactor     .10000E-03    .73006        .42928E-06** at limit **
  12  Prefactor     3.7054        30.267       -.43655E-05    .40225E-04
  13  Prefactor     33.093        39.641       -.14277E-05   -.12209E-03
  14  Prefactor     .10000E-03    3.2171       -.15677E-07** at limit **
  15  norm          .37808        1.7483       -.48592E-06    .14735E-02
  16  Prefactor     .10000E-03    20.286       -.59199E-06** at limit **
  17  norm          7.2997        2.4359       -.24015E-07   -.24925E-03
  18  Prefactor     .10001E-03    3.0929        .70098E-06** at limit **
  19  Prefactor     25.840        27.414       -.18461E-05   -.19062E-03
  20  norm          3.6974        2.1604        .66139E-07   -.10631E-04
  21  Normalizat    .52879        .22769       -.69904E-06   -.12944E-03
  22  Prefactor     1.0591        .82821E-01   -.18427E-06   -.39790E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 7.26426
  Prefactor  = 0.0001
  Prefactor  = 22.5812
  norm       = 0.0001
  Prefactor  = 68.4301
  norm       = 4.3661
  Prefactor  = 0.000100001
  norm       = 34.1506
  norm       = 20.8111
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.70544
  Prefactor  = 33.093
  Prefactor  = 0.0001
  norm       = 0.378081
  Prefactor  = 0.0001
  norm       = 7.29969
  Prefactor  = 0.000100006
  Prefactor  = 25.8404
  norm       = 3.69744
  Normalizat = 0.528787
  Prefactor  = 1.05908
 **********
 **   18 **HESSE 
 **********

 FCN=   9727.920     FROM HESSE     STATUS=OK           356 CALLS     2790 TOTAL
                     EDM=   .61E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          7.2643        1.8351        .64019E-04   -1.5169    
   2  Prefactor     .10000E-03    28.879        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     22.581        16.598        .84288E-04   -1.4757    
   4  norm          .10000E-03    6.2479        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     68.430        36.420        .24264E-03   -1.4052    
   6  norm          4.3661        4.5433        .19277E-03   -1.5290    
   7  Prefactor     .10000E-03    24.358        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          34.151        11.223        .68573E-04   -1.4539    
   9  norm          20.811        24.782        .87803E-04   -1.4795    
  10  norm          .10000E-03    1.8292        .12066E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    .74775        .16436E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     3.7054        38.031        .21026E-03   -1.5323    
  13  Prefactor     33.093        38.817        .69658E-04   -1.4557    
  14  Prefactor     .10000E-03    3.2366        .17267E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .37808        5.4368        .18786E-02   -1.5585    
  16  Prefactor     .10000E-03    20.314        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          7.2997        2.4298        .83117E-04   -1.5168    
  18  Prefactor     .10001E-03    2.9675        .57916E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     25.840        27.649        .78779E-04   -1.4691    
  20  norm          3.6974        2.1526        .10583E-03   -1.5323    
  21  Normalizat    .52879        .22907        .51461E-03   -1.1110    
  22  Prefactor     1.0591        .86592E-01    .15372E-03   -.90785    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.05851e-09
Minuit parameter uncertainties:
  1  1.83509
  2  4.3192e-05
  3  16.6019
  4  3.88349e-06
  5  36.4322
  6  4.54368
  7  0.000309099
  8  11.2239
  9  24.7938
  10  4.09927e-05
  11  6.49727e-06
  12  23.7613
  13  38.8464
  14  2.5986e-06
  15  2.86738
  16  6.14281e-05
  17  2.42987
  18  0.000265202
  19  27.6622
  20  2.15269
  21  0.229476
  22  0.0866031
Done.

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

Extracting fit parameters...

4FGL J0416.9+0105
   Spectrum: PowerLaw
210    Prefactor:  6.843e+01  3.643e+01  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:  1.059e+00  8.660e-02  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:  5.288e-01  2.295e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 15.21
Ra Dec: 64.227 1.088
Photon Index (Fixed Index): 1.88 +/- 0.00
Photon Flux (Fixed Index): 6.93e-08 +/- 3.69e-08
Energy Flux (Fixed Index): 6.64e-05 +/- 3.54e-05

Performing a free index iterative likelihood fit...

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

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9727.91880448
delta logL = 0.00119029544112

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9727.91817737
delta logL = 0.00181740589869

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    69.714       1.0000         .10000E-03   10000.    
     2 'Index     '    1.8478       1.0000          .0000       10.000    
     3 'Normalizat'    .53098       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0592       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=   9727.918     FROM MIGRAD    STATUS=CONVERGED    106 CALLS      286 TOTAL
                     EDM=   .97E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     69.819        44.627        .48076E-04   -.29323E-05
   2  Index         1.8500        .44961        .64036E-02    .84979E-03
   3  Normalizat    .53075        .20466        .51376E-03    .21243E-05
   4  Prefactor     1.0591        .84105E-01    .15374E-03    .10057E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 69.8188
  Index      = 1.85003
  Normalizat = 0.530751
  Prefactor  = 1.05906
 **********
 **   18 **HESSE 
 **********

 FCN=   9727.918     FROM HESSE     STATUS=OK            25 CALLS      311 TOTAL
                     EDM=   .68E-13    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     69.819        43.005        .96152E-05   -1.4035    
   2  Index         1.8500        .43272        .12807E-02   -.68154    
   3  Normalizat    .53075        .20433        .20550E-04   -1.1101    
   4  Prefactor     1.0591        .84111E-01    .61494E-05   -.90786    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.79094e-14
Minuit parameter uncertainties:
  1  43.0239
  2  0.433617
  3  0.204618
  4  0.0841216
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/348095': 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) = 9727.91814063
delta logL = 0.00185415035412

Extracting fit parameters...

4FGL J0416.9+0105
   Spectrum: PowerLaw
210    Prefactor:  6.982e+01  4.302e+01  1.000e-04  1.000e+04 ( 1.000e-14)
211        Index:  1.850e+00  4.336e-01  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:  1.059e+00  8.412e-02  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:  5.308e-01  2.046e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 15.21
Ra Dec: 64.227 1.088
Photon Index (Free Index): 1.85 +/- 0.43
Photon Flux (Free Index): 6.63e-08 +/- 6.04e-08
Energy Flux (Free Index): 6.85e-05 +/- 4.99e-05

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/348095/cmap_HighResolution_419212801_419472001_4FGL_J0416.9+0105_daily_bin694.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='6.93e-08', energy_flux2='6.85e-05', photon_flux_error='3.69e-08', dlogl='1.85e-03', energy_flux='6.64e-05', photon_flux2='6.63e-08', job_status='DONE', time_completed='2021-08-20 10:23:47.769987', photon_index_error2='0.43', photon_index2='1.85', ts='15.21', fit_tolerance='1e-08', GAL='1.06', photon_index_error='0.00', energy_flux_error2='4.99e-05', EG='0.53', time_epoch_completed='1629480227.77', return_code='0', job_id='348095', GAL2='1.06', EG2='0.53', return_code2='0', energy_flux_error='3.54e-05', photon_flux_error2='6.04e-08', ts2='15.21', photon_index='1.88' WHERE bin_id='694' AND source_name='4FGL J0416.9+0105' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 20 10:23:47 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0051>
Subject: Job 348095: <4FGL_J0416.9+0105_daily_bin694> in cluster <slac> Done

Job <4FGL_J0416.9+0105_daily_bin694> was submitted from host <rhel6-64n> by user <kocevski> in cluster <slac> at Fri Aug 20 10:10:35 2021
Job was executed on host(s) <bullet0051>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Aug 20 10:10:38 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:10:38 2021
Terminated at Fri Aug 20 10:23:48 2021
Results reported at Fri Aug 20 10:23:48 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0416.9+0105_daily_bin694 64.2269 1.088 419212801 419472001 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 :                                   709.14 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             336.87 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   790 sec.
    Turnaround time :                            793 sec.

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

