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


Performing analysis on: 4FGL_J0416.9+0105_daily_bin472
RA = 64.2269, Dec = 1.088
tmin = 361670401, tmax = 361929601
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='346703', job_status='RUN', time_executed='2021-08-20 10:06:05.256116', time_epoch_executed='1629479165.26' WHERE source_name='4FGL J0416.9+0105' and cadence='daily' and bin_id='472'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/346703

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/346703/ft1_4FGL_J0416.9+0105_daily_bin472.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/346703/ft2_4FGL_J0416.9+0105_daily_bin472.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/346703/ft1_4FGL_J0416.9+0105_daily_bin472.fits outfile=/scratch/kocevski/346703/ft1_filteredMKT_4FGL_J0416.9+0105_daily_bin472.fits ra=64.2269 dec=1.088 rad=12.0 tmin=361670401.0 tmax=361929601.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.69
user 3.31
sys 1.36

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/346703/ft1_filtered_4FGL_J0416.9+0105_daily_bin472.fits evtable="EVENTS" scfile=/scratch/kocevski/346703/ft2_4FGL_J0416.9+0105_daily_bin472.fits sctable="SC_DATA" expcube=/scratch/kocevski/346703/ltcube_361670401_361929601_4FGL_J0416.9+0105_daily_bin472.fits outfile=/scratch/kocevski/346703/expmap_361670401_361929601_4FGL_J0416.9+0105_daily_bin472.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/346703/ltcube_361670401_361929601_4FGL_J0416.9+0105_daily_bin472.fits
.....................!
real 193.09
user 187.35
sys 5.41

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/346703/ft1_filtered_4FGL_J0416.9+0105_daily_bin472.fits scfile=/scratch/kocevski/346703/ft2_4FGL_J0416.9+0105_daily_bin472.fits outfile=/scratch/kocevski/346703/cmap_361670401_361929601_4FGL_J0416.9+0105_daily_bin472.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.66
user 0.37
sys 1.27

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/346703/ft1_filtered_4FGL_J0416.9+0105_daily_bin472.fits scfile=/scratch/kocevski/346703/ft2_4FGL_J0416.9+0105_daily_bin472.fits outfile=/scratch/kocevski/346703/cmap_HighResolution_361670401_361929601_4FGL_J0416.9+0105_daily_bin472.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.66
user 0.37
sys 1.25

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.6601       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .11711E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    37.128       1.0000         .10000E-03   10000.    
     6 'norm      '    9.9880       1.0000         .10000E-03   10000.    
     7 'Prefactor '    4.8951       1.0000         .10000E-03   10000.    
     8 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10072E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    1.3676       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    28.848       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .33703       1.0000         .10000E-03   10000.    
    16 'Prefactor '    52.650       1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10471E-02   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    4.6823       1.0000         .10000E-03   10000.    
    21 'Normalizat'    .96896       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.0706       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=   7952.544     FROM MIGRAD    STATUS=CONVERGED    486 CALLS     2358 TOTAL
                     EDM=   .23E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.6600        1.8170        .59148E-07   -.68321E-04
   2  Prefactor     .10000E-03    63.146       -.81066E-07** at limit **
   3  Prefactor     .10000E-03    4.7194       -.18929E-07** at limit **
   4  norm          .10000E-03    13.829       -.18036E-06** at limit **
   5  Prefactor     37.127        28.748        .31007E-07   -.36412E-05
   6  norm          9.9880        7.0593        .10388E-05   -.44602E-03
   7  Prefactor     4.8932        36.744       -.20612E-06   -.26361E-04
   8  norm          .10000E-03    2.9110       -.10158E-07** at limit **
   9  norm          .10000E-03    22.356       -.13474E-05** at limit **
  10  norm          1.3677        1.0895       -.66298E-07   -.11507E-03
  11  Prefactor     .10000E-03    .53802       -.51517E-08** at limit **
  12  Prefactor     28.848        22.429       -.87738E-06   -.10268E-03
  13  Prefactor     .10000E-03    19.109        .74053E-06** at limit **
  14  Prefactor     .10000E-03    3.6006       -.20175E-07** at limit **
  15  norm          .33867        1.9128        .16581E-05   -.36911E-03
  16  Prefactor     52.675        47.324        .40576E-05    .21550E-03
  17  norm          .10000E-03    1.3103       -.24275E-08** at limit **
  18  Prefactor     .10000E-03    4.2050        .36866E-07** at limit **
  19  Prefactor     .10000E-03    28.031        .59353E-06** at limit **
  20  norm          4.6824        2.6881        .39413E-07   -.33396E-04
  21  Normalizat    .96903        .23266       -.41940E-06   -.60803E-04
  22  Prefactor     1.0705        .89739E-01   -.41602E-06   -.33944E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 3.66
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 37.1273
  norm       = 9.98798
  Prefactor  = 4.89316
  norm       = 0.0001
  norm       = 0.0001
  norm       = 1.36774
  Prefactor  = 0.0001
  Prefactor  = 28.8477
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.338669
  Prefactor  = 52.6745
  norm       = 0.0001
  Prefactor  = 0.000100003
  Prefactor  = 0.0001
  norm       = 4.68243
  Normalizat = 0.969025
  Prefactor  = 1.07053
 **********
 **   18 **HESSE 
 **********

 FCN=   7952.544     FROM HESSE     STATUS=OK           342 CALLS     2700 TOTAL
                     EDM=   .68E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.6600        1.8145        .81133E-04   -1.5325    
   2  Prefactor     .10000E-03    63.645        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    4.7246        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    13.847        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     37.127        28.737        .65775E-04   -1.4489    
   6  norm          9.9880        7.1568        .63395E-03   -1.5076    
   7  Prefactor     4.8932        36.610        .18180E-03   -1.5266    
   8  norm          .10000E-03    2.9136        .14858E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    22.631        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          1.3677        1.0907        .77652E-04   -1.5474    
  11  Prefactor     .10000E-03    .54345        .63790E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     28.848        22.278        .74593E-04   -1.4633    
  13  Prefactor     .10000E-03    19.189        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    3.6071        .16522E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .33867        2.0070        .23954E-03   -1.5592    
  16  Prefactor     52.675        50.379        .55275E-04   -1.4255    
  17  norm          .10000E-03    1.3438        .19908E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    13.069        .35100E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    28.164        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          4.6824        2.6905        .10675E-03   -1.5275    
  21  Normalizat    .96903        .25258        .42073E-03   -.94075    
  22  Prefactor     1.0705        .98488E-01    .16085E-03   -.90414    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.78418e-10
Minuit parameter uncertainties:
  1  1.81448
  2  5.48454e-05
  3  2.41235e-06
  4  1.78181e-05
  5  28.7477
  6  7.15743
  7  26.7913
  8  8.30956e-09
  9  0.000138202
  10  1.09076
  11  2.88379e-07
  12  22.284
  13  8.70532e-05
  14  6.38792e-07
  15  1.64873
  16  50.4195
  17  1.60189e-06
  18  0.000383437
  19  8.13352e-05
  20  2.69059
  21  0.252892
  22  0.098505
Done.

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

Extracting fit parameters...

4FGL J0416.9+0105
   Spectrum: PowerLaw
210    Prefactor:  3.713e+01  2.875e+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.071e+00  9.851e-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.690e-01  2.529e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.40
Ra Dec: 64.227 1.088
Photon Index (Fixed Index): 1.88 +/- 0.00
Photon Flux (Fixed Index): 3.76e-08 +/- 2.91e-08
Energy Flux (Fixed Index): 3.61e-05 +/- 2.79e-05

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

Saving results to:
/scratch/kocevski/346703/likelihoodResults_361670401_361929601_4FGL_J0416.9+0105_daily_bin472.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) = 7952.21945174
delta logL = 0.324707828921

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7952.21921675
delta logL = 0.32494282159

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    55.843       1.0000         .10000E-03   10000.    
     2 'Index     '    1.5184       1.0000          .0000       10.000    
     3 'Normalizat'    .97771       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0695       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=   7952.219     FROM MIGRAD    STATUS=CONVERGED     63 CALLS      276 TOTAL
                     EDM=   .12E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     55.703        1484.5        .13420E-02    .88019E-05
   2  Index         1.5165        5.3709        .15748        .87623E-04
   3  Normalizat    .97783        .19186        .94614E-01    .23907E-04
   4  Prefactor     1.0695        .55500E-01    .38882E-01    .66386E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 55.7032
  Index      = 1.51647
  Normalizat = 0.977825
  Prefactor  = 1.06953
 **********
 **   18 **HESSE 
 **********

 FCN=   7952.219     FROM HESSE     STATUS=OK            31 CALLS      307 TOTAL
                     EDM=   .80E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     55.703        44.470        .53680E-04   -1.4214    
   2  Index         1.5165        .43074        .84108E-02   -.77079    
   3  Normalizat    .97783        .24126        .41910E-03   -.93777    
   4  Prefactor     1.0695        .97301E-01    .16091E-03   -.90446    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.98346e-12
Minuit parameter uncertainties:
  1  44.4965
  2  0.431782
  3  0.241531
  4  0.0973172
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/346703': 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) = 7952.21919524
delta logL = 0.324964327055

Extracting fit parameters...

4FGL J0416.9+0105
   Spectrum: PowerLaw
210    Prefactor:  5.570e+01  4.450e+01  1.000e-04  1.000e+04 ( 1.000e-14)
211        Index:  1.516e+00  4.318e-01  0.000e+00  1.000e+01 (-1.000e+00)
212        Scale:  3.731e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
452    Prefactor:  1.070e+00  9.732e-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.778e-01  2.415e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.05
Ra Dec: 64.227 1.088
Photon Index (Free Index): 1.52 +/- 0.43
Photon Flux (Free Index): 2.54e-08 +/- 2.40e-08
Energy Flux (Free Index): 7.59e-05 +/- 8.85e-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/346703/cmap_HighResolution_361670401_361929601_4FGL_J0416.9+0105_daily_bin472.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.08e-03', comment='SUCCESS', photon_flux='3.76e-08', energy_flux2='7.59e-05', photon_flux_error='2.91e-08', dlogl='3.25e-01', energy_flux='3.61e-05', photon_flux2='2.54e-08', job_status='DONE', time_completed='2021-08-20 10:17:35.209678', photon_index_error2='0.43', photon_index2='1.52', ts='3.40', fit_tolerance='1e-08', GAL='1.07', photon_index_error='0.00', photon_flux_upper_limit='1.09e-07', energy_flux_error2='8.85e-05', EG='0.97', time_epoch_completed='1629479855.21', return_code='0', job_id='346703', GAL2='1.07', EG2='0.98', return_code2='0', energy_flux_error='2.79e-05', photon_flux_error2='2.40e-08', ts2='4.05', photon_index='1.88' WHERE bin_id='472' AND source_name='4FGL J0416.9+0105' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 20 10:17:35 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0255>
Subject: Job 346703: <4FGL_J0416.9+0105_daily_bin472> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0416.9+0105_daily_bin472 64.2269 1.088 361670401 361929601 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 :                                   707.16 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             358.96 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   722 sec.
    Turnaround time :                            724 sec.

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

