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


Performing analysis on: 4FGL_J1418.4-0233_daily_bin1419
RA = 214.606, Dec = -2.5594
tmin = 607132801, tmax = 607392001
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='330063', job_status='RUN', time_executed='2021-09-09 08:48:03.836851', time_epoch_executed='1631202483.84' WHERE source_name='4FGL J1418.4-0233' and cadence='daily' and bin_id='1419'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/330063

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/330063/ft1_4FGL_J1418.4-0233_daily_bin1419.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/330063/ft2_4FGL_J1418.4-0233_daily_bin1419.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/330063/ft1_4FGL_J1418.4-0233_daily_bin1419.fits outfile=/scratch/kocevski/330063/ft1_filteredMKT_4FGL_J1418.4-0233_daily_bin1419.fits ra=214.606 dec=-2.5594 rad=12.0 tmin=607132801.0 tmax=607392001.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 5.36
user 5.11
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/330063/ft1_filtered_4FGL_J1418.4-0233_daily_bin1419.fits" evtable="EVENTS" scfile=/scratch/kocevski/330063/ft2_4FGL_J1418.4-0233_daily_bin1419.fits sctable="SC_DATA" outfile=/scratch/kocevski/330063/ltcube_607132801_607392001_4FGL_J1418.4-0233_daily_bin1419.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/330063/ft2_4FGL_J1418.4-0233_daily_bin1419.fits
.....................!
real 11.35
user 11.01
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/330063/ft1_filtered_4FGL_J1418.4-0233_daily_bin1419.fits evtable="EVENTS" scfile=/scratch/kocevski/330063/ft2_4FGL_J1418.4-0233_daily_bin1419.fits sctable="SC_DATA" expcube=/scratch/kocevski/330063/ltcube_607132801_607392001_4FGL_J1418.4-0233_daily_bin1419.fits outfile=/scratch/kocevski/330063/expmap_607132801_607392001_4FGL_J1418.4-0233_daily_bin1419.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/330063/ltcube_607132801_607392001_4FGL_J1418.4-0233_daily_bin1419.fits
.....................!
real 192.41
user 187.07
sys 4.99

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/330063/ft1_filtered_4FGL_J1418.4-0233_daily_bin1419.fits scfile=/scratch/kocevski/330063/ft2_4FGL_J1418.4-0233_daily_bin1419.fits outfile=/scratch/kocevski/330063/cmap_607132801_607392001_4FGL_J1418.4-0233_daily_bin1419.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.53
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/330063/ft1_filtered_4FGL_J1418.4-0233_daily_bin1419.fits scfile=/scratch/kocevski/330063/ft2_4FGL_J1418.4-0233_daily_bin1419.fits outfile=/scratch/kocevski/330063/cmap_HighResolution_607132801_607392001_4FGL_J1418.4-0233_daily_bin1419.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.54
user 0.36
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/330063/ft1_filtered_4FGL_J1418.4-0233_daily_bin1419.fits evtable="EVENTS" scfile=/scratch/kocevski/330063/ft2_4FGL_J1418.4-0233_daily_bin1419.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/330063/Model_4FGL_J1418.4-0233_daily_bin1419.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/330063/ft1_filtered_4FGL_J1418.4-0233_daily_bin1419.fits.....................!
real 43.41
user 42.08
sys 1.20

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.7660       1.0000         .10000E-03   10000.    
     2 'norm      '    52.560       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .13385E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    7.5191       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10084E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    2.2768       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10098E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    13.658       1.0000         .10000E-03   10000.    
    10 'norm      '    1.3704       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .28699E-02   1.0000         .10000E-03   10000.    
    12 'Prefactor '    37.778       1.0000         .10000E-03   10000.    
    13 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    6.3568       1.0000         .10000E-03   10000.    
    16 'norm      '    45.177       1.0000         .10000E-03   10000.    
    17 'Normalizat'    1.4026       1.0000         .10000E-01   10.000    
    18 'Prefactor '    .66492       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=   5150.633     FROM MIGRAD    STATUS=CONVERGED    644 CALLS     2383 TOTAL
                     EDM=   .55E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.7667        2.0450        .85605E-04   -.59762E-05
   2  norm          52.579        38.420        .27661E-03    .80548E-04
   3  Prefactor     .10000E-03    1.8832        .96101E-03** at limit **
   4  Prefactor     .10000E-03    42.299        .18142E-02** at limit **
   5  norm          7.5202        5.6689        .14458E-03   -.20366E-04
   6  Prefactor     .10000E-03    8.0668        .18142E-02** at limit **
   7  norm          2.2780        2.3138        .10619E-03   -.19603E-03
   8  Prefactor     .10000E-03    16.908        .18142E-02** at limit **
   9  norm          13.660        12.048        .10838E-03    .10385E-04
  10  norm          1.3789        4.6114        .27469E-03   -.20156E-04
  11  Prefactor     .28954        32.952        .97875E-01    .13989E-03
  12  Prefactor     37.812        30.799        .65208E-04    .90485E-04
  13  norm          .10000E-03    9.7735        .18142E-02** at limit **
  14  Prefactor     .10000E-03    28.683        .18142E-02** at limit **
  15  Prefactor     6.2869        340.55        .15920E-03   -.16853E-04
  16  norm          45.260        55.657        .59650E-04    .24395E-04
  17  Normalizat    1.4018        .26240        .26052E-03    .46256E-04
  18  Prefactor     .66513        .14421        .20682E-03   -.17090E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 2.76673
  norm       = 52.579
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 7.5202
  Prefactor  = 0.0001
  norm       = 2.27797
  Prefactor  = 0.0001
  norm       = 13.6596
  norm       = 1.37887
  Prefactor  = 0.289538
  Prefactor  = 37.8124
  norm       = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 6.2869
  norm       = 45.2599
  Normalizat = 1.40185
  Prefactor  = 0.665128
 **********
 **   18 **HESSE 
 **********

 FCN=   5150.633     FROM HESSE     STATUS=OK           236 CALLS     2619 TOTAL
                     EDM=   .50E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.7667        2.0450        .34242E-05   -1.5375    
   2  norm          52.579        38.420        .55322E-04   -1.4256    
   3  Prefactor     .10000E-03    1.8832        .19220E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    42.324        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          7.5202        5.6689        .57831E-05   -1.5159    
   6  Prefactor     .10000E-03    8.0688        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          2.2780        2.3137        .42475E-05   -1.5406    
   8  Prefactor     .10000E-03    16.911        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          13.660        12.047        .43353E-05   -1.4969    
  10  norm          1.3789        4.6109        .10988E-04   -1.5473    
  11  Prefactor     .28954        30.605        .10258       -1.5600    
  12  Prefactor     37.812        30.796        .13042E-04   -1.4477    
  13  norm          .10000E-03    9.7736        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    28.684        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     6.2869        339.02        .63679E-05   -1.5206    
  16  norm          45.260        55.543        .23860E-05   -1.4361    
  17  Normalizat    1.4018        .26244        .10421E-04   -.80575    
  18  Prefactor     .66513        .14432        .82727E-05   -1.0491    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.03924e-10
Minuit parameter uncertainties:
  1  2.04505
  2  38.4383
  3  5.04686e-06
  4  9.60778e-05
  5  5.66932
  6  4.83602e-05
  7  2.31374
  8  6.90781e-05
  9  12.0494
  10  4.61209
  11  5.9557
  12  30.8093
  13  3.0551e-05
  14  0.000320155
  15  92.8927
  16  55.6063
  17  0.262696
  18  0.144404
Done.

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

Extracting fit parameters...

4FGL J1418.4-0233
   Spectrum: LogParabola
269         norm:  1.366e+01  1.205e+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:  6.651e-01  1.444e-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.402e+00  2.627e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.55
Ra Dec: 214.606 -2.559
Photon Index (Fixed Index): 1.64 +/- 0.00
Photon Flux (Fixed Index): 1.88e-08 +/- 1.66e-08
Energy Flux (Fixed Index): 3.22e-05 +/- 2.84e-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) = 5150.34492213
delta logL = 0.288234065274

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5150.33746196
delta logL = 0.295694235237

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    11.564       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.2338       1.0000          .0000       5.0000    
     3 'Normalizat'    1.3810       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .66768       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=   5150.337     FROM MIGRAD    STATUS=CONVERGED     59 CALLS      267 TOTAL
                     EDM=   .14E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          11.549        258.41        .29452E-02    .29452E-04
   2  alpha         2.2314        3.1010        .23267        .53474E-04
   3  Normalizat    1.3809        .16983        .59290E-01    .42496E-04
   4  Prefactor     .66798        .59768E-01    .41969E-01    .36653E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 11.5486
  alpha      = 2.23139
  Normalizat = 1.38085
  Prefactor  = 0.66798
 **********
 **   18 **HESSE 
 **********

 FCN=   5150.337     FROM HESSE     STATUS=OK            33 CALLS      300 TOTAL
                     EDM=   .13E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          11.549        11.899        .11781E-03   -1.5028    
   2  alpha         2.2314        .79086        .13257E-01   -.10765    
   3  Normalizat    1.3809        .25294        .26220E-03   -.81184    
   4  Prefactor     .66798        .14260        .20629E-03   -1.0480    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.2771e-11
Minuit parameter uncertainties:
  1  11.9014
  2  0.804849
  3  0.253168
  4  0.142677
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/330063': 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) = 5150.33744445
delta logL = 0.295711744753

Extracting fit parameters...

4FGL J1418.4-0233
   Spectrum: LogParabola
269         norm:  1.155e+01  1.190e+01  1.000e-04  1.000e+04 ( 1.000e-13)
270        alpha:  2.231e+00  8.048e-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:  6.680e-01  1.427e-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.381e+00  2.532e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.14
Ra Dec: 214.606 -2.559
Photon Index (Free Index): 2.23 +/- 0.80
Photon Flux (Free Index): 4.25e-08 +/- 4.97e-08
Energy Flux (Free Index): 2.05e-05 +/- 1.75e-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/330063/cmap_HighResolution_607132801_607392001_4FGL_J1418.4-0233_daily_bin1419.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.88e-08', energy_flux2='2.05e-05', photon_flux_error='1.66e-08', dlogl='2.96e-01', energy_flux='3.22e-05', photon_flux2='4.25e-08', job_status='DONE', time_completed='2021-09-09 08:59:35.026023', photon_index_error2='0.80', photon_index2='2.23', ts='5.55', fit_tolerance='1e-08', GAL='0.67', photon_index_error='0.00', energy_flux_error2='1.75e-05', EG='1.40', time_epoch_completed='1631203175.03', return_code='0', job_id='330063', GAL2='0.67', EG2='1.38', return_code2='0', energy_flux_error='2.84e-05', photon_flux_error2='4.97e-08', ts2='6.14', photon_index='1.64' WHERE bin_id='1419' AND source_name='4FGL J1418.4-0233' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  9 08:59:35 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0219>
Subject: Job 330063: <4FGL_J1418.4-0233_daily_bin1419> in cluster <slac> Done

Job <4FGL_J1418.4-0233_daily_bin1419> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Thu Sep  9 08:46:03 2021
Job was executed on host(s) <bullet0219>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  9 08:46:04 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:46:04 2021
Terminated at Thu Sep  9 08:59:35 2021
Results reported at Thu Sep  9 08:59:35 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1418.4-0233_daily_bin1419 214.606 -2.5594 607132801 607392001 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 :                                   494.15 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             246.69 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   811 sec.
    Turnaround time :                            812 sec.

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

