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


Performing analysis on: 4FGL_J0416.9+0105_daily_bin487
RA = 64.2269, Dec = 1.088
tmin = 365558401, tmax = 365817601
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='346724', job_status='RUN', time_executed='2021-08-20 10:05:45.393641', time_epoch_executed='1629479145.39' WHERE source_name='4FGL J0416.9+0105' and cadence='daily' and bin_id='487'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/346724

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/346724/ft1_4FGL_J0416.9+0105_daily_bin487.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/346724/ft2_4FGL_J0416.9+0105_daily_bin487.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/346724/ft1_4FGL_J0416.9+0105_daily_bin487.fits outfile=/scratch/kocevski/346724/ft1_filteredMKT_4FGL_J0416.9+0105_daily_bin487.fits ra=64.2269 dec=1.088 rad=12.0 tmin=365558401.0 tmax=365817601.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.54
user 3.33
sys 0.18

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/346724/ft1_filtered_4FGL_J0416.9+0105_daily_bin487.fits" evtable="EVENTS" scfile=/scratch/kocevski/346724/ft2_4FGL_J0416.9+0105_daily_bin487.fits sctable="SC_DATA" outfile=/scratch/kocevski/346724/ltcube_365558401_365817601_4FGL_J0416.9+0105_daily_bin487.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/346724/ft2_4FGL_J0416.9+0105_daily_bin487.fits
.....................!
real 12.23
user 11.87
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/346724/ft1_filtered_4FGL_J0416.9+0105_daily_bin487.fits evtable="EVENTS" scfile=/scratch/kocevski/346724/ft2_4FGL_J0416.9+0105_daily_bin487.fits sctable="SC_DATA" expcube=/scratch/kocevski/346724/ltcube_365558401_365817601_4FGL_J0416.9+0105_daily_bin487.fits outfile=/scratch/kocevski/346724/expmap_365558401_365817601_4FGL_J0416.9+0105_daily_bin487.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/346724/ltcube_365558401_365817601_4FGL_J0416.9+0105_daily_bin487.fits
.....................!
real 190.39
user 185.00
sys 5.07

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/346724/ft1_filtered_4FGL_J0416.9+0105_daily_bin487.fits scfile=/scratch/kocevski/346724/ft2_4FGL_J0416.9+0105_daily_bin487.fits outfile=/scratch/kocevski/346724/cmap_365558401_365817601_4FGL_J0416.9+0105_daily_bin487.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.53
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/346724/ft1_filtered_4FGL_J0416.9+0105_daily_bin487.fits scfile=/scratch/kocevski/346724/ft2_4FGL_J0416.9+0105_daily_bin487.fits outfile=/scratch/kocevski/346724/cmap_HighResolution_365558401_365817601_4FGL_J0416.9+0105_daily_bin487.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.54
user 0.36
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.7950       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10821E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10412E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    16.179       1.0000         .10000E-03   10000.    
     6 'norm      '    .10032E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10352E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    11.439       1.0000         .10000E-03   10000.    
     9 'norm      '    29.394       1.0000         .10000E-03   10000.    
    10 'norm      '    2.4249       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .95048E-01   1.0000         .10000E-03   10000.    
    12 'Prefactor '    20.221       1.0000         .10000E-03   10000.    
    13 'Prefactor '    28.159       1.0000         .10000E-03   10000.    
    14 'Prefactor '    7.9640       1.0000         .10000E-03   10000.    
    15 'norm      '    .67196E-01   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10605E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    5.5186       1.0000         .10000E-03   10000.    
    18 'Prefactor '    6.4263       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10880E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    8.2158       1.0000         .10000E-03   10000.    
    21 'Normalizat'    .81457       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.0394       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=   8770.430     FROM MIGRAD    STATUS=CONVERGED    479 CALLS     2422 TOTAL
                     EDM=   .54E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.7950        1.4458       -.35492E-08    .14609E-03
   2  Prefactor     .10000E-03    40.195        .17913E-05** at limit **
   3  Prefactor     .10000E-03    5.6274        .21568E-06** at limit **
   4  norm          .10000E-03    28.292       -.28991E-05** at limit **
   5  Prefactor     16.185        20.772        .16362E-05    .77956E-04
   6  norm          .10000E-03    1.5638       -.20186E-06** at limit **
   7  Prefactor     .10000E-03    15.893        .13519E-05** at limit **
   8  norm          11.438        9.1542        .33037E-07    .83432E-04
   9  norm          29.410        24.618        .32878E-05    .20059E-03
  10  norm          2.4252        1.1239        .50004E-06    .20724E-02
  11  Prefactor     .91259E-01    5.6016       -.13316E-04    .64430E-03
  12  Prefactor     20.181        22.749       -.52796E-05    .58182E-03
  13  Prefactor     28.183        47.660        .16234E-04    .20846E-03
  14  Prefactor     7.9628        7.9753       -.10601E-06    .17274E-03
  15  norm          .66229E-01    6.4870        .13878E-04    .48630E-03
  16  Prefactor     .10000E-03    36.537       -.89799E-06** at limit **
  17  norm          5.5184        2.3944       -.80840E-07    .49639E-03
  18  Prefactor     6.4260        6.4482       -.14076E-05    .21335E-03
  19  Prefactor     .10000E-03    22.419        .26006E-05** at limit **
  20  norm          8.2158        2.8894       -.64213E-08    .11760E-03
  21  Normalizat    .81483        .23530        .31154E-06    .26065E-03
  22  Prefactor     1.0393        .85688E-01   -.38340E-06    .52232E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 2.795
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 16.185
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 11.4379
  norm       = 29.4096
  norm       = 2.42522
  Prefactor  = 0.0912594
  Prefactor  = 20.1814
  Prefactor  = 28.1826
  Prefactor  = 7.96283
  norm       = 0.0662286
  Prefactor  = 0.0001
  norm       = 5.51842
  Prefactor  = 6.42597
  Prefactor  = 0.000100001
  norm       = 8.2158
  Normalizat = 0.814829
  Prefactor  = 1.03928
 **********
 **   18 **HESSE 
 **********

 FCN=   8770.430     FROM HESSE     STATUS=OK           346 CALLS     2768 TOTAL
                     EDM=   .32E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.7950        1.4448        .77757E-04   -1.5374    
   2  Prefactor     .10000E-03    40.323        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    5.6430        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    28.468        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     16.185        20.796        .99573E-04   -1.4903    
   6  norm          .10000E-03    1.5747        .11436E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    15.952        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          11.438        9.1667        .11845E-03   -1.5031    
   9  norm          29.410        24.924        .73898E-04   -1.4623    
  10  norm          2.4252        1.1221        .62403E-04   -1.5396    
  11  Prefactor     .91259E-01    12.997        .14946E-02   -1.5648    
  12  Prefactor     20.181        22.402        .89071E-04   -1.4809    
  13  Prefactor     28.183        52.443        .75497E-04   -1.4646    
  14  Prefactor     7.9628        7.9851        .14208E-03   -1.5144    
  15  norm          .66229E-01    11.183        .17274E-02   -1.5657    
  16  Prefactor     .10000E-03    36.594        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          5.5184        2.3948        .90664E-04   -1.5238    
  18  Prefactor     6.4260        6.4158        .15832E-03   -1.5201    
  19  Prefactor     .10000E-03    22.466        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          8.2158        2.8897        .91101E-04   -1.5135    
  21  Normalizat    .81483        .25790        .44538E-03   -.99521    
  22  Prefactor     1.0393        .95052E-01    .15684E-03   -.91431    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.21147e-09
Minuit parameter uncertainties:
  1  1.44485
  2  0.000164761
  3  5.5801e-07
  4  8.39341e-05
  5  20.8056
  6  7.95232e-06
  7  4.81156e-05
  8  9.16785
  9  24.9333
  10  1.12214
  11  2.17747
  12  22.4118
  13  52.5293
  14  7.98615
  15  1.72026
  16  3.13935e-06
  17  2.39489
  18  6.41649
  19  0.000265335
  20  2.88977
  21  0.258285
  22  0.0950673
Done.

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

Extracting fit parameters...

4FGL J0416.9+0105
   Spectrum: PowerLaw
210    Prefactor:  1.619e+01  2.081e+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.039e+00  9.507e-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:  8.148e-01  2.583e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.97
Ra Dec: 64.227 1.088
Photon Flux Upper Limit: 7.46e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.54e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/346724/likelihoodResults_365558401_365817601_4FGL_J0416.9+0105_daily_bin487.txt

Performing a free index iterative likelihood fit...

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

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8770.36897104
delta logL = 0.0609029777243

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8770.36823093
delta logL = 0.0616430846949

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    10.964       1.0000         .10000E-03   10000.    
     2 'Index     '    2.1635       1.0000          .0000       10.000    
     3 'Normalizat'    .80944       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0397       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   8770.368     FROM MIGRAD    STATUS=FAILED        92 CALLS      312 TOTAL
                     EDM=   .32E-07    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     10.956        26.567        .12100E-03   -.24993E-04
   2  Index         2.1639        1.0766        .92080E-02    .64630E-03
   3  Normalizat    .80945        .23554        .44667E-03   -.67636E-03
   4  Prefactor     1.0399        .93093E-01    .15678E-03   -.22816E-02
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   8770.368     FROM SIMPLEX   STATUS=UNCHANGED     80 CALLS      392 TOTAL
                     EDM=   .12E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     10.956        26.567        .23912E-03   -1.5046    
   2  Index         2.1639        1.0766        .84005E-03   -.60311    
   3  Normalizat    .80945        .23554        .26222E-03   -.99719    
   4  Prefactor     1.0399        .93093E-01    .13696E-03   -.91412    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   8770.368     FROM MIGRAD    STATUS=CONVERGED     28 CALLS      420 TOTAL
                     EDM=   .31E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     10.956        21.769        .48399E-05   -.45100E-04
   2  Index         2.1640        .88563        .18416E-02    .13161E-04
   3  Normalizat    .80945        .23511        .17867E-04   -.30543E-05
   4  Prefactor     1.0399        .93053E-01    .31356E-04   -.63812E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 10.9559
  Index      = 2.16396
  Normalizat = 0.80945
  Prefactor  = 1.03986
 **********
 **   18 **HESSE 
 **********

 FCN=   8770.368     FROM HESSE     STATUS=OK            25 CALLS      445 TOTAL
                     EDM=   .26E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     10.956        21.019        .96797E-06   -1.5046    
   2  Index         2.1640        .85589        .73664E-04   -.60311    
   3  Normalizat    .80945        .23492        .35734E-05   -.99719    
   4  Prefactor     1.0399        .93006E-01    .62712E-05   -.91412    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.63948e-11
Minuit parameter uncertainties:
  1  21.0331
  2  0.862179
  3  0.235213
  4  0.0930201
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/346724': 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) = 8770.36822675
delta logL = 0.0616472679631

Extracting fit parameters...

4FGL J0416.9+0105
   Spectrum: PowerLaw
210    Prefactor:  1.096e+01  2.103e+01  1.000e-04  1.000e+04 ( 1.000e-14)
211        Index:  2.164e+00  8.622e-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.040e+00  9.302e-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:  8.095e-01  2.352e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.09
Ra Dec: 64.227 1.088
Photon Index (Free Index): 2.16 +/- 0.86
Photon Flux (Free Index): 2.37e-08 +/- 3.51e-08
Energy Flux (Free Index): 1.14e-05 +/- 1.65e-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/346724/cmap_HighResolution_365558401_365817601_4FGL_J0416.9+0105_daily_bin487.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.54e-03', comment='SUCCESS', energy_flux2='1.14e-05', dlogl='6.16e-02', photon_flux2='2.37e-08', job_status='DONE', time_completed='2021-08-20 10:18:01.822223', photon_index_error2='0.86', photon_index2='2.16', ts='0.97', fit_tolerance='1e-08', GAL='1.04', photon_index_error='0.00', photon_flux_upper_limit='7.46e-08', energy_flux_error2='1.65e-05', EG='0.81', time_epoch_completed='1629479881.82', return_code='0', job_id='346724', GAL2='1.04', EG2='0.81', return_code2='0', photon_flux_error2='3.51e-08', ts2='1.09', photon_index='1.88' WHERE bin_id='487' AND source_name='4FGL J0416.9+0105' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 20 10:18:01 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0246>
Subject: Job 346724: <4FGL_J0416.9+0105_daily_bin487> in cluster <slac> Done

Job <4FGL_J0416.9+0105_daily_bin487> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Fri Aug 20 10:05:33 2021
Job was executed on host(s) <bullet0246>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Aug 20 10:05:35 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:05:35 2021
Terminated at Fri Aug 20 10:18:02 2021
Results reported at Fri Aug 20 10:18:02 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0416.9+0105_daily_bin487 64.2269 1.088 365558401 365817601 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 :                                   735.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             352.96 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   747 sec.
    Turnaround time :                            749 sec.

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

