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


Performing analysis on: 4FGL_J0416.9+0105_daily_bin740
RA = 64.2269, Dec = 1.088
tmin = 431136001, tmax = 431395201
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='348161', job_status='RUN', time_executed='2021-08-20 10:13:25.849621', time_epoch_executed='1629479605.85' WHERE source_name='4FGL J0416.9+0105' and cadence='daily' and bin_id='740'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/348161

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/348161/ft1_4FGL_J0416.9+0105_daily_bin740.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/348161/ft2_4FGL_J0416.9+0105_daily_bin740.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/348161/ft1_4FGL_J0416.9+0105_daily_bin740.fits outfile=/scratch/kocevski/348161/ft1_filteredMKT_4FGL_J0416.9+0105_daily_bin740.fits ra=64.2269 dec=1.088 rad=12.0 tmin=431136001.0 tmax=431395201.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.52
user 5.25
sys 0.25

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/348161/ft1_filtered_4FGL_J0416.9+0105_daily_bin740.fits" evtable="EVENTS" scfile=/scratch/kocevski/348161/ft2_4FGL_J0416.9+0105_daily_bin740.fits sctable="SC_DATA" outfile=/scratch/kocevski/348161/ltcube_431136001_431395201_4FGL_J0416.9+0105_daily_bin740.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/348161/ft2_4FGL_J0416.9+0105_daily_bin740.fits
.....................!
real 11.83
user 11.48
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/348161/ft1_filtered_4FGL_J0416.9+0105_daily_bin740.fits evtable="EVENTS" scfile=/scratch/kocevski/348161/ft2_4FGL_J0416.9+0105_daily_bin740.fits sctable="SC_DATA" expcube=/scratch/kocevski/348161/ltcube_431136001_431395201_4FGL_J0416.9+0105_daily_bin740.fits outfile=/scratch/kocevski/348161/expmap_431136001_431395201_4FGL_J0416.9+0105_daily_bin740.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/348161/ltcube_431136001_431395201_4FGL_J0416.9+0105_daily_bin740.fits
.....................!
real 190.16
user 185.36
sys 4.44

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/348161/ft1_filtered_4FGL_J0416.9+0105_daily_bin740.fits scfile=/scratch/kocevski/348161/ft2_4FGL_J0416.9+0105_daily_bin740.fits outfile=/scratch/kocevski/348161/cmap_431136001_431395201_4FGL_J0416.9+0105_daily_bin740.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.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/348161/ft1_filtered_4FGL_J0416.9+0105_daily_bin740.fits scfile=/scratch/kocevski/348161/ft2_4FGL_J0416.9+0105_daily_bin740.fits outfile=/scratch/kocevski/348161/cmap_HighResolution_431136001_431395201_4FGL_J0416.9+0105_daily_bin740.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.53
user 0.38
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .13328E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    62.696       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10055E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    10.411       1.0000         .10000E-03   10000.    
     6 'norm      '    .10061E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .19483E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    10.947       1.0000         .10000E-03   10000.    
     9 'norm      '    .10028E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .27706       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    10.730       1.0000         .10000E-03   10000.    
    13 'Prefactor '    2.3267       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10146E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    12.718       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10354E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10161E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .11726E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    81.999       1.0000         .10000E-03   10000.    
    20 'norm      '    7.1657       1.0000         .10000E-03   10000.    
    21 'Normalizat'    .91542       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.0094       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=   6868.744     FROM MIGRAD    STATUS=CONVERGED    530 CALLS     2448 TOTAL
                     EDM=   .79E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    .69975       -.62447E-07** at limit **
   2  Prefactor     62.699        59.954        .87126E-07   -.64340E-05
   3  Prefactor     .10000E-03    14.788        .65291E-06** at limit **
   4  norm          .10000E-03    10.719        .33473E-07** at limit **
   5  Prefactor     10.409        31.544        .23353E-05   -.82983E-05
   6  norm          .10000E-03    4.0111        .49629E-07** at limit **
   7  Prefactor     .10000E-03    24.727       -.40761E-06** at limit **
   8  norm          10.947        11.552       -.14993E-05    .10065E-03
   9  norm          .10000E-03    16.625       -.42488E-07** at limit **
  10  norm          .27737        1.2039       -.10140E-06   -.14005E-02
  11  Prefactor     .10000E-03    .76638        .60004E-07** at limit **
  12  Prefactor     10.730        26.784       -.23997E-05    .49874E-04
  13  Prefactor     2.3520        278.69       -.37297E-04    .18687E-04
  14  Prefactor     .10000E-03    13.459        .14054E-06** at limit **
  15  norm          12.718        4.7053        .20321E-06    .70547E-04
  16  Prefactor     .10000E-03    611.18        .35217E-05** at limit **
  17  norm          .10000E-03    1.3454        .44987E-06** at limit **
  18  Prefactor     .10000E-03    4.5525       -.42898E-06** at limit **
  19  Prefactor     81.984        52.801        .21046E-05   -.39536E-04
  20  norm          7.1658        3.1309       -.58924E-07   -.14169E-03
  21  Normalizat    .91529        .26549        .28284E-05   -.85193E-05
  22  Prefactor     1.0093        .95317E-01   -.25590E-06    .20234E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 62.6995
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 10.4094
  norm       = 0.0001
  Prefactor  = 0.000100001
  norm       = 10.9474
  norm       = 0.0001
  norm       = 0.277371
  Prefactor  = 0.0001
  Prefactor  = 10.73
  Prefactor  = 2.35205
  Prefactor  = 0.0001
  norm       = 12.718
  Prefactor  = 0.000100003
  norm       = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 81.9838
  norm       = 7.1658
  Normalizat = 0.915291
  Prefactor  = 1.00935
 **********
 **   18 **HESSE 
 **********

 FCN=   6868.744     FROM HESSE     STATUS=OK           346 CALLS     2794 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    6.1359        .13421E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     62.699        59.908        .50678E-04   -1.4123    
   3  Prefactor     .10000E-03    14.843        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    10.741        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     10.409        31.537        .12418E-03   -1.5063    
   6  norm          .10000E-03    4.0432        .16178E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    187.82        .77795E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          10.947        11.501        .12109E-03   -1.5046    
   9  norm          .10000E-03    16.660        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .27737        1.1587        .15977E-03   -1.5603    
  11  Prefactor     .10000E-03    .78534        .14165E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     10.730        26.533        .12231E-03   -1.5053    
  13  Prefactor     2.3520        224.66        .26888E-03   -1.5401    
  14  Prefactor     .10000E-03    13.693        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          12.718        4.6656        .92820E-04   -1.4995    
  16  Prefactor     .10000E-03    637.47        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    2.2395        .18357E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    12.289        .33506E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     81.984        52.024        .44356E-04   -1.3895    
  20  norm          7.1658        3.1309        .93211E-04   -1.5173    
  21  Normalizat    .91529        .28686        .42648E-03   -.95925    
  22  Prefactor     1.0093        .10598        .16053E-03   -.92419    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.60374e-09
Minuit parameter uncertainties:
  1  3.36538e-05
  2  59.9652
  3  3.86217e-05
  4  1.72324e-06
  5  31.5877
  6  1.97339e-05
  7  0.00088176
  8  11.503
  9  4.91378e-05
  10  1.13367
  11  1.68848e-05
  12  26.5619
  13  46.153
  14  0.000121191
  15  4.66572
  16  0.00257353
  17  7.49447e-05
  18  0.000151353
  19  52.0525
  20  3.13096
  21  0.287339
  22  0.106
Done.

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

Extracting fit parameters...

4FGL J0416.9+0105
   Spectrum: PowerLaw
210    Prefactor:  1.041e+01  3.159e+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.009e+00  1.060e-01  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:  9.153e-01  2.873e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/348161/likelihoodResults_431136001_431395201_4FGL_J0416.9+0105_daily_bin740.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) = 6868.63636632
delta logL = 0.107269565857

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6868.21774591
delta logL = 0.525889972963

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    6.1093       1.0000          .0000       10.000    
     3 'Normalizat'    .83084       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0310       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=   6868.218     FROM MIGRAD    STATUS=FAILED       264 CALLS      615 TOTAL
                     EDM=   .79E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    .22185E-01    .19171E-03** at limit **
   2  Index         6.1092        3.5060        .39672E-02    .10821E-02
   3  Normalizat    .83055        .13673        .44552E-03   -.13535E-03
   4  Prefactor     1.0311        .52943E-01    .15899E-03   -.24066E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   6868.218     FROM SIMPLEX   STATUS=UNCHANGED    170 CALLS      785 TOTAL
                     EDM=   .81E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    .22185E-01    .69391E-05** at limit **
   2  Index         6.1092        3.5060        .15260E-04    .10821E-02
   3  Normalizat    .83055        .13673        .33374E-05   -.13535E-03
   4  Prefactor     1.0311        .52943E-01    .11085E-05   -.24066E-03
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6868.218     FROM MIGRAD    STATUS=CONVERGED     39 CALLS      824 TOTAL
                     EDM=   .63E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    .15523E-01    .23323E-03** at limit **
   2  Index         6.1092        3.4327        .79344E-03   -.13698E-04
   3  Normalizat    .83055        .12517        .17821E-04   -.13550E-03
   4  Prefactor     1.0311        .48891E-01    .31798E-04   -.24047E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 6.10924
  Normalizat = 0.830546
  Prefactor  = 1.03113
 **********
 **   18 **HESSE 
 **********

 FCN=   6868.218     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      857 TOTAL
                     EDM=   .59E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    .17888E-01    .21772E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         6.1092        3.4829        .31738E-04    .22371    
   3  Normalizat    .83055        .13177        .35642E-05   -.98945    
   4  Prefactor     1.0311        .51467E-01    .63596E-05   -.91699    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 5.93427e-11
Minuit parameter uncertainties:
  1  6.3576e-08
  2  3.87952
  3  0.131822
  4  0.0514694
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/348161': 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): 102
logL (Free Index) = 6868.21774483
delta logL = 0.52589105457

Extracting fit parameters...

4FGL J0416.9+0105
   Spectrum: PowerLaw
210    Prefactor:  1.000e-04  6.358e-08  1.000e-04  1.000e+04 ( 1.000e-14)
211        Index:  6.109e+00  3.880e+00  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.031e+00  5.147e-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.305e-01  1.318e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.27
Ra Dec: 64.227 1.088
Photon Index (Free Index): 6.11 +/- 3.88
Photon Flux (Free Index): 7.92e-08 +/- 1.04e-06
Energy Flux (Free Index): 9.81e-06 +/- 1.28e-04

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

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.23e-03', comment='SUCCESS', energy_flux2='9.81e-06', dlogl='5.26e-01', photon_flux2='7.92e-08', job_status='DONE', time_completed='2021-08-20 10:24:42.900310', photon_index_error2='3.88', photon_index2='6.11', ts='0.13', fit_tolerance='1e-08', GAL='1.01', photon_index_error='0.00', photon_flux_upper_limit='9.75e-08', energy_flux_error2='1.28e-04', EG='0.92', time_epoch_completed='1629480282.9', return_code='0', job_id='348161', GAL2='1.03', EG2='0.83', return_code2='102', photon_flux_error2='1.04e-06', ts2='1.27', photon_index='1.88' WHERE bin_id='740' AND source_name='4FGL J0416.9+0105' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 20 10:24:42 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0256>
Subject: Job 348161: <4FGL_J0416.9+0105_daily_bin740> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0416.9+0105_daily_bin740 64.2269 1.088 431136001 431395201 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 :                                   676.19 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             299.39 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   841 sec.
    Turnaround time :                            843 sec.

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

