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


Performing analysis on: 4FGL_J0416.9+0105_daily_bin432
RA = 64.2269, Dec = 1.088
tmin = 351302401, tmax = 351561601
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='346649', job_status='RUN', time_executed='2021-08-20 10:08:35.754714', time_epoch_executed='1629479315.75' WHERE source_name='4FGL J0416.9+0105' and cadence='daily' and bin_id='432'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/346649

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/346649/ft1_4FGL_J0416.9+0105_daily_bin432.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/346649/ft2_4FGL_J0416.9+0105_daily_bin432.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/346649/ft1_4FGL_J0416.9+0105_daily_bin432.fits outfile=/scratch/kocevski/346649/ft1_filteredMKT_4FGL_J0416.9+0105_daily_bin432.fits ra=64.2269 dec=1.088 rad=12.0 tmin=351302401.0 tmax=351561601.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.43
user 3.23
sys 0.19

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/346649/ft1_filtered_4FGL_J0416.9+0105_daily_bin432.fits evtable="EVENTS" scfile=/scratch/kocevski/346649/ft2_4FGL_J0416.9+0105_daily_bin432.fits sctable="SC_DATA" expcube=/scratch/kocevski/346649/ltcube_351302401_351561601_4FGL_J0416.9+0105_daily_bin432.fits outfile=/scratch/kocevski/346649/expmap_351302401_351561601_4FGL_J0416.9+0105_daily_bin432.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/346649/ltcube_351302401_351561601_4FGL_J0416.9+0105_daily_bin432.fits
.....................!
real 191.53
user 186.44
sys 4.75

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/346649/ft1_filtered_4FGL_J0416.9+0105_daily_bin432.fits scfile=/scratch/kocevski/346649/ft2_4FGL_J0416.9+0105_daily_bin432.fits outfile=/scratch/kocevski/346649/cmap_351302401_351561601_4FGL_J0416.9+0105_daily_bin432.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.52
user 0.37
sys 0.14

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    5.5520       1.0000         .10000E-03   10000.    
     2 'Prefactor '    84.514       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10081E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    13.313       1.0000         .10000E-03   10000.    
     6 'norm      '    .20702E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .84516       1.0000         .10000E-03   10000.    
    10 'norm      '    3.1087       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .15423E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    3.7455       1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    4.8500       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10036E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.0848       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.0573       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=   8599.429     FROM MIGRAD    STATUS=CONVERGED    503 CALLS     2476 TOTAL
                     EDM=   .50E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          5.5522        2.0236        .28633E-07   -.21308E-04
   2  Prefactor     84.515        62.512        .44596E-06   -.84211E-05
   3  Prefactor     .10000E-03    9.9402       -.76412E-07** at limit **
   4  norm          .10000E-03    23.216       -.41804E-05** at limit **
   5  Prefactor     13.221        30.188        .32954E-05   -.90939E-04
   6  norm          .10000E-03    3.9926        .49611E-06** at limit **
   7  Prefactor     .10000E-03    27.026        .91717E-06** at limit **
   8  norm          .10000E-03    7.5680        .22829E-06** at limit **
   9  norm          .94827        113.96       -.16937E-04   -.61956E-05
  10  norm          3.1081        1.5414       -.45395E-06   -.11909E-02
  11  Prefactor     .10000E-03    1.1215       -.55223E-07** at limit **
  12  Prefactor     .10000E-03    25.431       -.15333E-05** at limit **
  13  Prefactor     .10000E-03    30.504        .36451E-05** at limit **
  14  Prefactor     3.7451        12.605       -.17012E-05   -.65867E-04
  15  norm          .10000E-03    .91896       -.70573E-07** at limit **
  16  Prefactor     .10000E-03    27.956        .12556E-05** at limit **
  17  norm          4.8495        2.5412       -.55468E-07    .32380E-04
  18  Prefactor     .10000E-03    14.447       -.21905E-05** at limit **
  19  Prefactor     .10000E-03    15.687        .18444E-05** at limit **
  20  norm          .10000E-03    1.1152        .20938E-06** at limit **
  21  Normalizat    1.0848        .24654       -.13405E-05   -.11714E-03
  22  Prefactor     1.0572        .88776E-01   -.50717E-06   -.96098E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 5.55216
  Prefactor  = 84.5147
  Prefactor  = 0.0001
  norm       = 0.000100001
  Prefactor  = 13.2212
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.948272
  norm       = 3.10806
  Prefactor  = 0.000100002
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 3.74514
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 4.84954
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 1.08483
  Prefactor  = 1.05722
 **********
 **   18 **HESSE 
 **********

 FCN=   8599.429     FROM HESSE     STATUS=OK           344 CALLS     2820 TOTAL
                     EDM=   .62E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          5.5522        2.0242        .76288E-04   -1.5237    
   2  Prefactor     84.515        62.547        .43696E-04   -1.3867    
   3  Prefactor     .10000E-03    10.002        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    23.085        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     13.221        30.114        .10978E-03   -1.4981    
   6  norm          .10000E-03    17.135        .33887E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    27.496        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    7.6273        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .94827        115.28        .71089E-02   -1.5513    
  10  norm          3.1081        1.5262        .73392E-04   -1.5355    
  11  Prefactor     .10000E-03    2.8662        .18268E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    25.615        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    30.638        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     3.7451        12.566        .20863E-03   -1.5321    
  15  norm          .10000E-03    .92588        .86704E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    28.001        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          4.8495        2.5405        .10169E-03   -1.5267    
  18  Prefactor     .10000E-03    14.485        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    15.703        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    2.7167        .19035E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    1.0848        .27386        .42160E-03   -.90241    
  22  Prefactor     1.0572        .98971E-01    .16415E-03   -.90846    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.23206e-08
Minuit parameter uncertainties:
  1  2.02425
  2  62.5959
  3  3.02694e-05
  4  0.000260198
  5  30.1491
  6  2.09497e-05
  7  4.8395e-05
  8  4.73111e-05
  9  20.9516
  10  1.52623
  11  0.000166697
  12  0.000233571
  13  5.04831e-05
  14  12.5748
  15  7.44178e-06
  16  1.82625e-05
  17  2.54057
  18  0.000284595
  19  5.0628e-05
  20  3.42128e-05
  21  0.27422
  22  0.0989881
Done.

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

Extracting fit parameters...

4FGL J0416.9+0105
   Spectrum: PowerLaw
210    Prefactor:  1.322e+01  3.015e+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.057e+00  9.899e-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.085e+00  2.742e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/346649/likelihoodResults_351302401_351561601_4FGL_J0416.9+0105_daily_bin432.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): 102
logL (Free Index) = 8598.50885271
delta logL = 0.920422397583

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8598.45752401
delta logL = 0.971751095674

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .52234E-01   1.0000         .10000E-03   10000.    
     2 'Index     '    4.4320       1.0000          .0000       10.000    
     3 'Normalizat'    .96272       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0822       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.

 FCN=   8598.458     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      277 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .52082E-01    .47436        .32970E-02    .53426E-02
   2  Index         4.4329        1.4579        .64991E-01    .36356E-03
   3  Normalizat    .96286        .58931E-01    .10011        .16598E-04
   4  Prefactor     1.0822        .22750E-01    .38304E-01   -.25046E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0520823
  Index      = 4.43291
  Normalizat = 0.962861
  Prefactor  = 1.08221
 **********
 **   18 **HESSE 
 **********

 FCN=   8598.458     FROM HESSE     STATUS=NOT POSDEF    35 CALLS      312 TOTAL
                     EDM=   .16E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .52082E-01    1.2764        .14922E-03   -1.5662    
   2  Index         4.4329        2.8239        .32259E-02   -.11366    
   3  Normalizat    .96286        .20361        .44357E-03   -.94285    
   4  Prefactor     1.0822        .76972E-01    .16235E-03   -.90037    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.5699e-07
Minuit parameter uncertainties:
  1  0.515181
  2  3.00354
  3  0.203777
  4  0.0769797
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/346649': 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) = 8598.45752372
delta logL = 0.971751386258

Extracting fit parameters...

4FGL J0416.9+0105
   Spectrum: PowerLaw
210    Prefactor:  5.208e-02  5.152e-01  1.000e-04  1.000e+04 ( 1.000e-14)
211        Index:  4.433e+00  3.004e+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.082e+00  7.698e-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:  9.629e-01  2.038e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.39
Ra Dec: 64.227 1.088
Photon Index (Free Index): 4.43 +/- 3.00
Photon Flux (Free Index): 1.41e-07 +/- 9.93e-08
Energy Flux (Free Index): 1.99e-05 +/- 1.45e-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/346649/cmap_HighResolution_351302401_351561601_4FGL_J0416.9+0105_daily_bin432.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.95e-03', comment='SUCCESS', energy_flux2='1.99e-05', dlogl='9.72e-01', photon_flux2='1.41e-07', job_status='DONE', time_completed='2021-08-20 10:20:32.958090', photon_index_error2='3.00', photon_index2='4.43', ts='0.25', fit_tolerance='1e-08', GAL='1.06', photon_index_error='0.00', photon_flux_upper_limit='9.37e-08', energy_flux_error2='1.45e-05', EG='1.08', time_epoch_completed='1629480032.96', return_code='0', job_id='346649', GAL2='1.08', EG2='0.96', return_code2='102', photon_flux_error2='9.93e-08', ts2='2.39', photon_index='1.88' WHERE bin_id='432' AND source_name='4FGL J0416.9+0105' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 20 10:20:32 PDT 2021


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

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0416.9+0105_daily_bin432 64.2269 1.088 351302401 351561601 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 :                                   716.00 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             315.45 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   903 sec.
    Turnaround time :                            906 sec.

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

