/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/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 26 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 = 7384
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1416.1+1320_daily_bin1527
RA = 214.029, Dec = 13.347
tmin = 635126401, tmax = 635385601
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='286447', job_status='RUN', time_executed='2021-09-09 06:31:14.299474', time_epoch_executed='1631194274.3' WHERE source_name='4FGL J1416.1+1320' and cadence='daily' and bin_id='1527'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/286447

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/286447/ft1_4FGL_J1416.1+1320_daily_bin1527.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/286447/ft2_4FGL_J1416.1+1320_daily_bin1527.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/286447/ft1_4FGL_J1416.1+1320_daily_bin1527.fits outfile=/scratch/kocevski/286447/ft1_filteredMKT_4FGL_J1416.1+1320_daily_bin1527.fits ra=214.029 dec=13.347 rad=12.0 tmin=635126401.0 tmax=635385601.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 2.99
user 2.74
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/286447/ft1_filtered_4FGL_J1416.1+1320_daily_bin1527.fits" evtable="EVENTS" scfile=/scratch/kocevski/286447/ft2_4FGL_J1416.1+1320_daily_bin1527.fits sctable="SC_DATA" outfile=/scratch/kocevski/286447/ltcube_635126401_635385601_4FGL_J1416.1+1320_daily_bin1527.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/286447/ft2_4FGL_J1416.1+1320_daily_bin1527.fits
.....................!
real 12.23
user 11.88
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/286447/ft1_filtered_4FGL_J1416.1+1320_daily_bin1527.fits evtable="EVENTS" scfile=/scratch/kocevski/286447/ft2_4FGL_J1416.1+1320_daily_bin1527.fits sctable="SC_DATA" expcube=/scratch/kocevski/286447/ltcube_635126401_635385601_4FGL_J1416.1+1320_daily_bin1527.fits outfile=/scratch/kocevski/286447/expmap_635126401_635385601_4FGL_J1416.1+1320_daily_bin1527.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/286447/ltcube_635126401_635385601_4FGL_J1416.1+1320_daily_bin1527.fits
.....................!
real 190.20
user 185.40
sys 4.20

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/286447/ft1_filtered_4FGL_J1416.1+1320_daily_bin1527.fits scfile=/scratch/kocevski/286447/ft2_4FGL_J1416.1+1320_daily_bin1527.fits outfile=/scratch/kocevski/286447/cmap_635126401_635385601_4FGL_J1416.1+1320_daily_bin1527.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.54
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/286447/ft1_filtered_4FGL_J1416.1+1320_daily_bin1527.fits scfile=/scratch/kocevski/286447/ft2_4FGL_J1416.1+1320_daily_bin1527.fits outfile=/scratch/kocevski/286447/cmap_HighResolution_635126401_635385601_4FGL_J1416.1+1320_daily_bin1527.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.54
user 0.38
sys 0.15

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/286447/ft1_filtered_4FGL_J1416.1+1320_daily_bin1527.fits', '/scratch/kocevski/286447/ft2_4FGL_J1416.1+1320_daily_bin1527.fits', expMap='/scratch/kocevski/286447/expmap_635126401_635385601_4FGL_J1416.1+1320_daily_bin1527.fits', expCube='/scratch/kocevski/286447/ltcube_635126401_635385601_4FGL_J1416.1+1320_daily_bin1527.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/286447/Model_4FGL_J1416.1+1320_daily_bin1527.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/286447/ft1_filtered_4FGL_J1416.1+1320_daily_bin1527.fits
Spacecraft file(s): /scratch/kocevski/286447/ft2_4FGL_J1416.1+1320_daily_bin1527.fits
Exposure map: /scratch/kocevski/286447/expmap_635126401_635385601_4FGL_J1416.1+1320_daily_bin1527.fits
Exposure cube: /scratch/kocevski/286447/ltcube_635126401_635385601_4FGL_J1416.1+1320_daily_bin1527.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/286447/Model_4FGL_J1416.1+1320_daily_bin1527.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) = 7186.49135799

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    1.0889       1.0000         .10000E-03   10000.    
     3 'Prefactor '    5.2300       1.0000         .10000E-03   10000.    
     4 'Prefactor '    7.5736       1.0000         .10000E-03   10000.    
     5 'Prefactor '    1.6611       1.0000         .10000E-03   10000.    
     6 'Prefactor '    1.4010       1.0000         .10000E-03   10000.    
     7 'Prefactor '    20.039       1.0000         .10000E-03   10000.    
     8 'Prefactor '    1.0582       1.0000         .10000E-03   10000.    
     9 'norm      '    11.222       1.0000         .10000E-03   10000.    
    10 'Prefactor '    7.5262       1.0000         .10000E-03   10000.    
    11 'norm      '    4.1561       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    1.7534       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    23.089       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.3291       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .89233       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=   7186.485     FROM MIGRAD    STATUS=CONVERGED    470 CALLS     2355 TOTAL
                     EDM=   .76E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    32.003       -.16008E-06** at limit **
   2  Prefactor     1.0888        3.8709        .12587E-05   -.37886E-03
   3  Prefactor     5.2298        5.0182        .18418E-06    .48153E-04
   4  Prefactor     7.5710        15.164        .28573E-07   -.25632E-04
   5  Prefactor     1.6582        33.198        .85940E-06   -.78588E-04
   6  Prefactor     1.3864        48.699        .43219E-05    .19517E-04
   7  Prefactor     20.026        29.555       -.43770E-05   -.38372E-03
   8  Prefactor     .94945        18.462        .16032E-06   -.44775E-04
   9  norm          11.223        15.405        .10107E-05    .25301E-03
  10  Prefactor     7.5242        7.5042        .19734E-05   -.92225E-03
  11  norm          4.1561        2.4262        .20441E-07   -.50316E-04
  12  Prefactor     .10000E-03    4.1195       -.21952E-06** at limit **
  13  norm          1.7535        1.8805        .38665E-07   -.69511E-04
  14  Prefactor     .10000E-03    10.173        .62700E-07** at limit **
  15  norm          .10000E-03    9.3963        .21020E-06** at limit **
  16  Prefactor     23.086        21.502       -.12594E-05   -.32821E-03
  17  Prefactor     .10000E-03    9.5567       -.21459E-06** at limit **
  18  Prefactor     .10000E-03    3.4905        .12524E-07** at limit **
  19  Prefactor     .10000E-03    11.409       -.94246E-07** at limit **
  20  Prefactor     .10000E-03    11.330        .20429E-06** at limit **
  21  Normalizat    1.3293        .21002        .17584E-06   -.85305E-04
  22  Prefactor     .89213        .14542       -.76047E-06    .18789E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 1.08879
  Prefactor  = 5.22981
  Prefactor  = 7.57096
  Prefactor  = 1.65817
  Prefactor  = 1.38641
  Prefactor  = 20.026
  Prefactor  = 0.949454
  norm       = 11.2227
  Prefactor  = 7.52421
  norm       = 4.15609
  Prefactor  = 0.0001
  norm       = 1.75353
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 23.0862
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.32933
  Prefactor  = 0.892131
 **********
 **   18 **HESSE 
 **********

 FCN=   7186.485     FROM HESSE     STATUS=OK           344 CALLS     2699 TOTAL
                     EDM=   .42E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    32.030        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     1.0888        3.9832        .30828E-03   -1.5499    
   3  Prefactor     5.2298        5.0097        .17577E-03   -1.5251    
   4  Prefactor     7.5710        15.158        .14572E-03   -1.5158    
   5  Prefactor     1.6582        34.942        .32732E-03   -1.5450    
   6  Prefactor     1.3864        49.328        .36654E-03   -1.5472    
   7  Prefactor     20.026        30.946        .89474E-04   -1.4813    
   8  Prefactor     .94945        137.80        .67806E-02   -1.5513    
   9  norm          11.223        15.598        .11959E-03   -1.5038    
  10  Prefactor     7.5242        7.9150        .73092E-03   -1.5159    
  11  norm          4.1561        2.4261        .97928E-04   -1.5300    
  12  Prefactor     .10000E-03    4.2078        .16790E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          1.7535        1.8758        .11621E-03   -1.5443    
  14  Prefactor     .10000E-03    10.182        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    9.4278        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     23.086        22.092        .83361E-04   -1.4747    
  17  Prefactor     .10000E-03    9.5994        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    3.4943        .15468E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    11.446        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    11.339        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    1.3293        .26041        .26476E-03   -.82695    
  22  Prefactor     .89213        .17833        .22960E-03   -.96417    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.20648e-08
Minuit parameter uncertainties:
  1  5.70249e-05
  2  3.9842
  3  5.01015
  4  15.166
  5  15.2334
  6  16.5537
  7  30.9706
  8  22.929
  9  15.6035
  10  7.91606
  11  2.42619
  12  9.79215e-06
  13  1.87589
  14  3.47143e-06
  15  2.10152e-05
  16  22.0999
  17  3.91096e-05
  18  3.18531e-06
  19  1.16415e-05
  20  3.56195e-05
  21  0.260667
  22  0.178449
Done.

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

Extracting fit parameters...

4FGL J1416.1+1320
   Spectrum: PowerLaw
242    Prefactor:  2.003e+01  3.097e+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:  8.921e-01  1.784e-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:  1.329e+00  2.607e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.58
Ra Dec: 214.029 13.347
Photon Flux Upper Limit: 1.16e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.97e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/286447/likelihoodResults_635126401_635385601_4FGL_J1416.1+1320_daily_bin1527.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) = 7186.29479942
delta logL = 0.190068187605

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7186.29138255
delta logL = 0.193485063751

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    14.484       1.0000         .10000E-03   10000.    
     2 'Index     '    2.9106       1.0000          .0000       10.000    
     3 'Normalizat'    1.3080       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .90110       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=   7186.291     FROM MIGRAD    STATUS=CONVERGED     83 CALLS      292 TOTAL
                     EDM=   .38E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     14.487        27.507        .10524E-03   -.49259E-04
   2  Index         2.9107        1.0260        .87109E-02   -.35011E-04
   3  Normalizat    1.3083        .24415        .26651E-03    .53181E-03
   4  Prefactor     .90082        .17568        .22856E-03    .59287E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 14.4868
  Index      = 2.91068
  Normalizat = 1.30828
  Prefactor  = 0.900816
 **********
 **   18 **HESSE 
 **********

 FCN=   7186.291     FROM HESSE     STATUS=OK            25 CALLS      317 TOTAL
                     EDM=   .43E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     14.487        24.142        .42097E-05   -1.4947    
   2  Index         2.9107        .90099        .34843E-03   -.43109    
   3  Normalizat    1.3083        .24440        .53303E-04   -.83320    
   4  Prefactor     .90082        .17575        .45712E-04   -.96113    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.31097e-10
Minuit parameter uncertainties:
  1  24.1583
  2  0.907
  3  0.244614
  4  0.17586
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/286447': 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) = 7186.29138105
delta logL = 0.193486562347

Extracting fit parameters...

4FGL J1416.1+1320
   Spectrum: PowerLaw
242    Prefactor:  1.449e+01  2.416e+01  1.000e-04  1.000e+04 ( 1.000e-13)
243        Index:  2.911e+00  9.070e-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:  9.008e-01  1.759e-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:  1.308e+00  2.446e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.01
Ra Dec: 214.029 13.347
Photon Index (Free Index): 2.91 +/- 0.91
Photon Flux (Free Index): 4.41e-08 +/- 5.35e-08
Energy Flux (Free Index): 9.23e-06 +/- 1.09e-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/286447/cmap_HighResolution_635126401_635385601_4FGL_J1416.1+1320_daily_bin1527.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.97e-03', comment='SUCCESS', energy_flux2='9.23e-06', dlogl='1.93e-01', photon_flux2='4.41e-08', job_status='DONE', time_completed='2021-09-09 06:41:46.429109', photon_index_error2='0.91', photon_index2='2.91', ts='0.58', fit_tolerance='1e-08', GAL='0.89', photon_index_error='0.00', photon_flux_upper_limit='1.16e-07', energy_flux_error2='1.09e-05', EG='1.33', time_epoch_completed='1631194906.43', return_code='0', job_id='286447', GAL2='0.90', EG2='1.31', return_code2='0', photon_flux_error2='5.35e-08', ts2='1.01', photon_index='2.37' WHERE bin_id='1527' AND source_name='4FGL J1416.1+1320' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  9 06:41:46 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0040>
Subject: Job 286447: <4FGL_J1416.1+1320_daily_bin1527> in cluster <slac> Done

Job <4FGL_J1416.1+1320_daily_bin1527> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Thu Sep  9 06:30:27 2021
Job was executed on host(s) <bullet0040>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  9 06:30:28 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Sep  9 06:30:28 2021
Terminated at Thu Sep  9 06:41:47 2021
Results reported at Thu Sep  9 06:41:47 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1416.1+1320_daily_bin1527 214.029 13.347 635126401 635385601 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 :                                   600.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             334.90 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   678 sec.
    Turnaround time :                            680 sec.

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

