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


Performing analysis on: 4FGL_J1418.4+3543_daily_bin651
RA = 214.623, Dec = 35.7192
tmin = 408067201, tmax = 408326401
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='318773', job_status='RUN', time_executed='2021-09-09 08:10:49.738805', time_epoch_executed='1631200249.74' WHERE source_name='4FGL J1418.4+3543' and cadence='daily' and bin_id='651'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/318773

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/318773/ft1_4FGL_J1418.4+3543_daily_bin651.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/318773/ft2_4FGL_J1418.4+3543_daily_bin651.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/318773/ft1_4FGL_J1418.4+3543_daily_bin651.fits outfile=/scratch/kocevski/318773/ft1_filteredMKT_4FGL_J1418.4+3543_daily_bin651.fits ra=214.623 dec=35.7192 rad=12.0 tmin=408067201.0 tmax=408326401.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.85
user 3.62
sys 0.20

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/318773/ft2_4FGL_J1418.4+3543_daily_bin651.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/318773/ft2_4FGL_J1418.4+3543_daily_bin651.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/318773/ft1_filteredMKT_4FGL_J1418.4+3543_daily_bin651.fits evtable="EVENTS" outfile="/scratch/kocevski/318773/ft1_filtered_4FGL_J1418.4+3543_daily_bin651.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.33
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/318773/ft1_filtered_4FGL_J1418.4+3543_daily_bin651.fits" evtable="EVENTS" scfile=/scratch/kocevski/318773/ft2_4FGL_J1418.4+3543_daily_bin651.fits sctable="SC_DATA" outfile=/scratch/kocevski/318773/ltcube_408067201_408326401_4FGL_J1418.4+3543_daily_bin651.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/318773/ft2_4FGL_J1418.4+3543_daily_bin651.fits
.....................!
real 11.66
user 11.28
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/318773/ft1_filtered_4FGL_J1418.4+3543_daily_bin651.fits evtable="EVENTS" scfile=/scratch/kocevski/318773/ft2_4FGL_J1418.4+3543_daily_bin651.fits sctable="SC_DATA" expcube=/scratch/kocevski/318773/ltcube_408067201_408326401_4FGL_J1418.4+3543_daily_bin651.fits outfile=/scratch/kocevski/318773/expmap_408067201_408326401_4FGL_J1418.4+3543_daily_bin651.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/318773/ltcube_408067201_408326401_4FGL_J1418.4+3543_daily_bin651.fits
.....................!
real 192.48
user 187.38
sys 4.73

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

Setting source of interest to:
4FGL J1418.4+3543 @ 214.623 35.7192

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/318773/ft1_filtered_4FGL_J1418.4+3543_daily_bin651.fits scfile=/scratch/kocevski/318773/ft2_4FGL_J1418.4+3543_daily_bin651.fits outfile=/scratch/kocevski/318773/cmap_408067201_408326401_4FGL_J1418.4+3543_daily_bin651.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.623 yref=35.7192 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.52
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/318773/ft1_filtered_4FGL_J1418.4+3543_daily_bin651.fits scfile=/scratch/kocevski/318773/ft2_4FGL_J1418.4+3543_daily_bin651.fits outfile=/scratch/kocevski/318773/cmap_HighResolution_408067201_408326401_4FGL_J1418.4+3543_daily_bin651.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.623 yref=35.7192 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.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/318773/ft1_filtered_4FGL_J1418.4+3543_daily_bin651.fits evtable="EVENTS" scfile=/scratch/kocevski/318773/ft2_4FGL_J1418.4+3543_daily_bin651.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/318773/Model_4FGL_J1418.4+3543_daily_bin651.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/318773/ft1_filtered_4FGL_J1418.4+3543_daily_bin651.fits....................!
real 30.97
user 29.46
sys 1.22

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/318773/ft1_filtered_4FGL_J1418.4+3543_daily_bin651.fits', '/scratch/kocevski/318773/ft2_4FGL_J1418.4+3543_daily_bin651.fits', expMap='/scratch/kocevski/318773/expmap_408067201_408326401_4FGL_J1418.4+3543_daily_bin651.fits', expCube='/scratch/kocevski/318773/ltcube_408067201_408326401_4FGL_J1418.4+3543_daily_bin651.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/318773/Model_4FGL_J1418.4+3543_daily_bin651.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1418.4+3543'

4FGL J1418.4+3543
   Spectrum: LogParabola
283         norm:  4.095e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
284        alpha:  2.016e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
285         beta:  6.612e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
286           Eb:  8.292e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/318773/ft1_filtered_4FGL_J1418.4+3543_daily_bin651.fits
Spacecraft file(s): /scratch/kocevski/318773/ft2_4FGL_J1418.4+3543_daily_bin651.fits
Exposure map: /scratch/kocevski/318773/expmap_408067201_408326401_4FGL_J1418.4+3543_daily_bin651.fits
Exposure cube: /scratch/kocevski/318773/ltcube_408067201_408326401_4FGL_J1418.4+3543_daily_bin651.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/318773/Model_4FGL_J1418.4+3543_daily_bin651.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) = 2908.70181698

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    24.257       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    16.056       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10302E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .11163E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10038E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    13.603       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10048E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    10.698       1.0000         .10000E-03   10000.    
    14 'Prefactor '    56.592       1.0000         .10000E-03   10000.    
    15 'norm      '    20.655       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .12230E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    70.710       1.0000         .10000E-03   10000.    
    18 'norm      '    .10084E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    39.636       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    8.0254       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10088E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    .37794       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.5660       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5780E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   2908.682     FROM MIGRAD    STATUS=CONVERGED    531 CALLS     2682 TOTAL
                     EDM=   .72E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    59.826       -.27473E-04** at limit **
   2  Prefactor     24.248        37.340       -.78613E-05   -.86241E-04
   3  Prefactor     .10000E-03    132.56       -.13717E-04** at limit **
   4  norm          16.057        8.2160        .13623E-06   -.39687E-04
   5  Prefactor     .10003E-03    6.2776        .11191E-05** at limit **
   6  norm          .10000E-03    18.941        .59697E-05** at limit **
   7  Prefactor     .10000E-03    19.768       -.10749E-05** at limit **
   8  Prefactor     .10000E-03    113.86        .61174E-04** at limit **
   9  norm          .10000E-03    5.0752       -.15615E-06** at limit **
  10  Prefactor     .10000E-03    17.055       -.47553E-05** at limit **
  11  Prefactor     13.634        47.637        .57831E-04    .16507E-04
  12  Prefactor     .10000E-03    3.6896       -.25178E-06** at limit **
  13  norm          10.703        17.780       -.18021E-05   -.10082E-04
  14  Prefactor     56.439        113.94       -.18662E-03   -.58277E-04
  15  norm          20.659        17.436        .32953E-05   -.96136E-04
  16  Prefactor     .10001E-03    103.42        .91249E-04** at limit **
  17  Prefactor     70.713        63.555        .13771E-05   -.23004E-04
  18  norm          .10000E-03    11.987       -.40540E-05** at limit **
  19  Prefactor     39.635        31.185       -.88512E-06    .27511E-05
  20  Prefactor     .10000E-03    8.9849        .10118E-06** at limit **
  21  norm          8.0243        5.6639        .16190E-05    .19684E-03
  22  Prefactor     .10000E-03    165.33       -.16357E-03** at limit **
  23  Normalizat    .37793        .31936        .12816E-04   -.52579E-04
  24  Prefactor     1.5660        .31767       -.10742E-05   -.10260E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 24.2479
  Prefactor  = 0.0001
  norm       = 16.0567
  Prefactor  = 0.000100025
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100004
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 13.6336
  Prefactor  = 0.0001
  norm       = 10.7032
  Prefactor  = 56.4387
  norm       = 20.6585
  Prefactor  = 0.000100008
  Prefactor  = 70.7131
  norm       = 0.0001
  Prefactor  = 39.6345
  Prefactor  = 0.0001
  norm       = 8.02429
  Prefactor  = 0.0001
  Normalizat = 0.377929
  Prefactor  = 1.56597
 **********
 **   18 **HESSE 
 **********

 FCN=   2908.682     FROM HESSE     STATUS=OK           393 CALLS     3075 TOTAL
                     EDM=   .25E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    59.860        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     24.248        36.959        .81332E-04   -1.4723    
   3  Prefactor     .10000E-03    132.74        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          16.057        8.2159        .99953E-04   -1.4906    
   5  Prefactor     .10003E-03    11.855        .24946E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    18.955        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    19.775        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    114.14        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    5.1456        .11860E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    17.060        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     13.634        47.458        .10860E-03   -1.4969    
  12  Prefactor     .10000E-03    3.7333        .10107E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          10.703        17.776        .12249E-03   -1.5054    
  14  Prefactor     56.439        114.09        .26662E-03   -1.4204    
  15  norm          20.659        17.401        .88130E-04   -1.4799    
  16  Prefactor     .10001E-03    103.79        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     70.713        63.244        .47739E-04   -1.4024    
  18  norm          .10000E-03    11.997        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     39.635        31.150        .63666E-04   -1.4448    
  20  Prefactor     .10000E-03    8.9910        .15787E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          8.0243        5.6512        .10202E-03   -1.5141    
  22  Prefactor     .10000E-03    165.14        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    .37793        .34067        .40050E-03   -1.1846    
  24  Prefactor     1.5660        .35239        .22643E-03   -.75709    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.50361e-09
Minuit parameter uncertainties:
  1  6.90108e-05
  2  36.9938
  3  0.000297895
  4  8.21644
  5  0.00109141
  6  4.79322e-05
  7  0.000122115
  8  0.00136682
  9  6.14857e-05
  10  0.000152389
  11  47.5903
  12  5.69492e-05
  13  17.7843
  14  114.538
  15  17.4051
  16  0.00186713
  17  63.3042
  18  9.02979e-06
  19  31.1627
  20  4.02836e-05
  21  5.65157
  22  7.1075e-05
  23  0.342555
  24  0.352941
Done.

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

Extracting fit parameters...

4FGL J1418.4+3543
   Spectrum: LogParabola
283         norm:  1.000e-04  6.149e-05  1.000e-04  1.000e+04 ( 1.000e-12)
284        alpha:  2.016e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
285         beta:  6.612e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
286           Eb:  8.292e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
575    Prefactor:  1.566e+00  3.529e-01  0.000e+00  1.000e+01 ( 1.000e+00)
576        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
577        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
574   Normalization:  3.779e-01  3.426e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 214.623 35.719
Photon Flux Upper Limit: 9.51e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.41e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/318773/likelihoodResults_408067201_408326401_4FGL_J1418.4+3543_daily_bin651.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): 0
logL (Free Index) = 2908.6827551
delta logL = -0.0009162347028

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 2908.68183886
delta logL = 9.09494701773e-10

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10085E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.0331       1.0000          .0000       5.0000    
     3 'Normalizat'    .37791       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.5660       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5780E+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=   2908.619     FROM MIGRAD    STATUS=FAILED       137 CALLS      282 TOTAL
                     EDM=   .23E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .63062E-01    9.4472        .77351E-02    .22850E-02
   2  alpha         5.0000        4.8751        .50000    ** at limit **
   3  Normalizat    .32388        .95485E-01    .40049E-02    .96462E-04
   4  Prefactor     1.6049        .88090E-01    .22643E-03   -.60250E-06
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   2908.619     FROM SIMPLEX   STATUS=UNCHANGED    152 CALLS      434 TOTAL
                     EDM=   .16E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .63062E-01    9.4472        .24134E-06    .22850E-02
   2  alpha         5.0000        4.8751        .21751E-01** at limit **
   3  Normalizat    .32388        .95485E-01    .89348E-07    .96462E-04
   4  Prefactor     1.6049        .88090E-01    .73323E-08   -.60250E-06
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   2908.619     FROM MIGRAD    STATUS=CONVERGED     43 CALLS      477 TOTAL
                     EDM=   .38E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .63062E-01    .18938        .32060E-03    .80657E-02
   2  alpha         5.0000        4.8837        .11762    ** at limit **
   3  Normalizat    .32388        .35249        .80097E-03   -.90910E-05
   4  Prefactor     1.6049        .36762        .90571E-05   -.79079E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0630616
  alpha      = 5
  Normalizat = 0.323884
  Prefactor  = 1.60489
 **********
 **   18 **HESSE 
 **********

 FCN=   2908.619     FROM HESSE     STATUS=OK            27 CALLS      504 TOTAL
                     EDM=   .12E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .63062E-01    .18459        .64120E-04   -1.5658    
   2  alpha         5.0000        4.8737        .47047E-01    7.8540    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    .32388        .35090        .32039E-04   -1.2144    
   4  Prefactor     1.6049        .36674        .18114E-05   -.74643    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.23475e-12
Minuit parameter uncertainties:
  1  0.184589
  2  2.16192e-06
  3  0.353317
  4  0.367356
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/318773': 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) = 2908.61876334
delta logL = 0.0630755220573

Extracting fit parameters...

4FGL J1418.4+3543
   Spectrum: LogParabola
283         norm:  6.306e-02  1.846e-01  1.000e-04  1.000e+04 ( 1.000e-12)
284        alpha:  5.000e+00  2.162e-06  0.000e+00  5.000e+00 ( 1.000e+00)
285         beta:  6.612e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
286           Eb:  8.292e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
575    Prefactor:  1.605e+00  3.674e-01  0.000e+00  1.000e+01 ( 1.000e+00)
576        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
577        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
574   Normalization:  3.239e-01  3.533e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 214.623 35.719

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/318773/cmap_HighResolution_408067201_408326401_4FGL_J1418.4+3543_daily_bin651.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.41e-05', job_status='DONE', photon_flux_upper_limit='9.51e-08', time_completed='2021-09-09 08:18:53.395483', job_id='318773', GAL2='1.60', fit_tolerance='1e-08', EG2='0.32', EG='0.38', time_epoch_completed='1631200733.4', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.57', dlogl='6.31e-02', ts2='0.16', photon_index_error='0.00', photon_index='2.02' WHERE bin_id='651' AND source_name='4FGL J1418.4+3543' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  9 08:18:53 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0208>
Subject: Job 318773: <4FGL_J1418.4+3543_daily_bin651> in cluster <slac> Done

Job <4FGL_J1418.4+3543_daily_bin651> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Thu Sep  9 08:10:27 2021
Job was executed on host(s) <bullet0208>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  9 08:10:29 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:10:29 2021
Terminated at Thu Sep  9 08:18:54 2021
Results reported at Thu Sep  9 08:18:54 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1418.4+3543_daily_bin651 214.623 35.7192 408067201 408326401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1418.4+3543 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   481.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             347.83 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   504 sec.
    Turnaround time :                            507 sec.

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

