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


Performing analysis on: 4FGL_J1416.1+1320_daily_bin1361
RA = 214.029, Dec = 13.347
tmin = 592099201, tmax = 592358401
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='285468', job_status='RUN', time_executed='2021-09-09 06:27:31.398553', time_epoch_executed='1631194051.4' WHERE source_name='4FGL J1416.1+1320' and cadence='daily' and bin_id='1361'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/285468

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/285468/ft1_4FGL_J1416.1+1320_daily_bin1361.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/285468/ft2_4FGL_J1416.1+1320_daily_bin1361.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/285468/ft1_4FGL_J1416.1+1320_daily_bin1361.fits outfile=/scratch/kocevski/285468/ft1_filteredMKT_4FGL_J1416.1+1320_daily_bin1361.fits ra=214.029 dec=13.347 rad=12.0 tmin=592099201.0 tmax=592358401.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 3.48
user 3.24
sys 0.21

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/285468/ft1_filtered_4FGL_J1416.1+1320_daily_bin1361.fits evtable="EVENTS" scfile=/scratch/kocevski/285468/ft2_4FGL_J1416.1+1320_daily_bin1361.fits sctable="SC_DATA" expcube=/scratch/kocevski/285468/ltcube_592099201_592358401_4FGL_J1416.1+1320_daily_bin1361.fits outfile=/scratch/kocevski/285468/expmap_592099201_592358401_4FGL_J1416.1+1320_daily_bin1361.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/285468/ltcube_592099201_592358401_4FGL_J1416.1+1320_daily_bin1361.fits
.....................!
real 194.01
user 187.59
sys 5.07

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/285468/ft1_filtered_4FGL_J1416.1+1320_daily_bin1361.fits scfile=/scratch/kocevski/285468/ft2_4FGL_J1416.1+1320_daily_bin1361.fits outfile=/scratch/kocevski/285468/cmap_592099201_592358401_4FGL_J1416.1+1320_daily_bin1361.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.61
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/285468/ft1_filtered_4FGL_J1416.1+1320_daily_bin1361.fits scfile=/scratch/kocevski/285468/ft2_4FGL_J1416.1+1320_daily_bin1361.fits outfile=/scratch/kocevski/285468/cmap_HighResolution_592099201_592358401_4FGL_J1416.1+1320_daily_bin1361.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.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    21.255       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    2.5161       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    11.201       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    155.26       1.0000         .10000E-03   10000.    
     8 'Prefactor '    28.399       1.0000         .10000E-03   10000.    
     9 'norm      '    .10014E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    2.9547       1.0000         .10000E-03   10000.    
    12 'Prefactor '    1.4651       1.0000         .10000E-03   10000.    
    13 'norm      '    1.6241       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    26.008       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10118E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    6.4683       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.2129       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.0029       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6546.112     FROM MIGRAD    STATUS=CONVERGED    467 CALLS     2339 TOTAL
                     EDM=   .40E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     21.256        37.717         .0000       -.43830E-03
   2  Prefactor     .10000E-03    2.1027         .0000    ** at limit **
   3  Prefactor     2.5163        2.7524         .0000       -.14092E-03
   4  Prefactor     .10002E-03    10.485         .0000    ** at limit **
   5  Prefactor     11.204        14.387         .0000       -.49275E-04
   6  Prefactor     .10019E-03    23.138         .0000    ** at limit **
   7  Prefactor     155.26        48.192         .0000       -.41639E-03
   8  Prefactor     28.401        29.989         .0000       -.15834E-02
   9  norm          .10003E-03    10.210         .0000    ** at limit **
  10  Prefactor     .10000E-03    3.9587         .0000    ** at limit **
  11  norm          2.9547        2.1694         .0000        .14465E-03
  12  Prefactor     1.4639        4.7723         .0000        .21990E-01
  13  norm          1.6241        2.4939         .0000        .88031E-03
  14  Prefactor     .10010E-03    13.352         .0000    ** at limit **
  15  norm          .10012E-03    15.975         .0000    ** at limit **
  16  Prefactor     26.008        20.345         .0000       -.18966E-03
  17  Prefactor     .10008E-03    34.932         .0000    ** at limit **
  18  Prefactor     .10000E-03    6.4780         .0000    ** at limit **
  19  Prefactor     6.4665        16.092         .0000        .18876E-03
  20  Prefactor     .10006E-03    15.421         .0000    ** at limit **
  21  Normalizat    1.2127        .22144         .0000        .59876E-04
  22  Prefactor     1.0030        .15756         .0000        .11355E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 21.256
  Prefactor  = 0.0001
  Prefactor  = 2.51632
  Prefactor  = 0.000100022
  Prefactor  = 11.2037
  Prefactor  = 0.000100187
  Prefactor  = 155.26
  Prefactor  = 28.4006
  norm       = 0.000100031
  Prefactor  = 0.0001
  norm       = 2.9547
  Prefactor  = 1.46388
  norm       = 1.62411
  Prefactor  = 0.000100101
  norm       = 0.000100115
  Prefactor  = 26.0084
  Prefactor  = 0.000100082
  Prefactor  = 0.0001
  Prefactor  = 6.46649
  Prefactor  = 0.000100057
  Normalizat = 1.21266
  Prefactor  = 1.00304
 **********
 **   18 **HESSE 
 **********

 FCN=   6546.112     FROM HESSE     STATUS=OK           334 CALLS     2673 TOTAL
                     EDM=   .48E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     21.256        37.721        .86878E-04   -1.4786    
   2  Prefactor     .10000E-03    2.1223        .11453E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     2.5163        2.7563        .13670E-03   -1.5391    
   4  Prefactor     .10002E-03    10.552        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     11.204        14.474        .11971E-03   -1.5038    
   6  Prefactor     .10019E-03    23.234        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     155.26        48.269        .32354E-04   -1.3209    
   8  Prefactor     28.401        30.029        .75179E-04   -1.4642    
   9  norm          .10003E-03    10.216        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    3.9737        .15710E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          2.9547        2.1707        .99356E-04   -1.5364    
  12  Prefactor     1.4639        4.7336        .15251E-02   -1.5466    
  13  norm          1.6241        2.4691        .15178E-03   -1.5453    
  14  Prefactor     .10010E-03    13.360        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10012E-03    16.061        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     26.008        20.339        .78551E-04   -1.4688    
  17  Prefactor     .10008E-03    35.200        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    6.4933        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     6.4665        16.088        .15780E-03   -1.5199    
  20  Prefactor     .10006E-03    15.427        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    1.2127        .26934        .28860E-03   -.86213    
  22  Prefactor     1.0030        .19114        .22926E-03   -.92628    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.76975e-08
Minuit parameter uncertainties:
  1  37.7629
  2  4.07372e-06
  3  2.75641
  4  0.000970494
  5  14.4789
  6  0.00416597
  7  48.2811
  8  30.0449
  9  0.001122
  10  2.45366e-06
  11  2.17077
  12  4.73479
  13  2.4693
  14  0.00232591
  15  0.00272392
  16  20.3442
  17  0.00340633
  18  1.89518e-05
  19  16.0989
  20  0.00187981
  21  0.269647
  22  0.191269
Done.

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

Extracting fit parameters...

4FGL J1416.1+1320
   Spectrum: PowerLaw
242    Prefactor:  1.553e+02  4.828e+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.003e+00  1.913e-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.213e+00  2.696e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 25.16
Ra Dec: 214.029 13.347
Photon Index (Fixed Index): 2.37 +/- 0.00
Photon Flux (Fixed Index): 2.03e-07 +/- 6.30e-08
Energy Flux (Fixed Index): 6.89e-05 +/- 2.14e-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) = 6545.83069296
delta logL = 0.281419592091

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6545.83059046
delta logL = 0.28152208961

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    175.75       1.0000         .10000E-03   10000.    
     2 'Index     '    2.1487       1.0000          .0000       10.000    
     3 'Normalizat'    1.2559       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .98300       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=   6545.831     FROM MIGRAD    STATUS=CONVERGED     92 CALLS      297 TOTAL
                     EDM=   .78E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     175.70        60.004        .15221E-03   -.74693E-06
   2  Index         2.1484        .29652        .46480E-02    .12181E-04
   3  Normalizat    1.2560        .26597        .28454E-03    .35959E-06
   4  Prefactor     .98297        .19088        .23138E-03   -.44222E-06
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 175.699
  Index      = 2.14842
  Normalizat = 1.25603
  Prefactor  = 0.982968
 **********
 **   18 **HESSE 
 **********

 FCN=   6545.831     FROM HESSE     STATUS=OK            25 CALLS      322 TOTAL
                     EDM=   .44E-14    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     175.70        59.529        .60882E-05   -1.3049    
   2  Index         2.1484        .29390        .18592E-03   -.60689    
   3  Normalizat    1.2560        .26617        .11382E-04   -.84888    
   4  Prefactor     .98297        .19106        .92550E-05   -.93299    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.38453e-15
Minuit parameter uncertainties:
  1  59.5489
  2  0.294148
  3  0.266462
  4  0.191187
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/285468': 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) = 6545.83058909
delta logL = 0.281523459713

Extracting fit parameters...

4FGL J1416.1+1320
   Spectrum: PowerLaw
242    Prefactor:  1.757e+02  5.955e+01  1.000e-04  1.000e+04 ( 1.000e-13)
243        Index:  2.148e+00  2.941e-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.830e-01  1.912e-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.256e+00  2.665e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 25.63
Ra Dec: 214.029 13.347
Photon Index (Free Index): 2.15 +/- 0.29
Photon Flux (Free Index): 1.68e-07 +/- 7.28e-08
Energy Flux (Free Index): 8.33e-05 +/- 3.68e-05

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/285468/cmap_HighResolution_592099201_592358401_4FGL_J1416.1+1320_daily_bin1361.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.03e-07', energy_flux2='8.33e-05', photon_flux_error='6.30e-08', dlogl='2.82e-01', energy_flux='6.89e-05', photon_flux2='1.68e-07', job_status='DONE', time_completed='2021-09-09 06:36:22.137257', photon_index_error2='0.29', photon_index2='2.15', ts='25.16', fit_tolerance='1e-08', GAL='1.00', photon_index_error='0.00', energy_flux_error2='3.68e-05', EG='1.21', time_epoch_completed='1631194582.14', return_code='0', job_id='285468', GAL2='0.98', EG2='1.26', return_code2='0', energy_flux_error='2.14e-05', photon_flux_error2='7.28e-08', ts2='25.63', photon_index='2.37' WHERE bin_id='1361' AND source_name='4FGL J1416.1+1320' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  9 06:36:22 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0098>
Subject: Job 285468: <4FGL_J1416.1+1320_daily_bin1361> in cluster <slac> Done

Job <4FGL_J1416.1+1320_daily_bin1361> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Thu Sep  9 06:27:13 2021
Job was executed on host(s) <bullet0098>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  9 06:27:15 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:27:15 2021
Terminated at Thu Sep  9 06:36:23 2021
Results reported at Thu Sep  9 06:36:23 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1416.1+1320_daily_bin1361 214.029 13.347 592099201 592358401 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 :                                   525.43 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             339.39 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   548 sec.
    Turnaround time :                            550 sec.

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

