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


Performing analysis on: 4FGL_J1418.4-0233_daily_bin161
RA = 214.606, Dec = -2.5594
tmin = 281059201, tmax = 281318401
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='324677', job_status='RUN', time_executed='2021-09-09 08:30:33.461422', time_epoch_executed='1631201433.46' WHERE source_name='4FGL J1418.4-0233' and cadence='daily' and bin_id='161'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/324677

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/324677/ft1_4FGL_J1418.4-0233_daily_bin161.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/324677/ft2_4FGL_J1418.4-0233_daily_bin161.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/324677/ft1_4FGL_J1418.4-0233_daily_bin161.fits outfile=/scratch/kocevski/324677/ft1_filteredMKT_4FGL_J1418.4-0233_daily_bin161.fits ra=214.606 dec=-2.5594 rad=12.0 tmin=281059201.0 tmax=281318401.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.72
user 4.21
sys 0.26

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/324677/ft1_filtered_4FGL_J1418.4-0233_daily_bin161.fits" evtable="EVENTS" scfile=/scratch/kocevski/324677/ft2_4FGL_J1418.4-0233_daily_bin161.fits sctable="SC_DATA" outfile=/scratch/kocevski/324677/ltcube_281059201_281318401_4FGL_J1418.4-0233_daily_bin161.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/324677/ft2_4FGL_J1418.4-0233_daily_bin161.fits
.....................!
real 11.88
user 11.51
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/324677/ft1_filtered_4FGL_J1418.4-0233_daily_bin161.fits evtable="EVENTS" scfile=/scratch/kocevski/324677/ft2_4FGL_J1418.4-0233_daily_bin161.fits sctable="SC_DATA" expcube=/scratch/kocevski/324677/ltcube_281059201_281318401_4FGL_J1418.4-0233_daily_bin161.fits outfile=/scratch/kocevski/324677/expmap_281059201_281318401_4FGL_J1418.4-0233_daily_bin161.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/324677/ltcube_281059201_281318401_4FGL_J1418.4-0233_daily_bin161.fits
.....................!
real 190.50
user 184.60
sys 5.53

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/324677/ft1_filtered_4FGL_J1418.4-0233_daily_bin161.fits scfile=/scratch/kocevski/324677/ft2_4FGL_J1418.4-0233_daily_bin161.fits outfile=/scratch/kocevski/324677/cmap_281059201_281318401_4FGL_J1418.4-0233_daily_bin161.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.56
user 0.36
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/324677/ft1_filtered_4FGL_J1418.4-0233_daily_bin161.fits scfile=/scratch/kocevski/324677/ft2_4FGL_J1418.4-0233_daily_bin161.fits outfile=/scratch/kocevski/324677/cmap_HighResolution_281059201_281318401_4FGL_J1418.4-0233_daily_bin161.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.56
user 0.37
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/324677/ft1_filtered_4FGL_J1418.4-0233_daily_bin161.fits evtable="EVENTS" scfile=/scratch/kocevski/324677/ft2_4FGL_J1418.4-0233_daily_bin161.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/324677/Model_4FGL_J1418.4-0233_daily_bin161.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/324677/ft1_filtered_4FGL_J1418.4-0233_daily_bin161.fits.....................!
real 44.04
user 42.63
sys 1.19

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/324677/ft1_filtered_4FGL_J1418.4-0233_daily_bin161.fits', '/scratch/kocevski/324677/ft2_4FGL_J1418.4-0233_daily_bin161.fits', expMap='/scratch/kocevski/324677/expmap_281059201_281318401_4FGL_J1418.4-0233_daily_bin161.fits', expCube='/scratch/kocevski/324677/ltcube_281059201_281318401_4FGL_J1418.4-0233_daily_bin161.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/324677/Model_4FGL_J1418.4-0233_daily_bin161.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/324677/ft1_filtered_4FGL_J1418.4-0233_daily_bin161.fits
Spacecraft file(s): /scratch/kocevski/324677/ft2_4FGL_J1418.4-0233_daily_bin161.fits
Exposure map: /scratch/kocevski/324677/expmap_281059201_281318401_4FGL_J1418.4-0233_daily_bin161.fits
Exposure cube: /scratch/kocevski/324677/ltcube_281059201_281318401_4FGL_J1418.4-0233_daily_bin161.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/324677/Model_4FGL_J1418.4-0233_daily_bin161.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) = 5293.20426902

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    4.4243       1.0000         .10000E-03   10000.    
     2 'norm      '    .10210E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    5.6329       1.0000         .10000E-03   10000.    
     5 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    2.9520       1.0000         .10000E-03   10000.    
     7 'norm      '    3.1638       1.0000         .10000E-03   10000.    
     8 'Prefactor '    2.0658       1.0000         .10000E-03   10000.    
     9 'norm      '    12.447       1.0000         .10000E-03   10000.    
    10 'norm      '    20.727       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10050E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    12.565       1.0000         .10000E-03   10000.    
    13 'norm      '    .10300E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .40910E-02   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10189E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    1.2982       1.0000         .10000E-03   10000.    
    17 'Normalizat'    1.0373       1.0000         .10000E-01   10.000    
    18 'Prefactor '    1.0738       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5293.200     FROM MIGRAD    STATUS=CONVERGED    605 CALLS     1958 TOTAL
                     EDM=   .13E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.4247        2.4663        .82308E-04    .49034E-04
   2  norm          .10000E-03    35.374        .18142E-02** at limit **
   3  Prefactor     .10000E-03    1.6580        .91455E-03** at limit **
   4  Prefactor     5.6409        21.358        .16926E-03    .47017E-05
   5  norm          .10000E-03    3.7323        .13667E-02** at limit **
   6  Prefactor     2.9571        16.866        .23637E-03    .14814E-04
   7  norm          3.1623        3.1279        .12125E-03   -.35442E-04
   8  Prefactor     2.0629        64.731        .28746E-03    .81074E-05
   9  norm          12.444        11.761        .11354E-03    .53069E-05
  10  norm          20.736        12.190        .87977E-04    .19771E-04
  11  Prefactor     .10000E-03    10.533        .18142E-02** at limit **
  12  Prefactor     12.560        33.675        .11300E-03    .12475E-04
  13  norm          .10000E-03    15.904        .18142E-02** at limit **
  14  Prefactor     .10000E-03    58.544        .16124    ** at limit **
  15  Prefactor     .10000E-03    15.205        .18142E-02** at limit **
  16  norm          1.2997        30.281        .38802E-03   -.40843E-04
  17  Normalizat    1.0374        .29607        .32327E-03    .86267E-04
  18  Prefactor     1.0739        .16929        .19014E-03    .28865E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 4.42468
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.64093
  norm       = 0.0001
  Prefactor  = 2.95711
  norm       = 3.16225
  Prefactor  = 2.06293
  norm       = 12.4443
  norm       = 20.7356
  Prefactor  = 0.0001
  Prefactor  = 12.5603
  norm       = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  norm       = 1.29968
  Normalizat = 1.0374
  Prefactor  = 1.07386
 **********
 **   18 **HESSE 
 **********

 FCN=   5293.200     FROM HESSE     STATUS=OK           236 CALLS     2194 TOTAL
                     EDM=   .13E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.4247        2.4663        .32923E-05   -1.5287    
   2  norm          .10000E-03    35.380        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    1.6580        .18291E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     5.6409        21.351        .67703E-05   -1.5233    
   5  norm          .10000E-03    3.7330        .27335E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     2.9571        16.845        .94547E-05   -1.5364    
   7  norm          3.1623        3.1277        .48501E-05   -1.5352    
   8  Prefactor     2.0629        64.652        .11499E-04   -1.5421    
   9  norm          12.444        11.760        .45416E-05   -1.5002    
  10  norm          20.736        12.189        .35191E-05   -1.4797    
  11  Prefactor     .10000E-03    10.534        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     12.560        33.670        .45202E-05   -1.4999    
  13  norm          .10000E-03    15.905        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    59.508        .15937       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    15.205        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          1.2997        30.274        .15521E-04   -1.5480    
  17  Normalizat    1.0374        .29623        .12931E-04   -.91788    
  18  Prefactor     1.0739        .16942        .38027E-04   -.90307    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.32422e-10
Minuit parameter uncertainties:
  1  2.46638
  2  2.83457e-05
  3  1.96817e-06
  4  21.3795
  5  6.87536e-06
  6  14.1214
  7  3.12785
  8  23.1241
  9  11.7624
  10  12.1907
  11  1.60283e-05
  12  33.7205
  13  3.77937e-05
  14  0.000668646
  15  5.64874e-05
  16  12.552
  17  0.296701
  18  0.169503
Done.

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

Extracting fit parameters...

4FGL J1418.4-0233
   Spectrum: LogParabola
269         norm:  1.244e+01  1.176e+01  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.074e+00  1.695e-01  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.037e+00  2.967e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.70
Ra Dec: 214.606 -2.559
Photon Index (Fixed Index): 1.64 +/- 0.00
Photon Flux (Fixed Index): 1.71e-08 +/- 1.62e-08
Energy Flux (Fixed Index): 2.93e-05 +/- 2.77e-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) = 5293.03646449
delta logL = 0.163874804379

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5292.98679974
delta logL = 0.213539551239

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    8.2368       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.0549       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0407       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0765       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=   5292.987     FROM MIGRAD    STATUS=CONVERGED     48 CALLS      209 TOTAL
                     EDM=   .13E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          8.2368        8.4566        .34923E-02   -.37771E-02
   2  alpha         1.0547        .57799        .47148       -.30203E-04
   3  Normalizat    1.0406        .23735        .72952E-01    .14359E-04
   4  Prefactor     1.0765        .14250        .38557E-01    .34473E-06
                               ERR DEF=  .500    
Final values: 
  norm       = 8.2368
  alpha      = 1.05471
  Normalizat = 1.04065
  Prefactor  = 1.0765
 **********
 **   18 **HESSE 
 **********

 FCN=   5292.987     FROM HESSE     STATUS=OK            31 CALLS      240 TOTAL
                     EDM=   .22E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          8.2368        11.347        .13969E-03   -1.5134    
   2  alpha         1.0547        .79652        .20007E-01   -.61642    
   3  Normalizat    1.0406        .27660        .32282E-03   -.91681    
   4  Prefactor     1.0765        .16649        .18996E-03   -.90221    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.22495e-08
Minuit parameter uncertainties:
  1  11.3496
  2  0.818288
  3  0.276979
  4  0.166566
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/324677': 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) = 5292.98679967
delta logL = 0.213539621433

Extracting fit parameters...

4FGL J1418.4-0233
   Spectrum: LogParabola
269         norm:  8.237e+00  1.135e+01  1.000e-04  1.000e+04 ( 1.000e-13)
270        alpha:  1.055e+00  8.183e-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.077e+00  1.666e-01  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.041e+00  2.770e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.12
Ra Dec: 214.606 -2.559
Photon Index (Free Index): 1.05 +/- 0.82
Photon Flux (Free Index): 7.75e-09 +/- 1.02e-08
Energy Flux (Free Index): 6.34e-05 +/- 9.74e-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/324677/cmap_HighResolution_281059201_281318401_4FGL_J1418.4-0233_daily_bin161.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.71e-08', energy_flux2='6.34e-05', photon_flux_error='1.62e-08', dlogl='2.14e-01', energy_flux='2.93e-05', photon_flux2='7.75e-09', job_status='DONE', time_completed='2021-09-09 08:38:28.730823', photon_index_error2='0.82', photon_index2='1.05', ts='4.70', fit_tolerance='1e-08', GAL='1.07', photon_index_error='0.00', energy_flux_error2='9.74e-05', EG='1.04', time_epoch_completed='1631201908.73', return_code='0', job_id='324677', GAL2='1.08', EG2='1.04', return_code2='0', energy_flux_error='2.77e-05', photon_flux_error2='1.02e-08', ts2='5.12', photon_index='1.64' WHERE bin_id='161' AND source_name='4FGL J1418.4-0233' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  9 08:38:28 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0258>
Subject: Job 324677: <4FGL_J1418.4-0233_daily_bin161> in cluster <slac> Done

Job <4FGL_J1418.4-0233_daily_bin161> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Thu Sep  9 08:30:17 2021
Job was executed on host(s) <bullet0258>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  9 08:30:19 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Sep  9 08:30:19 2021
Terminated at Thu Sep  9 08:38:29 2021
Results reported at Thu Sep  9 08:38:29 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1418.4-0233_daily_bin161 214.606 -2.5594 281059201 281318401 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 :                                   471.06 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             294.47 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   490 sec.
    Turnaround time :                            492 sec.

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

