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


Performing analysis on: 4FGL_J1418.4-0233_daily_bin150
RA = 214.606, Dec = -2.5594
tmin = 278208001, tmax = 278467201
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='324661', job_status='RUN', time_executed='2021-09-09 08:30:34.044733', time_epoch_executed='1631201434.04' WHERE source_name='4FGL J1418.4-0233' and cadence='daily' and bin_id='150'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/324661

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/324661/ft1_4FGL_J1418.4-0233_daily_bin150.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/324661/ft2_4FGL_J1418.4-0233_daily_bin150.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/324661/ft1_4FGL_J1418.4-0233_daily_bin150.fits outfile=/scratch/kocevski/324661/ft1_filteredMKT_4FGL_J1418.4-0233_daily_bin150.fits ra=214.606 dec=-2.5594 rad=12.0 tmin=278208001.0 tmax=278467201.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.37
user 5.12
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/324661/ft2_4FGL_J1418.4-0233_daily_bin150.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/324661/ft1_filteredMKT_4FGL_J1418.4-0233_daily_bin150.fits evtable="EVENTS" outfile="/scratch/kocevski/324661/ft1_filtered_4FGL_J1418.4-0233_daily_bin150.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/324661/ft1_filtered_4FGL_J1418.4-0233_daily_bin150.fits" evtable="EVENTS" scfile=/scratch/kocevski/324661/ft2_4FGL_J1418.4-0233_daily_bin150.fits sctable="SC_DATA" outfile=/scratch/kocevski/324661/ltcube_278208001_278467201_4FGL_J1418.4-0233_daily_bin150.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/324661/ft2_4FGL_J1418.4-0233_daily_bin150.fits
.....................!
real 12.84
user 12.49
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/324661/ft1_filtered_4FGL_J1418.4-0233_daily_bin150.fits evtable="EVENTS" scfile=/scratch/kocevski/324661/ft2_4FGL_J1418.4-0233_daily_bin150.fits sctable="SC_DATA" expcube=/scratch/kocevski/324661/ltcube_278208001_278467201_4FGL_J1418.4-0233_daily_bin150.fits outfile=/scratch/kocevski/324661/expmap_278208001_278467201_4FGL_J1418.4-0233_daily_bin150.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/324661/ltcube_278208001_278467201_4FGL_J1418.4-0233_daily_bin150.fits
.....................!
real 192.30
user 186.28
sys 5.56

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/324661/ft1_filtered_4FGL_J1418.4-0233_daily_bin150.fits scfile=/scratch/kocevski/324661/ft2_4FGL_J1418.4-0233_daily_bin150.fits outfile=/scratch/kocevski/324661/cmap_278208001_278467201_4FGL_J1418.4-0233_daily_bin150.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.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/324661/ft1_filtered_4FGL_J1418.4-0233_daily_bin150.fits scfile=/scratch/kocevski/324661/ft2_4FGL_J1418.4-0233_daily_bin150.fits outfile=/scratch/kocevski/324661/cmap_HighResolution_278208001_278467201_4FGL_J1418.4-0233_daily_bin150.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.55
user 0.39
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/324661/ft1_filtered_4FGL_J1418.4-0233_daily_bin150.fits evtable="EVENTS" scfile=/scratch/kocevski/324661/ft2_4FGL_J1418.4-0233_daily_bin150.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/324661/Model_4FGL_J1418.4-0233_daily_bin150.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/324661/ft1_filtered_4FGL_J1418.4-0233_daily_bin150.fits.....................!
real 75.67
user 74.27
sys 1.18

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    6.8780       1.0000         .10000E-03   10000.    
     2 'norm      '    5.5549       1.0000         .10000E-03   10000.    
     3 'Prefactor '    8.3992       1.0000         .10000E-03   10000.    
     4 'Prefactor '    10.308       1.0000         .10000E-03   10000.    
     5 'norm      '    9.4745       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .65401E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .13345E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10043E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .56642       1.0000         .10000E-03   10000.    
    10 'norm      '    .10055E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10051E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .38986E-02   1.0000         .10000E-03   10000.    
    13 'norm      '    .10125E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10162E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    17 'Normalizat'    1.1487       1.0000         .10000E-01   10.000    
    18 'Prefactor '    1.4522       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=   9985.676     FROM MIGRAD    STATUS=CONVERGED    375 CALLS     2017 TOTAL
                     EDM=   .58E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          6.8776        2.8204       -.34120E-07    .89779E-04
   2  norm          5.5642        31.162       -.23185E-05   -.57166E-04
   3  Prefactor     8.3980        5.8125        .23974E-06    .47016E-04
   4  Prefactor     10.288        25.576        .32879E-05    .22619E-03
   5  norm          9.4767        7.8394       -.11259E-05    .49437E-03
   6  Prefactor     .10001E-03    40.445        .13574E-04** at limit **
   7  norm          .10000E-03    1.0502        .93347E-07** at limit **
   8  Prefactor     .10000E-03    5.9653        .29654E-06** at limit **
   9  norm          .60293        6.5981        .18221E-05   -.38233E-04
  10  norm          .10000E-03    5.1061       -.54260E-07** at limit **
  11  Prefactor     .10000E-03    8.3606        .20470E-05** at limit **
  12  Prefactor     .10000E-03    85.123        .19049E-05** at limit **
  13  norm          .10000E-03    10.308       -.10861E-05** at limit **
  14  Prefactor     .10000E-03    13.381        .14106E-05** at limit **
  15  Prefactor     .10000E-03    10.500       -.13420E-05** at limit **
  16  norm          .10000E-03    7.0876       -.98034E-06** at limit **
  17  Normalizat    1.1491        .22004        .65715E-06   -.57966E-05
  18  Prefactor     1.4520        .12536       -.36167E-06   -.27502E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 6.87761
  norm       = 5.56419
  Prefactor  = 8.39804
  Prefactor  = 10.2885
  norm       = 9.47667
  Prefactor  = 0.000100007
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.602933
  norm       = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.000100001
  norm       = 0.0001
  Normalizat = 1.1491
  Prefactor  = 1.45201
 **********
 **   18 **HESSE 
 **********

 FCN=   9985.676     FROM HESSE     STATUS=OK           246 CALLS     2263 TOTAL
                     EDM=   .54E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          6.8776        2.8232        .10297E-03   -1.5183    
   2  norm          5.5642        31.314        .17046E-03   -1.5236    
   3  Prefactor     8.3980        5.8103        .13832E-03   -1.5128    
   4  Prefactor     10.288        25.856        .12480E-03   -1.5066    
   5  norm          9.4767        7.9482        .65098E-03   -1.5092    
   6  Prefactor     .10001E-03    41.234        .49698E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    3.5403        .19533E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    5.9716        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .60293        35.296        .47669E-02   -1.5553    
  10  norm          .10000E-03    5.2002        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    8.5546        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    88.743        .39052E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    10.371        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    13.473        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    10.582        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    7.1351        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Normalizat    1.1491        .25285        .37772E-03   -.88191    
  18  Prefactor     1.4520        .14704        .20172E-03   -.78893    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.36625e-08
Minuit parameter uncertainties:
  1  2.82324
  2  26.4206
  3  5.81073
  4  25.8839
  5  7.94907
  6  0.00110013
  7  1.58659e-05
  8  2.22856e-05
  9  9.23126
  10  3.25631e-06
  11  0.000222238
  12  0.000543718
  13  0.000128435
  14  0.000193896
  15  0.000158939
  16  9.40019e-05
  17  0.253123
  18  0.147086
Done.

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

Extracting fit parameters...

4FGL J1418.4-0233
   Spectrum: LogParabola
269         norm:  6.029e-01  9.231e+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.452e+00  1.471e-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.149e+00  2.531e-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: 4.13e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.08e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/324661/likelihoodResults_278208001_278467201_4FGL_J1418.4-0233_daily_bin150.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) = 9985.65334031
delta logL = 0.0222792490404

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 9985.5754395
delta logL = 0.100180060783

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .16417E-01   1.0000         .10000E-03   10000.    
     2 'alpha     '    4.7499       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1151       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.4642       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   9985.575     FROM MIGRAD    STATUS=FAILED       104 CALLS      323 TOTAL
                     EDM=   .44E-03    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .15713E-01    3.1492        .22721E-03    .28110E-02
   2  alpha         4.7671        4.5719        .50000        .13112E-02
   3  Normalizat    1.1150        .10923        .38291E-03   -.15261E-04
   4  Prefactor     1.4640        .60881E-01    .20105E-03   -.46934E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   9985.575     FROM SIMPLEX   STATUS=UNCHANGED    104 CALLS      427 TOTAL
                     EDM=   .54E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .15713E-01    3.1492        .38974E-04    .28110E-02
   2  alpha         4.7671        4.5719        .12647E-01    .13112E-02
   3  Normalizat    1.1150        .10923        .83440E-04   -.15261E-04
   4  Prefactor     1.4640        .60881E-01    .46104E-05   -.46934E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   9985.575     FROM MIGRAD    STATUS=FAILED        72 CALLS      499 TOTAL
                     EDM=   .48E-03    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .15713E-01    3.4067        .36353E-06    .52150E-02
   2  alpha         4.7671        3.8977        .50000        .13269E-02
   3  Normalizat    1.1150        .12261        .30633E-05    .74226E-04
   4  Prefactor     1.4640        .68832E-01    .16084E-05    .56547E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0157127
  alpha      = 4.76713
  Normalizat = 1.11501
  Prefactor  = 1.46399
 **********
 **   18 **HESSE 
 **********

 FCN=   9985.575     FROM HESSE     STATUS=NOT POSDEF    27 CALLS      526 TOTAL
                     EDM=   .48E-03    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .15713E-01    3.4040        .37391E-06   -1.5683    
   2  alpha         4.7671        3.9054        .50000        1.1357    
   3  Normalizat    1.1150        .12295        .61266E-06   -.89271    
   4  Prefactor     1.4640        .69202E-01    .32168E-06   -.78553    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 0.000478189
Minuit parameter uncertainties:
  1  0.46109
  2  17.5161
  3  0.122985
  4  0.0692063
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/324661': 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): 1
logL (Free Index) = 9985.57542535
delta logL = 0.100194207367

Extracting fit parameters...

4FGL J1418.4-0233
   Spectrum: LogParabola
269         norm:  1.571e-02  4.611e-01  1.000e-04  1.000e+04 ( 1.000e-13)
270        alpha:  4.767e+00  1.752e+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.464e+00  6.921e-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.115e+00  1.230e-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 -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/324661/cmap_HighResolution_278208001_278467201_4FGL_J1418.4-0233_daily_bin150.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.08e-05', job_status='DONE', photon_flux_upper_limit='4.13e-08', time_completed='2021-09-09 08:42:38.625812', job_id='324661', GAL2='1.46', fit_tolerance='1e-08', EG2='1.12', EG='1.15', time_epoch_completed='1631202158.63', return_code2='1', ts='0.00', comment='SUCCESS', return_code='0', GAL='1.45', dlogl='1.00e-01', ts2='0.22', photon_index_error='0.00', photon_index='1.64' WHERE bin_id='150' AND source_name='4FGL J1418.4-0233' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  9 08:42:38 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0218>
Subject: Job 324661: <4FGL_J1418.4-0233_daily_bin150> in cluster <slac> Done

Job <4FGL_J1418.4-0233_daily_bin150> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Thu Sep  9 08:30:16 2021
Job was executed on host(s) <bullet0218>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  9 08:30:18 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:18 2021
Terminated at Thu Sep  9 08:42:39 2021
Results reported at Thu Sep  9 08:42:39 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1418.4-0233_daily_bin150 214.606 -2.5594 278208001 278467201 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 :                                   719.56 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             347.96 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   740 sec.
    Turnaround time :                            743 sec.

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

