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


Performing analysis on: 4FGL_J1416.1+1320_weekly_bin680
RA = 214.029, Dec = 13.347
tmin = 650246401, tmax = 650851201
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='632803', job_status='RUN', time_executed='2021-12-08 17:42:10.222511', time_epoch_executed='1639014130.22' WHERE source_name='4FGL J1416.1+1320' and cadence='weekly' and bin_id='680'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/632803

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

Retrieving the FT1 file...

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

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

Retrieving 108 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/632803/ft1_4FGL_J1416.1+1320_weekly_bin680.fits


Retrieving the FT1 file...

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

Retrieving 108 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/632803/ft2_4FGL_J1416.1+1320_weekly_bin680.fits


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

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

Done.
real 8.45
user 8.10
sys 0.31

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/632803/ft2_4FGL_J1416.1+1320_weekly_bin680.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/632803/ft1_filteredMKT_4FGL_J1416.1+1320_weekly_bin680.fits evtable="EVENTS" outfile="/scratch/kocevski/632803/ft1_filtered_4FGL_J1416.1+1320_weekly_bin680.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.55
user 0.39
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/632803/ft1_filtered_4FGL_J1416.1+1320_weekly_bin680.fits" evtable="EVENTS" scfile=/scratch/kocevski/632803/ft2_4FGL_J1416.1+1320_weekly_bin680.fits sctable="SC_DATA" outfile=/scratch/kocevski/632803/ltcube_650246401_650851201_4FGL_J1416.1+1320_weekly_bin680.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/632803/ft2_4FGL_J1416.1+1320_weekly_bin680.fits
.....................!
real 30.39
user 29.76
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/632803/ft1_filtered_4FGL_J1416.1+1320_weekly_bin680.fits evtable="EVENTS" scfile=/scratch/kocevski/632803/ft2_4FGL_J1416.1+1320_weekly_bin680.fits sctable="SC_DATA" expcube=/scratch/kocevski/632803/ltcube_650246401_650851201_4FGL_J1416.1+1320_weekly_bin680.fits outfile=/scratch/kocevski/632803/expmap_650246401_650851201_4FGL_J1416.1+1320_weekly_bin680.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/632803/ltcube_650246401_650851201_4FGL_J1416.1+1320_weekly_bin680.fits
.....................!
real 190.34
user 185.33
sys 4.44

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/632803/ft1_filtered_4FGL_J1416.1+1320_weekly_bin680.fits scfile=/scratch/kocevski/632803/ft2_4FGL_J1416.1+1320_weekly_bin680.fits outfile=/scratch/kocevski/632803/cmap_650246401_650851201_4FGL_J1416.1+1320_weekly_bin680.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=214.029 yref=13.347 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.58
user 0.42
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/632803/ft1_filtered_4FGL_J1416.1+1320_weekly_bin680.fits scfile=/scratch/kocevski/632803/ft2_4FGL_J1416.1+1320_weekly_bin680.fits outfile=/scratch/kocevski/632803/cmap_HighResolution_650246401_650851201_4FGL_J1416.1+1320_weekly_bin680.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=214.029 yref=13.347 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.59
user 0.42
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    21.978       1.0000         .10000E-03   10000.    
     2 'Prefactor '    2.6744       1.0000         .10000E-03   10000.    
     3 'Prefactor '    3.0192       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    10.978       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .14486E-02   1.0000         .10000E-03   10000.    
     7 'Prefactor '    42.120       1.0000         .10000E-03   10000.    
     8 'Prefactor '    10.336       1.0000         .10000E-03   10000.    
     9 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10097E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    1.6280       1.0000         .10000E-03   10000.    
    12 'Prefactor '    2.8557       1.0000         .10000E-03   10000.    
    13 'norm      '    6.7319       1.0000         .10000E-03   10000.    
    14 'Prefactor '    29.500       1.0000         .10000E-03   10000.    
    15 'norm      '    7.7185       1.0000         .10000E-03   10000.    
    16 'Prefactor '    12.862       1.0000         .10000E-03   10000.    
    17 'Prefactor '    9.3263       1.0000         .10000E-03   10000.    
    18 'Prefactor '    3.0761       1.0000         .10000E-03   10000.    
    19 'Prefactor '    3.6697       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    .98558       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .99576       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=   15991.66     FROM MIGRAD    STATUS=CONVERGED    466 CALLS     2060 TOTAL
                     EDM=   .24E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     21.967        27.694        .27070E-05    .13753E-03
   2  Prefactor     2.6741        2.0947        .83860E-06   -.53524E-03
   3  Prefactor     3.0191        2.5702       -.22014E-07   -.92519E-04
   4  Prefactor     .10000E-03    7.4003       -.61185E-09** at limit **
   5  Prefactor     10.977        7.8728        .18023E-06    .53804E-05
   6  Prefactor     .10000E-03    4.1319       -.36927E-06** at limit **
   7  Prefactor     42.119        19.175        .20404E-06    .14388E-04
   8  Prefactor     10.334        14.286        .51839E-06    .34404E-04
   9  norm          .10000E-03    4.1982       -.12760E-06** at limit **
  10  Prefactor     .10000E-03    3.1671        .60180E-06** at limit **
  11  norm          1.6280        1.2346        .35980E-07    .11572E-04
  12  Prefactor     2.8557        4.0899       -.60178E-06   -.36792E-03
  13  norm          6.7317        2.1189        .70623E-07    .14960E-03
  14  Prefactor     29.492        21.845        .17456E-05    .18573E-03
  15  norm          7.7232        12.789       -.13414E-05   -.71079E-04
  16  Prefactor     12.859        16.091        .23299E-06    .39528E-04
  17  Prefactor     9.3259        12.136        .17149E-06    .16087E-04
  18  Prefactor     3.0754        6.7625        .33484E-05   -.19585E-03
  19  Prefactor     3.6665        12.023       -.72649E-07    .52438E-05
  20  Prefactor     .10000E-03    10.794       -.18154E-06** at limit **
  21  Normalizat    .98571        .13181       -.34611E-06    .85451E-04
  22  Prefactor     .99567        .94107E-01   -.28717E-06    .76907E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 21.9666
  Prefactor  = 2.67411
  Prefactor  = 3.01908
  Prefactor  = 0.0001
  Prefactor  = 10.9773
  Prefactor  = 0.000100002
  Prefactor  = 42.1191
  Prefactor  = 10.3341
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 1.62801
  Prefactor  = 2.85569
  norm       = 6.7317
  Prefactor  = 29.4921
  norm       = 7.72315
  Prefactor  = 12.8593
  Prefactor  = 9.32591
  Prefactor  = 3.07543
  Prefactor  = 3.66654
  Prefactor  = 0.0001
  Normalizat = 0.985707
  Prefactor  = 0.995672
 **********
 **   18 **HESSE 
 **********

 FCN=   15991.66     FROM HESSE     STATUS=OK           354 CALLS     2414 TOTAL
                     EDM=   .50E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     21.967        27.703        .85440E-04   -1.4770    
   2  Prefactor     2.6741        2.1005        .78035E-03   -1.5381    
   3  Prefactor     3.0191        2.5646        .18022E-03   -1.5360    
   4  Prefactor     .10000E-03    7.4784        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     10.977        7.8943        .12092E-03   -1.5045    
   6  Prefactor     .10000E-03    25.286        .49759E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     42.119        19.188        .61768E-04   -1.4409    
   8  Prefactor     10.334        14.286        .12463E-03   -1.5065    
   9  norm          .10000E-03    4.2102        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    3.2503        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          1.6280        1.2314        .11895E-03   -1.5453    
  12  Prefactor     2.8557        4.0972        .24058E-03   -1.5370    
  13  norm          6.7317        2.1171        .98923E-04   -1.5189    
  14  Prefactor     29.492        21.868        .73765E-04   -1.4621    
  15  norm          7.7232        12.788        .14434E-03   -1.5152    
  16  Prefactor     12.859        16.033        .11169E-03   -1.4991    
  17  Prefactor     9.3259        12.130        .13123E-03   -1.5097    
  18  Prefactor     3.0754        6.7818        .11563E-02   -1.5357    
  19  Prefactor     3.6665        11.963        .21085E-03   -1.5325    
  20  Prefactor     .10000E-03    10.812        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    .98571        .16009        .29230E-03   -.93511    
  22  Prefactor     .99567        .11450        .21272E-03   -.92874    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.98934e-10
Minuit parameter uncertainties:
  1  27.7193
  2  2.10055
  3  2.56469
  4  1.26776e-05
  5  7.89508
  6  0.000429422
  7  19.1906
  8  14.2909
  9  7.27088e-06
  10  5.41047e-05
  11  1.23138
  12  4.09756
  13  2.11712
  14  21.8742
  15  12.7925
  16  16.0386
  17  12.1336
  18  6.78348
  19  11.9704
  20  1.19327e-05
  21  0.160172
  22  0.114526
Done.

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

Extracting fit parameters...

4FGL J1416.1+1320
   Spectrum: PowerLaw
242    Prefactor:  4.212e+01  1.919e+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:  9.957e-01  1.145e-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:  9.857e-01  1.602e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 8.96
Ra Dec: 214.029 13.347
Photon Index (Fixed Index): 2.37 +/- 0.00
Photon Flux (Fixed Index): 5.50e-08 +/- 2.51e-08
Energy Flux (Fixed Index): 1.87e-05 +/- 8.52e-06

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) = 15991.6060124
delta logL = 0.0499345581047

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 15991.6018898
delta logL = 0.0540572260579

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    45.153       1.0000         .10000E-03   10000.    
     2 'Index     '    2.2175       1.0000          .0000       10.000    
     3 'Normalizat'    .99572       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .99109       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=   15991.60     FROM MIGRAD    STATUS=CONVERGED     88 CALLS      277 TOTAL
                     EDM=   .22E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     45.153        22.180        .59666E-04   -.15746E-03
   2  Index         2.2174        .47053        .97388E-02    .39268E-03
   3  Normalizat    .99573        .15740        .29076E-03   -.40039E-04
   4  Prefactor     .99109        .11396        .21314E-03   -.13473E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 45.1528
  Index      = 2.21743
  Normalizat = 0.99573
  Prefactor  = 0.991091
 **********
 **   18 **HESSE 
 **********

 FCN=   15991.60     FROM HESSE     STATUS=OK            25 CALLS      302 TOTAL
                     EDM=   .38E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     45.153        21.862        .11933E-04   -1.4363    
   2  Index         2.2174        .46335        .19478E-02   -.59019    
   3  Normalizat    .99573        .15744        .11630E-04   -.93174    
   4  Prefactor     .99109        .11404        .85258E-05   -.93027    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.78334e-11
Minuit parameter uncertainties:
  1  21.866
  2  0.464321
  3  0.157509
  4  0.114068
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/632803': 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) = 15991.6018898
delta logL = 0.0540572281425

Extracting fit parameters...

4FGL J1416.1+1320
   Spectrum: PowerLaw
242    Prefactor:  4.515e+01  2.187e+01  1.000e-04  1.000e+04 ( 1.000e-13)
243        Index:  2.217e+00  4.643e-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.911e-01  1.141e-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:  9.957e-01  1.575e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 9.05
Ra Dec: 214.029 13.347
Photon Index (Free Index): 2.22 +/- 0.46
Photon Flux (Free Index): 4.73e-08 +/- 3.19e-08
Energy Flux (Free Index): 2.06e-05 +/- 1.19e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/632803/cmap_HighResolution_650246401_650851201_4FGL_J1416.1+1320_weekly_bin680.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='5.50e-08', energy_flux2='2.06e-05', photon_flux_error='2.51e-08', dlogl='5.41e-02', energy_flux='1.87e-05', photon_flux2='4.73e-08', job_status='DONE', time_completed='2021-12-08 17:56:14.150808', photon_index_error2='0.46', photon_index2='2.22', ts='8.96', fit_tolerance='1e-08', GAL='1.00', photon_index_error='0.00', energy_flux_error2='1.19e-05', EG='0.99', time_epoch_completed='1639014974.15', return_code='0', job_id='632803', GAL2='0.99', EG2='1.00', return_code2='0', energy_flux_error='8.52e-06', photon_flux_error2='3.19e-08', ts2='9.05', photon_index='2.37' WHERE bin_id='680' AND source_name='4FGL J1416.1+1320' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Wed Dec  8 17:56:14 PST 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0204>
Subject: Job 632803: <4FGL_J1416.1+1320_weekly_bin680> in cluster <slac> Done

Job <4FGL_J1416.1+1320_weekly_bin680> was submitted from host <rhel6-64n> by user <kocevski> in cluster <slac> at Wed Dec  8 17:40:33 2021
Job was executed on host(s) <bullet0204>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Dec  8 17:41:56 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Dec  8 17:41:56 2021
Terminated at Wed Dec  8 17:56:14 2021
Results reported at Wed Dec  8 17:56:14 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1416.1+1320_weekly_bin680 214.029 13.347 650246401 650851201 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 :                                   842.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             368.45 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   858 sec.
    Turnaround time :                            941 sec.

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

