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


Performing analysis on: 4FGL_J1418.4-0233_daily_bin1556
RA = 214.606, Dec = -2.5594
tmin = 642643201, tmax = 642902401
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='331215', job_status='RUN', time_executed='2021-09-09 08:50:39.402817', time_epoch_executed='1631202639.4' WHERE source_name='4FGL J1418.4-0233' and cadence='daily' and bin_id='1556'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/331215

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/331215/ft1_4FGL_J1418.4-0233_daily_bin1556.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/331215/ft2_4FGL_J1418.4-0233_daily_bin1556.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/331215/ft1_4FGL_J1418.4-0233_daily_bin1556.fits outfile=/scratch/kocevski/331215/ft1_filteredMKT_4FGL_J1418.4-0233_daily_bin1556.fits ra=214.606 dec=-2.5594 rad=12.0 tmin=642643201.0 tmax=642902401.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 3.53
user 3.31
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/331215/ft2_4FGL_J1418.4-0233_daily_bin1556.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/331215/ft1_filteredMKT_4FGL_J1418.4-0233_daily_bin1556.fits evtable="EVENTS" outfile="/scratch/kocevski/331215/ft1_filtered_4FGL_J1418.4-0233_daily_bin1556.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.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/331215/ft1_filtered_4FGL_J1418.4-0233_daily_bin1556.fits" evtable="EVENTS" scfile=/scratch/kocevski/331215/ft2_4FGL_J1418.4-0233_daily_bin1556.fits sctable="SC_DATA" outfile=/scratch/kocevski/331215/ltcube_642643201_642902401_4FGL_J1418.4-0233_daily_bin1556.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/331215/ft2_4FGL_J1418.4-0233_daily_bin1556.fits
.....................!
real 11.87
user 11.40
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/331215/ft1_filtered_4FGL_J1418.4-0233_daily_bin1556.fits evtable="EVENTS" scfile=/scratch/kocevski/331215/ft2_4FGL_J1418.4-0233_daily_bin1556.fits sctable="SC_DATA" expcube=/scratch/kocevski/331215/ltcube_642643201_642902401_4FGL_J1418.4-0233_daily_bin1556.fits outfile=/scratch/kocevski/331215/expmap_642643201_642902401_4FGL_J1418.4-0233_daily_bin1556.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/331215/ltcube_642643201_642902401_4FGL_J1418.4-0233_daily_bin1556.fits
.....................!
real 189.82
user 184.76
sys 4.68

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/331215/ft1_filtered_4FGL_J1418.4-0233_daily_bin1556.fits scfile=/scratch/kocevski/331215/ft2_4FGL_J1418.4-0233_daily_bin1556.fits outfile=/scratch/kocevski/331215/cmap_642643201_642902401_4FGL_J1418.4-0233_daily_bin1556.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.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/331215/ft1_filtered_4FGL_J1418.4-0233_daily_bin1556.fits scfile=/scratch/kocevski/331215/ft2_4FGL_J1418.4-0233_daily_bin1556.fits outfile=/scratch/kocevski/331215/cmap_HighResolution_642643201_642902401_4FGL_J1418.4-0233_daily_bin1556.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.53
user 0.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/331215/ft1_filtered_4FGL_J1418.4-0233_daily_bin1556.fits evtable="EVENTS" scfile=/scratch/kocevski/331215/ft2_4FGL_J1418.4-0233_daily_bin1556.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/331215/Model_4FGL_J1418.4-0233_daily_bin1556.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/331215/ft1_filtered_4FGL_J1418.4-0233_daily_bin1556.fits.....................!
real 47.97
user 46.57
sys 1.26

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.4110       1.0000         .10000E-03   10000.    
     2 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    10.724       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .38387E-01   1.0000         .10000E-03   10000.    
     5 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    35.720       1.0000         .10000E-03   10000.    
     7 'norm      '    14.168       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10103E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    11.442       1.0000         .10000E-03   10000.    
    11 'Prefactor '    2.1032       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    55.426       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10138E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    17 'Normalizat'    .87927       1.0000         .10000E-01   10.000    
    18 'Prefactor '    1.0896       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=   5998.393     FROM MIGRAD    STATUS=CONVERGED    376 CALLS     1806 TOTAL
                     EDM=   .51E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.4107        2.4598       -.29380E-06   -.96881E-03
   2  norm          .10000E-03    9.1853        .13460E-06** at limit **
   3  Prefactor     10.722        7.5252        .76478E-07   -.88619E-04
   4  Prefactor     .10134E-03    22.921        .45097E-05** at limit **
   5  norm          .10000E-03    3.5641       -.37392E-07** at limit **
   6  Prefactor     35.731        20.594       -.61525E-05   -.47708E-03
   7  norm          14.168        4.3912       -.95542E-07   -.13870E-03
   8  Prefactor     .10000E-03    14.681       -.38326E-06** at limit **
   9  norm          .10000E-03    3.1802       -.13364E-06** at limit **
  10  norm          11.441        11.643        .10071E-05   -.69959E-04
  11  Prefactor     2.0939        59.398        .25956E-05   -.63582E-04
  12  Prefactor     .10000E-03    23.765        .23548E-06** at limit **
  13  norm          .10000E-03    12.592        .46581E-06** at limit **
  14  Prefactor     55.456        73.848        .18178E-04   -.26741E-05
  15  Prefactor     .10000E-03    96.359       -.16713E-05** at limit **
  16  norm          .10000E-03    11.349       -.19122E-06** at limit **
  17  Normalizat    .87937        .24646        .63446E-06   -.26516E-03
  18  Prefactor     1.0896        .13402       -.44234E-06   -.25389E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 1.41067
  norm       = 0.0001
  Prefactor  = 10.7225
  Prefactor  = 0.00010134
  norm       = 0.0001
  Prefactor  = 35.7311
  norm       = 14.1677
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 11.4408
  Prefactor  = 2.09391
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 55.4563
  Prefactor  = 0.000100001
  norm       = 0.0001
  Normalizat = 0.879372
  Prefactor  = 1.08965
 **********
 **   18 **HESSE 
 **********

 FCN=   5998.393     FROM HESSE     STATUS=OK           248 CALLS     2054 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.4107        2.4562        .15247E-03   -1.5470    
   2  norm          .10000E-03    9.1857        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     10.722        7.5175        .12235E-03   -1.5053    
   4  Prefactor     .10134E-03    27.830        .10323       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    3.5722        .14266E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     35.731        21.312        .67054E-04   -1.4512    
   7  norm          14.168        4.3922        .84033E-04   -1.4955    
   8  Prefactor     .10000E-03    14.720        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    3.1804        .13489E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          11.441        11.620        .11844E-03   -1.5031    
  11  Prefactor     2.0939        59.447        .28454E-03   -1.5419    
  12  Prefactor     .10000E-03    23.849        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    12.602        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     55.456        73.279        .53880E-04   -1.4217    
  15  Prefactor     .10000E-03    98.255        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    11.385        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Normalizat    .87937        .28052        .35490E-03   -.97189    
  18  Prefactor     1.0896        .15338        .18913E-03   -.89798    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.06699e-09
Minuit parameter uncertainties:
  1  2.45639
  2  9.34255e-07
  3  7.51818
  4  0.0122194
  5  2.60897e-07
  6  21.3169
  7  4.39226
  8  8.6712e-05
  9  2.62881e-07
  10  11.622
  11  22.3377
  12  3.03613e-05
  13  1.87883e-05
  14  73.3982
  15  0.000498378
  16  2.66102e-05
  17  0.280988
  18  0.153441
Done.

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

Extracting fit parameters...

4FGL J1418.4-0233
   Spectrum: LogParabola
269         norm:  1.000e-04  2.629e-07  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.090e+00  1.534e-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:  8.794e-01  2.810e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 214.606 -2.559
Photon Flux Upper Limit: 2.59e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.43e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/331215/likelihoodResults_642643201_642902401_4FGL_J1418.4-0233_daily_bin1556.txt

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): 102
logL (Free Index) = 5998.39459855
delta logL = -0.00121881556788

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5998.39337989
delta logL = -1.57624526764e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    1.6351       1.0000          .0000       5.0000    
     3 'Normalizat'    .87936       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0896       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   5998.393     FROM MIGRAD    STATUS=FAILED        88 CALLS      222 TOTAL
                     EDM=   .34E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    361.90        .13505E-02** at limit **
   2  alpha         1.4812        2.9749        .50000        .95929E-07
   3  Normalizat    .87938        .73478E-01    .35490E-03   -.29311E-04
   4  Prefactor     1.0896        .43427E-01    .18914E-03   -.54988E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   5998.393     FROM SIMPLEX   STATUS=UNCHANGED    176 CALLS      398 TOTAL
                     EDM=   .11E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    361.90        .30857E-03** at limit **
   2  alpha         1.4812        2.9749        .15484E-05    .95929E-07
   3  Normalizat    .87938        .73478E-01    .97528E-07   -.29311E-04
   4  Prefactor     1.0896        .43427E-01    .30855E-07   -.54988E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5998.393     FROM MIGRAD    STATUS=CONVERGED     32 CALLS      430 TOTAL
                     EDM=   .21E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    3.4827        .27010E-03** at limit **
   2  alpha         1.4794        3.2663        .20000        .19895E-08
   3  Normalizat    .87938        .25597        .14196E-04   -.29311E-04
   4  Prefactor     1.0896        .15142        .37827E-04   -.54879E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 1.47941
  Normalizat = 0.879376
  Prefactor  = 1.08965
 **********
 **   18 **HESSE 
 **********

 FCN=   5998.393     FROM HESSE     STATUS=OK            23 CALLS      453 TOTAL
                     EDM=   .22E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    3.2411        .54019E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.4794        2.9315        .80000E-02   -.42052    
   3  Normalizat    .87938        .25618        .28392E-05   -.97189    
   4  Prefactor     1.0896        .15152        .75654E-05   -.89798    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.16841e-12
Minuit parameter uncertainties:
  1  1.44974e-06
  2  205.015
  3  0.256535
  4  0.151579
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/331215': 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) = 5998.39337944
delta logL = 2.94160599879e-07

Extracting fit parameters...

4FGL J1418.4-0233
   Spectrum: LogParabola
269         norm:  1.000e-04  1.450e-06  1.000e-04  1.000e+04 ( 1.000e-13)
270        alpha:  1.479e+00  2.050e+02  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.090e+00  1.516e-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:  8.794e-01  2.565e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 214.606 -2.559

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/331215/cmap_HighResolution_642643201_642902401_4FGL_J1418.4-0233_daily_bin1556.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.43e-05', job_status='DONE', photon_flux_upper_limit='2.59e-08', time_completed='2021-09-09 08:59:25.577982', job_id='331215', GAL2='1.09', fit_tolerance='1e-08', EG2='0.88', EG='0.88', time_epoch_completed='1631203165.58', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.09', dlogl='2.94e-07', ts2='-0.00', photon_index_error='0.00', photon_index='1.64' WHERE bin_id='1556' AND source_name='4FGL J1418.4-0233' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  9 08:59:25 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0073>
Subject: Job 331215: <4FGL_J1418.4-0233_daily_bin1556> in cluster <slac> Done

Job <4FGL_J1418.4-0233_daily_bin1556> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Thu Sep  9 08:50:21 2021
Job was executed on host(s) <bullet0073>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  9 08:50:22 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:50:22 2021
Terminated at Thu Sep  9 08:59:26 2021
Results reported at Thu Sep  9 08:59:26 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1418.4-0233_daily_bin1556 214.606 -2.5594 642643201 642902401 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 :                                   523.11 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             337.89 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   543 sec.
    Turnaround time :                            545 sec.

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

