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


Performing analysis on: 4FGL_J0416.9+0105_daily_bin783
RA = 64.2269, Dec = 1.088
tmin = 442281601, tmax = 442540801
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='348224', job_status='RUN', time_executed='2021-08-20 10:13:18.124576', time_epoch_executed='1629479598.12' WHERE source_name='4FGL J0416.9+0105' and cadence='daily' and bin_id='783'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/348224

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/348224/ft1_4FGL_J0416.9+0105_daily_bin783.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/348224/ft2_4FGL_J0416.9+0105_daily_bin783.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/348224/ft1_4FGL_J0416.9+0105_daily_bin783.fits outfile=/scratch/kocevski/348224/ft1_filteredMKT_4FGL_J0416.9+0105_daily_bin783.fits ra=64.2269 dec=1.088 rad=12.0 tmin=442281601.0 tmax=442540801.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.33
user 3.22
sys 1.09

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/348224/ft1_filtered_4FGL_J0416.9+0105_daily_bin783.fits evtable="EVENTS" scfile=/scratch/kocevski/348224/ft2_4FGL_J0416.9+0105_daily_bin783.fits sctable="SC_DATA" expcube=/scratch/kocevski/348224/ltcube_442281601_442540801_4FGL_J0416.9+0105_daily_bin783.fits outfile=/scratch/kocevski/348224/expmap_442281601_442540801_4FGL_J0416.9+0105_daily_bin783.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/348224/ltcube_442281601_442540801_4FGL_J0416.9+0105_daily_bin783.fits
.....................!
real 192.58
user 186.71
sys 5.46

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/348224/ft1_filtered_4FGL_J0416.9+0105_daily_bin783.fits scfile=/scratch/kocevski/348224/ft2_4FGL_J0416.9+0105_daily_bin783.fits outfile=/scratch/kocevski/348224/cmap_442281601_442540801_4FGL_J0416.9+0105_daily_bin783.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.44
user 0.36
sys 1.01

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/348224/ft1_filtered_4FGL_J0416.9+0105_daily_bin783.fits scfile=/scratch/kocevski/348224/ft2_4FGL_J0416.9+0105_daily_bin783.fits outfile=/scratch/kocevski/348224/cmap_HighResolution_442281601_442540801_4FGL_J0416.9+0105_daily_bin783.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.40
user 0.37
sys 1.02

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.0261       1.0000         .10000E-03   10000.    
     2 'Prefactor '    38.909       1.0000         .10000E-03   10000.    
     3 'Prefactor '    29.134       1.0000         .10000E-03   10000.    
     4 'norm      '    7.4764       1.0000         .10000E-03   10000.    
     5 'Prefactor '    17.220       1.0000         .10000E-03   10000.    
     6 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10455E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    6.6938       1.0000         .10000E-03   10000.    
     9 'norm      '    .10037E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10039E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    40.705       1.0000         .10000E-03   10000.    
    13 'Prefactor '    58.008       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    3.2064       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    1.4213       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .48996       1.0000         .10000E-03   10000.    
    19 'Prefactor '    40.771       1.0000         .10000E-03   10000.    
    20 'norm      '    4.0452       1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.2071       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .85435       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=   10215.38     FROM MIGRAD    STATUS=CONVERGED    472 CALLS     2455 TOTAL
                     EDM=   .95E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.0262        1.0175       -.62019E-07   -.10958E-05
   2  Prefactor     38.875        43.823        .23523E-05    .15349E-03
   3  Prefactor     29.138        18.233       -.95387E-08   -.32416E-04
   4  norm          7.4762        7.9832        .30450E-08   -.36473E-04
   5  Prefactor     17.219        19.440       -.41356E-06   -.14895E-03
   6  norm          .10000E-03    1.1677       -.39957E-07** at limit **
   7  Prefactor     .10000E-03    32.723        .11292E-06** at limit **
   8  norm          6.6920        8.0613       -.27976E-06   -.23514E-03
   9  norm          .10000E-03    7.8835        .17632E-06** at limit **
  10  norm          .10000E-03    .33645       -.26685E-06** at limit **
  11  Prefactor     .10000E-03    .43153        .39993E-06** at limit **
  12  Prefactor     40.700        27.443        .47180E-06   -.14165E-03
  13  Prefactor     57.986        37.291       -.19056E-05   -.49054E-03
  14  Prefactor     .10000E-03    6.7989        .51669E-06** at limit **
  15  norm          3.2079        3.3561       -.19991E-06   -.24776E-03
  16  Prefactor     .10000E-03    17.204        .12720E-06** at limit **
  17  norm          1.4216        1.9451       -.22337E-06   -.35713E-03
  18  Prefactor     .42846        31.957        .11134E-04   -.26488E-03
  19  Prefactor     40.766        49.005        .10352E-06   -.53790E-04
  20  norm          4.0452        1.9176        .46201E-07   -.79331E-04
  21  Normalizat    1.2070        .19661       -.99042E-06   -.46759E-03
  22  Prefactor     .85443        .72397E-01   -.22981E-06   -.11933E-02
                               ERR DEF=  .500    
Final values: 
  norm       = 1.02616
  Prefactor  = 38.8747
  Prefactor  = 29.1381
  norm       = 7.47625
  Prefactor  = 17.2186
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 6.69202
  norm       = 0.0001
  norm       = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 40.6999
  Prefactor  = 57.9861
  Prefactor  = 0.0001
  norm       = 3.20788
  Prefactor  = 0.0001
  norm       = 1.42162
  Prefactor  = 0.428456
  Prefactor  = 40.7657
  norm       = 4.04521
  Normalizat = 1.20696
  Prefactor  = 0.854425
 **********
 **   18 **HESSE 
 **********

 FCN=   10215.38     FROM HESSE     STATUS=OK           338 CALLS     2793 TOTAL
                     EDM=   .28E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.0262        .99249        .97002E-04   -1.5505    
   2  Prefactor     38.875        44.150        .64257E-04   -1.4460    
   3  Prefactor     29.138        18.233        .74226E-04   -1.4628    
   4  norm          7.4762        7.9847        .14668E-03   -1.5161    
   5  Prefactor     17.219        19.466        .96518E-04   -1.4878    
   6  norm          .10000E-03    1.1763        .10662E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    33.063        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          6.6920        8.1159        .15509E-03   -1.5191    
   9  norm          .10000E-03    7.8938        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    .48479        .10494E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    .44100        .64979E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     40.700        27.108        .62828E-04   -1.4431    
  13  Prefactor     57.986        38.128        .52674E-04   -1.4184    
  14  Prefactor     .10000E-03    6.9314        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          3.2079        3.2923        .15082E-03   -1.5350    
  16  Prefactor     .10000E-03    17.216        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          1.4216        1.9185        .15369E-03   -1.5470    
  18  Prefactor     .42846        37.175        .42999E-02   -1.5577    
  19  Prefactor     40.766        48.687        .62777E-04   -1.4430    
  20  norm          4.0452        1.9182        .93341E-04   -1.5306    
  21  Normalizat    1.2070        .21682        .36030E-03   -.86388    
  22  Prefactor     .85443        .80544E-01    .16670E-03   -.97752    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.7621e-09
Minuit parameter uncertainties:
  1  0.992503
  2  44.1875
  3  18.2369
  4  7.98582
  5  19.4733
  6  1.62726e-06
  7  4.5456e-05
  8  8.11721
  9  6.67615e-06
  10  3.67325e-05
  11  1.231e-07
  12  27.1166
  13  38.144
  14  5.11885e-05
  15  3.29247
  16  2.15843e-05
  17  1.9186
  18  7.9861
  19  48.7349
  20  1.91822
  21  0.216978
  22  0.0805555
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
452    Prefactor:  8.544e-01  8.056e-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.207e+00  2.170e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.90
Ra Dec: 64.227 1.088
Photon Index (Fixed Index): 1.88 +/- 0.00
Photon Flux (Fixed Index): 1.74e-08 +/- 1.97e-08
Energy Flux (Fixed Index): 1.67e-05 +/- 1.89e-05

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

Saving results to:
/scratch/kocevski/348224/likelihoodResults_442281601_442540801_4FGL_J0416.9+0105_daily_bin783.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) = 10215.3628887
delta logL = 0.0188792833433

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 10215.3576059
delta logL = 0.0241620574307

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    19.554       1.0000         .10000E-03   10000.    
     2 'Index     '    1.7021       1.0000          .0000       10.000    
     3 'Normalizat'    1.2095       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .85449       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=   10215.36     FROM MIGRAD    STATUS=CONVERGED     97 CALLS      260 TOTAL
                     EDM=   .39E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     19.559        24.304        .45288E-03    .47847E-04
   2  Index         1.7020        .78884        .15506E-01    .29905E-03
   3  Normalizat    1.2096        .19664        .35998E-03   -.59120E-04
   4  Prefactor     .85448        .78525E-01    .16669E-03   -.34646E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 19.5594
  Index      = 1.70201
  Normalizat = 1.20956
  Prefactor  = 0.854485
 **********
 **   18 **HESSE 
 **********

 FCN=   10215.36     FROM HESSE     STATUS=OK            25 CALLS      285 TOTAL
                     EDM=   .21E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     19.559        23.735        .18115E-04   -1.4823    
   2  Index         1.7020        .77099        .31012E-02   -.72028    
   3  Normalizat    1.2096        .19666        .14399E-04   -.86308    
   4  Prefactor     .85448        .78563E-01    .33339E-04   -.97750    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.10006e-11
Minuit parameter uncertainties:
  1  23.746
  2  0.776508
  3  0.196785
  4  0.078573
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/348224': 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) = 10215.3576059
delta logL = 0.0241620928755

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
452    Prefactor:  8.545e-01  7.857e-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.210e+00  1.968e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.94
Ra Dec: 64.227 1.088
Photon Index (Free Index): 1.70 +/- 0.78
Photon Flux (Free Index): 1.31e-08 +/- 2.30e-08
Energy Flux (Free Index): 2.12e-05 +/- 3.43e-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/348224/cmap_HighResolution_442281601_442540801_4FGL_J0416.9+0105_daily_bin783.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.59e-03', comment='SUCCESS', photon_flux='1.74e-08', energy_flux2='2.12e-05', photon_flux_error='1.97e-08', dlogl='2.42e-02', energy_flux='1.67e-05', photon_flux2='1.31e-08', job_status='DONE', time_completed='2021-08-20 10:26:49.963443', photon_index_error2='0.78', photon_index2='1.70', ts='1.90', fit_tolerance='1e-08', GAL='0.85', photon_index_error='0.00', photon_flux_upper_limit='7.53e-08', energy_flux_error2='3.43e-05', EG='1.21', time_epoch_completed='1629480409.96', return_code='0', job_id='348224', GAL2='0.85', EG2='1.21', return_code2='0', energy_flux_error='1.89e-05', photon_flux_error2='2.30e-08', ts2='1.94', photon_index='1.88' WHERE bin_id='783' AND source_name='4FGL J0416.9+0105' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 20 10:26:50 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0030>
Subject: Job 348224: <4FGL_J0416.9+0105_daily_bin783> in cluster <slac> Done

Job <4FGL_J0416.9+0105_daily_bin783> was submitted from host <rhel6-64n> by user <kocevski> in cluster <slac> at Fri Aug 20 10:10:45 2021
Job was executed on host(s) <bullet0030>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Aug 20 10:10:46 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:46 2021
Terminated at Fri Aug 20 10:26:50 2021
Results reported at Fri Aug 20 10:26:50 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0416.9+0105_daily_bin783 64.2269 1.088 442281601 442540801 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 :                                   825.00 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             326.50 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   964 sec.
    Turnaround time :                            965 sec.

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

