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


Performing analysis on: 4FGL_J0416.9+0105_daily_bin1417
RA = 64.2269, Dec = 1.088
tmin = 606614401, tmax = 606873601
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='351231', job_status='RUN', time_executed='2021-08-20 10:24:20.292904', time_epoch_executed='1629480260.29' WHERE source_name='4FGL J0416.9+0105' and cadence='daily' and bin_id='1417'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/351231

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/351231/ft1_4FGL_J0416.9+0105_daily_bin1417.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/351231/ft2_4FGL_J0416.9+0105_daily_bin1417.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/351231/ft1_4FGL_J0416.9+0105_daily_bin1417.fits outfile=/scratch/kocevski/351231/ft1_filteredMKT_4FGL_J0416.9+0105_daily_bin1417.fits ra=64.2269 dec=1.088 rad=12.0 tmin=606614401.0 tmax=606873601.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 10.47
user 4.84
sys 5.60

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/351231/ft1_filtered_4FGL_J0416.9+0105_daily_bin1417.fits" evtable="EVENTS" scfile=/scratch/kocevski/351231/ft2_4FGL_J0416.9+0105_daily_bin1417.fits sctable="SC_DATA" outfile=/scratch/kocevski/351231/ltcube_606614401_606873601_4FGL_J0416.9+0105_daily_bin1417.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/351231/ft2_4FGL_J0416.9+0105_daily_bin1417.fits
.....................!
real 19.21
user 12.76
sys 6.39

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/351231/ft1_filtered_4FGL_J0416.9+0105_daily_bin1417.fits evtable="EVENTS" scfile=/scratch/kocevski/351231/ft2_4FGL_J0416.9+0105_daily_bin1417.fits sctable="SC_DATA" expcube=/scratch/kocevski/351231/ltcube_606614401_606873601_4FGL_J0416.9+0105_daily_bin1417.fits outfile=/scratch/kocevski/351231/expmap_606614401_606873601_4FGL_J0416.9+0105_daily_bin1417.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/351231/ltcube_606614401_606873601_4FGL_J0416.9+0105_daily_bin1417.fits
.....................!
real 199.32
user 187.04
sys 11.92

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/351231/ft1_filtered_4FGL_J0416.9+0105_daily_bin1417.fits scfile=/scratch/kocevski/351231/ft2_4FGL_J0416.9+0105_daily_bin1417.fits outfile=/scratch/kocevski/351231/cmap_606614401_606873601_4FGL_J0416.9+0105_daily_bin1417.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.84
user 0.41
sys 5.41

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/351231/ft1_filtered_4FGL_J0416.9+0105_daily_bin1417.fits scfile=/scratch/kocevski/351231/ft2_4FGL_J0416.9+0105_daily_bin1417.fits outfile=/scratch/kocevski/351231/cmap_HighResolution_606614401_606873601_4FGL_J0416.9+0105_daily_bin1417.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.91
user 0.38
sys 5.43

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .14133E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    16.591       1.0000         .10000E-03   10000.    
     6 'norm      '    .10019E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10041E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .16577       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10052E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    4.6996       1.0000         .10000E-03   10000.    
    13 'Prefactor '    14.779       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    6.2256       1.0000         .10000E-03   10000.    
    16 'Prefactor '    14.869       1.0000         .10000E-03   10000.    
    17 'norm      '    1.9393       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .11895E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    2.9412       1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.0440       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .99248       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=   9177.758     FROM MIGRAD    STATUS=CONVERGED    482 CALLS     2359 TOTAL
                     EDM=   .63E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    .31567        .86460E-07** at limit **
   2  Prefactor     .10000E-03    70.121        .12725E-05** at limit **
   3  Prefactor     .10000E-03    9.1658        .17042E-06** at limit **
   4  norm          .10000E-03    13.699        .17351E-06** at limit **
   5  Prefactor     16.590        16.567        .64645E-07    .30156E-04
   6  norm          .10000E-03    3.2460        .21229E-06** at limit **
   7  Prefactor     .10000E-03    28.790       -.83572E-06** at limit **
   8  norm          .10000E-03    3.9021        .17339E-06** at limit **
   9  norm          .10000E-03    16.938       -.13537E-06** at limit **
  10  norm          .16631        .61623       -.29262E-07   -.58722E-04
  11  Prefactor     .10000E-03    .71766       -.72831E-06** at limit **
  12  Prefactor     4.7037        24.228       -.14440E-06    .28842E-04
  13  Prefactor     14.744        35.294        .25256E-05    .49585E-04
  14  Prefactor     .10000E-03    3.0564       -.76328E-07** at limit **
  15  norm          6.2262        3.3397        .23636E-07    .26485E-03
  16  Prefactor     14.762        52.274       -.15385E-05   -.55171E-05
  17  norm          1.9394        1.6533        .17292E-07    .58662E-04
  18  Prefactor     .10000E-03    16.301       -.33458E-05** at limit **
  19  Prefactor     .10000E-03    16.659       -.20893E-07** at limit **
  20  norm          2.9413        1.8888        .22144E-07    .24323E-04
  21  Normalizat    1.0441        .19184       -.16123E-05    .17407E-03
  22  Prefactor     .99240        .78998E-01    .96007E-06    .38968E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 16.59
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.166312
  Prefactor  = 0.0001
  Prefactor  = 4.70375
  Prefactor  = 14.744
  Prefactor  = 0.0001
  norm       = 6.22616
  Prefactor  = 14.7624
  norm       = 1.93939
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.94126
  Normalizat = 1.04408
  Prefactor  = 0.992402
 **********
 **   18 **HESSE 
 **********

 FCN=   9177.758     FROM HESSE     STATUS=OK           344 CALLS     2703 TOTAL
                     EDM=   .39E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    .32208        .52509E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    71.272        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    9.1981        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    13.811        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     16.590        16.560        .98329E-04   -1.4893    
   6  norm          .10000E-03    3.3456        .33638E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    29.011        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    3.9311        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    17.007        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .16631        .89764        .12804E-02   -1.5626    
  11  Prefactor     .10000E-03    .76090        .15992E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     4.7037        23.672        .18563E-03   -1.5274    
  13  Prefactor     14.744        34.956        .10418E-03   -1.4940    
  14  Prefactor     .10000E-03    3.0733        .16352E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          6.2262        3.3054        .11030E-03   -1.5209    
  16  Prefactor     14.762        52.376        .10387E-03   -1.4939    
  17  norm          1.9394        1.6471        .10852E-03   -1.5429    
  18  Prefactor     .10000E-03    16.581        .36285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    16.707        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          2.9413        1.8840        .10220E-03   -1.5365    
  21  Normalizat    1.0441        .20507        .37063E-03   -.91568    
  22  Prefactor     .99240        .84823E-01    .15827E-03   -.92983    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.86688e-08
Minuit parameter uncertainties:
  1  1.57905e-07
  2  3.845e-05
  3  5.98071e-06
  4  8.7041e-06
  5  16.5645
  6  3.03046e-06
  7  1.64495e-05
  8  1.82574e-06
  9  1.32658e-05
  10  0.772544
  11  2.44103e-06
  12  21.1174
  13  35.0048
  14  8.49142e-07
  15  3.30548
  16  52.5402
  17  1.64709
  18  6.86274e-05
  19  2.72965e-06
  20  1.88401
  21  0.205221
  22  0.0848345
Done.

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

Extracting fit parameters...

4FGL J0416.9+0105
   Spectrum: PowerLaw
210    Prefactor:  1.659e+01  1.656e+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:  9.924e-01  8.483e-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:  1.044e+00  2.052e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.45
Ra Dec: 64.227 1.088
Photon Index (Fixed Index): 1.88 +/- 0.00
Photon Flux (Fixed Index): 1.68e-08 +/- 1.68e-08
Energy Flux (Fixed Index): 1.61e-05 +/- 1.61e-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) = 9176.49315245
delta logL = 1.26474591114

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9176.48247452
delta logL = 1.27542384738

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    13.492       1.0000         .10000E-03   10000.    
     2 'Index     '    .75963       1.0000          .0000       10.000    
     3 'Normalizat'    1.0466       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .99489       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=   9176.482     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      213 TOTAL
                     EDM=   .45E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     13.465        13.891        .27262E-02   -.44298E-03
   2  Index         .75872        .55647        .41633       -.35837E-04
   3  Normalizat    1.0466        .17815        .83627E-01    .17973E-03
   4  Prefactor     .99489        .74764E-01    .46203E-01   -.10453E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 13.4653
  Index      = 0.75872
  Normalizat = 1.04656
  Prefactor  = 0.994892
 **********
 **   18 **HESSE 
 **********

 FCN=   9176.482     FROM HESSE     STATUS=OK            33 CALLS      246 TOTAL
                     EDM=   .16E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     13.465        19.022        .54523E-03   -1.4974    
   2  Index         .75872        .71869        .19362E-01   -1.0127    
   3  Normalizat    1.0466        .19741        .37025E-03   -.91486    
   4  Prefactor     .99489        .83045E-01    .15810E-03   -.92900    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.62019e-10
Minuit parameter uncertainties:
  1  19.0304
  2  0.727816
  3  0.197553
  4  0.0830553
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/351231': 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) = 9176.48247355
delta logL = 1.275424818

Extracting fit parameters...

4FGL J0416.9+0105
   Spectrum: PowerLaw
210    Prefactor:  1.347e+01  1.903e+01  1.000e-04  1.000e+04 ( 1.000e-14)
211        Index:  7.587e-01  7.278e-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:  9.949e-01  8.306e-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:  1.047e+00  1.976e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 7.00
Ra Dec: 64.227 1.088
Photon Index (Free Index): 0.76 +/- 0.73
Photon Flux (Free Index): 3.73e-09 +/- 4.12e-09
Energy Flux (Free Index): 8.95e-05 +/- 1.16e-04

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/351231/cmap_HighResolution_606614401_606873601_4FGL_J0416.9+0105_daily_bin1417.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.68e-08', energy_flux2='8.95e-05', photon_flux_error='1.68e-08', dlogl='1.28e+00', energy_flux='1.61e-05', photon_flux2='3.73e-09', job_status='DONE', time_completed='2021-08-20 10:37:05.171944', photon_index_error2='0.73', photon_index2='0.76', ts='4.45', fit_tolerance='1e-08', GAL='0.99', photon_index_error='0.00', energy_flux_error2='1.16e-04', EG='1.04', time_epoch_completed='1629481025.17', return_code='0', job_id='351231', GAL2='0.99', EG2='1.05', return_code2='0', energy_flux_error='1.61e-05', photon_flux_error2='4.12e-09', ts2='7.00', photon_index='1.88' WHERE bin_id='1417' AND source_name='4FGL J0416.9+0105' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 20 10:37:05 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0239>
Subject: Job 351231: <4FGL_J0416.9+0105_daily_bin1417> in cluster <slac> Done

Job <4FGL_J0416.9+0105_daily_bin1417> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Fri Aug 20 10:20:57 2021
Job was executed on host(s) <bullet0239>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Aug 20 10:20:59 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:59 2021
Terminated at Fri Aug 20 10:37:07 2021
Results reported at Fri Aug 20 10:37:07 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0416.9+0105_daily_bin1417 64.2269 1.088 606614401 606873601 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 :                                   840.32 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             281.10 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   967 sec.
    Turnaround time :                            970 sec.

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

