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


Performing analysis on: 4FGL_J0416.9+0105_daily_bin485
RA = 64.2269, Dec = 1.088
tmin = 365040001, tmax = 365299201
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='346722', job_status='RUN', time_executed='2021-08-20 10:06:02.383099', time_epoch_executed='1629479162.38' WHERE source_name='4FGL J0416.9+0105' and cadence='daily' and bin_id='485'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/346722

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/346722/ft1_4FGL_J0416.9+0105_daily_bin485.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/346722/ft2_4FGL_J0416.9+0105_daily_bin485.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/346722/ft1_4FGL_J0416.9+0105_daily_bin485.fits outfile=/scratch/kocevski/346722/ft1_filteredMKT_4FGL_J0416.9+0105_daily_bin485.fits ra=64.2269 dec=1.088 rad=12.0 tmin=365040001.0 tmax=365299201.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 4.40
user 3.40
sys 0.97

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/346722/ft1_filtered_4FGL_J0416.9+0105_daily_bin485.fits" evtable="EVENTS" scfile=/scratch/kocevski/346722/ft2_4FGL_J0416.9+0105_daily_bin485.fits sctable="SC_DATA" outfile=/scratch/kocevski/346722/ltcube_365040001_365299201_4FGL_J0416.9+0105_daily_bin485.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/346722/ft2_4FGL_J0416.9+0105_daily_bin485.fits
.....................!
real 12.59
user 11.39
sys 1.14

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/346722/ft1_filtered_4FGL_J0416.9+0105_daily_bin485.fits evtable="EVENTS" scfile=/scratch/kocevski/346722/ft2_4FGL_J0416.9+0105_daily_bin485.fits sctable="SC_DATA" expcube=/scratch/kocevski/346722/ltcube_365040001_365299201_4FGL_J0416.9+0105_daily_bin485.fits outfile=/scratch/kocevski/346722/expmap_365040001_365299201_4FGL_J0416.9+0105_daily_bin485.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/346722/ltcube_365040001_365299201_4FGL_J0416.9+0105_daily_bin485.fits
.....................!
real 191.27
user 185.79
sys 5.12

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/346722/ft1_filtered_4FGL_J0416.9+0105_daily_bin485.fits scfile=/scratch/kocevski/346722/ft2_4FGL_J0416.9+0105_daily_bin485.fits outfile=/scratch/kocevski/346722/cmap_365040001_365299201_4FGL_J0416.9+0105_daily_bin485.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.45
user 0.37
sys 0.89

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/346722/ft1_filtered_4FGL_J0416.9+0105_daily_bin485.fits scfile=/scratch/kocevski/346722/ft2_4FGL_J0416.9+0105_daily_bin485.fits outfile=/scratch/kocevski/346722/cmap_HighResolution_365040001_365299201_4FGL_J0416.9+0105_daily_bin485.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.29
user 0.36
sys 0.90

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .85482       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10149E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10031E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    15.407       1.0000         .10000E-03   10000.    
     5 'Prefactor '    50.433       1.0000         .10000E-03   10000.    
     6 'norm      '    .84795       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10369E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    1.9031       1.0000         .10000E-03   10000.    
     9 'norm      '    3.8623       1.0000         .10000E-03   10000.    
    10 'norm      '    3.2586       1.0000         .10000E-03   10000.    
    11 'Prefactor '    2.2365       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .17018       1.0000         .10000E-03   10000.    
    13 'Prefactor '    84.736       1.0000         .10000E-03   10000.    
    14 'Prefactor '    5.6531       1.0000         .10000E-03   10000.    
    15 'norm      '    .10485E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10375E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    1.5643       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .14264E-02   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    4.2463       1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.2596       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .91980       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=   9997.194     FROM MIGRAD    STATUS=CONVERGED    518 CALLS     2470 TOTAL
                     EDM=   .28E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .85386        1.4614        .56713E-06   -.18156E-03
   2  Prefactor     .10000E-03    32.558        .99616E-06** at limit **
   3  Prefactor     .10000E-03    6.4707        .25822E-07** at limit **
   4  norm          15.406        14.356       -.30508E-06   -.44924E-04
   5  Prefactor     50.404        34.769       -.39132E-06   -.45429E-04
   6  norm          .84793        5.7984        .41603E-05   -.26681E-03
   7  Prefactor     .10000E-03    10.589        .52623E-07** at limit **
   8  norm          1.8956        12.314        .87509E-06   -.95340E-04
   9  norm          3.8647        31.703        .43167E-05    .87565E-04
  10  norm          3.2581        1.4501       -.23754E-06   -.83418E-03
  11  Prefactor     2.2368        1.9211       -.80590E-07   -.44410E-03
  12  Prefactor     .10037E-03    13.881        .54859E-06** at limit **
  13  Prefactor     84.770        49.529        .21126E-05    .13329E-03
  14  Prefactor     5.6478        11.045       -.44972E-06   -.14944E-03
  15  norm          .10000E-03    1.0071        .38714E-07** at limit **
  16  Prefactor     .10000E-03    37.305       -.12426E-05** at limit **
  17  norm          1.5638        1.4235        .59127E-07   -.10178E-03
  18  Prefactor     .10001E-03    3.2833       -.41786E-07** at limit **
  19  Prefactor     .10000E-03    6.9607        .22555E-07** at limit **
  20  norm          4.2457        2.2019        .64237E-07   -.47470E-04
  21  Normalizat    1.2600        .22110       -.21362E-05   -.14638E-03
  22  Prefactor     .91979        .76250E-01   -.55927E-07   -.39012E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.85386
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 15.4057
  Prefactor  = 50.4041
  norm       = 0.847934
  Prefactor  = 0.0001
  norm       = 1.89557
  norm       = 3.86471
  norm       = 3.25806
  Prefactor  = 2.23681
  Prefactor  = 0.000100372
  Prefactor  = 84.7701
  Prefactor  = 5.64783
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 1.56377
  Prefactor  = 0.000100015
  Prefactor  = 0.0001
  norm       = 4.24574
  Normalizat = 1.26
  Prefactor  = 0.919791
 **********
 **   18 **HESSE 
 **********

 FCN=   9997.194     FROM HESSE     STATUS=OK           358 CALLS     2828 TOTAL
                     EDM=   .10E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .85386        1.4616        .14811E-03   -1.5523    
   2  Prefactor     .10000E-03    32.705        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    6.4929        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          15.406        14.350        .10204E-03   -1.4923    
   5  Prefactor     50.404        34.704        .56470E-04   -1.4287    
   6  norm          .84793        6.0135        .45169E-03   -1.5524    
   7  Prefactor     .10000E-03    10.617        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          1.8956        12.250        .30145E-03   -1.5433    
   9  norm          3.8647        33.077        .20533E-03   -1.5315    
  10  norm          3.2581        1.4428        .70650E-04   -1.5347    
  11  Prefactor     2.2368        1.9147        .11141E-03   -1.5409    
  12  Prefactor     .10037E-03    16.597        .94300E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     84.770        50.573        .43640E-04   -1.3864    
  14  Prefactor     5.6478        11.041        .16895E-03   -1.5233    
  15  norm          .10000E-03    4.5205        .18041E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    37.705        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          1.5638        1.4112        .10966E-03   -1.5458    
  18  Prefactor     .10001E-03    29.337        .34971E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    6.9624        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          4.2457        2.2034        .10333E-03   -1.5296    
  21  Normalizat    1.2600        .25086        .37537E-03   -.84768    
  22  Prefactor     .91979        .87486E-01    .16549E-03   -.95453    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.03827e-09
Minuit parameter uncertainties:
  1  1.46171
  2  0.000160817
  3  7.66015e-06
  4  14.3529
  5  34.7184
  6  4.5166
  7  1.12169e-05
  8  9.64017
  9  22.6294
  10  1.44278
  11  1.91478
  12  0.00497002
  13  50.5987
  14  11.0447
  15  1.63831e-05
  16  0.000119011
  17  1.41125
  18  0.00130715
  19  3.16637e-06
  20  2.20342
  21  0.251099
  22  0.0874998
Done.

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

Extracting fit parameters...

4FGL J0416.9+0105
   Spectrum: PowerLaw
210    Prefactor:  5.040e+01  3.472e+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:  9.198e-01  8.750e-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.260e+00  2.511e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.88
Ra Dec: 64.227 1.088
Photon Index (Fixed Index): 1.88 +/- 0.00
Photon Flux (Fixed Index): 5.10e-08 +/- 3.51e-08
Energy Flux (Fixed Index): 4.89e-05 +/- 3.37e-05

TS (Fixed Index): 3.88
Ra Dec: 64.227 1.088
Photon Flux Upper Limit: 1.26e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.34e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/346722/likelihoodResults_365040001_365299201_4FGL_J0416.9+0105_daily_bin485.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) = 9995.49519102
delta logL = 1.69923111845

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9995.47281445
delta logL = 1.72160769551

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    12.808       1.0000         .10000E-03   10000.    
     2 'Index     '    2.7278       1.0000          .0000       10.000    
     3 'Normalizat'    1.1908       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .92901       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=   9995.473     FROM MIGRAD    STATUS=CONVERGED     90 CALLS      294 TOTAL
                     EDM=   .67E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     12.812        29.298        .11193E-03    .67546E-03
   2  Index         2.7277        .85469        .30800E-02    .29979E-03
   3  Normalizat    1.1908        .22982        .38359E-03   -.41795E-03
   4  Prefactor     .92900        .86005E-01    .16448E-03   -.50284E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 12.8121
  Index      = 2.72769
  Normalizat = 1.19077
  Prefactor  = 0.929001
 **********
 **   18 **HESSE 
 **********

 FCN=   9995.473     FROM HESSE     STATUS=OK            25 CALLS      319 TOTAL
                     EDM=   .58E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     12.812        16.815        .44771E-05   -1.4992    
   2  Index         2.7277        .49167        .12320E-03   -.47177    
   3  Normalizat    1.1908        .22411        .15344E-04   -.86889    
   4  Prefactor     .92900        .84926E-01    .32897E-04   -.95135    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.84539e-10
Minuit parameter uncertainties:
  1  16.821
  2  0.492671
  3  0.224294
  4  0.0849382
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/346722': 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) = 9995.47281441
delta logL = 1.72160773511

Extracting fit parameters...

4FGL J0416.9+0105
   Spectrum: PowerLaw
210    Prefactor:  1.281e+01  1.682e+01  1.000e-04  1.000e+04 ( 1.000e-14)
211        Index:  2.728e+00  4.927e-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:  9.290e-01  8.494e-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.191e+00  2.243e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 7.39
Ra Dec: 64.227 1.088
Photon Index (Free Index): 2.73 +/- 0.49
Photon Flux (Free Index): 1.44e-07 +/- 7.82e-08
Energy Flux (Free Index): 3.39e-05 +/- 1.63e-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/346722/cmap_HighResolution_365040001_365299201_4FGL_J0416.9+0105_daily_bin485.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.34e-03', comment='SUCCESS', photon_flux='5.10e-08', energy_flux2='3.39e-05', photon_flux_error='3.51e-08', dlogl='1.72e+00', energy_flux='4.89e-05', photon_flux2='1.44e-07', job_status='DONE', time_completed='2021-08-20 10:19:28.554611', photon_index_error2='0.49', photon_index2='2.73', ts='3.88', fit_tolerance='1e-08', GAL='0.92', photon_index_error='0.00', photon_flux_upper_limit='1.26e-07', energy_flux_error2='1.63e-05', EG='1.26', time_epoch_completed='1629479968.55', return_code='0', job_id='346722', GAL2='0.93', EG2='1.19', return_code2='0', energy_flux_error='3.37e-05', photon_flux_error2='7.82e-08', ts2='7.39', photon_index='1.88' WHERE bin_id='485' AND source_name='4FGL J0416.9+0105' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 20 10:19:28 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0038>
Subject: Job 346722: <4FGL_J0416.9+0105_daily_bin485> in cluster <slac> Done

Job <4FGL_J0416.9+0105_daily_bin485> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Fri Aug 20 10:05:33 2021
Job was executed on host(s) <bullet0038>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Aug 20 10:05:35 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Aug 20 10:05:35 2021
Terminated at Fri Aug 20 10:19:29 2021
Results reported at Fri Aug 20 10:19:29 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0416.9+0105_daily_bin485 64.2269 1.088 365040001 365299201 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 :                                   816.17 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             326.44 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   833 sec.
    Turnaround time :                            836 sec.

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

