/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/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 46 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 = 7404
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1418.4+3543_daily_bin1602
RA = 214.623, Dec = 35.7192
tmin = 654566401, tmax = 654825601
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='856566', job_status='RUN', time_executed='2021-10-02 00:03:59.881749', time_epoch_executed='1633158239.88' WHERE source_name='4FGL J1418.4+3543' and cadence='daily' and bin_id='1602'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/856566

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/856566/ft1_4FGL_J1418.4+3543_daily_bin1602.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/856566/ft2_4FGL_J1418.4+3543_daily_bin1602.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/856566/ft1_4FGL_J1418.4+3543_daily_bin1602.fits outfile=/scratch/kocevski/856566/ft1_filteredMKT_4FGL_J1418.4+3543_daily_bin1602.fits ra=214.623 dec=35.7192 rad=12.0 tmin=654566401.0 tmax=654825601.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Done.
real 5.01
user 4.73
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/856566/ft2_4FGL_J1418.4+3543_daily_bin1602.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/856566/ft1_filteredMKT_4FGL_J1418.4+3543_daily_bin1602.fits evtable="EVENTS" outfile="/scratch/kocevski/856566/ft1_filtered_4FGL_J1418.4+3543_daily_bin1602.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/856566/ft1_filtered_4FGL_J1418.4+3543_daily_bin1602.fits" evtable="EVENTS" scfile=/scratch/kocevski/856566/ft2_4FGL_J1418.4+3543_daily_bin1602.fits sctable="SC_DATA" outfile=/scratch/kocevski/856566/ltcube_654566401_654825601_4FGL_J1418.4+3543_daily_bin1602.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/856566/ft2_4FGL_J1418.4+3543_daily_bin1602.fits
.....................!
real 12.08
user 11.73
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/856566/ft1_filtered_4FGL_J1418.4+3543_daily_bin1602.fits evtable="EVENTS" scfile=/scratch/kocevski/856566/ft2_4FGL_J1418.4+3543_daily_bin1602.fits sctable="SC_DATA" expcube=/scratch/kocevski/856566/ltcube_654566401_654825601_4FGL_J1418.4+3543_daily_bin1602.fits outfile=/scratch/kocevski/856566/expmap_654566401_654825601_4FGL_J1418.4+3543_daily_bin1602.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/856566/ltcube_654566401_654825601_4FGL_J1418.4+3543_daily_bin1602.fits
.....................!
real 189.25
user 184.66
sys 4.28

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/856566/ft1_filtered_4FGL_J1418.4+3543_daily_bin1602.fits scfile=/scratch/kocevski/856566/ft2_4FGL_J1418.4+3543_daily_bin1602.fits outfile=/scratch/kocevski/856566/cmap_654566401_654825601_4FGL_J1418.4+3543_daily_bin1602.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/856566/ft1_filtered_4FGL_J1418.4+3543_daily_bin1602.fits scfile=/scratch/kocevski/856566/ft2_4FGL_J1418.4+3543_daily_bin1602.fits outfile=/scratch/kocevski/856566/cmap_HighResolution_654566401_654825601_4FGL_J1418.4+3543_daily_bin1602.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.53
user 0.39
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    .10005E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    18.308       1.0000         .10000E-03   10000.    
     4 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    5.1608       1.0000         .10000E-03   10000.    
     6 'norm      '    .10094E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    4.1627       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    8.3101       1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    11.479       1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    24.322       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .66400       1.0000         .10000E-03   10000.    
    21 'norm      '    1.4938       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.1200       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .94921       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=   5692.449     FROM MIGRAD    STATUS=CONVERGED    520 CALLS     2664 TOTAL
                     EDM=   .25E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    23.479        .62801E-07** at limit **
   2  Prefactor     .10000E-03    14.021       -.97285E-07** at limit **
   3  Prefactor     18.399        66.245        .36981E-05    .76272E-04
   4  norm          .10000E-03    .40039        .17191E-07** at limit **
   5  Prefactor     5.1614        4.6800        .25347E-06   -.28397E-04
   6  norm          .10000E-03    27.260        .15327E-05** at limit **
   7  Prefactor     .10000E-03    8.3127       -.76462E-08** at limit **
   8  Prefactor     .10000E-03    10.077       -.18605E-06** at limit **
   9  norm          4.1629        4.0951        .84505E-08   -.33263E-04
  10  Prefactor     .10000E-03    9.9736       -.12527E-06** at limit **
  11  Prefactor     .10000E-03    8.1209       -.62147E-07** at limit **
  12  Prefactor     8.3109        4.8601        .12012E-05   -.11176E-03
  13  norm          .10000E-03    6.0282       -.57280E-07** at limit **
  14  Prefactor     11.483        29.957        .11845E-05   -.11306E-04
  15  norm          .10000E-03    4.2010       -.20368E-06** at limit **
  16  Prefactor     .10000E-03    13.962       -.37819E-07** at limit **
  17  Prefactor     .10000E-03    25.243       -.35560E-06** at limit **
  18  norm          .10000E-03    4.1712        .20114E-09** at limit **
  19  Prefactor     24.325        19.276       -.24092E-06   -.11648E-03
  20  Prefactor     .66429        9.4867        .52392E-05   -.19941E-04
  21  norm          1.4938        1.4975       -.27888E-06   -.56115E-03
  22  Prefactor     .10000E-03    37.785       -.42609E-08** at limit **
  23  Normalizat    1.1195        .20246       -.37317E-05    .64122E-04
  24  Prefactor     .94968        .21679        .32374E-05   -.21083E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 18.3994
  norm       = 0.0001
  Prefactor  = 5.16135
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 4.16287
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 8.31088
  norm       = 0.0001
  Prefactor  = 11.4829
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 24.3245
  Prefactor  = 0.664293
  norm       = 1.49381
  Prefactor  = 0.0001
  Normalizat = 1.11954
  Prefactor  = 0.94968
 **********
 **   18 **HESSE 
 **********

 FCN=   5692.449     FROM HESSE     STATUS=OK           391 CALLS     3055 TOTAL
                     EDM=   .62E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    23.485        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    14.065        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     18.399        66.540        .93605E-04   -1.4850    
   4  norm          .10000E-03    .40753        .46606E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     5.1614        4.6757        .14829E-03   -1.5254    
   6  norm          .10000E-03    27.864        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    8.3244        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    10.121        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          4.1629        4.0884        .14537E-03   -1.5300    
  10  Prefactor     .10000E-03    10.030        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    8.1454        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     8.3109        4.8592        .60217E-03   -1.5131    
  13  norm          .10000E-03    6.0343        .18092E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     11.483        29.994        .11824E-03   -1.5030    
  15  norm          .10000E-03    4.2660        .15095E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    13.966        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    25.297        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    4.1783        .15045E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     24.325        19.237        .81224E-04   -1.4721    
  20  Prefactor     .66429        9.7749        .43387E-03   -1.5545    
  21  norm          1.4938        1.4672        .85205E-04   -1.5464    
  22  Prefactor     .10000E-03    37.796        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    1.1195        .22435        .22731E-03   -.89127    
  24  Prefactor     .94968        .24180        .27652E-03   -.94426    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.16418e-10
Minuit parameter uncertainties:
  1  3.13497e-05
  2  1.30698e-05
  3  66.8108
  4  2.81483e-07
  5  4.67605
  6  6.65647e-05
  7  1.92489e-06
  8  1.13984e-05
  9  4.08869
  10  9.0119e-06
  11  1.21308e-05
  12  4.85943
  13  7.32623e-07
  14  30.0331
  15  1.70204e-06
  16  8.25517e-06
  17  1.71693e-07
  18  1.376e-06
  19  19.2417
  20  5.09704
  21  1.46719
  22  3.63495e-05
  23  0.22454
  24  0.242079
Done.

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

Extracting fit parameters...

4FGL J1418.4+3543
   Spectrum: LogParabola
283         norm:  4.163e+00  4.089e+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:  9.497e-01  2.421e-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.120e+00  2.245e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.05
Ra Dec: 214.623 35.719
Photon Index (Fixed Index): 2.02 +/- 0.00
Photon Flux (Fixed Index): 2.53e-08 +/- 2.48e-08
Energy Flux (Fixed Index): 1.44e-05 +/- 1.41e-05

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

Saving results to:
/scratch/kocevski/856566/likelihoodResults_654566401_654825601_4FGL_J1418.4+3543_daily_bin1602.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) = 5692.27209281
delta logL = 0.176658510596

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5692.26704035
delta logL = 0.181710966326

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.3071       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.6015       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0936       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .97018       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=   5692.267     FROM MIGRAD    STATUS=CONVERGED     81 CALLS      283 TOTAL
                     EDM=   .37E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.3073        4.3558        .11593E-03    .36775E-04
   2  alpha         2.6012        1.0582        .15262E-01    .14123E-03
   3  Normalizat    1.0939        .21875        .22956E-03    .15267E-03
   4  Prefactor     .96988        .24444        .27392E-03    .11999E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 3.30733
  alpha      = 2.60116
  Normalizat = 1.0939
  Prefactor  = 0.969881
 **********
 **   18 **HESSE 
 **********

 FCN=   5692.267     FROM HESSE     STATUS=OK            25 CALLS      308 TOTAL
                     EDM=   .27E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.3073        4.0719        .46371E-05   -1.5344    
   2  alpha         2.6012        .99220        .30525E-02    .40474E-01
   3  Normalizat    1.0939        .21839        .45911E-04   -.89948    
   4  Prefactor     .96988        .24415        .10957E-04   -.93740    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.69688e-11
Minuit parameter uncertainties:
  1  4.07226
  2  1.02034
  3  0.218565
  4  0.244424
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/856566': 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) = 5692.26703946
delta logL = 0.181711860208

Extracting fit parameters...

4FGL J1418.4+3543
   Spectrum: LogParabola
283         norm:  3.307e+00  4.072e+00  1.000e-04  1.000e+04 ( 1.000e-12)
284        alpha:  2.601e+00  1.020e+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.699e-01  2.444e-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.094e+00  2.186e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.42
Ra Dec: 214.623 35.719
Photon Index (Free Index): 2.60 +/- 1.02
Photon Flux (Free Index): 4.28e-08 +/- 4.62e-08
Energy Flux (Free Index): 1.16e-05 +/- 1.06e-05

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/856566/cmap_HighResolution_654566401_654825601_4FGL_J1418.4+3543_daily_bin1602.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.94e-05', comment='SUCCESS', photon_flux='2.53e-08', energy_flux2='1.16e-05', photon_flux_error='2.48e-08', dlogl='1.82e-01', energy_flux='1.44e-05', photon_flux2='4.28e-08', job_status='DONE', time_completed='2021-10-02 00:14:39.657891', photon_index_error2='1.02', photon_index2='2.60', ts='2.05', fit_tolerance='1e-08', GAL='0.95', photon_index_error='0.00', photon_flux_upper_limit='8.69e-08', energy_flux_error2='1.06e-05', EG='1.12', time_epoch_completed='1633158879.66', return_code='0', job_id='856566', GAL2='0.97', EG2='1.09', return_code2='0', energy_flux_error='1.41e-05', photon_flux_error2='4.62e-08', ts2='2.42', photon_index='2.02' WHERE bin_id='1602' AND source_name='4FGL J1418.4+3543' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Oct  2 00:14:39 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0270>
Subject: Job 856566: <4FGL_J1418.4+3543_daily_bin1602> in cluster <slac> Done

Job <4FGL_J1418.4+3543_daily_bin1602> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Sat Oct  2 00:02:57 2021
Job was executed on host(s) <bullet0270>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Oct  2 00:02:59 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Oct  2 00:02:59 2021
Terminated at Sat Oct  2 00:14:40 2021
Results reported at Sat Oct  2 00:14:40 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1418.4+3543_daily_bin1602 214.623 35.7192 654566401 654825601 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 :                                   642.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             327.70 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   700 sec.
    Turnaround time :                            703 sec.

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

