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


Performing analysis on: 4FGL_J0416.9+0105_daily_bin997
RA = 64.2269, Dec = 1.088
tmin = 497750401, tmax = 498009601
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='349528', job_status='RUN', time_executed='2021-08-20 10:16:19.382820', time_epoch_executed='1629479779.38' WHERE source_name='4FGL J0416.9+0105' and cadence='daily' and bin_id='997'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/349528

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/349528/ft1_4FGL_J0416.9+0105_daily_bin997.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/349528/ft2_4FGL_J0416.9+0105_daily_bin997.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/349528/ft1_4FGL_J0416.9+0105_daily_bin997.fits outfile=/scratch/kocevski/349528/ft1_filteredMKT_4FGL_J0416.9+0105_daily_bin997.fits ra=64.2269 dec=1.088 rad=12.0 tmin=497750401.0 tmax=498009601.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.25
user 4.40
sys 0.81

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/349528/ft2_4FGL_J0416.9+0105_daily_bin997.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/349528/ft1_filteredMKT_4FGL_J0416.9+0105_daily_bin997.fits evtable="EVENTS" outfile="/scratch/kocevski/349528/ft1_filtered_4FGL_J0416.9+0105_daily_bin997.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.07
user 0.34
sys 0.70

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/349528/ft1_filtered_4FGL_J0416.9+0105_daily_bin997.fits" evtable="EVENTS" scfile=/scratch/kocevski/349528/ft2_4FGL_J0416.9+0105_daily_bin997.fits sctable="SC_DATA" outfile=/scratch/kocevski/349528/ltcube_497750401_498009601_4FGL_J0416.9+0105_daily_bin997.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/349528/ft2_4FGL_J0416.9+0105_daily_bin997.fits
.....................!
real 12.37
user 11.37
sys 0.96

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/349528/ft1_filtered_4FGL_J0416.9+0105_daily_bin997.fits evtable="EVENTS" scfile=/scratch/kocevski/349528/ft2_4FGL_J0416.9+0105_daily_bin997.fits sctable="SC_DATA" expcube=/scratch/kocevski/349528/ltcube_497750401_498009601_4FGL_J0416.9+0105_daily_bin997.fits outfile=/scratch/kocevski/349528/expmap_497750401_498009601_4FGL_J0416.9+0105_daily_bin997.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/349528/ltcube_497750401_498009601_4FGL_J0416.9+0105_daily_bin997.fits
.....................!
real 191.63
user 186.16
sys 5.14

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/349528/ft1_filtered_4FGL_J0416.9+0105_daily_bin997.fits scfile=/scratch/kocevski/349528/ft2_4FGL_J0416.9+0105_daily_bin997.fits outfile=/scratch/kocevski/349528/cmap_497750401_498009601_4FGL_J0416.9+0105_daily_bin997.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.09
user 0.37
sys 0.69

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/349528/ft1_filtered_4FGL_J0416.9+0105_daily_bin997.fits scfile=/scratch/kocevski/349528/ft2_4FGL_J0416.9+0105_daily_bin997.fits outfile=/scratch/kocevski/349528/cmap_HighResolution_497750401_498009601_4FGL_J0416.9+0105_daily_bin997.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.09
user 0.39
sys 0.69

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.4578       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10132E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    22.422       1.0000         .10000E-03   10000.    
     4 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    35.862       1.0000         .10000E-03   10000.    
     6 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10391E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    22.304       1.0000         .10000E-03   10000.    
     9 'norm      '    .37886       1.0000         .10000E-03   10000.    
    10 'norm      '    .65045E-01   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    9.5256       1.0000         .10000E-03   10000.    
    14 'Prefactor '    2.8437       1.0000         .10000E-03   10000.    
    15 'norm      '    .28288E-01   1.0000         .10000E-03   10000.    
    16 'Prefactor '    55.426       1.0000         .10000E-03   10000.    
    17 'norm      '    2.1623       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10046E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    1.1872       1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.3890       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .89143       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=   10928.05     FROM MIGRAD    STATUS=CONVERGED    481 CALLS     2455 TOTAL
                     EDM=   .30E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.4578        1.2637        .53977E-08    .39599E-04
   2  Prefactor     .10000E-03    47.618        .25744E-06** at limit **
   3  Prefactor     22.424        17.507        .29230E-07    .36196E-04
   4  norm          .10000E-03    4.5442       -.97946E-09** at limit **
   5  Prefactor     35.831        24.111        .52591E-06    .89189E-05
   6  norm          .10000E-03    .91147       -.77098E-07** at limit **
   7  Prefactor     .10000E-03    51.492        .12310E-05** at limit **
   8  norm          22.303        10.659       -.11656E-06    .88225E-05
   9  norm          .63685        11.002       -.55055E-06    .81568E-04
  10  norm          .64945E-01    .41397        .15976E-06   -.69280E-03
  11  Prefactor     .10000E-03    .39230       -.63406E-06** at limit **
  12  Prefactor     .10000E-03    6.5801        .19305E-07** at limit **
  13  Prefactor     9.5138        25.546        .13829E-05    .42947E-04
  14  Prefactor     2.8438        6.2626        .72257E-06    .67534E-04
  15  norm          .14234E-01    .85537       -.40959E-06    .11920E-02
  16  Prefactor     55.441        40.427        .33972E-07    .49813E-04
  17  norm          2.1622        1.5667       -.70332E-08    .80661E-04
  18  Prefactor     .10000E-03    3.1211        .22551E-06** at limit **
  19  Prefactor     .10000E-03    11.464        .60843E-07** at limit **
  20  norm          1.1872        1.8678        .51048E-06    .25958E-03
  21  Normalizat    1.3892        .20285        .92659E-06    .15979E-03
  22  Prefactor     .89133        .74048E-01   -.33803E-06    .38805E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 2.45783
  Prefactor  = 0.0001
  Prefactor  = 22.4243
  norm       = 0.0001
  Prefactor  = 35.831
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 22.3034
  norm       = 0.636854
  norm       = 0.0649453
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 9.51382
  Prefactor  = 2.84377
  norm       = 0.0142342
  Prefactor  = 55.441
  norm       = 2.16217
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.1872
  Normalizat = 1.38915
  Prefactor  = 0.891335
 **********
 **   18 **HESSE 
 **********

 FCN=   10928.05     FROM HESSE     STATUS=OK           356 CALLS     2811 TOTAL
                     EDM=   .71E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.4578        1.2631        .81067E-04   -1.5394    
   2  Prefactor     .10000E-03    47.728        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     22.424        17.523        .84590E-04   -1.4761    
   4  norm          .10000E-03    4.5455        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     35.831        24.030        .33461E-03   -1.4510    
   6  norm          .10000E-03    .91494        .97479E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    52.080        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          22.303        10.729        .84813E-04   -1.4763    
   9  norm          .63685        72.452        .65176E-02   -1.5548    
  10  norm          .64945E-01    .91915        .12290E-02   -1.5657    
  11  Prefactor     .10000E-03    .40500        .64435E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    6.5926        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     9.5138        25.566        .12984E-03   -1.5091    
  14  Prefactor     2.8438        6.2634        .24112E-03   -1.5371    
  15  norm          .14234E-01    1.5171        .30724E-01   -1.5684    
  16  Prefactor     55.441        40.416        .53880E-04   -1.4217    
  17  norm          2.1622        1.5595        .10673E-03   -1.5414    
  18  Prefactor     .10000E-03    3.1478        .18019E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    11.478        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          1.1872        1.8493        .17213E-03   -1.5490    
  21  Normalizat    1.3892        .22838        .35839E-03   -.80943    
  22  Prefactor     .89133        .83943E-01    .16809E-03   -.96445    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.12443e-08
Minuit parameter uncertainties:
  1  1.26314
  2  2.16044e-05
  3  17.5273
  4  2.87108e-07
  5  24.0364
  6  1.78563e-06
  7  0.000142677
  8  10.7301
  9  13.6013
  10  0.488281
  11  5.84055e-06
  12  4.58162e-06
  13  25.5955
  14  6.26487
  15  0.292877
  16  40.4364
  17  1.55954
  18  5.28854e-06
  19  2.71637e-06
  20  1.84941
  21  0.228547
  22  0.0839554
Done.

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

Extracting fit parameters...

4FGL J0416.9+0105
   Spectrum: PowerLaw
210    Prefactor:  3.583e+01  2.404e+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:  8.913e-01  8.396e-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.389e+00  2.285e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 6.67
Ra Dec: 64.227 1.088
Photon Index (Fixed Index): 1.88 +/- 0.00
Photon Flux (Fixed Index): 3.63e-08 +/- 2.43e-08
Energy Flux (Fixed Index): 3.48e-05 +/- 2.33e-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) = 10927.987599
delta logL = 0.0662628141017

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 10927.9766792
delta logL = 0.0771826168439

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    41.343       1.0000         .10000E-03   10000.    
     2 'Index     '    1.6812       1.0000          .0000       10.000    
     3 'Normalizat'    1.3951       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .89158       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=   10927.98     FROM MIGRAD    STATUS=CONVERGED     95 CALLS      292 TOTAL
                     EDM=   .60E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     41.353        30.880        .31172E-03    .54706E-04
   2  Index         1.6817        .51408        .10200E-01    .56845E-03
   3  Normalizat    1.3949        .20903        .35781E-03   -.43466E-04
   4  Prefactor     .89163        .81111E-01    .16809E-03   -.45127E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 41.3534
  Index      = 1.68171
  Normalizat = 1.39487
  Prefactor  = 0.89163
 **********
 **   18 **HESSE 
 **********

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

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     41.353        30.339        .12469E-04   -1.4421    
   2  Index         1.6817        .50533        .20401E-02   -.72570    
   3  Normalizat    1.3949        .20909        .14312E-04   -.80777    
   4  Prefactor     .89163        .81157E-01    .33617E-04   -.96434    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.612e-11
Minuit parameter uncertainties:
  1  30.3499
  2  0.506882
  3  0.209214
  4  0.0811682
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/349528': 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) = 10927.9766777
delta logL = 0.0771840761718

Extracting fit parameters...

4FGL J0416.9+0105
   Spectrum: PowerLaw
210    Prefactor:  4.135e+01  3.035e+01  1.000e-04  1.000e+04 ( 1.000e-14)
211        Index:  1.682e+00  5.069e-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:  8.916e-01  8.117e-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.395e+00  2.092e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.82
Ra Dec: 64.227 1.088
Photon Index (Free Index): 1.68 +/- 0.51
Photon Flux (Free Index): 2.64e-08 +/- 2.99e-08
Energy Flux (Free Index): 4.58e-05 +/- 4.66e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/349528/cmap_HighResolution_497750401_498009601_4FGL_J0416.9+0105_daily_bin997.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='3.63e-08', energy_flux2='4.58e-05', photon_flux_error='2.43e-08', dlogl='7.72e-02', energy_flux='3.48e-05', photon_flux2='2.64e-08', job_status='DONE', time_completed='2021-08-20 10:29:08.124813', photon_index_error2='0.51', photon_index2='1.68', ts='6.67', fit_tolerance='1e-08', GAL='0.89', photon_index_error='0.00', energy_flux_error2='4.66e-05', EG='1.39', time_epoch_completed='1629480548.12', return_code='0', job_id='349528', GAL2='0.89', EG2='1.39', return_code2='0', energy_flux_error='2.33e-05', photon_flux_error2='2.99e-08', ts2='6.82', photon_index='1.88' WHERE bin_id='997' AND source_name='4FGL J0416.9+0105' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 20 10:29:08 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0031>
Subject: Job 349528: <4FGL_J0416.9+0105_daily_bin997> in cluster <slac> Done

Job <4FGL_J0416.9+0105_daily_bin997> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Fri Aug 20 10:15:29 2021
Job was executed on host(s) <bullet0031>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Aug 20 10:15:30 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:15:30 2021
Terminated at Fri Aug 20 10:29:08 2021
Results reported at Fri Aug 20 10:29:08 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0416.9+0105_daily_bin997 64.2269 1.088 497750401 498009601 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 :                                   777.00 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             325.88 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   818 sec.
    Turnaround time :                            819 sec.

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

