aklog: Couldn't determine realm of user:aklog: unknown RPC error (-1765328189)  while getting realm
/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 5 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 = 17252
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1416.1+1320_weekly_bin525
RA = 214.029, Dec = 13.347
tmin = 556502401, tmax = 557107201
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='280379', job_status='RUN', time_executed='2021-07-21 13:31:50.243009', time_epoch_executed='1626899510.24' WHERE source_name='4FGL J1416.1+1320' and cadence='weekly' and bin_id='525'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/280379

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/280379/ft1_4FGL_J1416.1+1320_weekly_bin525.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/280379/ft2_4FGL_J1416.1+1320_weekly_bin525.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/280379/ft1_4FGL_J1416.1+1320_weekly_bin525.fits outfile=/scratch/kocevski/280379/ft1_filteredMKT_4FGL_J1416.1+1320_weekly_bin525.fits ra=214.029 dec=13.347 rad=12.0 tmin=556502401.0 tmax=557107201.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 8.13
user 7.39
sys 0.27

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/280379/ft2_4FGL_J1416.1+1320_weekly_bin525.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/280379/ft2_4FGL_J1416.1+1320_weekly_bin525.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/280379/ft1_filteredMKT_4FGL_J1416.1+1320_weekly_bin525.fits evtable="EVENTS" outfile="/scratch/kocevski/280379/ft1_filtered_4FGL_J1416.1+1320_weekly_bin525.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.55
user 0.39
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/280379/ft1_filtered_4FGL_J1416.1+1320_weekly_bin525.fits" evtable="EVENTS" scfile=/scratch/kocevski/280379/ft2_4FGL_J1416.1+1320_weekly_bin525.fits sctable="SC_DATA" outfile=/scratch/kocevski/280379/ltcube_556502401_557107201_4FGL_J1416.1+1320_weekly_bin525.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/280379/ft2_4FGL_J1416.1+1320_weekly_bin525.fits
.....................!
real 28.21
user 27.65
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/280379/ft1_filtered_4FGL_J1416.1+1320_weekly_bin525.fits evtable="EVENTS" scfile=/scratch/kocevski/280379/ft2_4FGL_J1416.1+1320_weekly_bin525.fits sctable="SC_DATA" expcube=/scratch/kocevski/280379/ltcube_556502401_557107201_4FGL_J1416.1+1320_weekly_bin525.fits outfile=/scratch/kocevski/280379/expmap_556502401_557107201_4FGL_J1416.1+1320_weekly_bin525.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/280379/ltcube_556502401_557107201_4FGL_J1416.1+1320_weekly_bin525.fits
.....................!
real 192.23
user 186.34
sys 5.00

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 142 point sources and 0 extended sources

Setting source of interest to:
4FGL J1416.1+1320 @ 214.029 13.347

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/280379/ft1_filtered_4FGL_J1416.1+1320_weekly_bin525.fits scfile=/scratch/kocevski/280379/ft2_4FGL_J1416.1+1320_weekly_bin525.fits outfile=/scratch/kocevski/280379/cmap_556502401_557107201_4FGL_J1416.1+1320_weekly_bin525.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=214.029 yref=13.347 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.58
user 0.41
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/280379/ft1_filtered_4FGL_J1416.1+1320_weekly_bin525.fits scfile=/scratch/kocevski/280379/ft2_4FGL_J1416.1+1320_weekly_bin525.fits outfile=/scratch/kocevski/280379/cmap_HighResolution_556502401_557107201_4FGL_J1416.1+1320_weekly_bin525.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=214.029 yref=13.347 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.59
user 0.41
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/280379/ft1_filtered_4FGL_J1416.1+1320_weekly_bin525.fits evtable="EVENTS" scfile=/scratch/kocevski/280379/ft2_4FGL_J1416.1+1320_weekly_bin525.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/280379/Model_4FGL_J1416.1+1320_weekly_bin525.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/280379/ft1_filtered_4FGL_J1416.1+1320_weekly_bin525.fits.....................!
real 58.89
user 57.56
sys 1.22

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/280379/ft1_filtered_4FGL_J1416.1+1320_weekly_bin525.fits', '/scratch/kocevski/280379/ft2_4FGL_J1416.1+1320_weekly_bin525.fits', expMap='/scratch/kocevski/280379/expmap_556502401_557107201_4FGL_J1416.1+1320_weekly_bin525.fits', expCube='/scratch/kocevski/280379/ltcube_556502401_557107201_4FGL_J1416.1+1320_weekly_bin525.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/280379/Model_4FGL_J1416.1+1320_weekly_bin525.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1416.1+1320'

4FGL J1416.1+1320
   Spectrum: PowerLaw
242    Prefactor:  8.909e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
243        Index:  2.373e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
244        Scale:  8.905e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/280379/ft1_filtered_4FGL_J1416.1+1320_weekly_bin525.fits
Spacecraft file(s): /scratch/kocevski/280379/ft2_4FGL_J1416.1+1320_weekly_bin525.fits
Exposure map: /scratch/kocevski/280379/expmap_556502401_557107201_4FGL_J1416.1+1320_weekly_bin525.fits
Exposure cube: /scratch/kocevski/280379/ltcube_556502401_557107201_4FGL_J1416.1+1320_weekly_bin525.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/280379/Model_4FGL_J1416.1+1320_weekly_bin525.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) = 8380.18046988

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.2738       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10153E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    13.991       1.0000         .10000E-03   10000.    
     5 'Prefactor '    19.872       1.0000         .10000E-03   10000.    
     6 'Prefactor '    26.905       1.0000         .10000E-03   10000.    
     7 'Prefactor '    34.883       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10341E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    55.411       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .12231E-02   1.0000         .10000E-03   10000.    
    11 'norm      '    5.3187       1.0000         .10000E-03   10000.    
    12 'Prefactor '    10.072       1.0000         .10000E-03   10000.    
    13 'norm      '    7.6289       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10176E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    9.3083       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .25401E-01   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10036E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    20.751       1.0000         .10000E-03   10000.    
    21 'Normalizat'    .89467       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.0431       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .4610E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   8380.057     FROM MIGRAD    STATUS=CONVERGED    524 CALLS     2459 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.2420        100.35        .37785E-05    .24559E-04
   2  Prefactor     .10000E-03    4.3729        .73997E-07** at limit **
   3  Prefactor     .10000E-03    3.1096       -.84739E-09** at limit **
   4  Prefactor     13.990        14.151       -.36546E-06   -.13006E-03
   5  Prefactor     19.871        12.207       -.33332E-07   -.61854E-04
   6  Prefactor     26.905        22.816        .15320E-05    .26801E-03
   7  Prefactor     34.882        24.398        .53877E-06    .72973E-04
   8  Prefactor     .10000E-03    43.768        .10096E-05** at limit **
   9  norm          55.413        27.450        .12521E-05    .31874E-03
  10  Prefactor     .14458E-03    5.9021       -.82038E-06** at limit **
  11  norm          5.3185        2.4819        .10499E-07   -.89736E-05
  12  Prefactor     10.072        6.6114        .22754E-05   -.76026E-03
  13  norm          7.6286        2.7440        .42153E-07   -.31240E-03
  14  Prefactor     .10000E-03    29.294        .14042E-06** at limit **
  15  norm          9.3162        10.342        .10720E-06    .54161E-04
  16  Prefactor     .10000E-03    4.3954       -.65869E-07** at limit **
  17  Prefactor     .14390E-03    11.675       -.10539E-05** at limit **
  18  Prefactor     .10000E-03    4.9813       -.16453E-06** at limit **
  19  Prefactor     .10000E-03    4.8699       -.11913E-06** at limit **
  20  Prefactor     20.747        23.093       -.20693E-05   -.27886E-03
  21  Normalizat    .89449        .19182       -.76387E-06    .13768E-03
  22  Prefactor     1.0433        .13686        .22078E-07    .14818E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.24201
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 13.9897
  Prefactor  = 19.8711
  Prefactor  = 26.9053
  Prefactor  = 34.882
  Prefactor  = 0.0001
  norm       = 55.4129
  Prefactor  = 0.000144579
  norm       = 5.3185
  Prefactor  = 10.0718
  norm       = 7.62858
  Prefactor  = 0.0001
  norm       = 9.31616
  Prefactor  = 0.0001
  Prefactor  = 0.000143897
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 20.747
  Normalizat = 0.894487
  Prefactor  = 1.0433
 **********
 **   18 **HESSE 
 **********

 FCN=   8380.057     FROM HESSE     STATUS=OK           356 CALLS     2815 TOTAL
                     EDM=   .28E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.2420        100.35        .16026E-03   -1.5208    
   2  Prefactor     .10000E-03    4.5585        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    3.2258        .31510E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     13.990        14.202        .10708E-03   -1.4960    
   5  Prefactor     19.871        12.246        .89849E-04   -1.4816    
   6  Prefactor     26.905        22.978        .77233E-04   -1.4670    
   7  Prefactor     34.882        24.611        .67851E-04   -1.4526    
   8  Prefactor     .10000E-03    44.818        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          55.413        27.660        .53888E-04   -1.4218    
  10  Prefactor     .14458E-03    9.3395        .57977E-01   -1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          5.3185        2.4823        .95460E-04   -1.5247    
  12  Prefactor     10.072        7.4106        .63128E-03   -1.5073    
  13  norm          7.6286        2.7424        .43536E-03   -1.5155    
  14  Prefactor     .10000E-03    29.340        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          9.3162        10.286        .13136E-03   -1.5097    
  16  Prefactor     .10000E-03    4.4024        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .14390E-03    15.494        .87528E-01   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    5.0020        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    4.8763        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     20.747        23.559        .87926E-04   -1.4797    
  21  Normalizat    .89449        .23248        .30502E-03   -.96654    
  22  Prefactor     1.0433        .16665        .21053E-03   -.91300    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.84494e-09
Minuit parameter uncertainties:
  1  50.1556
  2  1.0942e-06
  3  1.34643e-06
  4  14.2059
  5  12.248
  6  22.9851
  7  24.6182
  8  0.000224975
  9  27.6668
  10  0.0408153
  11  2.48237
  12  7.41123
  13  2.74241
  14  2.89741e-05
  15  10.288
  16  6.69622e-07
  17  0.052172
  18  1.32459e-05
  19  7.6762e-06
  20  23.5697
  21  0.232738
  22  0.166731
Done.

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

Extracting fit parameters...

4FGL J1416.1+1320
   Spectrum: PowerLaw
242    Prefactor:  3.488e+01  2.462e+01  1.000e-04  1.000e+04 ( 1.000e-13)
243        Index:  2.373e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
244        Scale:  8.905e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
458    Prefactor:  1.043e+00  1.667e-01  0.000e+00  1.000e+01 ( 1.000e+00)
459        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
460        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
457   Normalization:  8.945e-01  2.327e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.09
Ra Dec: 214.029 13.347
Photon Index (Fixed Index): 2.37 +/- 0.00
Photon Flux (Fixed Index): 4.56e-08 +/- 3.21e-08
Energy Flux (Fixed Index): 1.55e-05 +/- 1.09e-05

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) = 8380.05552333
delta logL = 0.00134468051147

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8380.05478345
delta logL = 0.00208456049768

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    33.812       1.0000         .10000E-03   10000.    
     2 'Index     '    2.4170       1.0000          .0000       10.000    
     3 'Normalizat'    .89224       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0444       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .4610E+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=   8380.055     FROM MIGRAD    STATUS=CONVERGED     91 CALLS      270 TOTAL
                     EDM=   .52E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     33.828        30.258        .68914E-04    .81164E-04
   2  Index         2.4166        .70779        .89270E-02    .44441E-03
   3  Normalizat    .89227        .22525        .30536E-03   -.90097E-04
   4  Prefactor     1.0444        .16571        .21043E-03   -.11054E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 33.8277
  Index      = 2.41662
  Normalizat = 0.892267
  Prefactor  = 1.04439
 **********
 **   18 **HESSE 
 **********

 FCN=   8380.055     FROM HESSE     STATUS=OK            25 CALLS      295 TOTAL
                     EDM=   .66E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     33.828        29.030        .13783E-04   -1.4544    
   2  Index         2.4166        .67865        .17854E-02   -.54296    
   3  Normalizat    .89227        .22529        .12214E-04   -.96732    
   4  Prefactor     1.0444        .16582        .84172E-05   -.91264    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.62285e-11
Minuit parameter uncertainties:
  1  29.0423
  2  0.681522
  3  0.225525
  4  0.165898
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/280379': 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) = 8380.05478324
delta logL = 0.0020847683154

Extracting fit parameters...

4FGL J1416.1+1320
   Spectrum: PowerLaw
242    Prefactor:  3.383e+01  2.904e+01  1.000e-04  1.000e+04 ( 1.000e-13)
243        Index:  2.417e+00  6.815e-01  0.000e+00  1.000e+01 (-1.000e+00)
244        Scale:  8.905e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
458    Prefactor:  1.044e+00  1.659e-01  0.000e+00  1.000e+01 ( 1.000e+00)
459        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
460        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
457   Normalization:  8.923e-01  2.255e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.10
Ra Dec: 214.029 13.347
Photon Index (Free Index): 2.42 +/- 0.68
Photon Flux (Free Index): 4.71e-08 +/- 4.00e-08
Energy Flux (Free Index): 1.51e-05 +/- 1.19e-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/280379/cmap_HighResolution_556502401_557107201_4FGL_J1416.1+1320_weekly_bin525.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='4.56e-08', energy_flux2='1.51e-05', photon_flux_error='3.21e-08', dlogl='2.08e-03', energy_flux='1.55e-05', photon_flux2='4.71e-08', job_status='DONE', time_completed='2021-07-21 13:42:56.368333', photon_index_error2='0.68', photon_index2='2.42', ts='4.09', fit_tolerance='1e-08', GAL='1.04', photon_index_error='0.00', energy_flux_error2='1.19e-05', EG='0.89', time_epoch_completed='1626900176.37', return_code='0', job_id='280379', GAL2='1.04', EG2='0.89', return_code2='0', energy_flux_error='1.09e-05', photon_flux_error2='4.00e-08', ts2='4.10', photon_index='2.37' WHERE bin_id='525' AND source_name='4FGL J1416.1+1320' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Wed Jul 21 13:42:56 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0188>
Subject: Job 280379: <4FGL_J1416.1+1320_weekly_bin525> in cluster <slac> Done

Job <4FGL_J1416.1+1320_weekly_bin525> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Wed Jul 21 13:30:43 2021
Job was executed on host(s) <bullet0188>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Jul 21 13:31:37 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Jul 21 13:31:37 2021
Terminated at Wed Jul 21 13:42:57 2021
Results reported at Wed Jul 21 13:42:57 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1416.1+1320_weekly_bin525 214.029 13.347 556502401 557107201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1416.1+1320 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   651.17 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             315.54 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   679 sec.
    Turnaround time :                            734 sec.

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

