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


Performing analysis on: 4FGL_J0416.9+0105_daily_bin285
RA = 64.2269, Dec = 1.088
tmin = 313200001, tmax = 313459201
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='345405', job_status='RUN', time_executed='2021-08-20 10:02:27.589852', time_epoch_executed='1629478947.59' WHERE source_name='4FGL J0416.9+0105' and cadence='daily' and bin_id='285'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/345405

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/345405/ft1_4FGL_J0416.9+0105_daily_bin285.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/345405/ft2_4FGL_J0416.9+0105_daily_bin285.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/345405/ft1_4FGL_J0416.9+0105_daily_bin285.fits outfile=/scratch/kocevski/345405/ft1_filteredMKT_4FGL_J0416.9+0105_daily_bin285.fits ra=64.2269 dec=1.088 rad=12.0 tmin=313200001.0 tmax=313459201.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 6.89
user 3.16
sys 3.68

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/345405/ft2_4FGL_J0416.9+0105_daily_bin285.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/345405/ft1_filteredMKT_4FGL_J0416.9+0105_daily_bin285.fits evtable="EVENTS" outfile="/scratch/kocevski/345405/ft1_filtered_4FGL_J0416.9+0105_daily_bin285.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 3.97
user 0.32
sys 3.61

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/345405/ft1_filtered_4FGL_J0416.9+0105_daily_bin285.fits" evtable="EVENTS" scfile=/scratch/kocevski/345405/ft2_4FGL_J0416.9+0105_daily_bin285.fits sctable="SC_DATA" outfile=/scratch/kocevski/345405/ltcube_313200001_313459201_4FGL_J0416.9+0105_daily_bin285.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/345405/ft2_4FGL_J0416.9+0105_daily_bin285.fits
.....................!
real 16.12
user 11.89
sys 4.20

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/345405/ft1_filtered_4FGL_J0416.9+0105_daily_bin285.fits evtable="EVENTS" scfile=/scratch/kocevski/345405/ft2_4FGL_J0416.9+0105_daily_bin285.fits sctable="SC_DATA" expcube=/scratch/kocevski/345405/ltcube_313200001_313459201_4FGL_J0416.9+0105_daily_bin285.fits outfile=/scratch/kocevski/345405/expmap_313200001_313459201_4FGL_J0416.9+0105_daily_bin285.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/345405/ltcube_313200001_313459201_4FGL_J0416.9+0105_daily_bin285.fits
.....................!
real 194.98
user 185.17
sys 9.47

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/345405/ft1_filtered_4FGL_J0416.9+0105_daily_bin285.fits scfile=/scratch/kocevski/345405/ft2_4FGL_J0416.9+0105_daily_bin285.fits outfile=/scratch/kocevski/345405/cmap_313200001_313459201_4FGL_J0416.9+0105_daily_bin285.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 3.92
user 0.36
sys 3.53

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/345405/ft1_filtered_4FGL_J0416.9+0105_daily_bin285.fits scfile=/scratch/kocevski/345405/ft2_4FGL_J0416.9+0105_daily_bin285.fits outfile=/scratch/kocevski/345405/cmap_HighResolution_313200001_313459201_4FGL_J0416.9+0105_daily_bin285.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 3.95
user 0.39
sys 3.55

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    12.052       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    11.901       1.0000         .10000E-03   10000.    
     4 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    17.513       1.0000         .10000E-03   10000.    
     6 'norm      '    4.9193       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10067E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    7.0708       1.0000         .10000E-03   10000.    
     9 'norm      '    31.139       1.0000         .10000E-03   10000.    
    10 'norm      '    .48860       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .12310       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    4.7866       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    5.7211       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    4.2102       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    3.0868       1.0000         .10000E-03   10000.    
    21 'Normalizat'    .83661       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.0600       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=   11234.94     FROM MIGRAD    STATUS=CONVERGED    477 CALLS     2380 TOTAL
                     EDM=   .94E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          12.052        2.1074        .15789E-07   -.87873E-05
   2  Prefactor     .10000E-03    20.156        .10764E-05** at limit **
   3  Prefactor     11.900        13.613        .30458E-08   -.18892E-04
   4  norm          .10000E-03    17.612       -.13881E-05** at limit **
   5  Prefactor     17.511        17.026        .41413E-07   -.50984E-04
   6  norm          4.9192        3.6933        .54920E-06    .31413E-03
   7  Prefactor     .10000E-03    33.180       -.19962E-05** at limit **
   8  norm          7.0710        7.3508        .17927E-06   -.24356E-04
   9  norm          31.135        20.535       -.58532E-06   -.18157E-03
  10  norm          .48928        .83904       -.35995E-06   -.23053E-03
  11  Prefactor     .12407        1.0114        .14175E-05   -.21632E-03
  12  Prefactor     .10000E-03    7.9808       -.61171E-06** at limit **
  13  Prefactor     4.7532        38.503       -.11093E-04   -.28313E-03
  14  Prefactor     .10000E-03    6.6612       -.11074E-06** at limit **
  15  norm          5.7210        2.8748        .15096E-05   -.22870E-02
  16  Prefactor     .10000E-03    29.728        .24050E-05** at limit **
  17  norm          4.2105        2.1753        .13494E-06   -.12957E-04
  18  Prefactor     .10000E-03    2.3170       -.93153E-07** at limit **
  19  Prefactor     .10000E-03    10.029        .29653E-06** at limit **
  20  norm          3.0868        2.0360        .56624E-07   -.12608E-03
  21  Normalizat    .83661        .19900        .68342E-06   -.85727E-04
  22  Prefactor     1.0600        .76364E-01   -.55690E-06    .59767E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 12.0516
  Prefactor  = 0.0001
  Prefactor  = 11.8999
  norm       = 0.0001
  Prefactor  = 17.511
  norm       = 4.91923
  Prefactor  = 0.000100001
  norm       = 7.07105
  norm       = 31.1345
  norm       = 0.489281
  Prefactor  = 0.124069
  Prefactor  = 0.0001
  Prefactor  = 4.75317
  Prefactor  = 0.0001
  norm       = 5.72102
  Prefactor  = 0.000100001
  norm       = 4.2105
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.08684
  Normalizat = 0.836607
  Prefactor  = 1.05998
 **********
 **   18 **HESSE 
 **********

 FCN=   11234.94     FROM HESSE     STATUS=OK           348 CALLS     2728 TOTAL
                     EDM=   .16E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          12.052        2.1087        .61318E-04   -1.5014    
   2  Prefactor     .10000E-03    20.214        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     11.900        13.617        .11612E-03   -1.5018    
   4  norm          .10000E-03    18.142        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     17.511        17.006        .95706E-04   -1.4871    
   6  norm          4.9192        3.6783        .16891E-03   -1.5264    
   7  Prefactor     .10000E-03    33.729        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          7.0710        7.3720        .15086E-03   -1.5176    
   9  norm          31.135        20.475        .71803E-04   -1.4591    
  10  norm          .48928        .75315        .11235E-02   -1.5568    
  11  Prefactor     .12407        1.0223        .20151E-03   -1.5638    
  12  Prefactor     .10000E-03    8.0169        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     4.7532        41.753        .18389E-03   -1.5272    
  14  Prefactor     .10000E-03    6.7798        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          5.7210        2.9193        .61196E-03   -1.5230    
  16  Prefactor     .10000E-03    29.909        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          4.2105        2.1783        .10517E-03   -1.5298    
  18  Prefactor     .10000E-03    2.3329        .15756E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    10.041        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          3.0868        2.0309        .11815E-03   -1.5357    
  21  Normalizat    .83661        .21342        .44049E-03   -.98725    
  22  Prefactor     1.0600        .82969E-01    .16274E-03   -.90756    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.59735e-08
Minuit parameter uncertainties:
  1  2.10868
  2  0.000128275
  3  13.6206
  4  0.000156249
  5  17.0111
  6  3.67846
  7  0.00032846
  8  7.37293
  9  20.4795
  10  0.753166
  11  0.711999
  12  5.90915e-05
  13  28.2011
  14  2.44438e-05
  15  2.91934
  16  0.000346666
  17  2.17836
  18  8.14567e-06
  19  2.28358e-05
  20  2.03093
  21  0.213634
  22  0.0829788
Done.

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

Extracting fit parameters...

4FGL J0416.9+0105
   Spectrum: PowerLaw
210    Prefactor:  1.751e+01  1.701e+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.060e+00  8.298e-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.366e-01  2.136e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.44
Ra Dec: 64.227 1.088
Photon Index (Fixed Index): 1.88 +/- 0.00
Photon Flux (Fixed Index): 1.77e-08 +/- 1.72e-08
Energy Flux (Fixed Index): 1.70e-05 +/- 1.65e-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) = 11234.8254775
delta logL = 0.118564854514

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 11234.8198481
delta logL = 0.12419423249

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    21.685       1.0000         .10000E-03   10000.    
     2 'Index     '    1.5456       1.0000          .0000       10.000    
     3 'Normalizat'    .84018       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0603       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=   11234.82     FROM MIGRAD    STATUS=CONVERGED     98 CALLS      292 TOTAL
                     EDM=   .21E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     21.693        22.085        .86014E-04    .76660E-04
   2  Index         1.5455        .66923        .14260E-01    .24530E-03
   3  Normalizat    .84019        .19503        .43968E-03   -.46439E-04
   4  Prefactor     1.0603        .80924E-01    .16273E-03   -.28084E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 21.6931
  Index      = 1.54546
  Normalizat = 0.840193
  Prefactor  = 1.06032
 **********
 **   18 **HESSE 
 **********

 FCN=   11234.82     FROM HESSE     STATUS=OK            25 CALLS      317 TOTAL
                     EDM=   .32E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     21.693        21.933        .17203E-04   -1.4776    
   2  Index         1.5455        .66524        .28521E-02   -.76274    
   3  Normalizat    .84019        .19509        .17587E-04   -.98595    
   4  Prefactor     1.0603        .80956E-01    .65094E-05   -.90745    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.16718e-11
Minuit parameter uncertainties:
  1  21.9409
  2  0.669054
  3  0.195254
  4  0.0809649
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/345405': 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) = 11234.819848
delta logL = 0.124194382794

Extracting fit parameters...

4FGL J0416.9+0105
   Spectrum: PowerLaw
210    Prefactor:  2.169e+01  2.194e+01  1.000e-04  1.000e+04 ( 1.000e-14)
211        Index:  1.545e+00  6.691e-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.060e+00  8.096e-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.402e-01  1.953e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.69
Ra Dec: 64.227 1.088
Photon Index (Free Index): 1.55 +/- 0.67
Photon Flux (Free Index): 1.04e-08 +/- 1.60e-08
Energy Flux (Free Index): 2.83e-05 +/- 4.17e-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/345405/cmap_HighResolution_313200001_313459201_4FGL_J0416.9+0105_daily_bin285.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.77e-08', energy_flux2='2.83e-05', photon_flux_error='1.72e-08', dlogl='1.24e-01', energy_flux='1.70e-05', photon_flux2='1.04e-08', job_status='DONE', time_completed='2021-08-20 10:15:57.787398', photon_index_error2='0.67', photon_index2='1.55', ts='4.44', fit_tolerance='1e-08', GAL='1.06', photon_index_error='0.00', energy_flux_error2='4.17e-05', EG='0.84', time_epoch_completed='1629479757.79', return_code='0', job_id='345405', GAL2='1.06', EG2='0.84', return_code2='0', energy_flux_error='1.65e-05', photon_flux_error2='1.60e-08', ts2='4.69', photon_index='1.88' WHERE bin_id='285' AND source_name='4FGL J0416.9+0105' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 20 10:15:57 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0206>
Subject: Job 345405: <4FGL_J0416.9+0105_daily_bin285> in cluster <slac> Done

Job <4FGL_J0416.9+0105_daily_bin285> was submitted from host <rhel6-64o> by user <kocevski> in cluster <slac> at Fri Aug 20 10:00:46 2021
Job was executed on host(s) <bullet0206>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Aug 20 10:00:47 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:47 2021
Terminated at Fri Aug 20 10:15:59 2021
Results reported at Fri Aug 20 10:15:59 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0416.9+0105_daily_bin285 64.2269 1.088 313200001 313459201 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 :                                   863.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             325.60 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   911 sec.
    Turnaround time :                            913 sec.

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

