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


Performing analysis on: 4FGL_J1418.4+3543_daily_bin51
RA = 214.623, Dec = 35.7192
tmin = 252547201, tmax = 252806401
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='312444', job_status='RUN', time_executed='2021-09-09 07:54:31.953302', time_epoch_executed='1631199271.95' WHERE source_name='4FGL J1418.4+3543' and cadence='daily' and bin_id='51'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/312444

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/312444/ft1_4FGL_J1418.4+3543_daily_bin51.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/312444/ft2_4FGL_J1418.4+3543_daily_bin51.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/312444/ft1_4FGL_J1418.4+3543_daily_bin51.fits outfile=/scratch/kocevski/312444/ft1_filteredMKT_4FGL_J1418.4+3543_daily_bin51.fits ra=214.623 dec=35.7192 rad=12.0 tmin=252547201.0 tmax=252806401.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.42
user 1.22
sys 0.16

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/312444/ft1_filtered_4FGL_J1418.4+3543_daily_bin51.fits evtable="EVENTS" scfile=/scratch/kocevski/312444/ft2_4FGL_J1418.4+3543_daily_bin51.fits sctable="SC_DATA" expcube=/scratch/kocevski/312444/ltcube_252547201_252806401_4FGL_J1418.4+3543_daily_bin51.fits outfile=/scratch/kocevski/312444/expmap_252547201_252806401_4FGL_J1418.4+3543_daily_bin51.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/312444/ltcube_252547201_252806401_4FGL_J1418.4+3543_daily_bin51.fits
.....................!
real 191.29
user 186.74
sys 4.20

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/312444/ft1_filtered_4FGL_J1418.4+3543_daily_bin51.fits scfile=/scratch/kocevski/312444/ft2_4FGL_J1418.4+3543_daily_bin51.fits outfile=/scratch/kocevski/312444/cmap_252547201_252806401_4FGL_J1418.4+3543_daily_bin51.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.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/312444/ft1_filtered_4FGL_J1418.4+3543_daily_bin51.fits scfile=/scratch/kocevski/312444/ft2_4FGL_J1418.4+3543_daily_bin51.fits outfile=/scratch/kocevski/312444/cmap_HighResolution_252547201_252806401_4FGL_J1418.4+3543_daily_bin51.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.36
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.9425       1.0000         .10000E-03   10000.    
     2 'Prefactor '    18.914       1.0000         .10000E-03   10000.    
     3 'Prefactor '    4.8172       1.0000         .10000E-03   10000.    
     4 'norm      '    1.8886       1.0000         .10000E-03   10000.    
     5 'Prefactor '    5.3489       1.0000         .10000E-03   10000.    
     6 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    10.394       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    9.6744       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .13764E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .11066E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10120E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    4.0559       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10062E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    2.0062       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .51026E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    3.6731       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .14438E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    .98744       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .88172       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=   5784.846     FROM MIGRAD    STATUS=CONVERGED    570 CALLS     2736 TOTAL
                     EDM=   .71E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.0735        106.69        .23118E-04   -.64875E-05
   2  Prefactor     18.921        19.372       -.63538E-05   -.19747E-04
   3  Prefactor     4.8389        221.14        .23216E-04   -.79253E-05
   4  norm          1.8886        1.3677       -.39456E-07   -.39555E-03
   5  Prefactor     5.3480        4.3572        .33937E-06   -.33170E-03
   6  norm          .10000E-03    4.4595       -.81672E-07** at limit **
   7  Prefactor     10.388        24.236        .27574E-04    .94248E-05
   8  Prefactor     .10000E-03    6.4527        .27741E-07** at limit **
   9  norm          .10000E-03    1.0465        .29991E-07** at limit **
  10  Prefactor     9.6880        17.380       -.13531E-04   -.26507E-03
  11  Prefactor     .10000E-03    26.633        .34513E-05** at limit **
  12  Prefactor     .10000E-03    1.1337        .32375E-07** at limit **
  13  norm          .10000E-03    21.733       -.10052E-05** at limit **
  14  Prefactor     .10000E-03    15.030        .67291E-06** at limit **
  15  norm          4.0565        3.9253        .65540E-06    .97383E-03
  16  Prefactor     .10000E-03    13.042       -.25249E-06** at limit **
  17  Prefactor     .10000E-03    11.298        .29123E-07** at limit **
  18  norm          .10000E-03    2.1132       -.29911E-08** at limit **
  19  Prefactor     2.0066        6.0640        .26386E-05   -.49039E-03
  20  Prefactor     .10000E-03    4.0788        .83387E-07** at limit **
  21  norm          3.6749        1.7391        .23761E-07   -.23456E-03
  22  Prefactor     .10000E-03    52.470       -.16375E-05** at limit **
  23  Normalizat    .98745        .16770       -.13534E-06   -.15352E-03
  24  Prefactor     .88168        .17867       -.13595E-05   -.60308E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.07352
  Prefactor  = 18.9215
  Prefactor  = 4.83888
  norm       = 1.88863
  Prefactor  = 5.34804
  norm       = 0.0001
  Prefactor  = 10.3879
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 9.68798
  Prefactor  = 0.000100005
  Prefactor  = 0.0001
  norm       = 0.000100001
  Prefactor  = 0.0001
  norm       = 4.0565
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 2.00657
  Prefactor  = 0.0001
  norm       = 3.67486
  Prefactor  = 0.0001
  Normalizat = 0.987446
  Prefactor  = 0.881683
 **********
 **   18 **HESSE 
 **********

 FCN=   5784.846     FROM HESSE     STATUS=OK           397 CALLS     3133 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.0735        106.65        .15226E-03   -1.5176    
   2  Prefactor     18.921        19.360        .92094E-04   -1.4838    
   3  Prefactor     4.8389        224.04        .18329E-03   -1.5268    
   4  norm          1.8886        1.3620        .72921E-04   -1.5433    
   5  Prefactor     5.3480        4.3710        .13455E-03   -1.5245    
   6  norm          .10000E-03    4.4665        .15686E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     10.388        24.227        .12428E-03   -1.5063    
   8  Prefactor     .10000E-03    6.4723        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    1.0495        .75959E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     9.6880        17.611        .12884E-03   -1.5085    
  11  Prefactor     .10000E-03    26.895        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    1.1419        .79057E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    22.287        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    15.081        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          4.0565        3.9459        .72076E-03   -1.5305    
  16  Prefactor     .10000E-03    13.045        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    11.316        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    2.1134        .10798E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     2.0066        5.9889        .29233E-03   -1.5425    
  20  Prefactor     .10000E-03    12.681        .29191E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          3.6749        1.7044        .64718E-04   -1.5325    
  22  Prefactor     .10000E-03    52.512        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    .98745        .20297        .21510E-03   -.93452    
  24  Prefactor     .88168        .21418        .25921E-03   -.96784    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.35989e-09
Minuit parameter uncertainties:
  1  55.0494
  2  19.3666
  3  66.1154
  4  1.36207
  5  4.37122
  6  1.81297e-05
  7  24.2499
  8  6.09516e-06
  9  3.31818e-06
  10  17.6201
  11  0.000700081
  12  3.40599e-06
  13  0.000312228
  14  4.76642e-05
  15  3.94614
  16  1.42996e-05
  17  6.84073e-06
  18  4.12966e-07
  19  5.99065
  20  1.8599e-05
  21  1.70442
  22  1.20654e-05
  23  0.203124
  24  0.214381
Done.

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

Extracting fit parameters...

4FGL J1418.4+3543
   Spectrum: LogParabola
283         norm:  1.000e-04  3.318e-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:  8.817e-01  2.144e-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:  9.874e-01  2.031e-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: 3.38e-08 ph cm-2 s-1
Energy Flux Upper Limit: 1.92e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/312444/likelihoodResults_252547201_252806401_4FGL_J1418.4+3543_daily_bin51.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) = 5784.85063624
delta logL = -0.0044438792338

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5784.71269707
delta logL = 0.133495287628

Fit tolerance = 1e-08

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

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

 FCN=   5784.713     FROM MIGRAD    STATUS=CONVERGED     95 CALLS      365 TOTAL
                     EDM=   .23E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .25722E-01    .54812E-01    .23433E-04   -.39104E-03
   2  alpha         5.0000        4.0601        .11738    ** at limit **
   3  Normalizat    .95903        .18979        .21789E-03   -.14140E-04
   4  Prefactor     .90281        .21325        .25653E-03   -.65146E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0257216
  alpha      = 5
  Normalizat = 0.959027
  Prefactor  = 0.902811
 **********
 **   18 **HESSE 
 **********

 FCN=   5784.713     FROM HESSE     STATUS=OK            23 CALLS      388 TOTAL
                     EDM=   .20E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .25722E-01    .53920E-01    .93731E-06   -1.5676    
   2  alpha         5.0000        4.0610        .46951E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    .95903        .18995        .87157E-05   -.94416    
   4  Prefactor     .90281        .21346        .10261E-04   -.96043    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.98312e-12
Minuit parameter uncertainties:
  1  0.0539204
  2  4.79421e-06
  3  0.190085
  4  0.213661
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/312444': 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) = 5784.71268689
delta logL = 0.13350546353

Extracting fit parameters...

4FGL J1418.4+3543
   Spectrum: LogParabola
283         norm:  2.572e-02  5.392e-02  1.000e-04  1.000e+04 ( 1.000e-12)
284        alpha:  5.000e+00  4.794e-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:  9.028e-01  2.137e-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:  9.590e-01  1.901e-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/312444/cmap_HighResolution_252547201_252806401_4FGL_J1418.4+3543_daily_bin51.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.92e-05', job_status='DONE', photon_flux_upper_limit='3.38e-08', time_completed='2021-09-09 08:05:23.337112', job_id='312444', GAL2='0.90', fit_tolerance='1e-08', EG2='0.96', EG='0.99', time_epoch_completed='1631199923.34', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.88', dlogl='1.34e-01', ts2='0.29', photon_index_error='0.00', photon_index='2.02' WHERE bin_id='51' AND source_name='4FGL J1418.4+3543' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  9 08:05:23 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0221>
Subject: Job 312444: <4FGL_J1418.4+3543_daily_bin51> in cluster <slac> Done

Job <4FGL_J1418.4+3543_daily_bin51> was submitted from host <rhel6-64o> by user <kocevski> in cluster <slac> at Thu Sep  9 07:50:37 2021
Job was executed on host(s) <bullet0221>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  9 07:50:39 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:39 2021
Terminated at Thu Sep  9 08:05:24 2021
Results reported at Thu Sep  9 08:05:24 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1418.4+3543_daily_bin51 214.623 35.7192 252547201 252806401 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 :                                   650.18 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             260.85 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   884 sec.
    Turnaround time :                            887 sec.

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

