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


Performing analysis on: 4FGL_J1418.4+3543_daily_bin1052
RA = 214.623, Dec = 35.7192
tmin = 512006401, tmax = 512265601
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='320565', job_status='RUN', time_executed='2021-09-09 08:17:59.531937', time_epoch_executed='1631200679.53' WHERE source_name='4FGL J1418.4+3543' and cadence='daily' and bin_id='1052'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/320565

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/320565/ft1_4FGL_J1418.4+3543_daily_bin1052.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/320565/ft2_4FGL_J1418.4+3543_daily_bin1052.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/320565/ft1_4FGL_J1418.4+3543_daily_bin1052.fits outfile=/scratch/kocevski/320565/ft1_filteredMKT_4FGL_J1418.4+3543_daily_bin1052.fits ra=214.623 dec=35.7192 rad=12.0 tmin=512006401.0 tmax=512265601.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.51
user 3.25
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/320565/ft2_4FGL_J1418.4+3543_daily_bin1052.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/320565/ft1_filteredMKT_4FGL_J1418.4+3543_daily_bin1052.fits evtable="EVENTS" outfile="/scratch/kocevski/320565/ft1_filtered_4FGL_J1418.4+3543_daily_bin1052.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.53
user 0.32
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/320565/ft1_filtered_4FGL_J1418.4+3543_daily_bin1052.fits" evtable="EVENTS" scfile=/scratch/kocevski/320565/ft2_4FGL_J1418.4+3543_daily_bin1052.fits sctable="SC_DATA" outfile=/scratch/kocevski/320565/ltcube_512006401_512265601_4FGL_J1418.4+3543_daily_bin1052.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/320565/ft2_4FGL_J1418.4+3543_daily_bin1052.fits
.....................!
real 11.62
user 11.29
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/320565/ft1_filtered_4FGL_J1418.4+3543_daily_bin1052.fits evtable="EVENTS" scfile=/scratch/kocevski/320565/ft2_4FGL_J1418.4+3543_daily_bin1052.fits sctable="SC_DATA" expcube=/scratch/kocevski/320565/ltcube_512006401_512265601_4FGL_J1418.4+3543_daily_bin1052.fits outfile=/scratch/kocevski/320565/expmap_512006401_512265601_4FGL_J1418.4+3543_daily_bin1052.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/320565/ltcube_512006401_512265601_4FGL_J1418.4+3543_daily_bin1052.fits
.....................!
real 190.66
user 185.21
sys 5.03

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/320565/ft1_filtered_4FGL_J1418.4+3543_daily_bin1052.fits scfile=/scratch/kocevski/320565/ft2_4FGL_J1418.4+3543_daily_bin1052.fits outfile=/scratch/kocevski/320565/cmap_512006401_512265601_4FGL_J1418.4+3543_daily_bin1052.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.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/320565/ft1_filtered_4FGL_J1418.4+3543_daily_bin1052.fits scfile=/scratch/kocevski/320565/ft2_4FGL_J1418.4+3543_daily_bin1052.fits outfile=/scratch/kocevski/320565/cmap_HighResolution_512006401_512265601_4FGL_J1418.4+3543_daily_bin1052.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/320565/ft1_filtered_4FGL_J1418.4+3543_daily_bin1052.fits evtable="EVENTS" scfile=/scratch/kocevski/320565/ft2_4FGL_J1418.4+3543_daily_bin1052.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/320565/Model_4FGL_J1418.4+3543_daily_bin1052.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/320565/ft1_filtered_4FGL_J1418.4+3543_daily_bin1052.fits.....................!
real 47.58
user 46.17
sys 1.23

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    33.230       1.0000         .10000E-03   10000.    
     4 'norm      '    4.2172       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    1.8318       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    11.058       1.0000         .10000E-03   10000.    
     9 'norm      '    1.6991       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10221E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    9.3600       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10017E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    14.332       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    8.2833       1.0000         .10000E-03   10000.    
    19 'Prefactor '    9.4317       1.0000         .10000E-03   10000.    
    20 'Prefactor '    6.4501       1.0000         .10000E-03   10000.    
    21 'norm      '    1.2648       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10065E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    .97775       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .95792       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=   5998.217     FROM MIGRAD    STATUS=CONVERGED    544 CALLS     2683 TOTAL
                     EDM=   .23E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    30.287       -.10718E-06** at limit **
   2  Prefactor     .10000E-03    4.8748        .14476E-07** at limit **
   3  Prefactor     33.202        41.688        .79456E-06   -.25686E-04
   4  norm          4.2174        1.5504       -.32006E-07   -.23916E-03
   5  Prefactor     .10000E-03    1.7740        .96909E-07** at limit **
   6  norm          1.8333        10.838        .78189E-05   -.10077E-03
   7  Prefactor     .10000E-03    16.494        .12486E-06** at limit **
   8  Prefactor     11.061        18.499       -.69819E-07   -.36552E-04
   9  norm          1.6993        3.6565        .97462E-07   -.10661E-03
  10  Prefactor     .10000E-03    8.4478        .32007E-07** at limit **
  11  Prefactor     9.3595        12.763       -.71528E-06   -.25650E-03
  12  Prefactor     .10000E-03    1.3408        .85100E-07** at limit **
  13  norm          .10000E-03    5.5434       -.12337E-07** at limit **
  14  Prefactor     .10000E-03    11.580        .21164E-06** at limit **
  15  norm          14.333        7.5941       -.18699E-07   -.99895E-04
  16  Prefactor     .10000E-03    14.682       -.34910E-06** at limit **
  17  Prefactor     .10000E-03    8.7642       -.12720E-06** at limit **
  18  norm          8.2831        6.9946       -.14248E-06   -.90086E-05
  19  Prefactor     9.4331        15.659       -.98091E-07   -.14607E-04
  20  Prefactor     6.4515        7.7680        .73295E-06   -.46098E-04
  21  norm          1.2638        1.7427       -.31375E-08    .77957E-04
  22  Prefactor     .10000E-03    121.32       -.49117E-07** at limit **
  23  Normalizat    .97752        .16405        .13292E-05   -.60971E-05
  24  Prefactor     .95819        .18288       -.24090E-05   -.27675E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 33.2023
  norm       = 4.21739
  Prefactor  = 0.0001
  norm       = 1.83329
  Prefactor  = 0.0001
  Prefactor  = 11.0613
  norm       = 1.69927
  Prefactor  = 0.0001
  Prefactor  = 9.35949
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 14.3331
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 8.28311
  Prefactor  = 9.43309
  Prefactor  = 6.4515
  norm       = 1.26381
  Prefactor  = 0.0001
  Normalizat = 0.977524
  Prefactor  = 0.958188
 **********
 **   18 **HESSE 
 **********

 FCN=   5998.217     FROM HESSE     STATUS=OK           395 CALLS     3078 TOTAL
                     EDM=   .61E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    30.310        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    4.8766        .16701E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     33.202        41.735        .69513E-04   -1.4555    
   4  norm          4.2174        1.5510        .56672E-04   -1.5297    
   5  Prefactor     .10000E-03    1.7905        .10072E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          1.8333        11.081        .15417E-02   -1.5437    
   7  Prefactor     .10000E-03    16.634        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     11.061        18.587        .12048E-03   -1.5043    
   9  norm          1.6993        3.6253        .20729E-03   -1.5447    
  10  Prefactor     .10000E-03    8.4768        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     9.3595        12.785        .13099E-03   -1.5096    
  12  Prefactor     .10000E-03    1.3507        .87551E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    5.5480        .17806E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    11.609        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          14.333        7.5967        .10580E-03   -1.4951    
  16  Prefactor     .10000E-03    14.686        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    8.7691        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          8.2831        6.9958        .69648E-03   -1.5132    
  19  Prefactor     9.4331        15.629        .13049E-03   -1.5094    
  20  Prefactor     6.4515        7.6761        .79015E-03   -1.5200    
  21  norm          1.2638        1.6964        .10542E-03   -1.5483    
  22  Prefactor     .10000E-03    121.64        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    .97752        .19541        .22583E-03   -.93787    
  24  Prefactor     .95819        .21614        .26263E-03   -.94137    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.05575e-10
Minuit parameter uncertainties:
  1  2.11738e-05
  2  3.0256e-06
  3  41.7714
  4  1.55099
  5  9.16681e-06
  6  9.01664
  7  5.784e-05
  8  18.5971
  9  3.62578
  10  1.96847e-05
  11  12.7888
  12  6.79268e-06
  13  7.72888e-07
  14  8.98032e-06
  15  7.59717
  16  1.66996e-05
  17  1.35129e-05
  18  6.99647
  19  15.6353
  20  7.67724
  21  1.69648
  22  5.9665e-05
  23  0.195556
  24  0.216332
Done.

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

Extracting fit parameters...

4FGL J1418.4+3543
   Spectrum: LogParabola
283         norm:  1.699e+00  3.626e+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.582e-01  2.163e-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.775e-01  1.956e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/320565/likelihoodResults_512006401_512265601_4FGL_J1418.4+3543_daily_bin1052.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) = 5997.93366402
delta logL = 0.283553959144

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5997.93224263
delta logL = 0.284975353607

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.5828       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.0345       1.0000          .0000       5.0000    
     3 'Normalizat'    .94130       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .98044       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=   5997.932     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      205 TOTAL
                     EDM=   .16E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.5793        36.601        .84380E-02    .79714E-03
   2  alpha         3.0345        4.0152        .42408        .46012E-04
   3  Normalizat    .94128        .37603E-01    .45427E-01    .83038E-05
   4  Prefactor     .98083        .42666E-01    .46022E-01    .10662E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.57932
  alpha      = 3.03455
  Normalizat = 0.941285
  Prefactor  = 0.980831
 **********
 **   18 **HESSE 
 **********

 FCN=   5997.932     FROM HESSE     STATUS=OK            33 CALLS      238 TOTAL
                     EDM=   .32E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.5793        4.6796        .10784E-03   -1.5457    
   2  alpha         3.0345        1.7509        .16409E-01    .21548    
   3  Normalizat    .94128        .19487        .22957E-03   -.95024    
   4  Prefactor     .98083        .22010        .25987E-03   -.93371    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.24968e-11
Minuit parameter uncertainties:
  1  4.68072
  2  1.95222
  3  0.195016
  4  0.220297
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/320565': 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) = 5997.93223555
delta logL = 0.284982435548

Extracting fit parameters...

4FGL J1418.4+3543
   Spectrum: LogParabola
283         norm:  1.579e+00  4.681e+00  1.000e-04  1.000e+04 ( 1.000e-12)
284        alpha:  3.035e+00  1.952e+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.808e-01  2.203e-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.413e-01  1.950e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.27
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/320565/cmap_HighResolution_512006401_512265601_4FGL_J1418.4+3543_daily_bin1052.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.84e-05', job_status='DONE', photon_flux_upper_limit='6.75e-08', time_completed='2021-09-09 08:29:21.363673', job_id='320565', GAL2='0.98', fit_tolerance='1e-08', EG2='0.94', EG='0.98', time_epoch_completed='1631201361.36', return_code2='0', ts='0.27', comment='SUCCESS', return_code='0', GAL='0.96', dlogl='2.85e-01', ts2='0.87', photon_index_error='0.00', photon_index='2.02' WHERE bin_id='1052' AND source_name='4FGL J1418.4+3543' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  9 08:29:21 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0077>
Subject: Job 320565: <4FGL_J1418.4+3543_daily_bin1052> in cluster <slac> Done

Job <4FGL_J1418.4+3543_daily_bin1052> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Thu Sep  9 08:15:43 2021
Job was executed on host(s) <bullet0077>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  9 08:15:45 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:15:45 2021
Terminated at Thu Sep  9 08:29:22 2021
Results reported at Thu Sep  9 08:29:22 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1418.4+3543_daily_bin1052 214.623 35.7192 512006401 512265601 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 :                                   653.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             307.71 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   816 sec.
    Turnaround time :                            819 sec.

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

