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


Performing analysis on: 4FGL_J0416.9+0105_daily_bin772
RA = 64.2269, Dec = 1.088
tmin = 439430401, tmax = 439689601
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='348207', job_status='RUN', time_executed='2021-08-20 10:14:55.930049', time_epoch_executed='1629479695.93' WHERE source_name='4FGL J0416.9+0105' and cadence='daily' and bin_id='772'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/348207

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/348207/ft1_4FGL_J0416.9+0105_daily_bin772.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/348207/ft2_4FGL_J0416.9+0105_daily_bin772.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/348207/ft1_4FGL_J0416.9+0105_daily_bin772.fits outfile=/scratch/kocevski/348207/ft1_filteredMKT_4FGL_J0416.9+0105_daily_bin772.fits ra=64.2269 dec=1.088 rad=12.0 tmin=439430401.0 tmax=439689601.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.87
user 4.62
sys 1.23

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/348207/ft2_4FGL_J0416.9+0105_daily_bin772.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/348207/ft1_filteredMKT_4FGL_J0416.9+0105_daily_bin772.fits evtable="EVENTS" outfile="/scratch/kocevski/348207/ft1_filtered_4FGL_J0416.9+0105_daily_bin772.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 1.29
user 0.34
sys 0.94

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/348207/ft1_filtered_4FGL_J0416.9+0105_daily_bin772.fits" evtable="EVENTS" scfile=/scratch/kocevski/348207/ft2_4FGL_J0416.9+0105_daily_bin772.fits sctable="SC_DATA" outfile=/scratch/kocevski/348207/ltcube_439430401_439689601_4FGL_J0416.9+0105_daily_bin772.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/348207/ft2_4FGL_J0416.9+0105_daily_bin772.fits
.....................!
real 12.57
user 11.31
sys 1.23

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/348207/ft1_filtered_4FGL_J0416.9+0105_daily_bin772.fits evtable="EVENTS" scfile=/scratch/kocevski/348207/ft2_4FGL_J0416.9+0105_daily_bin772.fits sctable="SC_DATA" expcube=/scratch/kocevski/348207/ltcube_439430401_439689601_4FGL_J0416.9+0105_daily_bin772.fits outfile=/scratch/kocevski/348207/expmap_439430401_439689601_4FGL_J0416.9+0105_daily_bin772.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/348207/ltcube_439430401_439689601_4FGL_J0416.9+0105_daily_bin772.fits
.....................!
real 191.17
user 185.25
sys 5.58

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/348207/ft1_filtered_4FGL_J0416.9+0105_daily_bin772.fits scfile=/scratch/kocevski/348207/ft2_4FGL_J0416.9+0105_daily_bin772.fits outfile=/scratch/kocevski/348207/cmap_439430401_439689601_4FGL_J0416.9+0105_daily_bin772.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 1.34
user 0.37
sys 0.94

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/348207/ft1_filtered_4FGL_J0416.9+0105_daily_bin772.fits scfile=/scratch/kocevski/348207/ft2_4FGL_J0416.9+0105_daily_bin772.fits outfile=/scratch/kocevski/348207/cmap_HighResolution_439430401_439689601_4FGL_J0416.9+0105_daily_bin772.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 1.33
user 0.39
sys 0.93

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.9085       1.0000         .10000E-03   10000.    
     2 'Prefactor '    32.872       1.0000         .10000E-03   10000.    
     3 'Prefactor '    15.863       1.0000         .10000E-03   10000.    
     4 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    52.956       1.0000         .10000E-03   10000.    
     6 'norm      '    .10011E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10042E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    13.339       1.0000         .10000E-03   10000.    
     9 'norm      '    25.825       1.0000         .10000E-03   10000.    
    10 'norm      '    .63667       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    1.0768       1.0000         .10000E-03   10000.    
    15 'norm      '    17.390       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10057E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .44195       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .15910E-02   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    3.9329       1.0000         .10000E-03   10000.    
    21 'Normalizat'    .61806       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.0008       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=   7058.247     FROM MIGRAD    STATUS=CONVERGED    495 CALLS     2415 TOTAL
                     EDM=   .53E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.9083        1.8118        .65045E-07    .29514E-04
   2  Prefactor     32.862        44.838       -.81858E-06   -.18947E-03
   3  Prefactor     15.859        20.468        .53963E-06   -.16657E-04
   4  norm          .10000E-03    8.7206        .32541E-07** at limit **
   5  Prefactor     52.962        34.701        .13767E-06    .13752E-03
   6  norm          .10000E-03    2.4431       -.42212E-08** at limit **
   7  Prefactor     .10000E-03    14.340        .57753E-06** at limit **
   8  norm          13.338        10.629        .54098E-07   -.50819E-04
   9  norm          25.837        28.525        .25333E-06    .20140E-03
  10  norm          .63668        .88962        .10955E-06   -.64904E-03
  11  Prefactor     .10000E-03    .65464        .60617E-07** at limit **
  12  Prefactor     .10000E-03    11.781       -.22353E-06** at limit **
  13  Prefactor     .10000E-03    38.704        .48651E-06** at limit **
  14  Prefactor     1.0770        11.094        .47567E-05    .68376E-04
  15  norm          17.393        4.0845       -.15426E-08   -.43176E-03
  16  Prefactor     .10000E-03    69.724       -.54619E-06** at limit **
  17  norm          .44174        1.9762        .12585E-05   -.65544E-03
  18  Prefactor     .10000E-03    5.5310        .78477E-06** at limit **
  19  Prefactor     .10000E-03    18.248       -.64565E-06** at limit **
  20  norm          3.9325        2.2395       -.60577E-08   -.11421E-03
  21  Normalizat    .61815        .25259       -.29260E-05   -.17159E-03
  22  Prefactor     1.0008        .92623E-01    .32255E-06   -.37240E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 3.90828
  Prefactor  = 32.8618
  Prefactor  = 15.8587
  norm       = 0.0001
  Prefactor  = 52.9618
  norm       = 0.0001
  Prefactor  = 0.000100001
  norm       = 13.3382
  norm       = 25.8366
  norm       = 0.636684
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.077
  norm       = 17.393
  Prefactor  = 0.000100001
  norm       = 0.441741
  Prefactor  = 0.000100005
  Prefactor  = 0.000100001
  norm       = 3.93254
  Normalizat = 0.618152
  Prefactor  = 1.00084
 **********
 **   18 **HESSE 
 **********

 FCN=   7058.247     FROM HESSE     STATUS=OK           344 CALLS     2759 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.9083        1.8097        .73632E-04   -1.5313    
   2  Prefactor     32.862        45.804        .69890E-04   -1.4561    
   3  Prefactor     15.859        20.475        .10056E-03   -1.4911    
   4  norm          .10000E-03    8.7274        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     52.962        34.753        .55115E-04   -1.4251    
   6  norm          .10000E-03    2.4855        .12813E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    14.547        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          13.338        10.620        .10967E-03   -1.4977    
   9  norm          25.837        28.663        .78828E-04   -1.4691    
  10  norm          .63668        .76022        .88465E-03   -1.5548    
  11  Prefactor     .10000E-03    1.0945        .12837E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    11.865        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    38.908        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     1.0770        11.042        .46569E-03   -1.5500    
  15  norm          17.393        4.0342        .76604E-04   -1.4874    
  16  Prefactor     .10000E-03    70.196        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .44174        2.1196        .22642E-03   -1.5575    
  18  Prefactor     .10000E-03    19.709        .36907E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    18.508        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          3.9325        2.2374        .91887E-04   -1.5311    
  21  Normalizat    .61815        .26059        .47571E-03   -1.0722    
  22  Prefactor     1.0008        .98025E-01    .15118E-03   -.92702    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.38946e-09
Minuit parameter uncertainties:
  1  1.8097
  2  45.8533
  3  20.4843
  4  9.17371e-06
  5  34.7667
  6  4.51358e-06
  7  0.000209939
  8  10.6218
  9  28.6785
  10  0.760235
  11  2.73521e-05
  12  0.000106875
  13  0.000220687
  14  6.89844
  15  4.03429
  16  0.000458165
  17  1.93516
  18  0.000621182
  19  0.00027262
  20  2.23745
  21  0.261107
  22  0.0980425
Done.

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

Extracting fit parameters...

4FGL J0416.9+0105
   Spectrum: PowerLaw
210    Prefactor:  5.296e+01  3.477e+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.001e+00  9.804e-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:  6.182e-01  2.611e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.91
Ra Dec: 64.227 1.088
Photon Index (Fixed Index): 1.88 +/- 0.00
Photon Flux (Fixed Index): 5.36e-08 +/- 3.52e-08
Energy Flux (Fixed Index): 5.14e-05 +/- 3.38e-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) = 7058.23021747
delta logL = 0.0165456887798

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7058.21955056
delta logL = 0.0272125957636

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    59.029       1.0000         .10000E-03   10000.    
     2 'Index     '    1.7746       1.0000          .0000       10.000    
     3 'Normalizat'    .62236       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0007       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=   7058.220     FROM MIGRAD    STATUS=CONVERGED     93 CALLS      263 TOTAL
                     EDM=   .21E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     59.023        46.836        .52219E-04    .49290E-04
   2  Index         1.7745        .44947        .65285E-02    .28153E-04
   3  Normalizat    .62235        .24045        .47429E-03    .67883E-04
   4  Prefactor     1.0007        .96342E-01    .15121E-03    .17122E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 59.0226
  Index      = 1.77452
  Normalizat = 0.622354
  Prefactor  = 1.00074
 **********
 **   18 **HESSE 
 **********

 FCN=   7058.220     FROM HESSE     STATUS=OK            25 CALLS      288 TOTAL
                     EDM=   .21E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     59.023        45.367        .10444E-04   -1.4170    
   2  Index         1.7745        .43534        .26114E-03   -.70115    
   3  Normalizat    .62235        .24040        .18972E-04   -1.0704    
   4  Prefactor     1.0007        .96361E-01    .30242E-04   -.92705    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.11027e-11
Minuit parameter uncertainties:
  1  45.3938
  2  0.436283
  3  0.240802
  4  0.0963775
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/348207': 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) = 7058.21955049
delta logL = 0.0272126712507

Extracting fit parameters...

4FGL J0416.9+0105
   Spectrum: PowerLaw
210    Prefactor:  5.902e+01  4.539e+01  1.000e-04  1.000e+04 ( 1.000e-14)
211        Index:  1.775e+00  4.363e-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.001e+00  9.638e-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:  6.224e-01  2.408e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.96
Ra Dec: 64.227 1.088
Photon Index (Free Index): 1.77 +/- 0.44
Photon Flux (Free Index): 4.67e-08 +/- 4.27e-08
Energy Flux (Free Index): 6.04e-05 +/- 5.81e-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/348207/cmap_HighResolution_439430401_439689601_4FGL_J0416.9+0105_daily_bin772.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='5.36e-08', energy_flux2='6.04e-05', photon_flux_error='3.52e-08', dlogl='2.72e-02', energy_flux='5.14e-05', photon_flux2='4.67e-08', job_status='DONE', time_completed='2021-08-20 10:25:04.295494', photon_index_error2='0.44', photon_index2='1.77', ts='5.91', fit_tolerance='1e-08', GAL='1.00', photon_index_error='0.00', energy_flux_error2='5.81e-05', EG='0.62', time_epoch_completed='1629480304.3', return_code='0', job_id='348207', GAL2='1.00', EG2='0.62', return_code2='0', energy_flux_error='3.38e-05', photon_flux_error2='4.27e-08', ts2='5.96', photon_index='1.88' WHERE bin_id='772' AND source_name='4FGL J0416.9+0105' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 20 10:25:04 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0035>
Subject: Job 348207: <4FGL_J0416.9+0105_daily_bin772> in cluster <slac> Done

Job <4FGL_J0416.9+0105_daily_bin772> was submitted from host <rhel6-64n> by user <kocevski> in cluster <slac> at Fri Aug 20 10:10:43 2021
Job was executed on host(s) <bullet0035>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Aug 20 10:10:45 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:45 2021
Terminated at Fri Aug 20 10:25:05 2021
Results reported at Fri Aug 20 10:25:05 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0416.9+0105_daily_bin772 64.2269 1.088 439430401 439689601 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 :                                   620.57 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             255.72 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   859 sec.
    Turnaround time :                            862 sec.

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

