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


Performing analysis on: 4FGL_J1418.4+3543_daily_bin1090
RA = 214.623, Dec = 35.7192
tmin = 521856001, tmax = 522115201
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='320628', job_status='RUN', time_executed='2021-09-09 08:17:50.892545', time_epoch_executed='1631200670.89' WHERE source_name='4FGL J1418.4+3543' and cadence='daily' and bin_id='1090'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/320628

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/320628/ft1_4FGL_J1418.4+3543_daily_bin1090.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/320628/ft2_4FGL_J1418.4+3543_daily_bin1090.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/320628/ft1_4FGL_J1418.4+3543_daily_bin1090.fits outfile=/scratch/kocevski/320628/ft1_filteredMKT_4FGL_J1418.4+3543_daily_bin1090.fits ra=214.623 dec=35.7192 rad=12.0 tmin=521856001.0 tmax=522115201.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.74
user 3.50
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/320628/ft1_filtered_4FGL_J1418.4+3543_daily_bin1090.fits" evtable="EVENTS" scfile=/scratch/kocevski/320628/ft2_4FGL_J1418.4+3543_daily_bin1090.fits sctable="SC_DATA" outfile=/scratch/kocevski/320628/ltcube_521856001_522115201_4FGL_J1418.4+3543_daily_bin1090.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/320628/ft2_4FGL_J1418.4+3543_daily_bin1090.fits
.....................!
real 14.37
user 13.93
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/320628/ft1_filtered_4FGL_J1418.4+3543_daily_bin1090.fits evtable="EVENTS" scfile=/scratch/kocevski/320628/ft2_4FGL_J1418.4+3543_daily_bin1090.fits sctable="SC_DATA" expcube=/scratch/kocevski/320628/ltcube_521856001_522115201_4FGL_J1418.4+3543_daily_bin1090.fits outfile=/scratch/kocevski/320628/expmap_521856001_522115201_4FGL_J1418.4+3543_daily_bin1090.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/320628/ltcube_521856001_522115201_4FGL_J1418.4+3543_daily_bin1090.fits
.....................!
real 190.65
user 185.23
sys 4.32

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/320628/ft1_filtered_4FGL_J1418.4+3543_daily_bin1090.fits scfile=/scratch/kocevski/320628/ft2_4FGL_J1418.4+3543_daily_bin1090.fits outfile=/scratch/kocevski/320628/cmap_521856001_522115201_4FGL_J1418.4+3543_daily_bin1090.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.55
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/320628/ft1_filtered_4FGL_J1418.4+3543_daily_bin1090.fits scfile=/scratch/kocevski/320628/ft2_4FGL_J1418.4+3543_daily_bin1090.fits outfile=/scratch/kocevski/320628/cmap_HighResolution_521856001_522115201_4FGL_J1418.4+3543_daily_bin1090.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.40
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10224E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    27.340       1.0000         .10000E-03   10000.    
     3 'Prefactor '    70.141       1.0000         .10000E-03   10000.    
     4 'norm      '    5.9901       1.0000         .10000E-03   10000.    
     5 'Prefactor '    4.4021       1.0000         .10000E-03   10000.    
     6 'norm      '    25.092       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    7.6313       1.0000         .10000E-03   10000.    
     9 'norm      '    .10038E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10086E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    9.4297       1.0000         .10000E-03   10000.    
    14 'Prefactor '    62.242       1.0000         .10000E-03   10000.    
    15 'norm      '    3.2587       1.0000         .10000E-03   10000.    
    16 'Prefactor '    81.318       1.0000         .10000E-03   10000.    
    17 'Prefactor '    1.1994       1.0000         .10000E-03   10000.    
    18 'norm      '    5.3723       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10114E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    5.9687       1.0000         .10000E-03   10000.    
    21 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.0593       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .91192       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=   5677.311     FROM MIGRAD    STATUS=CONVERGED    540 CALLS     2760 TOTAL
                     EDM=   .37E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    20.944        .12400E-07** at limit **
   2  Prefactor     27.367        34.768       -.42853E-06   -.10869E-03
   3  Prefactor     70.180        70.174        .79050E-06    .89671E-04
   4  norm          5.9895        2.1089        .23224E-07   -.11095E-04
   5  Prefactor     4.3969        5.5170        .23068E-06   -.16222E-03
   6  norm          25.085        17.636        .19415E-06    .99906E-04
   7  Prefactor     .10000E-03    6.7389        .60997E-07** at limit **
   8  Prefactor     7.6282        22.869        .41614E-06    .92962E-05
   9  norm          .10000E-03    2.2325        .25117E-07** at limit **
  10  Prefactor     .10000E-03    4.6264        .44660E-07** at limit **
  11  Prefactor     .10000E-03    6.3842        .76311E-07** at limit **
  12  Prefactor     .10000E-03    2.0861       -.49711E-08** at limit **
  13  norm          9.4239        12.151       -.90919E-08   -.17656E-04
  14  Prefactor     62.225        38.708       -.95277E-07   -.42439E-04
  15  norm          3.2554        8.6315        .27736E-06    .42423E-04
  16  Prefactor     81.367        64.047        .39588E-06    .13317E-03
  17  Prefactor     1.1061        57.932       -.30980E-05    .16139E-03
  18  norm          5.3748        8.0576        .34190E-05    .11522E-03
  19  Prefactor     .10000E-03    15.331       -.67057E-06** at limit **
  20  Prefactor     5.9680        5.4930       -.15563E-06   -.21586E-04
  21  norm          .10000E-03    .67343        .16925E-07** at limit **
  22  Prefactor     .10000E-03    35.716        .91626E-08** at limit **
  23  Normalizat    1.0596        .21202       -.45219E-07    .13276E-03
  24  Prefactor     .91162        .21134       -.88628E-06    .10896E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 27.3671
  Prefactor  = 70.1803
  norm       = 5.98955
  Prefactor  = 4.39692
  norm       = 25.0846
  Prefactor  = 0.0001
  Prefactor  = 7.62816
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 9.42387
  Prefactor  = 62.2251
  norm       = 3.25544
  Prefactor  = 81.3667
  Prefactor  = 1.10607
  norm       = 5.37484
  Prefactor  = 0.0001
  Prefactor  = 5.96797
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.05963
  Prefactor  = 0.911617
 **********
 **   18 **HESSE 
 **********

 FCN=   5677.311     FROM HESSE     STATUS=OK           397 CALLS     3157 TOTAL
                     EDM=   .64E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    20.952        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     27.367        34.897        .76618E-04   -1.4661    
   3  Prefactor     70.180        70.491        .47931E-04   -1.4031    
   4  norm          5.9895        2.1110        .62434E-04   -1.5218    
   5  Prefactor     4.3969        5.5260        .18111E-03   -1.5289    
   6  norm          25.085        17.674        .79970E-04   -1.4706    
   7  Prefactor     .10000E-03    6.7512        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     7.6282        23.121        .14517E-03   -1.5156    
   9  norm          .10000E-03    2.2709        .10990E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    4.6302        .15826E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    6.3913        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    2.1081        .10618E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          9.4239        12.142        .13051E-03   -1.5094    
  14  Prefactor     62.225        38.924        .50862E-04   -1.4129    
  15  norm          3.2554        8.5724        .22435E-03   -1.5347    
  16  Prefactor     81.367        63.796        .22270E-03   -1.3901    
  17  Prefactor     1.1061        476.41        .97672E-02   -1.5498    
  18  norm          5.3748        8.0777        .86691E-03   -1.5244    
  19  Prefactor     .10000E-03    15.541        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     5.9680        5.4922        .16397E-03   -1.5219    
  21  norm          .10000E-03    .68913        .12059E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    35.723        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    1.0596        .25579        .24001E-03   -.91059    
  24  Prefactor     .91162        .25012        .28425E-03   -.95736    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.39438e-09
Minuit parameter uncertainties:
  1  9.88971e-07
  2  34.9231
  3  70.5748
  4  2.11107
  5  5.52661
  6  17.6778
  7  1.56164e-06
  8  23.1485
  9  2.07832e-06
  10  1.32937e-06
  11  4.51963e-06
  12  3.9276e-06
  13  12.1447
  14  38.9398
  15  8.57566
  16  63.8493
  17  46.2834
  18  8.07931
  19  0.000115404
  20  5.49268
  21  7.37277e-07
  22  2.87399e-06
  23  0.256089
  24  0.250435
Done.

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

Extracting fit parameters...

4FGL J1418.4+3543
   Spectrum: LogParabola
283         norm:  1.000e-04  2.078e-06  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.116e-01  2.504e-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.060e+00  2.561e-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: 4.82e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.74e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/320628/likelihoodResults_521856001_522115201_4FGL_J1418.4+3543_daily_bin1090.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) = 5677.31352538
delta logL = -0.0020931890449

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5677.31143224
delta logL = -4.28726707469e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10012E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.0233       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0596       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .91164       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=   5677.311     FROM MIGRAD    STATUS=CONVERGED     89 CALLS      228 TOTAL
                     EDM=   .27E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    499.10        .11010E-02** at limit **
   2  alpha         2.1476        3.4935        .16856        .17604E-07
   3  Normalizat    1.0596        .12219        .24001E-03   -.22281E-03
   4  Prefactor     .91162        .13596        .28425E-03   -.19313E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 2.14758
  Normalizat = 1.05963
  Prefactor  = 0.911616
 **********
 **   18 **HESSE 
 **********

 FCN=   5677.311     FROM HESSE     STATUS=OK            23 CALLS      251 TOTAL
                     EDM=   .65E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    2.3162        .22019E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.1476        3.5643        .67423E-02   -.14144    
   3  Normalizat    1.0596        .21963        .48001E-04   -.91059    
   4  Prefactor     .91162        .24427        .11370E-04   -.95736    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.4844e-11
Minuit parameter uncertainties:
  1  1.16999e-05
  2  143.193
  3  0.219816
  4  0.244569
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/320628': 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) = 5677.31143177
delta logL = 4.23186065746e-07

Extracting fit parameters...

4FGL J1418.4+3543
   Spectrum: LogParabola
283         norm:  1.000e-04  1.170e-05  1.000e-04  1.000e+04 ( 1.000e-12)
284        alpha:  2.148e+00  1.432e+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:  9.116e-01  2.446e-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.060e+00  2.198e-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/320628/cmap_HighResolution_521856001_522115201_4FGL_J1418.4+3543_daily_bin1090.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.74e-05', job_status='DONE', photon_flux_upper_limit='4.82e-08', time_completed='2021-09-09 08:29:06.877471', job_id='320628', GAL2='0.91', fit_tolerance='1e-08', EG2='1.06', EG='1.06', time_epoch_completed='1631201346.88', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.91', dlogl='4.23e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.02' WHERE bin_id='1090' AND source_name='4FGL J1418.4+3543' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  9 08:29:06 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0276>
Subject: Job 320628: <4FGL_J1418.4+3543_daily_bin1090> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1418.4+3543_daily_bin1090 214.623 35.7192 521856001 522115201 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.05 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             249.44 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   799 sec.
    Turnaround time :                            800 sec.

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

