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


Performing analysis on: 4FGL_J1416.1+1320_daily_bin412
RA = 214.029, Dec = 13.347
tmin = 346118401, tmax = 346377601
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='278360', job_status='RUN', time_executed='2021-09-09 06:11:09.805406', time_epoch_executed='1631193069.81' WHERE source_name='4FGL J1416.1+1320' and cadence='daily' and bin_id='412'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/278360

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/278360/ft1_4FGL_J1416.1+1320_daily_bin412.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/278360/ft2_4FGL_J1416.1+1320_daily_bin412.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/278360/ft1_4FGL_J1416.1+1320_daily_bin412.fits outfile=/scratch/kocevski/278360/ft1_filteredMKT_4FGL_J1416.1+1320_daily_bin412.fits ra=214.029 dec=13.347 rad=12.0 tmin=346118401.0 tmax=346377601.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.09
user 3.83
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/278360/ft2_4FGL_J1416.1+1320_daily_bin412.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/278360/ft1_filteredMKT_4FGL_J1416.1+1320_daily_bin412.fits evtable="EVENTS" outfile="/scratch/kocevski/278360/ft1_filtered_4FGL_J1416.1+1320_daily_bin412.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.52
user 0.34
sys 0.16

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/278360/ft1_filtered_4FGL_J1416.1+1320_daily_bin412.fits evtable="EVENTS" scfile=/scratch/kocevski/278360/ft2_4FGL_J1416.1+1320_daily_bin412.fits sctable="SC_DATA" expcube=/scratch/kocevski/278360/ltcube_346118401_346377601_4FGL_J1416.1+1320_daily_bin412.fits outfile=/scratch/kocevski/278360/expmap_346118401_346377601_4FGL_J1416.1+1320_daily_bin412.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/278360/ltcube_346118401_346377601_4FGL_J1416.1+1320_daily_bin412.fits
.....................!
real 190.69
user 185.60
sys 3.97

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/278360/ft1_filtered_4FGL_J1416.1+1320_daily_bin412.fits scfile=/scratch/kocevski/278360/ft2_4FGL_J1416.1+1320_daily_bin412.fits outfile=/scratch/kocevski/278360/cmap_346118401_346377601_4FGL_J1416.1+1320_daily_bin412.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.25
user 0.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/278360/ft1_filtered_4FGL_J1416.1+1320_daily_bin412.fits scfile=/scratch/kocevski/278360/ft2_4FGL_J1416.1+1320_daily_bin412.fits outfile=/scratch/kocevski/278360/cmap_HighResolution_346118401_346377601_4FGL_J1416.1+1320_daily_bin412.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.88
user 0.39
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    63.852       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10293E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .23186       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    11.176       1.0000         .10000E-03   10000.    
     6 'Prefactor '    39.139       1.0000         .10000E-03   10000.    
     7 'Prefactor '    6.9431       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    17.402       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10172E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    14.666       1.0000         .10000E-03   10000.    
    12 'Prefactor '    11.212       1.0000         .10000E-03   10000.    
    13 'norm      '    .37687E-01   1.0000         .10000E-03   10000.    
    14 'Prefactor '    32.559       1.0000         .10000E-03   10000.    
    15 'norm      '    .50737E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .73622E-02   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10076E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10034E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .39838E-02   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10406E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.1714       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .85192       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=   6414.834     FROM MIGRAD    STATUS=CONVERGED    600 CALLS     2604 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     63.859        54.392        .43541E-04    .13645E-03
   2  Prefactor     .10000E-03    5.4110       -.14145E-06** at limit **
   3  Prefactor     .23775        2.8797       -.30292E-05    .31032E-03
   4  Prefactor     .10000E-03    9.2446       -.13450E-06** at limit **
   5  Prefactor     11.180        12.533        .24233E-06   -.21987E-04
   6  Prefactor     39.162        24.528       -.79518E-05    .11269E-04
   7  Prefactor     6.8999        34.933       -.11968E-04    .71007E-05
   8  Prefactor     .10000E-03    11.575        .68765E-08** at limit **
   9  norm          17.403        17.211        .76531E-05    .12128E-04
  10  Prefactor     .10000E-03    3.7991        .22150E-06** at limit **
  11  norm          14.667        3.6904        .52620E-07    .66337E-04
  12  Prefactor     11.206        6.7237       -.37344E-06   -.22889E-02
  13  norm          .37026E-01    1.1086       -.43010E-06   -.23729E-03
  14  Prefactor     32.463        33.967        .23534E-05    .41456E-03
  15  norm          .10017E-03    18.284       -.26972E-05** at limit **
  16  Prefactor     .27054        22.637        .73809E-06   -.95642E-04
  17  Prefactor     .10000E-03    8.0612        .51557E-07** at limit **
  18  Prefactor     .10000E-03    4.5710        .18403E-07** at limit **
  19  Prefactor     .10001E-03    22.497        .87692E-06** at limit **
  20  Prefactor     .10000E-03    23.038        .25059E-07** at limit **
  21  Normalizat    1.1713        .20376       -.17167E-05    .56313E-03
  22  Prefactor     .85168        .14369        .47239E-07    .47550E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 63.8592
  Prefactor  = 0.0001
  Prefactor  = 0.23775
  Prefactor  = 0.0001
  Prefactor  = 11.1798
  Prefactor  = 39.1624
  Prefactor  = 6.89989
  Prefactor  = 0.0001
  norm       = 17.4029
  Prefactor  = 0.0001
  norm       = 14.6671
  Prefactor  = 11.2057
  norm       = 0.0370262
  Prefactor  = 32.463
  norm       = 0.000100169
  Prefactor  = 0.27054
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100007
  Prefactor  = 0.0001
  Normalizat = 1.17126
  Prefactor  = 0.851681
 **********
 **   18 **HESSE 
 **********

 FCN=   6414.834     FROM HESSE     STATUS=OK           366 CALLS     2970 TOTAL
                     EDM=   .64E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     63.859        54.254        .25110E-03   -1.4108    
   2  Prefactor     .10000E-03    5.6133        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .23775        22.261        .25653E-02   -1.5610    
   4  Prefactor     .10000E-03    9.3032        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     11.180        12.651        .11984E-03   -1.5039    
   6  Prefactor     39.162        24.545        .64068E-04   -1.4456    
   7  Prefactor     6.8999        35.037        .15225E-03   -1.5183    
   8  Prefactor     .10000E-03    11.645        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          17.403        17.194        .96010E-04   -1.4873    
  10  Prefactor     .10000E-03    3.8213        .15232E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          14.667        3.6914        .75084E-04   -1.4942    
  12  Prefactor     11.206        6.7587        .59822E-03   -1.5038    
  13  norm          .37026E-01    6.6057        .16357E-02   -1.5670    
  14  Prefactor     32.463        28.920        .70224E-04   -1.4568    
  15  norm          .10017E-03    120.01        .55726E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .27054        29.321        .96088E-01   -1.5604    
  17  Prefactor     .10000E-03    8.0747        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    4.5751        .16722E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10001E-03    28.426        .10168       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    23.059        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    1.1713        .25014        .26042E-03   -.87496    
  22  Prefactor     .85168        .17596        .22200E-03   -.97851    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.43814e-08
Minuit parameter uncertainties:
  1  54.2961
  2  3.88177e-05
  3  4.60194
  4  2.64773e-05
  5  12.6542
  6  24.5516
  7  31.1255
  8  9.90152e-07
  9  17.1991
  10  4.03317e-05
  11  3.69146
  12  6.75918
  13  0.98788
  14  28.9327
  15  0.00902788
  16  5.63468
  17  7.59943e-06
  18  3.8223e-06
  19  0.000904891
  20  6.2608e-06
  21  0.250398
  22  0.176078
Done.

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

Extracting fit parameters...

4FGL J1416.1+1320
   Spectrum: PowerLaw
242    Prefactor:  6.900e+00  3.113e+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.517e-01  1.761e-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.171e+00  2.504e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/278360/likelihoodResults_346118401_346377601_4FGL_J1416.1+1320_daily_bin412.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) = 6414.73508776
delta logL = 0.0991939088026

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6414.73185695
delta logL = 0.10242472454

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.4521       1.0000         .10000E-03   10000.    
     2 'Index     '    3.0903       1.0000          .0000       10.000    
     3 'Normalizat'    1.1501       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .85979       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.

 FCN=   6414.732     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      242 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.4344        1147.5        .39501E-02    .98611E-04
   2  Index         3.0955        6.6353        .21908E-01    .57619E-04
   3  Normalizat    1.1502        .13982        .59350E-01    .14095E-04
   4  Prefactor     .85954        .11108        .44490E-01    .13128E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.43443
  Index      = 3.09545
  Normalizat = 1.1502
  Prefactor  = 0.859537
 **********
 **   18 **HESSE 
 **********

 FCN=   6414.732     FROM HESSE     STATUS=OK            31 CALLS      273 TOTAL
                     EDM=   .52E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.4344        20.561        .15800E-03   -1.5201    
   2  Index         3.0955        1.6131        .87630E-03   -.39078    
   3  Normalizat    1.1502        .23950        .26248E-03   -.88156    
   4  Prefactor     .85954        .17408        .22107E-03   -.97570    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.21501e-13
Minuit parameter uncertainties:
  1  20.5839
  2  1.64781
  3  0.23973
  4  0.174194
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/278360': 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) = 6414.731847
delta logL = 0.102434672758

Extracting fit parameters...

4FGL J1416.1+1320
   Spectrum: PowerLaw
242    Prefactor:  6.434e+00  2.058e+01  1.000e-04  1.000e+04 ( 1.000e-13)
243        Index:  3.095e+00  1.648e+00  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:  8.595e-01  1.742e-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.150e+00  2.397e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.06
Ra Dec: 214.029 13.347

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/278360/cmap_HighResolution_346118401_346377601_4FGL_J1416.1+1320_daily_bin412.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.77e-03', job_status='DONE', photon_flux_upper_limit='1.01e-07', time_completed='2021-09-09 06:21:23.960887', job_id='278360', GAL2='0.86', fit_tolerance='1e-08', EG2='1.15', EG='1.17', time_epoch_completed='1631193683.96', return_code2='0', ts='0.06', comment='SUCCESS', return_code='0', GAL='0.85', dlogl='1.02e-01', ts2='0.29', photon_index_error='0.00', photon_index='2.37' WHERE bin_id='412' AND source_name='4FGL J1416.1+1320' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  9 06:21:23 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0075>
Subject: Job 278360: <4FGL_J1416.1+1320_daily_bin412> in cluster <slac> Done

Job <4FGL_J1416.1+1320_daily_bin412> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Thu Sep  9 06:06:49 2021
Job was executed on host(s) <bullet0075>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  9 06:06:51 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:51 2021
Terminated at Thu Sep  9 06:21:25 2021
Results reported at Thu Sep  9 06:21:25 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1416.1+1320_daily_bin412 214.029 13.347 346118401 346377601 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 :                                   591.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             224.96 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   873 sec.
    Turnaround time :                            876 sec.

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

