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


Performing analysis on: 4FGL_J1418.4+3543_daily_bin1528
RA = 214.623, Dec = 35.7192
tmin = 635385601, tmax = 635644801
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='323536', job_status='RUN', time_executed='2021-09-09 08:27:49.841028', time_epoch_executed='1631201269.84' WHERE source_name='4FGL J1418.4+3543' and cadence='daily' and bin_id='1528'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/323536

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/323536/ft1_4FGL_J1418.4+3543_daily_bin1528.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/323536/ft2_4FGL_J1418.4+3543_daily_bin1528.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/323536/ft1_4FGL_J1418.4+3543_daily_bin1528.fits outfile=/scratch/kocevski/323536/ft1_filteredMKT_4FGL_J1418.4+3543_daily_bin1528.fits ra=214.623 dec=35.7192 rad=12.0 tmin=635385601.0 tmax=635644801.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 2.84
user 2.58
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/323536/ft2_4FGL_J1418.4+3543_daily_bin1528.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/323536/ft1_filteredMKT_4FGL_J1418.4+3543_daily_bin1528.fits evtable="EVENTS" outfile="/scratch/kocevski/323536/ft1_filtered_4FGL_J1418.4+3543_daily_bin1528.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.49
user 0.33
sys 0.15

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/323536/ft1_filtered_4FGL_J1418.4+3543_daily_bin1528.fits evtable="EVENTS" scfile=/scratch/kocevski/323536/ft2_4FGL_J1418.4+3543_daily_bin1528.fits sctable="SC_DATA" expcube=/scratch/kocevski/323536/ltcube_635385601_635644801_4FGL_J1418.4+3543_daily_bin1528.fits outfile=/scratch/kocevski/323536/expmap_635385601_635644801_4FGL_J1418.4+3543_daily_bin1528.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/323536/ltcube_635385601_635644801_4FGL_J1418.4+3543_daily_bin1528.fits
.....................!
real 191.12
user 185.41
sys 5.05

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/323536/ft1_filtered_4FGL_J1418.4+3543_daily_bin1528.fits scfile=/scratch/kocevski/323536/ft2_4FGL_J1418.4+3543_daily_bin1528.fits outfile=/scratch/kocevski/323536/cmap_635385601_635644801_4FGL_J1418.4+3543_daily_bin1528.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.56
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/323536/ft1_filtered_4FGL_J1418.4+3543_daily_bin1528.fits scfile=/scratch/kocevski/323536/ft2_4FGL_J1418.4+3543_daily_bin1528.fits outfile=/scratch/kocevski/323536/cmap_HighResolution_635385601_635644801_4FGL_J1418.4+3543_daily_bin1528.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.55
user 0.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    49.193       1.0000         .10000E-03   10000.    
     2 'Prefactor '    14.387       1.0000         .10000E-03   10000.    
     3 'Prefactor '    54.601       1.0000         .10000E-03   10000.    
     4 'norm      '    1.3656       1.0000         .10000E-03   10000.    
     5 'Prefactor '    3.0269       1.0000         .10000E-03   10000.    
     6 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10876E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    17.632       1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    4.8646       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    37.946       1.0000         .10000E-03   10000.    
    18 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    14.936       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10494E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    1.0352       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    .78724       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.2852       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=   5527.585     FROM MIGRAD    STATUS=CONVERGED    543 CALLS     2753 TOTAL
                     EDM=   .82E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     49.142        84.248        .57968E-06   -.11697E-04
   2  Prefactor     14.402        37.953        .29122E-05    .14271E-04
   3  Prefactor     54.863        99.915        .49646E-05    .98361E-04
   4  norm          1.3659        2.0671        .10342E-05    .66960E-03
   5  Prefactor     3.0274        3.3720        .22233E-06    .53718E-04
   6  norm          .10000E-03    6.7605        .80822E-06** at limit **
   7  Prefactor     .10000E-03    7.3606       -.56719E-07** at limit **
   8  Prefactor     .10000E-03    21.394       -.15711E-05** at limit **
   9  norm          .10000E-03    2.4978        .14423E-06** at limit **
  10  Prefactor     .10000E-03    3.8631       -.15502E-06** at limit **
  11  Prefactor     .10000E-03    4.1913       -.18594E-06** at limit **
  12  Prefactor     17.635        5.8070        .45176E-06    .22347E-03
  13  norm          .10000E-03    7.6998       -.29679E-06** at limit **
  14  Prefactor     .10000E-03    5.3446       -.23314E-06** at limit **
  15  norm          4.8653        4.5358        .25362E-05    .11144E-02
  16  Prefactor     .10000E-03    15.802       -.36188E-06** at limit **
  17  Prefactor     37.947        29.647        .36021E-06    .22935E-04
  18  norm          .10000E-03    2.4196       -.49759E-07** at limit **
  19  Prefactor     14.939        12.759        .47595E-06    .11162E-03
  20  Prefactor     .10000E-03    5.0474       -.16779E-06** at limit **
  21  norm          1.0350        1.6003        .41654E-06    .64238E-03
  22  Prefactor     .10000E-03    46.495       -.29024E-06** at limit **
  23  Normalizat    .78642        .22950       -.12218E-04    .33166E-03
  24  Prefactor     1.2860        .24479        .10171E-04   -.52685E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 49.1415
  Prefactor  = 14.4021
  Prefactor  = 54.8632
  norm       = 1.36585
  Prefactor  = 3.02738
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000100003
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 17.6352
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 4.8653
  Prefactor  = 0.0001
  Prefactor  = 37.9471
  norm       = 0.0001
  Prefactor  = 14.9391
  Prefactor  = 0.000100002
  norm       = 1.03498
  Prefactor  = 0.0001
  Normalizat = 0.786423
  Prefactor  = 1.28605
 **********
 **   18 **HESSE 
 **********

 FCN=   5527.585     FROM HESSE     STATUS=OK           397 CALLS     3150 TOTAL
                     EDM=   .20E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     49.142        84.275        .57175E-04   -1.4305    
   2  Prefactor     14.402        37.901        .10560E-03   -1.4949    
   3  Prefactor     54.863        100.09        .27142E-03   -1.4225    
   4  norm          1.3659        2.0535        .12400E-03   -1.5474    
   5  Prefactor     3.0274        3.3671        .13877E-03   -1.5360    
   6  norm          .10000E-03    6.7875        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    7.3664        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    21.584        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    11.297        .22449E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    3.8683        .14271E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    4.1959        .14865E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     17.635        5.7744        .95383E-04   -1.4868    
  13  norm          .10000E-03    7.7222        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    5.3471        .16787E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          4.8653        4.6694        .76124E-03   -1.5267    
  16  Prefactor     .10000E-03    15.825        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     37.947        29.639        .65064E-04   -1.4475    
  18  norm          .10000E-03    2.4202        .11294E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     14.939        12.703        .10364E-03   -1.4935    
  20  Prefactor     .10000E-03    11.352        .30443E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          1.0350        1.4883        .10432E-03   -1.5505    
  22  Prefactor     .10000E-03    46.520        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    .78642        .23603        .26793E-03   -1.0057    
  24  Prefactor     1.2860        .25349        .24703E-03   -.83723    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.03948e-09
Minuit parameter uncertainties:
  1  84.4806
  2  37.964
  3  100.399
  4  2.05364
  5  3.36736
  6  4.96325e-05
  7  6.22903e-06
  8  5.53822e-05
  9  0.000347122
  10  4.7163e-06
  11  4.2856e-06
  12  5.77454
  13  3.44892e-05
  14  7.22082e-06
  15  4.6697
  16  6.23681e-05
  17  29.6509
  18  4.09277e-06
  19  12.7048
  20  0.000264752
  21  1.48839
  22  3.5398e-05
  23  0.236333
  24  0.253728
Done.

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

Extracting fit parameters...

4FGL J1418.4+3543
   Spectrum: LogParabola
283         norm:  1.000e-04  3.471e-04  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:  1.286e+00  2.537e-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:  7.864e-01  2.363e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/323536/likelihoodResults_635385601_635644801_4FGL_J1418.4+3543_daily_bin1528.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): 102
logL (Free Index) = 5527.58497427
delta logL = -0.00042122736977

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5527.58455215
delta logL = 8.86163434188e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10419E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.0984       1.0000          .0000       5.0000    
     3 'Normalizat'    .78641       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2860       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   5527.585     FROM MIGRAD    STATUS=FAILED       101 CALLS      275 TOTAL
                     EDM=   .19E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10599E-03    422.02        .21167E-02** at limit **
   2  alpha         2.3991        3.6510        .50000       -.10847E-05
   3  Normalizat    .78642        .16610E-01    .26795E-03    .91553E-03
   4  Prefactor     1.2861        .19166E-01    .24702E-03    .11295E-02
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   5527.585     FROM SIMPLEX   STATUS=UNCHANGED    127 CALLS      402 TOTAL
                     EDM=   .18E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10599E-03    422.02        .11315E-02** at limit **
   2  alpha         2.3991        3.6510        .77418E-04   -.10847E-05
   3  Normalizat    .78642        .16610E-01    .46205E-06    .91553E-03
   4  Prefactor     1.2861        .19166E-01    .36043E-06    .11295E-02
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5527.585     FROM MIGRAD    STATUS=CONVERGED     49 CALLS      451 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    7525.0        .84667E-04** at limit **
   2  alpha         2.4101        2.9209        .50000        .62596E-07
   3  Normalizat    .78641        .95656E-01    .53590E-04   -.53714E-04
   4  Prefactor     1.2861        .11037        .49404E-04    .30283E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 2.41006
  Normalizat = 0.786415
  Prefactor  = 1.28605
 **********
 **   18 **HESSE 
 **********

 FCN=   5527.585     FROM HESSE     STATUS=OK            29 CALLS      480 TOTAL
                     EDM=   .52E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    35.516        .16933E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.4101        2.5157        .50000       -.35984E-01
   3  Normalizat    .78641        .21626        .10718E-04   -1.0057    
   4  Prefactor     1.2861        .24959        .98809E-05   -.83723    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.21181e-11
Minuit parameter uncertainties:
  1  3.80359e-05
  2  133.283
  3  0.216496
  4  0.249822
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/323536': 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) = 5527.5845502
delta logL = 2.83524514089e-06

Extracting fit parameters...

4FGL J1418.4+3543
   Spectrum: LogParabola
283         norm:  1.000e-04  3.804e-05  1.000e-04  1.000e+04 ( 1.000e-12)
284        alpha:  2.410e+00  1.333e+02  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:  1.286e+00  2.498e-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:  7.864e-01  2.165e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 214.623 35.719

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/323536/cmap_HighResolution_635385601_635644801_4FGL_J1418.4+3543_daily_bin1528.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.67e-05', job_status='DONE', photon_flux_upper_limit='6.45e-08', time_completed='2021-09-09 08:38:48.885515', job_id='323536', GAL2='1.29', fit_tolerance='1e-08', EG2='0.79', EG='0.79', time_epoch_completed='1631201928.89', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.29', dlogl='2.84e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.02' WHERE bin_id='1528' AND source_name='4FGL J1418.4+3543' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  9 08:38:48 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0215>
Subject: Job 323536: <4FGL_J1418.4+3543_daily_bin1528> in cluster <slac> Done

Job <4FGL_J1418.4+3543_daily_bin1528> was submitted from host <rhel6-64c> by user <kocevski> in cluster <slac> at Thu Sep  9 08:25:25 2021
Job was executed on host(s) <bullet0215>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  9 08:25:27 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:25:27 2021
Terminated at Thu Sep  9 08:38:49 2021
Results reported at Thu Sep  9 08:38:49 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1418.4+3543_daily_bin1528 214.623 35.7192 635385601 635644801 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 :                                   645.56 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             294.24 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   802 sec.
    Turnaround time :                            804 sec.

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

