/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 17 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 = 7469
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1416.1+1320_daily_bin346
RA = 214.029, Dec = 13.347
tmin = 329011201, tmax = 329270401
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='278270', job_status='RUN', time_executed='2021-09-09 06:08:43.291178', time_epoch_executed='1631192923.29' WHERE source_name='4FGL J1416.1+1320' and cadence='daily' and bin_id='346'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/278270

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/278270/ft1_4FGL_J1416.1+1320_daily_bin346.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/278270/ft2_4FGL_J1416.1+1320_daily_bin346.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/278270/ft1_4FGL_J1416.1+1320_daily_bin346.fits outfile=/scratch/kocevski/278270/ft1_filteredMKT_4FGL_J1416.1+1320_daily_bin346.fits ra=214.029 dec=13.347 rad=12.0 tmin=329011201.0 tmax=329270401.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Done.
real 4.40
user 3.30
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/278270/ft1_filtered_4FGL_J1416.1+1320_daily_bin346.fits" evtable="EVENTS" scfile=/scratch/kocevski/278270/ft2_4FGL_J1416.1+1320_daily_bin346.fits sctable="SC_DATA" outfile=/scratch/kocevski/278270/ltcube_329011201_329270401_4FGL_J1416.1+1320_daily_bin346.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/278270/ft2_4FGL_J1416.1+1320_daily_bin346.fits
.....................!
real 11.82
user 11.24
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/278270/ft1_filtered_4FGL_J1416.1+1320_daily_bin346.fits evtable="EVENTS" scfile=/scratch/kocevski/278270/ft2_4FGL_J1416.1+1320_daily_bin346.fits sctable="SC_DATA" expcube=/scratch/kocevski/278270/ltcube_329011201_329270401_4FGL_J1416.1+1320_daily_bin346.fits outfile=/scratch/kocevski/278270/expmap_329011201_329270401_4FGL_J1416.1+1320_daily_bin346.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/278270/ltcube_329011201_329270401_4FGL_J1416.1+1320_daily_bin346.fits
.....................!
real 190.72
user 185.87
sys 4.03

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/278270/ft1_filtered_4FGL_J1416.1+1320_daily_bin346.fits scfile=/scratch/kocevski/278270/ft2_4FGL_J1416.1+1320_daily_bin346.fits outfile=/scratch/kocevski/278270/cmap_329011201_329270401_4FGL_J1416.1+1320_daily_bin346.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 1.11
user 0.37
sys 0.15

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    10.450       1.0000         .10000E-03   10000.    
     2 'Prefactor '    5.9933       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .79140E-01   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    18.939       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    6.9863       1.0000         .10000E-03   10000.    
     9 'norm      '    18.110       1.0000         .10000E-03   10000.    
    10 'Prefactor '    7.6638       1.0000         .10000E-03   10000.    
    11 'norm      '    10.035       1.0000         .10000E-03   10000.    
    12 'Prefactor '    3.6411       1.0000         .10000E-03   10000.    
    13 'norm      '    5.8567       1.0000         .10000E-03   10000.    
    14 'Prefactor '    43.064       1.0000         .10000E-03   10000.    
    15 'norm      '    .10130E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    12.216       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    4.0895       1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.0668       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.0248       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=   6976.176     FROM MIGRAD    STATUS=CONVERGED    474 CALLS     2367 TOTAL
                     EDM=   .88E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     10.363        52.626       -.18145E-05   -.61088E-04
   2  Prefactor     5.9933        4.3762        .22164E-05    .16771E-03
   3  Prefactor     .90531E-01    3.7284       -.14769E-05    .82866E-03
   4  Prefactor     .10000E-03    12.272        .40530E-06** at limit **
   5  Prefactor     18.938        13.215        .18144E-07   -.13882E-03
   6  Prefactor     .10000E-03    17.840       -.52911E-06** at limit **
   7  Prefactor     .10000E-03    14.758        .89416E-06** at limit **
   8  Prefactor     6.9869        27.333       -.54457E-06   -.11155E-03
   9  norm          18.111        23.857       -.45910E-06   -.20236E-03
  10  Prefactor     7.6648        7.3308        .24473E-06    .27394E-03
  11  norm          10.035        3.6384        .19858E-07   -.62354E-05
  12  Prefactor     3.6405        6.5269        .86380E-06    .35955E-03
  13  norm          5.8572        3.9018        .11518E-06   -.58428E-04
  14  Prefactor     43.065        27.556       -.22704E-06   -.19180E-03
  15  norm          .10000E-03    5.7451       -.15643E-06** at limit **
  16  Prefactor     .10000E-03    13.929        .12084E-06** at limit **
  17  Prefactor     12.216        18.446       -.27908E-06   -.17782E-03
  18  Prefactor     .10000E-03    13.034       -.52678E-06** at limit **
  19  Prefactor     .10000E-03    17.274        .15708E-06** at limit **
  20  Prefactor     4.0844        116.62        .52185E-06   -.61368E-05
  21  Normalizat    1.0669        .21568       -.76296E-06    .98666E-04
  22  Prefactor     1.0247        .15424       -.24994E-06    .85539E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 10.3632
  Prefactor  = 5.99329
  Prefactor  = 0.0905313
  Prefactor  = 0.0001
  Prefactor  = 18.9384
  Prefactor  = 0.000100001
  Prefactor  = 0.000100001
  Prefactor  = 6.9869
  norm       = 18.1109
  Prefactor  = 7.66476
  norm       = 10.0347
  Prefactor  = 3.64054
  norm       = 5.85719
  Prefactor  = 43.0649
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 12.2164
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 4.08444
  Normalizat = 1.06687
  Prefactor  = 1.02468
 **********
 **   18 **HESSE 
 **********

 FCN=   6976.176     FROM HESSE     STATUS=OK           348 CALLS     2715 TOTAL
                     EDM=   .97E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     10.363        52.798        .12395E-03   -1.5064    
   2  Prefactor     5.9933        4.3995        .71843E-03   -1.5218    
   3  Prefactor     .90531E-01    25.725        .28658E-02   -1.5648    
   4  Prefactor     .10000E-03    12.386        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     18.938        13.268        .92034E-04   -1.4837    
   6  Prefactor     .10000E-03    17.966        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    14.798        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     6.9869        27.351        .15178E-03   -1.5179    
   9  norm          18.111        23.862        .94117E-04   -1.4857    
  10  Prefactor     7.6648        7.3117        .14486E-03   -1.5154    
  11  norm          10.035        3.6388        .92984E-04   -1.5074    
  12  Prefactor     3.6405        6.5017        .21171E-03   -1.5326    
  13  norm          5.8572        3.8968        .12702E-03   -1.5224    
  14  Prefactor     43.065        27.566        .30545E-03   -1.4395    
  15  norm          .10000E-03    5.7505        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    13.964        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     12.216        18.461        .11461E-03   -1.5009    
  18  Prefactor     .10000E-03    13.125        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    17.303        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     4.0844        116.73        .19936E-03   -1.5304    
  21  Normalizat    1.0669        .26224        .30022E-03   -.90823    
  22  Prefactor     1.0247        .18824        .22196E-03   -.91911    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.65147e-09
Minuit parameter uncertainties:
  1  46.8481
  2  4.39974
  3  3.05182
  4  0.000107526
  5  13.2696
  6  0.000206467
  7  0.000270088
  8  27.4001
  9  23.8746
  10  7.31253
  11  3.63885
  12  6.50296
  13  3.89694
  14  27.5745
  15  1.64568e-06
  16  7.79247e-06
  17  18.4693
  18  0.000208556
  19  5.33895e-05
  20  43.7642
  21  0.262561
  22  0.18836
Done.

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

Extracting fit parameters...

4FGL J1416.1+1320
   Spectrum: PowerLaw
242    Prefactor:  1.000e-04  2.701e-04  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.025e+00  1.884e-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.067e+00  2.626e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 214.029 13.347
Photon Flux Upper Limit: 7.35e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.67e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/278270/likelihoodResults_329011201_329270401_4FGL_J1416.1+1320_daily_bin346.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): 102
logL (Free Index) = 6976.17592175
delta logL = -0.000321967976561

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6976.17560091
delta logL = -1.12612360681e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .12540E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.3507       1.0000          .0000       10.000    
     3 'Normalizat'    1.0667       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0248       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=   6976.176     FROM MIGRAD    STATUS=CONVERGED     91 CALLS      245 TOTAL
                     EDM=   .38E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10284E-03    17.853        .18142E-01** at limit **
   2  Index         2.2511        5.0094        .50000        .87078E-05
   3  Normalizat    1.0669        .53111E-02    .30022E-03    .17343E-04
   4  Prefactor     1.0247        .38796E-02    .22196E-03    .23254E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000102835
  Index      = 2.25112
  Normalizat = 1.06687
  Prefactor  = 1.02468
 **********
 **   18 **HESSE 
 **********

 FCN=   6976.176     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      274 TOTAL
                     EDM=   .25E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10284E-03    115.76        .32788E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.2511        5.3670        .50000       -.58210    
   3  Normalizat    1.0669        .13589E-01    .12009E-04   -.90823    
   4  Prefactor     1.0247        .99264E-02    .88783E-05   -.91911    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.53053e-09
Minuit parameter uncertainties:
  1  0.0363033
  2  533.8
  3  0.0135892
  4  0.00992641
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/278270': 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): 102
logL (Free Index) = 6976.17559956
delta logL = 2.1460618882e-07

Extracting fit parameters...

4FGL J1416.1+1320
   Spectrum: PowerLaw
242    Prefactor:  1.028e-04  3.630e-02  1.000e-04  1.000e+04 ( 1.000e-13)
243        Index:  2.251e+00  5.338e+02  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.025e+00  9.926e-03  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.067e+00  1.359e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 214.029 13.347

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/278270/cmap_HighResolution_329011201_329270401_4FGL_J1416.1+1320_daily_bin346.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.67e-03', job_status='DONE', photon_flux_upper_limit='7.35e-08', time_completed='2021-09-09 06:18:34.478881', job_id='278270', GAL2='1.02', fit_tolerance='1e-08', EG2='1.07', EG='1.07', time_epoch_completed='1631193514.48', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.02', dlogl='2.15e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.37' WHERE bin_id='346' AND source_name='4FGL J1416.1+1320' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  9 06:18:34 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0115>
Subject: Job 278270: <4FGL_J1416.1+1320_daily_bin346> in cluster <slac> Done

Job <4FGL_J1416.1+1320_daily_bin346> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Thu Sep  9 06:06:43 2021
Job was executed on host(s) <bullet0115>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  9 06:06:44 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:06:44 2021
Terminated at Thu Sep  9 06:18:35 2021
Results reported at Thu Sep  9 06:18:35 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1416.1+1320_daily_bin346 214.029 13.347 329011201 329270401 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 :                                   578.41 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             283.15 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   711 sec.
    Turnaround time :                            712 sec.

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

