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


Performing analysis on: 4FGL_J1418.4+3543_daily_bin403
RA = 214.623, Dec = 35.7192
tmin = 343785601, tmax = 344044801
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='317242', job_status='RUN', time_executed='2021-09-09 08:05:40.264909', time_epoch_executed='1631199940.26' WHERE source_name='4FGL J1418.4+3543' and cadence='daily' and bin_id='403'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/317242

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/317242/ft1_4FGL_J1418.4+3543_daily_bin403.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/317242/ft2_4FGL_J1418.4+3543_daily_bin403.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/317242/ft1_4FGL_J1418.4+3543_daily_bin403.fits outfile=/scratch/kocevski/317242/ft1_filteredMKT_4FGL_J1418.4+3543_daily_bin403.fits ra=214.623 dec=35.7192 rad=12.0 tmin=343785601.0 tmax=344044801.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 2.82
user 2.60
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/317242/ft2_4FGL_J1418.4+3543_daily_bin403.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/317242/ft1_filteredMKT_4FGL_J1418.4+3543_daily_bin403.fits evtable="EVENTS" outfile="/scratch/kocevski/317242/ft1_filtered_4FGL_J1418.4+3543_daily_bin403.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.52
user 0.28
sys 0.19

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/317242/ft1_filtered_4FGL_J1418.4+3543_daily_bin403.fits" evtable="EVENTS" scfile=/scratch/kocevski/317242/ft2_4FGL_J1418.4+3543_daily_bin403.fits sctable="SC_DATA" outfile=/scratch/kocevski/317242/ltcube_343785601_344044801_4FGL_J1418.4+3543_daily_bin403.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/317242/ft2_4FGL_J1418.4+3543_daily_bin403.fits
.....................!
real 10.49
user 10.15
sys 0.28

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/317242/ft1_filtered_4FGL_J1418.4+3543_daily_bin403.fits evtable="EVENTS" scfile=/scratch/kocevski/317242/ft2_4FGL_J1418.4+3543_daily_bin403.fits sctable="SC_DATA" expcube=/scratch/kocevski/317242/ltcube_343785601_344044801_4FGL_J1418.4+3543_daily_bin403.fits outfile=/scratch/kocevski/317242/expmap_343785601_344044801_4FGL_J1418.4+3543_daily_bin403.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/317242/ltcube_343785601_344044801_4FGL_J1418.4+3543_daily_bin403.fits
.....................!
real 155.65
user 151.37
sys 3.77

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/317242/ft1_filtered_4FGL_J1418.4+3543_daily_bin403.fits scfile=/scratch/kocevski/317242/ft2_4FGL_J1418.4+3543_daily_bin403.fits outfile=/scratch/kocevski/317242/cmap_343785601_344044801_4FGL_J1418.4+3543_daily_bin403.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.47
user 0.31
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/317242/ft1_filtered_4FGL_J1418.4+3543_daily_bin403.fits scfile=/scratch/kocevski/317242/ft2_4FGL_J1418.4+3543_daily_bin403.fits outfile=/scratch/kocevski/317242/cmap_HighResolution_343785601_344044801_4FGL_J1418.4+3543_daily_bin403.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.33
sys 0.14

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/317242/ft1_filtered_4FGL_J1418.4+3543_daily_bin403.fits', '/scratch/kocevski/317242/ft2_4FGL_J1418.4+3543_daily_bin403.fits', expMap='/scratch/kocevski/317242/expmap_343785601_344044801_4FGL_J1418.4+3543_daily_bin403.fits', expCube='/scratch/kocevski/317242/ltcube_343785601_344044801_4FGL_J1418.4+3543_daily_bin403.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/317242/Model_4FGL_J1418.4+3543_daily_bin403.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/317242/ft1_filtered_4FGL_J1418.4+3543_daily_bin403.fits
Spacecraft file(s): /scratch/kocevski/317242/ft2_4FGL_J1418.4+3543_daily_bin403.fits
Exposure map: /scratch/kocevski/317242/expmap_343785601_344044801_4FGL_J1418.4+3543_daily_bin403.fits
Exposure cube: /scratch/kocevski/317242/ltcube_343785601_344044801_4FGL_J1418.4+3543_daily_bin403.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/317242/Model_4FGL_J1418.4+3543_daily_bin403.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) = 7358.84767128

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    4.4709       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10082E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    35.508       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .69442E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    14.844       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    13.189       1.0000         .10000E-03   10000.    
    10 'Prefactor '    8.6355       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    4.0538       1.0000         .10000E-03   10000.    
    13 'norm      '    .10139E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .11782E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    1.3682       1.0000         .10000E-03   10000.    
    16 'Prefactor '    39.699       1.0000         .10000E-03   10000.    
    17 'Prefactor '    25.031       1.0000         .10000E-03   10000.    
    18 'norm      '    .78246E-01   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    3.0905       1.0000         .10000E-03   10000.    
    21 'norm      '    .10411E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.3664       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .62098       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=   7358.829     FROM MIGRAD    STATUS=CONVERGED    561 CALLS     2773 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    15.362       -.16366E-05** at limit **
   2  Prefactor     4.4694        14.262       -.34764E-06   -.36143E-04
   3  Prefactor     .10000E-03    65.650       -.10512E-04** at limit **
   4  norm          35.508        3.9207       -.72807E-08    .29868E-04
   5  Prefactor     .10029E-03    2.0857       -.44268E-06** at limit **
   6  norm          14.836        20.149        .38925E-06   -.40312E-04
   7  Prefactor     .10000E-03    4.4494       -.80225E-07** at limit **
   8  Prefactor     .10000E-03    5.0173       -.50099E-07** at limit **
   9  norm          13.190        5.2509        .17019E-05   -.85916E-03
  10  Prefactor     8.6375        9.0120        .62888E-07   -.77006E-04
  11  Prefactor     .10000E-03    5.5139       -.55345E-07** at limit **
  12  Prefactor     4.0533        4.0007       -.35973E-06   -.24033E-03
  13  norm          .10000E-03    17.086        .16173E-05** at limit **
  14  Prefactor     .10002E-03    77.219        .18322E-04** at limit **
  15  norm          1.3537        11.789       -.58672E-05   -.67554E-03
  16  Prefactor     39.702        53.719        .67803E-05   -.78157E-04
  17  Prefactor     25.030        30.367        .81915E-07   -.27323E-05
  18  norm          .11305        5.8815        .74878E-06   -.21712E-03
  19  Prefactor     .10000E-03    13.647        .61922E-06** at limit **
  20  Prefactor     3.1002        9.6725       -.12208E-05   -.40218E-03
  21  norm          .10000E-03    1.4082        .32018E-06** at limit **
  22  Prefactor     .10000E-03    34.741        .28012E-06** at limit **
  23  Normalizat    1.3666        .18003        .44588E-06   -.41668E-04
  24  Prefactor     .62074        .18820       -.38374E-06   -.33000E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 4.46937
  Prefactor  = 0.000100003
  norm       = 35.5075
  Prefactor  = 0.000100285
  norm       = 14.8359
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 13.1903
  Prefactor  = 8.63752
  Prefactor  = 0.0001
  Prefactor  = 4.05326
  norm       = 0.0001
  Prefactor  = 0.000100018
  norm       = 1.35369
  Prefactor  = 39.7022
  Prefactor  = 25.0305
  norm       = 0.113054
  Prefactor  = 0.0001
  Prefactor  = 3.10018
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.36657
  Prefactor  = 0.620739
 **********
 **   18 **HESSE 
 **********

 FCN=   7358.829     FROM HESSE     STATUS=OK           405 CALLS     3178 TOTAL
                     EDM=   .83E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    15.345        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     4.4694        14.245        .19043E-03   -1.5285    
   3  Prefactor     .10000E-03    64.893        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          35.508        3.9250        .54213E-04   -1.4515    
   5  Prefactor     .10029E-03    51.699        .23295E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          14.836        20.169        .10396E-03   -1.4937    
   7  Prefactor     .10000E-03    4.4502        .17672E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    5.0207        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          13.190        5.1651        .11029E-03   -1.4981    
  10  Prefactor     8.6375        9.0008        .13641E-03   -1.5120    
  11  Prefactor     .10000E-03    5.5240        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     4.0533        4.0105        .16136E-03   -1.5305    
  13  norm          .10000E-03    17.294        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10002E-03    74.678        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          1.3537        13.805        .37289E-03   -1.5475    
  16  Prefactor     39.702        53.920        .63617E-04   -1.4447    
  17  Prefactor     25.030        30.358        .80067E-04   -1.4707    
  18  norm          .11305        7.8549        .71637E-01   -1.5641    
  19  Prefactor     .10000E-03    13.779        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     3.1002        8.5980        .23070E-03   -1.5356    
  21  norm          .10000E-03    2.3873        .17291E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    34.746        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    1.3666        .21364        .23218E-03   -.81601    
  24  Prefactor     .62074        .22162        .35683E-03   -1.0672    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.32274e-09
Minuit parameter uncertainties:
  1  6.88278e-05
  2  14.256
  3  0.000899656
  4  3.92503
  5  0.0076843
  6  20.1783
  7  2.49745e-06
  8  6.42308e-07
  9  5.16524
  10  9.00219
  11  8.59103e-06
  12  4.0108
  13  0.000156118
  14  0.00231113
  15  8.64813
  16  53.9861
  17  30.3764
  18  1.88412
  19  8.78555e-06
  20  8.60146
  21  2.58688e-05
  22  1.7449e-05
  23  0.21378
  24  0.221928
Done.

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

Extracting fit parameters...

4FGL J1418.4+3543
   Spectrum: LogParabola
283         norm:  1.319e+01  5.165e+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

GAL_V02
   Spectrum: PowerLaw
575    Prefactor:  6.207e-01  2.219e-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:  1.367e+00  2.138e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 21.15
Ra Dec: 214.623 35.719
Photon Index (Fixed Index): 2.02 +/- 0.00
Photon Flux (Fixed Index): 8.01e-08 +/- 3.14e-08
Energy Flux (Fixed Index): 4.56e-05 +/- 1.79e-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) = 7358.51480555
delta logL = 0.313997865859

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7358.48713133
delta logL = 0.341672093786

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    12.733       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.7304       1.0000          .0000       5.0000    
     3 'Normalizat'    1.3909       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .60647       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=   7358.487     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      217 TOTAL
                     EDM=   .22E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY= 10.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          12.734        5.4860        .64583E-06   -.20359E-03
   2  alpha         1.7306        .34186        .13180E-04    .23327E-05
   3  Normalizat    1.3909        .17441       -.85212E-06   -.17591E-03
   4  Prefactor     .60650        .18693        .40331E-06   -.13143E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 12.7338
  alpha      = 1.7306
  Normalizat = 1.3909
  Prefactor  = 0.606503
 **********
 **   18 **HESSE 
 **********

 FCN=   7358.487     FROM HESSE     STATUS=OK            29 CALLS      246 TOTAL
                     EDM=   .27E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          12.734        5.4411        .11226E-03   -1.4994    
   2  alpha         1.7306        .33946        .10408E-01   -.31284    
   3  Normalizat    1.3909        .20522        .23058E-03   -.80892    
   4  Prefactor     .60650        .22007        .36082E-03   -1.0731    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.70328e-10
Minuit parameter uncertainties:
  1  5.4413
  2  0.340623
  3  0.205338
  4  0.220384
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/317242': 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) = 7358.48713088
delta logL = 0.341672542752

Extracting fit parameters...

4FGL J1418.4+3543
   Spectrum: LogParabola
283         norm:  1.273e+01  5.441e+00  1.000e-04  1.000e+04 ( 1.000e-12)
284        alpha:  1.731e+00  3.406e-01  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:  6.065e-01  2.204e-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:  1.391e+00  2.053e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 21.78
Ra Dec: 214.623 35.719
Photon Index (Free Index): 1.73 +/- 0.34
Photon Flux (Free Index): 5.88e-08 +/- 3.37e-08
Energy Flux (Free Index): 6.16e-05 +/- 3.62e-05

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/317242/cmap_HighResolution_343785601_344044801_4FGL_J1418.4+3543_daily_bin403.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='8.01e-08', energy_flux2='6.16e-05', photon_flux_error='3.14e-08', dlogl='3.42e-01', energy_flux='4.56e-05', photon_flux2='5.88e-08', job_status='DONE', time_completed='2021-09-09 08:14:57.400275', photon_index_error2='0.34', photon_index2='1.73', ts='21.15', fit_tolerance='1e-08', GAL='0.62', photon_index_error='0.00', energy_flux_error2='3.62e-05', EG='1.37', time_epoch_completed='1631200497.4', return_code='0', job_id='317242', GAL2='0.61', EG2='1.39', return_code2='0', energy_flux_error='1.79e-05', photon_flux_error2='3.37e-08', ts2='21.78', photon_index='2.02' WHERE bin_id='403' AND source_name='4FGL J1418.4+3543' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  9 08:14:57 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0168>
Subject: Job 317242: <4FGL_J1418.4+3543_daily_bin403> in cluster <slac> Done

Job <4FGL_J1418.4+3543_daily_bin403> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Thu Sep  9 08:05:24 2021
Job was executed on host(s) <bullet0168>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  9 08:05:25 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:05:25 2021
Terminated at Thu Sep  9 08:14:58 2021
Results reported at Thu Sep  9 08:14:58 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1418.4+3543_daily_bin403 214.623 35.7192 343785601 344044801 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 :                                   553.56 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             341.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   572 sec.
    Turnaround time :                            574 sec.

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

