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


Performing analysis on: 4FGL_J1418.4-0233_weekly_bin685
RA = 214.606, Dec = -2.5594
tmin = 653270401, tmax = 653875201
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='634122', job_status='RUN', time_executed='2021-12-08 17:46:47.816917', time_epoch_executed='1639014407.82' WHERE source_name='4FGL J1418.4-0233' and cadence='weekly' and bin_id='685'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/634122

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/634122/ft1_4FGL_J1418.4-0233_weekly_bin685.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/634122/ft2_4FGL_J1418.4-0233_weekly_bin685.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/634122/ft1_4FGL_J1418.4-0233_weekly_bin685.fits outfile=/scratch/kocevski/634122/ft1_filteredMKT_4FGL_J1418.4-0233_weekly_bin685.fits ra=214.606 dec=-2.5594 rad=12.0 tmin=653270401.0 tmax=653875201.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 9.16
user 8.80
sys 0.30

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/634122/ft2_4FGL_J1418.4-0233_weekly_bin685.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/634122/ft2_4FGL_J1418.4-0233_weekly_bin685.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/634122/ft1_filteredMKT_4FGL_J1418.4-0233_weekly_bin685.fits evtable="EVENTS" outfile="/scratch/kocevski/634122/ft1_filtered_4FGL_J1418.4-0233_weekly_bin685.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.56
user 0.40
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/634122/ft1_filtered_4FGL_J1418.4-0233_weekly_bin685.fits" evtable="EVENTS" scfile=/scratch/kocevski/634122/ft2_4FGL_J1418.4-0233_weekly_bin685.fits sctable="SC_DATA" outfile=/scratch/kocevski/634122/ltcube_653270401_653875201_4FGL_J1418.4-0233_weekly_bin685.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/634122/ft2_4FGL_J1418.4-0233_weekly_bin685.fits
.....................!
real 33.23
user 32.65
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/634122/ft1_filtered_4FGL_J1418.4-0233_weekly_bin685.fits evtable="EVENTS" scfile=/scratch/kocevski/634122/ft2_4FGL_J1418.4-0233_weekly_bin685.fits sctable="SC_DATA" expcube=/scratch/kocevski/634122/ltcube_653270401_653875201_4FGL_J1418.4-0233_weekly_bin685.fits outfile=/scratch/kocevski/634122/expmap_653270401_653875201_4FGL_J1418.4-0233_weekly_bin685.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/634122/ltcube_653270401_653875201_4FGL_J1418.4-0233_weekly_bin685.fits
.....................!
real 191.73
user 187.12
sys 4.17

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 159 point sources and 0 extended sources

Setting source of interest to:
4FGL J1418.4-0233 @ 214.606 -2.5594

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/634122/ft1_filtered_4FGL_J1418.4-0233_weekly_bin685.fits scfile=/scratch/kocevski/634122/ft2_4FGL_J1418.4-0233_weekly_bin685.fits outfile=/scratch/kocevski/634122/cmap_653270401_653875201_4FGL_J1418.4-0233_weekly_bin685.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.606 yref=-2.5594 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.43
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/634122/ft1_filtered_4FGL_J1418.4-0233_weekly_bin685.fits scfile=/scratch/kocevski/634122/ft2_4FGL_J1418.4-0233_weekly_bin685.fits outfile=/scratch/kocevski/634122/cmap_HighResolution_653270401_653875201_4FGL_J1418.4-0233_weekly_bin685.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.606 yref=-2.5594 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.43
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/634122/ft1_filtered_4FGL_J1418.4-0233_weekly_bin685.fits evtable="EVENTS" scfile=/scratch/kocevski/634122/ft2_4FGL_J1418.4-0233_weekly_bin685.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/634122/Model_4FGL_J1418.4-0233_weekly_bin685.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/634122/ft1_filtered_4FGL_J1418.4-0233_weekly_bin685.fits.....................!
real 107.35
user 105.79
sys 1.24

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/634122/ft1_filtered_4FGL_J1418.4-0233_weekly_bin685.fits', '/scratch/kocevski/634122/ft2_4FGL_J1418.4-0233_weekly_bin685.fits', expMap='/scratch/kocevski/634122/expmap_653270401_653875201_4FGL_J1418.4-0233_weekly_bin685.fits', expCube='/scratch/kocevski/634122/ltcube_653270401_653875201_4FGL_J1418.4-0233_weekly_bin685.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/634122/Model_4FGL_J1418.4-0233_weekly_bin685.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1418.4-0233'

4FGL J1418.4-0233
   Spectrum: LogParabola
269         norm:  7.824e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
270        alpha:  1.640e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
271         beta:  8.008e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
272           Eb:  1.844e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/634122/ft1_filtered_4FGL_J1418.4-0233_weekly_bin685.fits
Spacecraft file(s): /scratch/kocevski/634122/ft2_4FGL_J1418.4-0233_weekly_bin685.fits
Exposure map: /scratch/kocevski/634122/expmap_653270401_653875201_4FGL_J1418.4-0233_weekly_bin685.fits
Exposure cube: /scratch/kocevski/634122/ltcube_653270401_653875201_4FGL_J1418.4-0233_weekly_bin685.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/634122/Model_4FGL_J1418.4-0233_weekly_bin685.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) = 15565.0195144

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .51695       1.0000         .10000E-03   10000.    
     2 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    8.7992       1.0000         .10000E-03   10000.    
     4 'Prefactor '    5.8294       1.0000         .10000E-03   10000.    
     5 'norm      '    .10016E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    8.6002       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    5.5982       1.0000         .10000E-03   10000.    
    10 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    31.126       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .18752E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    11.117       1.0000         .10000E-03   10000.    
    17 'Normalizat'    1.0478       1.0000         .10000E-01   10.000    
    18 'Prefactor '    1.0861       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5260E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   15564.99     FROM MIGRAD    STATUS=CONVERGED    364 CALLS     1730 TOTAL
                     EDM=   .55E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .51705        1.2111        .66312E-06   -.11181E-02
   2  norm          .10000E-03    8.1733        .44845E-06** at limit **
   3  Prefactor     8.7990        3.9947        .54392E-06    .86388E-03
   4  Prefactor     5.8299        8.0744        .57575E-07   -.18189E-04
   5  norm          .10000E-03    1.7139        .52339E-07** at limit **
   6  Prefactor     .10000E-03    3.4689       -.29464E-07** at limit **
   7  norm          8.5999        2.1531        .17773E-06   -.15705E-02
   8  Prefactor     .10000E-03    13.071       -.15073E-05** at limit **
   9  norm          5.5983        4.1140       -.68392E-06    .10626E-02
  10  norm          .10000E-03    2.0772       -.58656E-07** at limit **
  11  Prefactor     31.125        21.467        .45470E-08   -.53701E-04
  12  Prefactor     .10000E-03    5.2039       -.12131E-05** at limit **
  13  norm          .10000E-03    5.0793        .11432E-05** at limit **
  14  Prefactor     .10000E-03    14.551        .11470E-05** at limit **
  15  Prefactor     .10001E-03    53.553       -.56007E-07** at limit **
  16  norm          11.103        11.037        .13475E-05    .40960E-03
  17  Normalizat    1.0479        .15321       -.67739E-06   -.38502E-04
  18  Prefactor     1.0861        .84179E-01   -.12938E-07   -.93249E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.517051
  norm       = 0.0001
  Prefactor  = 8.79897
  Prefactor  = 5.82986
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 8.59992
  Prefactor  = 0.000100001
  norm       = 5.59832
  norm       = 0.0001
  Prefactor  = 31.1248
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100005
  norm       = 11.1032
  Normalizat = 1.04794
  Prefactor  = 1.08608
 **********
 **   18 **HESSE 
 **********

 FCN=   15564.99     FROM HESSE     STATUS=OK           242 CALLS     1972 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .51705        1.2814        .21259E-03   -1.5564    
   2  norm          .10000E-03    8.1963        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     8.7990        4.0757        .13513E-03   -1.5115    
   4  Prefactor     5.8299        8.0742        .16634E-03   -1.5225    
   5  norm          .10000E-03    1.7277        .15935E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    3.4899        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          8.5999        2.1978        .44652E-03   -1.5121    
   8  Prefactor     .10000E-03    13.286        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          5.5983        4.3466        .84895E-03   -1.5235    
  10  norm          .10000E-03    2.1021        .17552E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     31.125        21.619        .71818E-04   -1.4592    
  12  Prefactor     .10000E-03    5.3212        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    5.1844        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    14.667        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10001E-03    55.503        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          11.103        11.275        .12016E-03   -1.5041    
  17  Normalizat    1.0479        .17909        .33801E-03   -.91441    
  18  Prefactor     1.0861        .98875E-01    .18965E-03   -.89913    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.57449e-09
Minuit parameter uncertainties:
  1  1.28143
  2  4.46267e-05
  3  4.0758
  4  8.07571
  5  5.34694e-06
  6  9.9726e-07
  7  2.19781
  8  0.000168383
  9  4.34687
  10  1.15829e-06
  11  21.6245
  12  9.13667e-05
  13  8.93457e-05
  14  0.000148862
  15  0.00108445
  16  11.2776
  17  0.17919
  18  0.0988912
Done.

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

Extracting fit parameters...

4FGL J1418.4-0233
   Spectrum: LogParabola
269         norm:  5.598e+00  4.347e+00  1.000e-04  1.000e+04 ( 1.000e-13)
270        alpha:  1.640e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
271         beta:  8.008e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
272           Eb:  1.844e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
523    Prefactor:  1.086e+00  9.889e-02  0.000e+00  1.000e+01 ( 1.000e+00)
524        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
525        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
522   Normalization:  1.048e+00  1.792e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.69
Ra Dec: 214.606 -2.559
Photon Index (Fixed Index): 1.64 +/- 0.00
Photon Flux (Fixed Index): 7.71e-09 +/- 5.98e-09
Energy Flux (Fixed Index): 1.32e-05 +/- 1.02e-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) = 15564.9035738
delta logL = 0.0864259812315

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 15564.9033228
delta logL = 0.0866770009252

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    5.5228       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.4005       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0493       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0860       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5260E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   15564.90     FROM MIGRAD    STATUS=CONVERGED     46 CALLS      202 TOTAL
                     EDM=   .60E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          5.5228        6.4418        .42741E-02   -.83293E-03
   2  alpha         1.4005        .69961        .47855       -.52073E-05
   3  Normalizat    1.0493        .14720        .76325E-01   -.28858E-03
   4  Prefactor     1.0860        .83978E-01    .38144E-01   -.70238E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 5.52278
  alpha      = 1.40049
  Normalizat = 1.04932
  Prefactor  = 1.08598
 **********
 **   18 **HESSE 
 **********

 FCN=   15564.90     FROM HESSE     STATUS=OK            31 CALLS      233 TOTAL
                     EDM=   .27E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          5.5228        4.3415        .17096E-03   -1.5238    
   2  alpha         1.4005        .55058        .25547E-01   -.45538    
   3  Normalizat    1.0493        .17087        .33780E-03   -.91396    
   4  Prefactor     1.0860        .98069E-01    .18966E-03   -.89916    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.65104e-10
Minuit parameter uncertainties:
  1  4.34172
  2  0.556253
  3  0.170959
  4  0.0980848
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/634122': 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) = 15564.9033228
delta logL = 0.0866770135981

Extracting fit parameters...

4FGL J1418.4-0233
   Spectrum: LogParabola
269         norm:  5.523e+00  4.342e+00  1.000e-04  1.000e+04 ( 1.000e-13)
270        alpha:  1.400e+00  5.563e-01  0.000e+00  5.000e+00 ( 1.000e+00)
271         beta:  8.008e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
272           Eb:  1.844e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
523    Prefactor:  1.086e+00  9.808e-02  0.000e+00  1.000e+01 ( 1.000e+00)
524        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
525        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
522   Normalization:  1.049e+00  1.710e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.87
Ra Dec: 214.606 -2.559
Photon Index (Free Index): 1.40 +/- 0.56
Photon Flux (Free Index): 5.90e-09 +/- 5.71e-09
Energy Flux (Free Index): 1.94e-05 +/- 2.38e-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/634122/cmap_HighResolution_653270401_653875201_4FGL_J1418.4-0233_weekly_bin685.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='7.71e-09', energy_flux2='1.94e-05', photon_flux_error='5.98e-09', dlogl='8.67e-02', energy_flux='1.32e-05', photon_flux2='5.90e-09', job_status='DONE', time_completed='2021-12-08 18:00:17.735912', photon_index_error2='0.56', photon_index2='1.40', ts='5.69', fit_tolerance='1e-08', GAL='1.09', photon_index_error='0.00', energy_flux_error2='2.38e-05', EG='1.05', time_epoch_completed='1639015217.74', return_code='0', job_id='634122', GAL2='1.09', EG2='1.05', return_code2='0', energy_flux_error='1.02e-05', photon_flux_error2='5.71e-09', ts2='5.87', photon_index='1.64' WHERE bin_id='685' AND source_name='4FGL J1418.4-0233' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Wed Dec  8 18:00:17 PST 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0035>
Subject: Job 634122: <4FGL_J1418.4-0233_weekly_bin685> in cluster <slac> Done

Job <4FGL_J1418.4-0233_weekly_bin685> was submitted from host <rhel6-64n> by user <kocevski> in cluster <slac> at Wed Dec  8 17:45:29 2021
Job was executed on host(s) <bullet0035>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Dec  8 17:46:31 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:46:31 2021
Terminated at Wed Dec  8 18:00:18 2021
Results reported at Wed Dec  8 18:00:18 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1418.4-0233_weekly_bin685 214.606 -2.5594 653270401 653875201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1418.4-0233 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   809.00 sec.
    Max Memory :                                 1258 MB
    Average Memory :                             376.07 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   827 sec.
    Turnaround time :                            889 sec.

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

