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


Performing analysis on: 4FGL_J1418.4+3543_daily_bin1382
RA = 214.623, Dec = 35.7192
tmin = 597542401, tmax = 597801601
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='322183', job_status='RUN', time_executed='2021-09-09 08:24:14.395502', time_epoch_executed='1631201054.4' WHERE source_name='4FGL J1418.4+3543' and cadence='daily' and bin_id='1382'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/322183

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/322183/ft1_4FGL_J1418.4+3543_daily_bin1382.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/322183/ft2_4FGL_J1418.4+3543_daily_bin1382.fits


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

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

Done.
real 3.53
user 3.32
sys 0.19

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/322183/ft1_filtered_4FGL_J1418.4+3543_daily_bin1382.fits evtable="EVENTS" scfile=/scratch/kocevski/322183/ft2_4FGL_J1418.4+3543_daily_bin1382.fits sctable="SC_DATA" expcube=/scratch/kocevski/322183/ltcube_597542401_597801601_4FGL_J1418.4+3543_daily_bin1382.fits outfile=/scratch/kocevski/322183/expmap_597542401_597801601_4FGL_J1418.4+3543_daily_bin1382.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/322183/ltcube_597542401_597801601_4FGL_J1418.4+3543_daily_bin1382.fits
.....................!
real 192.38
user 186.77
sys 5.22

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/322183/ft1_filtered_4FGL_J1418.4+3543_daily_bin1382.fits scfile=/scratch/kocevski/322183/ft2_4FGL_J1418.4+3543_daily_bin1382.fits outfile=/scratch/kocevski/322183/cmap_597542401_597801601_4FGL_J1418.4+3543_daily_bin1382.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.54
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/322183/ft1_filtered_4FGL_J1418.4+3543_daily_bin1382.fits scfile=/scratch/kocevski/322183/ft2_4FGL_J1418.4+3543_daily_bin1382.fits outfile=/scratch/kocevski/322183/cmap_HighResolution_597542401_597801601_4FGL_J1418.4+3543_daily_bin1382.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.56
user 0.39
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10100E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    15.941       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10234E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    4.9483       1.0000         .10000E-03   10000.    
     5 'Prefactor '    10.364       1.0000         .10000E-03   10000.    
     6 'norm      '    18.551       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    22.016       1.0000         .10000E-03   10000.    
     9 'norm      '    3.6105       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10054E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    3.2765       1.0000         .10000E-03   10000.    
    12 'Prefactor '    32.386       1.0000         .10000E-03   10000.    
    13 'norm      '    7.0204       1.0000         .10000E-03   10000.    
    14 'Prefactor '    62.566       1.0000         .10000E-03   10000.    
    15 'norm      '    .10091E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    57.769       1.0000         .10000E-03   10000.    
    17 'Prefactor '    5.0102       1.0000         .10000E-03   10000.    
    18 'norm      '    .10041E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    53.397       1.0000         .10000E-03   10000.    
    20 'Prefactor '    1.9431       1.0000         .10000E-03   10000.    
    21 'norm      '    1.6007       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    .94511       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .74247       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=   5523.817     FROM MIGRAD    STATUS=CONVERGED    542 CALLS     2736 TOTAL
                     EDM=   .25E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    131.92       -.59848E-05** at limit **
   2  Prefactor     15.935        19.454       -.11414E-05    .61294E-04
   3  Prefactor     .10000E-03    102.01        .42531E-05** at limit **
   4  norm          4.9482        2.0001       -.15921E-07   -.35884E-04
   5  Prefactor     10.364        4.9655       -.18497E-06   -.17371E-04
   6  norm          18.549        14.540       -.25217E-05    .36348E-03
   7  Prefactor     .10000E-03    6.3357        .48395E-07** at limit **
   8  Prefactor     22.017        22.247        .18051E-06   -.18511E-04
   9  norm          3.6104        3.2567       -.59479E-07   -.89664E-04
  10  Prefactor     .10000E-03    5.9943        .57434E-07** at limit **
  11  Prefactor     3.2743        13.955       -.12525E-05   -.50826E-04
  12  Prefactor     32.386        6.7087        .12054E-06   -.20175E-03
  13  norm          7.0200        7.5770       -.11461E-05    .31187E-03
  14  Prefactor     62.561        34.518       -.12012E-05    .10930E-03
  15  norm          .10000E-03    2.9238        .10864E-07** at limit **
  16  Prefactor     57.771        49.778        .13509E-05   -.20354E-04
  17  Prefactor     5.0101        21.068        .25934E-06   -.46702E-04
  18  norm          .10000E-03    10.108       -.33929E-07** at limit **
  19  Prefactor     53.400        18.965        .66049E-06    .40500E-04
  20  Prefactor     1.9435        7.1665       -.77498E-05   -.19192E-03
  21  norm          1.6004        1.7489        .69794E-06    .91895E-04
  22  Prefactor     .10000E-03    23.624       -.14521E-06** at limit **
  23  Normalizat    .94511        .18490        .89831E-06    .46474E-04
  24  Prefactor     .74238        .19412        .39839E-06    .55380E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100002
  Prefactor  = 15.9352
  Prefactor  = 0.000100001
  norm       = 4.94819
  Prefactor  = 10.3641
  norm       = 18.5486
  Prefactor  = 0.0001
  Prefactor  = 22.017
  norm       = 3.61039
  Prefactor  = 0.0001
  Prefactor  = 3.27432
  Prefactor  = 32.3865
  norm       = 7.02003
  Prefactor  = 62.5615
  norm       = 0.0001
  Prefactor  = 57.7707
  Prefactor  = 5.01009
  norm       = 0.0001
  Prefactor  = 53.3996
  Prefactor  = 1.94354
  norm       = 1.60041
  Prefactor  = 0.0001
  Normalizat = 0.945114
  Prefactor  = 0.742378
 **********
 **   18 **HESSE 
 **********

 FCN=   5523.817     FROM HESSE     STATUS=OK           399 CALLS     3135 TOTAL
                     EDM=   .48E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    133.16        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     15.935        19.462        .10032E-03   -1.4909    
   3  Prefactor     .10000E-03    102.15        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          4.9482        2.0054        .63985E-04   -1.5263    
   5  Prefactor     10.364        4.9837        .10828E-03   -1.5064    
   6  norm          18.549        14.401        .92990E-04   -1.4846    
   7  Prefactor     .10000E-03    6.3410        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     22.017        22.308        .85366E-04   -1.4769    
   9  norm          3.6104        3.2518        .12317E-03   -1.5328    
  10  Prefactor     .10000E-03    6.0014        .17737E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     3.2743        14.015        .22371E-03   -1.5346    
  12  Prefactor     32.386        6.7271        .70410E-04   -1.4569    
  13  norm          7.0200        7.5275        .15141E-03   -1.5178    
  14  Prefactor     62.561        34.508        .50730E-04   -1.4124    
  15  norm          .10000E-03    2.9397        .12405E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     57.771        49.759        .52782E-04   -1.4186    
  17  Prefactor     5.0101        21.034        .17965E-03   -1.5260    
  18  norm          .10000E-03    10.400        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     53.400        18.988        .54889E-04   -1.4245    
  20  Prefactor     1.9435        7.7170        .29780E-03   -1.5429    
  21  norm          1.6004        1.7200        .89943E-04   -1.5455    
  22  Prefactor     .10000E-03    23.624        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    .94511        .22005        .23728E-03   -.94893    
  24  Prefactor     .74238        .22849        .29732E-03   -1.0189    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.81978e-10
Minuit parameter uncertainties:
  1  0.00108668
  2  19.4696
  3  0.00072842
  4  2.00547
  5  4.98392
  6  14.404
  7  5.6542e-06
  8  22.3165
  9  3.25198
  10  1.91301e-05
  11  13.5535
  12  6.72723
  13  7.52856
  14  34.5195
  15  4.12165e-09
  16  49.7943
  17  20.5433
  18  1.93577e-06
  19  18.9897
  20  7.72097
  21  1.72005
  22  9.02302e-06
  23  0.220256
  24  0.228781
Done.

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

Extracting fit parameters...

4FGL J1418.4+3543
   Spectrum: LogParabola
283         norm:  3.610e+00  3.252e+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:  7.424e-01  2.288e-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.451e-01  2.203e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.54
Ra Dec: 214.623 35.719
Photon Index (Fixed Index): 2.02 +/- 0.00
Photon Flux (Fixed Index): 2.19e-08 +/- 1.98e-08
Energy Flux (Fixed Index): 1.25e-05 +/- 1.12e-05

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

Saving results to:
/scratch/kocevski/322183/likelihoodResults_597542401_597801601_4FGL_J1418.4+3543_daily_bin1382.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) = 5523.78696828
delta logL = 0.0297747746527

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5523.7855065
delta logL = 0.0312365583959

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.4533       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.1795       1.0000          .0000       5.0000    
     3 'Normalizat'    .94201       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .74409       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=   5523.786     FROM MIGRAD    STATUS=CONVERGED     85 CALLS      237 TOTAL
                     EDM=   .49E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.4532        3.2347        .11754E-03    .10180E-02
   2  alpha         2.1796        .66254        .15204E-01    .75799E-04
   3  Normalizat    .94211        .20042        .23758E-03   -.58618E-04
   4  Prefactor     .74400        .22545        .29699E-03   -.57649E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 3.45317
  alpha      = 2.17959
  Normalizat = 0.942108
  Prefactor  = 0.743995
 **********
 **   18 **HESSE 
 **********

 FCN=   5523.786     FROM HESSE     STATUS=OK            23 CALLS      260 TOTAL
                     EDM=   .48E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.4532        3.1918        .47016E-05   -1.5336    
   2  alpha         2.1796        .65394        .60814E-03   -.12852    
   3  Normalizat    .94211        .20059        .95033E-05   -.94996    
   4  Prefactor     .74400        .22566        .11880E-04   -1.0183    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.84875e-10
Minuit parameter uncertainties:
  1  3.19192
  2  0.661774
  3  0.200753
  4  0.225935
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/322183': 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) = 5523.78550636
delta logL = 0.0312366991684

Extracting fit parameters...

4FGL J1418.4+3543
   Spectrum: LogParabola
283         norm:  3.453e+00  3.192e+00  1.000e-04  1.000e+04 ( 1.000e-12)
284        alpha:  2.180e+00  6.618e-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:  7.440e-01  2.259e-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.421e-01  2.008e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.61
Ra Dec: 214.623 35.719
Photon Index (Free Index): 2.18 +/- 0.66
Photon Flux (Free Index): 2.54e-08 +/- 2.58e-08
Energy Flux (Free Index): 1.10e-05 +/- 1.09e-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/322183/cmap_HighResolution_597542401_597801601_4FGL_J1418.4+3543_daily_bin1382.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.12e-05', comment='SUCCESS', photon_flux='2.19e-08', energy_flux2='1.10e-05', photon_flux_error='1.98e-08', dlogl='3.12e-02', energy_flux='1.25e-05', photon_flux2='2.54e-08', job_status='DONE', time_completed='2021-09-09 08:37:06.254923', photon_index_error2='0.66', photon_index2='2.18', ts='2.54', fit_tolerance='1e-08', GAL='0.74', photon_index_error='0.00', photon_flux_upper_limit='7.25e-08', energy_flux_error2='1.09e-05', EG='0.95', time_epoch_completed='1631201826.25', return_code='0', job_id='322183', GAL2='0.74', EG2='0.94', return_code2='0', energy_flux_error='1.12e-05', photon_flux_error2='2.58e-08', ts2='2.61', photon_index='2.02' WHERE bin_id='1382' AND source_name='4FGL J1418.4+3543' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  9 08:37:06 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0041>
Subject: Job 322183: <4FGL_J1418.4+3543_daily_bin1382> in cluster <slac> Done

Job <4FGL_J1418.4+3543_daily_bin1382> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Thu Sep  9 08:20:55 2021
Job was executed on host(s) <bullet0041>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  9 08:20:57 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:20:57 2021
Terminated at Thu Sep  9 08:37:07 2021
Results reported at Thu Sep  9 08:37:07 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1418.4+3543_daily_bin1382 214.623 35.7192 597542401 597801601 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 :                                   648.09 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             273.81 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   969 sec.
    Turnaround time :                            972 sec.

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

