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


Performing analysis on: 4FGL_J1418.4+3543_daily_bin9
RA = 214.623, Dec = 35.7192
tmin = 241660801, tmax = 241920001
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='312382', job_status='RUN', time_executed='2021-09-09 07:53:26.532110', time_epoch_executed='1631199206.53' WHERE source_name='4FGL J1418.4+3543' and cadence='daily' and bin_id='9'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/312382

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/312382/ft1_4FGL_J1418.4+3543_daily_bin9.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/312382/ft2_4FGL_J1418.4+3543_daily_bin9.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/312382/ft1_4FGL_J1418.4+3543_daily_bin9.fits outfile=/scratch/kocevski/312382/ft1_filteredMKT_4FGL_J1418.4+3543_daily_bin9.fits ra=214.623 dec=35.7192 rad=12.0 tmin=241660801.0 tmax=241920001.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 1.47
user 1.28
sys 0.17

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/312382/ft1_filtered_4FGL_J1418.4+3543_daily_bin9.fits" evtable="EVENTS" scfile=/scratch/kocevski/312382/ft2_4FGL_J1418.4+3543_daily_bin9.fits sctable="SC_DATA" outfile=/scratch/kocevski/312382/ltcube_241660801_241920001_4FGL_J1418.4+3543_daily_bin9.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/312382/ft2_4FGL_J1418.4+3543_daily_bin9.fits
.....................!
real 12.52
user 12.14
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/312382/ft1_filtered_4FGL_J1418.4+3543_daily_bin9.fits evtable="EVENTS" scfile=/scratch/kocevski/312382/ft2_4FGL_J1418.4+3543_daily_bin9.fits sctable="SC_DATA" expcube=/scratch/kocevski/312382/ltcube_241660801_241920001_4FGL_J1418.4+3543_daily_bin9.fits outfile=/scratch/kocevski/312382/expmap_241660801_241920001_4FGL_J1418.4+3543_daily_bin9.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/312382/ltcube_241660801_241920001_4FGL_J1418.4+3543_daily_bin9.fits
.....................!
real 190.86
user 185.83
sys 4.67

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/312382/ft1_filtered_4FGL_J1418.4+3543_daily_bin9.fits scfile=/scratch/kocevski/312382/ft2_4FGL_J1418.4+3543_daily_bin9.fits outfile=/scratch/kocevski/312382/cmap_241660801_241920001_4FGL_J1418.4+3543_daily_bin9.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.53
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/312382/ft1_filtered_4FGL_J1418.4+3543_daily_bin9.fits scfile=/scratch/kocevski/312382/ft2_4FGL_J1418.4+3543_daily_bin9.fits outfile=/scratch/kocevski/312382/cmap_HighResolution_241660801_241920001_4FGL_J1418.4+3543_daily_bin9.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/312382/ft1_filtered_4FGL_J1418.4+3543_daily_bin9.fits evtable="EVENTS" scfile=/scratch/kocevski/312382/ft2_4FGL_J1418.4+3543_daily_bin9.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/312382/Model_4FGL_J1418.4+3543_daily_bin9.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/312382/ft1_filtered_4FGL_J1418.4+3543_daily_bin9.fits.....................!
real 60.17
user 58.80
sys 1.20

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11008E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    5.7529       1.0000         .10000E-03   10000.    
     3 'Prefactor '    12.774       1.0000         .10000E-03   10000.    
     4 'norm      '    3.4428       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10784E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10307E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10367E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10606E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10784E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    1.8472       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .61134E-01   1.0000         .10000E-03   10000.    
    12 'Prefactor '    3.1800       1.0000         .10000E-03   10000.    
    13 'norm      '    9.5199       1.0000         .10000E-03   10000.    
    14 'Prefactor '    24.220       1.0000         .10000E-03   10000.    
    15 'norm      '    5.7280       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .17772E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    8.1716       1.0000         .10000E-03   10000.    
    18 'norm      '    19.563       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .20223       1.0000         .10000E-03   10000.    
    20 'Prefactor '    2.5041       1.0000         .10000E-03   10000.    
    21 'norm      '    .10170E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    171.68       1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.0351       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .98198       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=   8090.629     FROM MIGRAD    STATUS=CONVERGED    598 CALLS     3203 TOTAL
                     EDM=   .18E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    36.608       -.10633E-05** at limit **
   2  Prefactor     5.7575        10.343        .47497E-06    .20395E-05
   3  Prefactor     12.715        50.281       -.29478E-05   -.62610E-05
   4  norm          3.4438        1.6491        .60681E-07   -.21936E-04
   5  Prefactor     .10000E-03    2.4502        .45268E-07** at limit **
   6  norm          .10000E-03    3.3235       -.23814E-09** at limit **
   7  Prefactor     .10000E-03    5.7913        .19091E-07** at limit **
   8  Prefactor     .10000E-03    11.258        .55649E-07** at limit **
   9  norm          .10000E-03    1.7158        .16019E-06** at limit **
  10  Prefactor     1.8746        7.9514        .31894E-05   -.78455E-04
  11  Prefactor     .10867E-03    10.677       -.16745E-05** at limit **
  12  Prefactor     3.1827        3.1670        .14041E-06   -.83328E-04
  13  norm          9.5197        9.4707       -.56010E-06   -.14926E-04
  14  Prefactor     24.234        25.988        .17790E-05   -.16229E-04
  15  norm          5.7290        6.6295       -.49876E-07   -.15518E-03
  16  Prefactor     .10000E-03    36.676        .12030E-05** at limit **
  17  Prefactor     8.1661        25.958       -.13073E-05   -.33084E-04
  18  norm          19.562        9.7846       -.30308E-06   -.16918E-03
  19  Prefactor     .22297        7.8163        .13208E-05   -.15530E-03
  20  Prefactor     2.5028        3.7575       -.62771E-06   -.22433E-03
  21  norm          .10000E-03    .87838        .19069E-06** at limit **
  22  Prefactor     171.61        103.48       -.20840E-05   -.10221E-03
  23  Normalizat    1.0348        .15511       -.10684E-05   -.26555E-03
  24  Prefactor     .98235        .16514       -.15240E-06   -.28061E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 5.75751
  Prefactor  = 12.7146
  norm       = 3.44375
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 1.87456
  Prefactor  = 0.000108667
  Prefactor  = 3.18269
  norm       = 9.51968
  Prefactor  = 24.2338
  norm       = 5.72903
  Prefactor  = 0.0001
  Prefactor  = 8.16609
  norm       = 19.5624
  Prefactor  = 0.222966
  Prefactor  = 2.50277
  norm       = 0.0001
  Prefactor  = 171.606
  Normalizat = 1.03484
  Prefactor  = 0.982346
 **********
 **   18 **HESSE 
 **********

 FCN=   8090.629     FROM HESSE     STATUS=OK           419 CALLS     3622 TOTAL
                     EDM=   .79E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    36.598        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     5.7575        10.338        .16746E-03   -1.5228    
   3  Prefactor     12.715        50.489        .11208E-03   -1.4995    
   4  norm          3.4438        1.6494        .76652E-04   -1.5337    
   5  Prefactor     .10000E-03    2.5266        .13732E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    3.3271        .16014E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    5.8026        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    11.318        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    4.0476        .22740E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     1.8746        10.834        .15340E-02   -1.5434    
  11  Prefactor     .10867E-03    13.941        .76702E-01   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     3.1827        3.1618        .15018E-03   -1.5351    
  13  norm          9.5197        9.4222        .12988E-03   -1.5091    
  14  Prefactor     24.234        25.962        .81394E-04   -1.4723    
  15  norm          5.7290        6.6150        .16783E-03   -1.5229    
  16  Prefactor     .10000E-03    36.722        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     8.1661        25.980        .14025E-03   -1.5136    
  18  norm          19.562        9.8423        .90555E-04   -1.4823    
  19  Prefactor     .22297        11.739        .72499E-01   -1.5614    
  20  Prefactor     2.5028        3.7633        .20741E-03   -1.5392    
  21  norm          .10000E-03    1.2614        .14824E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     171.61        107.54        .15397E-03   -1.3080    
  23  Normalizat    1.0348        .18195        .23021E-03   -.91872    
  24  Prefactor     .98235        .19348        .26800E-03   -.93320    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.86464e-10
Minuit parameter uncertainties:
  1  4.41565e-05
  2  10.3411
  3  50.6599
  4  1.64946
  5  1.34703e-05
  6  4.68744e-06
  7  4.55866e-06
  8  2.29174e-06
  9  4.1327e-06
  10  9.01546
  11  0.0219895
  12  3.16192
  13  9.42371
  14  25.9737
  15  6.61588
  16  3.27041e-05
  17  26.0162
  18  9.84311
  19  3.23559
  20  3.76364
  21  4.05242e-05
  22  107.664
  23  0.182063
  24  0.193621
Done.

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

Extracting fit parameters...

4FGL J1418.4+3543
   Spectrum: LogParabola
283         norm:  1.000e-04  4.133e-06  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:  9.823e-01  1.936e-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.035e+00  1.821e-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: 4.03e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.29e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/312382/likelihoodResults_241660801_241920001_4FGL_J1418.4+3543_daily_bin9.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) = 8090.62972666
delta logL = -0.00117550054983

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8090.6285513
delta logL = -1.39448275149e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10016E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.0217       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0349       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .98235       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.

 FCN=   8090.629     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      217 TOTAL
                     EDM=   .60E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    216.25        .39937E-01** at limit **
   2  alpha         2.0276        3.7878        .42146       -.71349E-05
   3  Normalizat    1.0348        .57236E-01    .41708E-01    .67162E-05
   4  Prefactor     .98235        .63737E-01    .46046E-01    .86726E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 2.0276
  Normalizat = 1.03484
  Prefactor  = 0.982347
 **********
 **   18 **HESSE 
 **********

 FCN=   8090.629     FROM HESSE     STATUS=OK            33 CALLS      250 TOTAL
                     EDM=   .50E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    4.0604        .22771E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.0276        3.4248        .16858       -.19010    
   3  Normalizat    1.0348        .16705        .23021E-03   -.91872    
   4  Prefactor     .98235        .19086        .26800E-03   -.93320    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.04591e-11
Minuit parameter uncertainties:
  1  3.88465e-06
  2  2.45769
  3  0.167134
  4  0.190996
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/312382': 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) = 8090.62855113
delta logL = 3.28882379108e-08

Extracting fit parameters...

4FGL J1418.4+3543
   Spectrum: LogParabola
283         norm:  1.000e-04  3.885e-06  1.000e-04  1.000e+04 ( 1.000e-12)
284        alpha:  2.028e+00  2.458e+00  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:  9.823e-01  1.910e-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.035e+00  1.671e-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 -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/312382/cmap_HighResolution_241660801_241920001_4FGL_J1418.4+3543_daily_bin9.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.29e-05', job_status='DONE', photon_flux_upper_limit='4.03e-08', time_completed='2021-09-09 08:07:05.814800', job_id='312382', GAL2='0.98', fit_tolerance='1e-08', EG2='1.03', EG='1.03', time_epoch_completed='1631200025.81', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.98', dlogl='3.29e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.02' WHERE bin_id='9' AND source_name='4FGL J1418.4+3543' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  9 08:07:05 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0048>
Subject: Job 312382: <4FGL_J1418.4+3543_daily_bin9> in cluster <slac> Done

Job <4FGL_J1418.4+3543_daily_bin9> was submitted from host <rhel6-64o> by user <kocevski> in cluster <slac> at Thu Sep  9 07:50:33 2021
Job was executed on host(s) <bullet0048>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  9 07:50:35 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Sep  9 07:50:35 2021
Terminated at Thu Sep  9 08:07:06 2021
Results reported at Thu Sep  9 08:07:06 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1418.4+3543_daily_bin9 214.623 35.7192 241660801 241920001 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 :                                   818.21 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             299.55 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   991 sec.
    Turnaround time :                            993 sec.

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

