/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 1 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_bin1466
RA = 214.623, Dec = 35.7192
tmin = 619315201, tmax = 619574401
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='323445', job_status='RUN', time_executed='2021-09-09 08:25:30.235962', time_epoch_executed='1631201130.24' WHERE source_name='4FGL J1418.4+3543' and cadence='daily' and bin_id='1466'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/323445

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/323445/ft1_4FGL_J1418.4+3543_daily_bin1466.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/323445/ft2_4FGL_J1418.4+3543_daily_bin1466.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/323445/ft1_4FGL_J1418.4+3543_daily_bin1466.fits outfile=/scratch/kocevski/323445/ft1_filteredMKT_4FGL_J1418.4+3543_daily_bin1466.fits ra=214.623 dec=35.7192 rad=12.0 tmin=619315201.0 tmax=619574401.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.52
user 3.29
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/323445/ft2_4FGL_J1418.4+3543_daily_bin1466.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/323445/ft1_filteredMKT_4FGL_J1418.4+3543_daily_bin1466.fits evtable="EVENTS" outfile="/scratch/kocevski/323445/ft1_filtered_4FGL_J1418.4+3543_daily_bin1466.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/323445/ft1_filtered_4FGL_J1418.4+3543_daily_bin1466.fits" evtable="EVENTS" scfile=/scratch/kocevski/323445/ft2_4FGL_J1418.4+3543_daily_bin1466.fits sctable="SC_DATA" outfile=/scratch/kocevski/323445/ltcube_619315201_619574401_4FGL_J1418.4+3543_daily_bin1466.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/323445/ft2_4FGL_J1418.4+3543_daily_bin1466.fits
.....................!
real 12.17
user 11.80
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/323445/ft1_filtered_4FGL_J1418.4+3543_daily_bin1466.fits evtable="EVENTS" scfile=/scratch/kocevski/323445/ft2_4FGL_J1418.4+3543_daily_bin1466.fits sctable="SC_DATA" expcube=/scratch/kocevski/323445/ltcube_619315201_619574401_4FGL_J1418.4+3543_daily_bin1466.fits outfile=/scratch/kocevski/323445/expmap_619315201_619574401_4FGL_J1418.4+3543_daily_bin1466.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/323445/ltcube_619315201_619574401_4FGL_J1418.4+3543_daily_bin1466.fits
.....................!
real 191.09
user 186.20
sys 4.55

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/323445/ft1_filtered_4FGL_J1418.4+3543_daily_bin1466.fits scfile=/scratch/kocevski/323445/ft2_4FGL_J1418.4+3543_daily_bin1466.fits outfile=/scratch/kocevski/323445/cmap_619315201_619574401_4FGL_J1418.4+3543_daily_bin1466.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/323445/ft1_filtered_4FGL_J1418.4+3543_daily_bin1466.fits scfile=/scratch/kocevski/323445/ft2_4FGL_J1418.4+3543_daily_bin1466.fits outfile=/scratch/kocevski/323445/cmap_HighResolution_619315201_619574401_4FGL_J1418.4+3543_daily_bin1466.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.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    39.231       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10099E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    3.1390       1.0000         .10000E-03   10000.    
     5 'Prefactor '    5.6323       1.0000         .10000E-03   10000.    
     6 'norm      '    13.357       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    15.239       1.0000         .10000E-03   10000.    
    11 'Prefactor '    3.0963       1.0000         .10000E-03   10000.    
    12 'Prefactor '    12.927       1.0000         .10000E-03   10000.    
    13 'norm      '    .10030E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    27.492       1.0000         .10000E-03   10000.    
    15 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10129E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    58.095       1.0000         .10000E-03   10000.    
    18 'norm      '    12.779       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    2.2724       1.0000         .10000E-03   10000.    
    21 'norm      '    2.3281       1.0000         .10000E-03   10000.    
    22 'Prefactor '    146.22       1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.0610       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .87583       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=   6179.439     FROM MIGRAD    STATUS=CONVERGED    539 CALLS     2761 TOTAL
                     EDM=   .56E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     39.196        46.798       -.56588E-05   -.31199E-03
   2  Prefactor     .10000E-03    14.793       -.30301E-07** at limit **
   3  Prefactor     .10000E-03    83.983        .28245E-06** at limit **
   4  norm          3.1390        1.5052        .15913E-08   -.11097E-04
   5  Prefactor     5.6320        4.4241        .17281E-05   -.11381E-02
   6  norm          13.357        19.346        .74565E-07   -.74603E-06
   7  Prefactor     .10000E-03    6.7156       -.28864E-07** at limit **
   8  Prefactor     .10000E-03    5.0726        .43963E-07** at limit **
   9  norm          .10000E-03    2.4132        .15674E-07** at limit **
  10  Prefactor     15.229        24.768       -.87892E-06   -.19225E-03
  11  Prefactor     3.1081        35.268       -.17826E-06   -.14727E-03
  12  Prefactor     12.927        5.0722       -.18311E-06   -.28652E-03
  13  norm          .10000E-03    25.722       -.54093E-06** at limit **
  14  Prefactor     27.493        24.617       -.72512E-07   -.14736E-04
  15  norm          .10000E-03    2.1200        .17506E-08** at limit **
  16  Prefactor     .10000E-03    185.74        .11876E-05** at limit **
  17  Prefactor     58.096        37.030        .85219E-07    .14908E-04
  18  norm          12.779        9.0157       -.15999E-06   -.94395E-04
  19  Prefactor     .10000E-03    4.6893        .15085E-07** at limit **
  20  Prefactor     2.2723        5.5504        .28532E-06   -.21272E-03
  21  norm          2.3283        1.4295       -.22467E-07   -.13695E-04
  22  Prefactor     146.23        98.003        .32883E-06    .20225E-04
  23  Normalizat    1.0610        .18251        .45803E-06   -.27296E-05
  24  Prefactor     .87588        .19634       -.68091E-06    .49211E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 39.1956
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.13902
  Prefactor  = 5.63201
  norm       = 13.3573
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 15.2286
  Prefactor  = 3.10812
  Prefactor  = 12.9271
  norm       = 0.0001
  Prefactor  = 27.4931
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 58.0962
  norm       = 12.7792
  Prefactor  = 0.0001
  Prefactor  = 2.2723
  norm       = 2.32826
  Prefactor  = 146.225
  Normalizat = 1.061
  Prefactor  = 0.875875
 **********
 **   18 **HESSE 
 **********

 FCN=   6179.439     FROM HESSE     STATUS=OK           399 CALLS     3160 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     39.196        50.230        .63994E-04   -1.4455    
   2  Prefactor     .10000E-03    14.881        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    84.309        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          3.1390        1.5051        .64438E-04   -1.5354    
   5  Prefactor     5.6320        4.7123        .73745E-03   -1.5233    
   6  norm          13.357        19.465        .10960E-03   -1.4977    
   7  Prefactor     .10000E-03    6.7182        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    5.0786        .17291E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    2.4663        .11911E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     15.229        23.153        .10260E-03   -1.4927    
  11  Prefactor     3.1081        31.218        .23047E-03   -1.5355    
  12  Prefactor     12.927        5.0986        .10512E-03   -1.4989    
  13  norm          .10000E-03    25.879        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     27.493        24.701        .76406E-04   -1.4659    
  15  norm          .10000E-03    2.1280        .11175E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    188.48        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     58.096        37.125        .52635E-04   -1.4182    
  18  norm          12.779        9.0234        .11205E-03   -1.4993    
  19  Prefactor     .10000E-03    4.6953        .16623E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     2.2723        5.5578        .27243E-03   -1.5406    
  21  norm          2.3283        1.4229        .68082E-04   -1.5403    
  22  Prefactor     146.23        97.906        .33324E-04   -1.3284    
  23  Normalizat    1.0610        .21906        .23218E-03   -.91014    
  24  Prefactor     .87588        .23267        .28908E-03   -.96989    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.41976e-09
Minuit parameter uncertainties:
  1  50.2841
  2  1.37731e-05
  3  7.88683e-05
  4  1.50508
  5  4.71256
  6  19.4744
  7  5.72701e-06
  8  1.81634e-07
  9  5.79388e-06
  10  23.1669
  11  19.7137
  12  5.09874
  13  0.000127441
  14  24.7098
  15  1.29798e-06
  16  0.000483613
  17  37.1394
  18  9.02438
  19  4.87832e-08
  20  5.5591
  21  1.42296
  22  98.0149
  23  0.219249
  24  0.232932
Done.

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

Extracting fit parameters...

4FGL J1418.4+3543
   Spectrum: LogParabola
283         norm:  1.000e-04  5.794e-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:  8.759e-01  2.329e-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.061e+00  2.192e-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.74e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.70e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/323445/likelihoodResults_619315201_619574401_4FGL_J1418.4+3543_daily_bin1466.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) = 6179.44096247
delta logL = -0.00192942585454

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6179.43903146
delta logL = 1.58103375725e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10187E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.0652       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0611       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .87583       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=   6179.236     FROM MIGRAD    STATUS=CONVERGED    128 CALLS      278 TOTAL
                     EDM=   .32E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .38623        15.308        .90712E-02   -.92240E-04
   2  alpha         3.6382        4.1333        .41967       -.95768E-05
   3  Normalizat    1.0289        .33777E-01    .39870E-01    .27656E-03
   4  Prefactor     .89637        .38824E-01    .64660E-01    .78765E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.386233
  alpha      = 3.63819
  Normalizat = 1.02893
  Prefactor  = 0.896366
 **********
 **   18 **HESSE 
 **********

 FCN=   6179.236     FROM HESSE     STATUS=OK            31 CALLS      309 TOTAL
                     EDM=   .86E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .38623        2.1792        .79019E-04   -1.5584    
   2  alpha         3.6382        3.8575        .26205E-01    .47268    
   3  Normalizat    1.0289        .20747        .23518E-03   -.92068    
   4  Prefactor     .89637        .23332        .28599E-03   -.96268    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.57458e-10
Minuit parameter uncertainties:
  1  1.83472
  2  2.57134
  3  0.207636
  4  0.233575
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/323445': 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) = 6179.23643102
delta logL = 0.202602027715

Extracting fit parameters...

4FGL J1418.4+3543
   Spectrum: LogParabola
283         norm:  3.862e-01  1.835e+00  1.000e-04  1.000e+04 ( 1.000e-12)
284        alpha:  3.638e+00  2.571e+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:  8.964e-01  2.336e-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.029e+00  2.076e-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/323445/cmap_HighResolution_619315201_619574401_4FGL_J1418.4+3543_daily_bin1466.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.70e-05', job_status='DONE', photon_flux_upper_limit='4.74e-08', time_completed='2021-09-09 08:37:42.539770', job_id='323445', GAL2='0.90', fit_tolerance='1e-08', EG2='1.03', EG='1.06', time_epoch_completed='1631201862.54', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.88', dlogl='2.03e-01', ts2='0.43', photon_index_error='0.00', photon_index='2.02' WHERE bin_id='1466' AND source_name='4FGL J1418.4+3543' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  9 08:37:42 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0064>
Subject: Job 323445: <4FGL_J1418.4+3543_daily_bin1466> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1418.4+3543_daily_bin1466 214.623 35.7192 619315201 619574401 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 :                                   677.26 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             325.65 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   742 sec.
    Turnaround time :                            746 sec.

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

