/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 = 7554
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J0416.9+0105_daily_bin211
RA = 64.2269, Dec = 1.088
tmin = 294019201, tmax = 294278401
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='345298', job_status='RUN', time_executed='2021-08-20 10:02:05.178436', time_epoch_executed='1629478925.18' WHERE source_name='4FGL J0416.9+0105' and cadence='daily' and bin_id='211'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/345298

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/345298/ft1_4FGL_J0416.9+0105_daily_bin211.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/345298/ft2_4FGL_J0416.9+0105_daily_bin211.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/345298/ft1_4FGL_J0416.9+0105_daily_bin211.fits outfile=/scratch/kocevski/345298/ft1_filteredMKT_4FGL_J0416.9+0105_daily_bin211.fits ra=64.2269 dec=1.088 rad=12.0 tmin=294019201.0 tmax=294278401.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 3.36
user 2.89
sys 0.45

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/345298/ft2_4FGL_J0416.9+0105_daily_bin211.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/345298/ft1_filteredMKT_4FGL_J0416.9+0105_daily_bin211.fits evtable="EVENTS" outfile="/scratch/kocevski/345298/ft1_filtered_4FGL_J0416.9+0105_daily_bin211.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.92
user 0.31
sys 0.38

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/345298/ft1_filtered_4FGL_J0416.9+0105_daily_bin211.fits" evtable="EVENTS" scfile=/scratch/kocevski/345298/ft2_4FGL_J0416.9+0105_daily_bin211.fits sctable="SC_DATA" outfile=/scratch/kocevski/345298/ltcube_294019201_294278401_4FGL_J0416.9+0105_daily_bin211.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/345298/ft2_4FGL_J0416.9+0105_daily_bin211.fits
.....................!
real 12.81
user 12.02
sys 0.70

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/345298/ft1_filtered_4FGL_J0416.9+0105_daily_bin211.fits evtable="EVENTS" scfile=/scratch/kocevski/345298/ft2_4FGL_J0416.9+0105_daily_bin211.fits sctable="SC_DATA" expcube=/scratch/kocevski/345298/ltcube_294019201_294278401_4FGL_J0416.9+0105_daily_bin211.fits outfile=/scratch/kocevski/345298/expmap_294019201_294278401_4FGL_J0416.9+0105_daily_bin211.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/345298/ltcube_294019201_294278401_4FGL_J0416.9+0105_daily_bin211.fits
.....................!
real 192.24
user 185.80
sys 6.06

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/345298/ft1_filtered_4FGL_J0416.9+0105_daily_bin211.fits scfile=/scratch/kocevski/345298/ft2_4FGL_J0416.9+0105_daily_bin211.fits outfile=/scratch/kocevski/345298/cmap_294019201_294278401_4FGL_J0416.9+0105_daily_bin211.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.75
user 0.38
sys 0.35

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/345298/ft1_filtered_4FGL_J0416.9+0105_daily_bin211.fits scfile=/scratch/kocevski/345298/ft2_4FGL_J0416.9+0105_daily_bin211.fits outfile=/scratch/kocevski/345298/cmap_HighResolution_294019201_294278401_4FGL_J0416.9+0105_daily_bin211.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.76
user 0.36
sys 0.38

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .99248       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10335E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    42.780       1.0000         .10000E-03   10000.    
     4 'norm      '    .10081E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    71.084       1.0000         .10000E-03   10000.    
     6 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    6.6953       1.0000         .10000E-03   10000.    
     8 'norm      '    .10042E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .11105E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .11507E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .14697E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    32.888       1.0000         .10000E-03   10000.    
    14 'Prefactor '    6.1052       1.0000         .10000E-03   10000.    
    15 'norm      '    1.6829       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .16351E-01   1.0000         .10000E-03   10000.    
    17 'norm      '    10.805       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .12101E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10041E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    .71110       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.0762       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.

 FCN=   10056.12     FROM MIGRAD    STATUS=CONVERGED    525 CALLS     2494 TOTAL
                     EDM=   .13E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .99325        1.6651        .13139E-01    .18682E-02
   2  Prefactor     .10000E-03    57.555        .90712E-02** at limit **
   3  Prefactor     42.783        20.975        .15323E-02   -.53835E-04
   4  norm          .10000E-03    36.482        .90712E-02** at limit **
   5  Prefactor     71.067        38.015        .11903E-02    .11463E-03
   6  norm          .10000E-03    1.0552        .90712E-02** at limit **
   7  Prefactor     6.7015        19.193        .38769E-02   -.84477E-04
   8  norm          .10000E-03    4.3197        .90712E-02** at limit **
   9  norm          .10000E-03    25.519        .90712E-02** at limit **
  10  norm          .10000E-03    .21770        .90712E-02** at limit **
  11  Prefactor     .10000E-03    .81728        .30746E-01** at limit **
  12  Prefactor     .10001E-03    18.612        .11433    ** at limit **
  13  Prefactor     32.869        37.086        .17468E-02   -.27571E-03
  14  Prefactor     6.1030        7.5809        .40622E-02   -.34199E-02
  15  norm          1.6834        3.1612        .81166E-02    .14805E-02
  16  Prefactor     .10001E-03    17.714        .15547    ** at limit **
  17  norm          10.805        2.8906        .30471E-02    .14638E-03
  18  Prefactor     .10000E-03    2.5095        .58494E-01** at limit **
  19  Prefactor     .10000E-03    21.259        .90712E-02** at limit **
  20  norm          .10000E-03    .57541        .42306E-01** at limit **
  21  Normalizat    .71097        .20674        .10288        .53683E-04
  22  Prefactor     1.0762        .78250E-01    .38568E-01   -.32323E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.993255
  Prefactor  = 0.000100002
  Prefactor  = 42.7826
  norm       = 0.0001
  Prefactor  = 71.0675
  norm       = 0.0001
  Prefactor  = 6.70149
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100005
  Prefactor  = 32.8692
  Prefactor  = 6.10302
  norm       = 1.68336
  Prefactor  = 0.000100007
  norm       = 10.8051
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 0.710966
  Prefactor  = 1.07622
 **********
 **   18 **HESSE 
 **********

 FCN=   10056.12     FROM HESSE     STATUS=OK           356 CALLS     2850 TOTAL
                     EDM=   .13E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .99325        1.6412        .15333E-03   -1.5509    
   2  Prefactor     .10000E-03    57.779        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     42.783        20.949        .61292E-04   -1.4399    
   4  norm          .10000E-03    37.466        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     71.067        37.742        .47614E-04   -1.4020    
   6  norm          .10000E-03    1.0579        .10058E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     6.7015        19.107        .15508E-03   -1.5190    
   8  norm          .10000E-03    4.3796        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    25.633        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    .22143        .45615E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    1.4888        .16713E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10001E-03    98.228        .69937E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     32.869        35.691        .69873E-04   -1.4561    
  14  Prefactor     6.1030        7.5809        .16249E-03   -1.5214    
  15  norm          1.6834        2.7034        .19532E-03   -1.5448    
  16  Prefactor     .10001E-03    18.059        .15219       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          10.805        2.8876        .81775E-04   -1.5050    
  18  Prefactor     .10000E-03    11.486        .30622E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    21.334        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    .95966        .14742E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    .71097        .21562        .45608E-03   -1.0346    
  22  Prefactor     1.0762        .84570E-01    .15484E-03   -.90230    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.27219e-08
Minuit parameter uncertainties:
  1  1.64126
  2  0.000724272
  3  20.9524
  4  0.000247734
  5  37.7543
  6  1.13356e-06
  7  19.1244
  8  1.12119e-06
  9  6.37503e-05
  10  1.40867e-07
  11  1.72147e-07
  12  0.00144252
  13  35.7137
  14  7.58208
  15  2.70364
  16  0.000710998
  17  2.88762
  18  2.84648e-06
  19  2.24022e-05
  20  1.83823e-07
  21  0.215874
  22  0.0845803
Done.

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

Extracting fit parameters...

4FGL J0416.9+0105
   Spectrum: PowerLaw
210    Prefactor:  7.107e+01  3.775e+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.076e+00  8.458e-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:  7.110e-01  2.159e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 7.63
Ra Dec: 64.227 1.088
Photon Index (Fixed Index): 1.88 +/- 0.00
Photon Flux (Fixed Index): 7.19e-08 +/- 3.82e-08
Energy Flux (Fixed Index): 6.90e-05 +/- 3.67e-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) = 10056.1108627
delta logL = 0.00586847764134

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 10056.1053182
delta logL = 0.0114130175625

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    66.591       1.0000         .10000E-03   10000.    
     2 'Index     '    1.9263       1.0000          .0000       10.000    
     3 'Normalizat'    .70841       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0762       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=   10056.11     FROM MIGRAD    STATUS=CONVERGED     93 CALLS      276 TOTAL
                     EDM=   .12E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     66.580        49.260        .49183E-04    .90888E-04
   2  Index         1.9264        .35467        .50960E-02    .45752E-04
   3  Normalizat    .70819        .19722        .45686E-03    .17499E-03
   4  Prefactor     1.0763        .81595E-01    .15483E-03    .15934E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 66.58
  Index      = 1.92644
  Normalizat = 0.708193
  Prefactor  = 1.07633
 **********
 **   18 **HESSE 
 **********

 FCN=   10056.11     FROM HESSE     STATUS=OK            25 CALLS      301 TOTAL
                     EDM=   .14E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     66.580        46.626        .98366E-05   -1.4074    
   2  Index         1.9264        .33549        .20384E-03   -.66202    
   3  Normalizat    .70819        .19711        .18274E-04   -1.0357    
   4  Prefactor     1.0763        .81612E-01    .61930E-05   -.90227    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.35263e-10
Minuit parameter uncertainties:
  1  46.6514
  2  0.335895
  3  0.197303
  4  0.0816216
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/345298': 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) = 10056.1053174
delta logL = 0.0114138471217

Extracting fit parameters...

4FGL J0416.9+0105
   Spectrum: PowerLaw
210    Prefactor:  6.658e+01  4.665e+01  1.000e-04  1.000e+04 ( 1.000e-14)
211        Index:  1.926e+00  3.359e-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.076e+00  8.162e-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:  7.082e-01  1.973e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 7.63
Ra Dec: 64.227 1.088
Photon Index (Free Index): 1.93 +/- 0.34
Photon Flux (Free Index): 7.65e-08 +/- 5.00e-08
Energy Flux (Free Index): 6.39e-05 +/- 4.66e-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/345298/cmap_HighResolution_294019201_294278401_4FGL_J0416.9+0105_daily_bin211.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='7.19e-08', energy_flux2='6.39e-05', photon_flux_error='3.82e-08', dlogl='1.14e-02', energy_flux='6.90e-05', photon_flux2='7.65e-08', job_status='DONE', time_completed='2021-08-20 10:14:14.798011', photon_index_error2='0.34', photon_index2='1.93', ts='7.63', fit_tolerance='1e-08', GAL='1.08', photon_index_error='0.00', energy_flux_error2='4.66e-05', EG='0.71', time_epoch_completed='1629479654.8', return_code='0', job_id='345298', GAL2='1.08', EG2='0.71', return_code2='0', energy_flux_error='3.67e-05', photon_flux_error2='5.00e-08', ts2='7.63', photon_index='1.88' WHERE bin_id='211' AND source_name='4FGL J0416.9+0105' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 20 10:14:14 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0043>
Subject: Job 345298: <4FGL_J0416.9+0105_daily_bin211> in cluster <slac> Done

Job <4FGL_J0416.9+0105_daily_bin211> was submitted from host <rhel6-64o> by user <kocevski> in cluster <slac> at Fri Aug 20 10:00:38 2021
Job was executed on host(s) <bullet0043>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Aug 20 10:00:40 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Aug 20 10:00:40 2021
Terminated at Fri Aug 20 10:14:15 2021
Results reported at Fri Aug 20 10:14:15 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0416.9+0105_daily_bin211 64.2269 1.088 294019201 294278401 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 :                                   732.00 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             368.50 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   815 sec.
    Turnaround time :                            817 sec.

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

