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


Performing analysis on: 4FGL_J1418.4+3543_daily_bin1129
RA = 214.623, Dec = 35.7192
tmin = 531964801, tmax = 532224001
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='320686', job_status='RUN', time_executed='2021-09-09 08:19:17.493320', time_epoch_executed='1631200757.49' WHERE source_name='4FGL J1418.4+3543' and cadence='daily' and bin_id='1129'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/320686

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/320686/ft1_4FGL_J1418.4+3543_daily_bin1129.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/320686/ft2_4FGL_J1418.4+3543_daily_bin1129.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/320686/ft1_4FGL_J1418.4+3543_daily_bin1129.fits outfile=/scratch/kocevski/320686/ft1_filteredMKT_4FGL_J1418.4+3543_daily_bin1129.fits ra=214.623 dec=35.7192 rad=12.0 tmin=531964801.0 tmax=532224001.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.49
user 3.28
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/320686/ft1_filtered_4FGL_J1418.4+3543_daily_bin1129.fits" evtable="EVENTS" scfile=/scratch/kocevski/320686/ft2_4FGL_J1418.4+3543_daily_bin1129.fits sctable="SC_DATA" outfile=/scratch/kocevski/320686/ltcube_531964801_532224001_4FGL_J1418.4+3543_daily_bin1129.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/320686/ft2_4FGL_J1418.4+3543_daily_bin1129.fits
.....................!
real 11.65
user 11.31
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/320686/ft1_filtered_4FGL_J1418.4+3543_daily_bin1129.fits evtable="EVENTS" scfile=/scratch/kocevski/320686/ft2_4FGL_J1418.4+3543_daily_bin1129.fits sctable="SC_DATA" expcube=/scratch/kocevski/320686/ltcube_531964801_532224001_4FGL_J1418.4+3543_daily_bin1129.fits outfile=/scratch/kocevski/320686/expmap_531964801_532224001_4FGL_J1418.4+3543_daily_bin1129.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/320686/ltcube_531964801_532224001_4FGL_J1418.4+3543_daily_bin1129.fits
.....................!
real 192.16
user 187.16
sys 4.64

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/320686/ft1_filtered_4FGL_J1418.4+3543_daily_bin1129.fits scfile=/scratch/kocevski/320686/ft2_4FGL_J1418.4+3543_daily_bin1129.fits outfile=/scratch/kocevski/320686/cmap_531964801_532224001_4FGL_J1418.4+3543_daily_bin1129.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.52
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/320686/ft1_filtered_4FGL_J1418.4+3543_daily_bin1129.fits scfile=/scratch/kocevski/320686/ft2_4FGL_J1418.4+3543_daily_bin1129.fits outfile=/scratch/kocevski/320686/cmap_HighResolution_531964801_532224001_4FGL_J1418.4+3543_daily_bin1129.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.37
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    20.823       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    3.5251       1.0000         .10000E-03   10000.    
     5 'Prefactor '    6.4558       1.0000         .10000E-03   10000.    
     6 'norm      '    9.9585       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    3.6422       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10050E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .16907       1.0000         .10000E-03   10000.    
    12 'Prefactor '    3.9311       1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10084E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10118E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .12299E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    1.3316       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .16465E-01   1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.2501       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .86049       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=   6156.801     FROM MIGRAD    STATUS=CONVERGED   1005 CALLS     3586 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     20.811        81.824        .87774E-04    .16190E-04
   2  Prefactor     .10000E-03    31.619        .18142E-02** at limit **
   3  Prefactor     .10000E-03    62.725        .18142E-02** at limit **
   4  norm          3.5253        1.8689        .37415E-03   -.12947E-03
   5  Prefactor     6.4552        4.8824        .14301E-03   -.11924E-03
   6  norm          9.9376        14.021        .12698E-03    .67597E-04
   7  Prefactor     .10000E-03    4.9498        .17047E-02** at limit **
   8  Prefactor     .10000E-03    22.230        .18142E-02** at limit **
   9  norm          3.6433        3.5060        .13889E-03   -.42252E-03
  10  Prefactor     .10000E-03    5.3568        .17713E-02** at limit **
  11  Prefactor     .13188        12.645        .77535E-01    .22777E-03
  12  Prefactor     3.9301        3.2918        .12529E-03   -.15815E-03
  13  norm          .10000E-03    33.652        .18142E-02** at limit **
  14  Prefactor     .10000E-03    8.4844        .18142E-02** at limit **
  15  norm          .10000E-03    2.5152        .12123E-02** at limit **
  16  Prefactor     .10000E-03    14.262        .18142E-02** at limit **
  17  Prefactor     .10000E-03    17.713        .18142E-02** at limit **
  18  norm          .10003E-03    48.433        .34136E-02** at limit **
  19  Prefactor     .10000E-03    4.9120        .16974E-02** at limit **
  20  Prefactor     .10001E-03    40.475        .33949E-02** at limit **
  21  norm          1.3338        1.9233        .11933E-03   -.44777E-04
  22  Prefactor     .10015E-03    85.724        .22152    ** at limit **
  23  Normalizat    1.2498        .21434        .22425E-03   -.70489E-04
  24  Prefactor     .86078        .22750        .29411E-03   -.71279E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 20.8108
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.52527
  Prefactor  = 6.45519
  norm       = 9.93759
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 3.64329
  Prefactor  = 0.0001
  Prefactor  = 0.131882
  Prefactor  = 3.93015
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000100026
  Prefactor  = 0.0001
  Prefactor  = 0.000100005
  norm       = 1.33385
  Prefactor  = 0.000100155
  Normalizat = 1.24985
  Prefactor  = 0.860777
 **********
 **   18 **HESSE 
 **********

 FCN=   6156.801     FROM HESSE     STATUS=OK           395 CALLS     3981 TOTAL
                     EDM=   .10E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     20.811        81.651        .35110E-05   -1.4795    
   2  Prefactor     .10000E-03    31.634        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    62.728        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          3.5253        1.8688        .14966E-04   -1.5332    
   5  Prefactor     6.4552        4.8822        .57206E-05   -1.5200    
   6  norm          9.9376        14.020        .50791E-05   -1.5077    
   7  Prefactor     .10000E-03    4.9498        .34094E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    22.240        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          3.6433        3.5058        .55557E-05   -1.5326    
  10  Prefactor     .10000E-03    5.3570        .35427E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .13188        11.871        .81441E-01   -1.5635    
  12  Prefactor     3.9301        3.2917        .50118E-05   -1.5311    
  13  norm          .10000E-03    33.679        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    8.4848        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    2.5154        .24247E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    14.262        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    17.714        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10003E-03    49.774        .13655E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    4.9122        .33949E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10001E-03    41.645        .13580E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          1.3338        1.9164        .47733E-05   -1.5477    
  22  Prefactor     .10015E-03    87.081        .21868       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    1.2498        .21453        .44849E-04   -.85076    
  24  Prefactor     .86078        .22767        .11764E-04   -.97525    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.03578e-09
Minuit parameter uncertainties:
  1  82.0942
  2  8.87323e-05
  3  0.000254742
  4  1.86886
  5  4.88246
  6  14.0242
  7  3.35867e-06
  8  0.000313683
  9  3.50603
  10  2.7577e-06
  11  2.50199
  12  3.29182
  13  5.50373e-05
  14  2.00936e-05
  15  6.02089e-06
  16  4.66325e-06
  17  9.88788e-05
  18  0.00225508
  19  4.02243e-06
  20  0.000914005
  21  1.91644
  22  0.00735082
  23  0.214685
  24  0.227921
Done.

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

Extracting fit parameters...

4FGL J1418.4+3543
   Spectrum: LogParabola
283         norm:  3.643e+00  3.506e+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:  8.608e-01  2.279e-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.250e+00  2.147e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.56
Ra Dec: 214.623 35.719
Photon Index (Fixed Index): 2.02 +/- 0.00
Photon Flux (Fixed Index): 2.21e-08 +/- 2.13e-08
Energy Flux (Fixed Index): 1.26e-05 +/- 1.21e-05

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

Saving results to:
/scratch/kocevski/320686/likelihoodResults_531964801_532224001_4FGL_J1418.4+3543_daily_bin1129.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) = 6156.67963476
delta logL = 0.120966291678

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6156.67231622
delta logL = 0.128284833947

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.2028       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.6544       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2573       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .85777       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=   6156.672     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      210 TOTAL
                     EDM=   .45E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.2017        3.5127        .56599E-02    .90700E-05
   2  alpha         1.6541        .55882        .44613       -.27574E-04
   3  Normalizat    1.2573        .16997        .50595E-01    .10104E-04
   4  Prefactor     .85777        .18967        .66593E-01    .21522E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 3.20174
  alpha      = 1.65407
  Normalizat = 1.25734
  Prefactor  = 0.857769
 **********
 **   18 **HESSE 
 **********

 FCN=   6156.672     FROM HESSE     STATUS=OK            33 CALLS      243 TOTAL
                     EDM=   .50E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.2017        3.6068        .13577E-03   -1.5350    
   2  alpha         1.6541        .69636        .16589E-01   -.34519    
   3  Normalizat    1.2573        .20282        .22369E-03   -.84849    
   4  Prefactor     .85777        .22617        .29459E-03   -.97633    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.99192e-12
Minuit parameter uncertainties:
  1  3.607
  2  0.706952
  3  0.202946
  4  0.226419
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/320686': 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) = 6156.67231609
delta logL = 0.128284959957

Extracting fit parameters...

4FGL J1418.4+3543
   Spectrum: LogParabola
283         norm:  3.202e+00  3.607e+00  1.000e-04  1.000e+04 ( 1.000e-12)
284        alpha:  1.654e+00  7.070e-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:  8.578e-01  2.264e-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.257e+00  2.029e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.82
Ra Dec: 214.623 35.719
Photon Index (Free Index): 1.65 +/- 0.71
Photon Flux (Free Index): 1.40e-08 +/- 1.99e-08
Energy Flux (Free Index): 1.77e-05 +/- 2.26e-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/320686/cmap_HighResolution_531964801_532224001_4FGL_J1418.4+3543_daily_bin1129.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.36e-05', comment='SUCCESS', photon_flux='2.21e-08', energy_flux2='1.77e-05', photon_flux_error='2.13e-08', dlogl='1.28e-01', energy_flux='1.26e-05', photon_flux2='1.40e-08', job_status='DONE', time_completed='2021-09-09 08:32:07.344772', photon_index_error2='0.71', photon_index2='1.65', ts='2.56', fit_tolerance='1e-08', GAL='0.86', photon_index_error='0.00', photon_flux_upper_limit='7.67e-08', energy_flux_error2='2.26e-05', EG='1.25', time_epoch_completed='1631201527.34', return_code='0', job_id='320686', GAL2='0.86', EG2='1.26', return_code2='0', energy_flux_error='1.21e-05', photon_flux_error2='1.99e-08', ts2='2.82', photon_index='2.02' WHERE bin_id='1129' AND source_name='4FGL J1418.4+3543' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  9 08:32:07 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0142>
Subject: Job 320686: <4FGL_J1418.4+3543_daily_bin1129> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1418.4+3543_daily_bin1129 214.623 35.7192 531964801 532224001 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 :                                   728.33 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             298.42 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   975 sec.
    Turnaround time :                            978 sec.

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

