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


Performing analysis on: 4FGL_J1418.4+3543_daily_bin1087
RA = 214.623, Dec = 35.7192
tmin = 521078401, tmax = 521337601
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='320624', job_status='RUN', time_executed='2021-09-09 08:19:03.380300', time_epoch_executed='1631200743.38' WHERE source_name='4FGL J1418.4+3543' and cadence='daily' and bin_id='1087'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/320624

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/320624/ft1_4FGL_J1418.4+3543_daily_bin1087.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/320624/ft2_4FGL_J1418.4+3543_daily_bin1087.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/320624/ft1_4FGL_J1418.4+3543_daily_bin1087.fits outfile=/scratch/kocevski/320624/ft1_filteredMKT_4FGL_J1418.4+3543_daily_bin1087.fits ra=214.623 dec=35.7192 rad=12.0 tmin=521078401.0 tmax=521337601.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 4.59
user 4.34
sys 0.22

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/320624/ft1_filtered_4FGL_J1418.4+3543_daily_bin1087.fits evtable="EVENTS" scfile=/scratch/kocevski/320624/ft2_4FGL_J1418.4+3543_daily_bin1087.fits sctable="SC_DATA" expcube=/scratch/kocevski/320624/ltcube_521078401_521337601_4FGL_J1418.4+3543_daily_bin1087.fits outfile=/scratch/kocevski/320624/expmap_521078401_521337601_4FGL_J1418.4+3543_daily_bin1087.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/320624/ltcube_521078401_521337601_4FGL_J1418.4+3543_daily_bin1087.fits
.....................!
real 190.08
user 185.22
sys 4.51

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/320624/ft1_filtered_4FGL_J1418.4+3543_daily_bin1087.fits scfile=/scratch/kocevski/320624/ft2_4FGL_J1418.4+3543_daily_bin1087.fits outfile=/scratch/kocevski/320624/cmap_521078401_521337601_4FGL_J1418.4+3543_daily_bin1087.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.39
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/320624/ft1_filtered_4FGL_J1418.4+3543_daily_bin1087.fits scfile=/scratch/kocevski/320624/ft2_4FGL_J1418.4+3543_daily_bin1087.fits outfile=/scratch/kocevski/320624/cmap_HighResolution_521078401_521337601_4FGL_J1418.4+3543_daily_bin1087.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=214.623 yref=35.7192 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.54
user 0.36
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .20421E-02   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    42.178       1.0000         .10000E-03   10000.    
     4 'norm      '    4.9152       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    20.131       1.0000         .10000E-03   10000.    
     9 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10934E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    3.1013       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10184E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    13.146       1.0000         .10000E-03   10000.    
    15 'norm      '    .10086E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .84523       1.0000         .10000E-03   10000.    
    18 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    7.9998       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .72456       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.1948       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .77547       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=   5769.386     FROM MIGRAD    STATUS=CONVERGED    572 CALLS     2831 TOTAL
                     EDM=   .25E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10001E-03    26.340        .37343E-07** at limit **
   2  Prefactor     .10000E-03    12.281       -.26738E-06** at limit **
   3  Prefactor     42.165        54.439       -.89430E-05   -.48310E-04
   4  norm          4.9151        1.7276        .14104E-07    .33341E-04
   5  Prefactor     .10000E-03    .97062       -.17184E-07** at limit **
   6  norm          .10000E-03    8.8067        .12610E-06** at limit **
   7  Prefactor     .10000E-03    7.5456        .19226E-07** at limit **
   8  Prefactor     20.128        19.893       -.17556E-06    .53043E-05
   9  norm          .10000E-03    2.2715       -.88510E-07** at limit **
  10  Prefactor     .10000E-03    13.442       -.12941E-05** at limit **
  11  Prefactor     3.0979        5.0946        .72098E-06   -.68943E-03
  12  Prefactor     .10000E-03    1.7185       -.54800E-07** at limit **
  13  norm          .10000E-03    13.067        .84260E-06** at limit **
  14  Prefactor     13.145        19.442       -.36567E-06    .37744E-05
  15  norm          .10000E-03    5.1429       -.18329E-06** at limit **
  16  Prefactor     .10000E-03    20.520       -.38827E-07** at limit **
  17  Prefactor     .80241        33.263       -.10464E-05    .43980E-05
  18  norm          .10000E-03    7.0482        .22695E-07** at limit **
  19  Prefactor     8.0110        16.872        .85688E-06    .56905E-04
  20  Prefactor     .10000E-03    3.3407       -.33700E-07** at limit **
  21  norm          .72336        1.2940       -.54769E-07   -.37155E-03
  22  Prefactor     .10000E-03    62.582       -.16369E-06** at limit **
  23  Normalizat    1.1949        .17636        .11575E-05    .63981E-04
  24  Prefactor     .77550        .19142       -.89189E-06    .13474E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100006
  Prefactor  = 0.0001
  Prefactor  = 42.1654
  norm       = 4.91507
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 20.1276
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.09792
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 13.1452
  norm       = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.802408
  norm       = 0.0001
  Prefactor  = 8.01104
  Prefactor  = 0.0001
  norm       = 0.723355
  Prefactor  = 0.0001
  Normalizat = 1.19486
  Prefactor  = 0.775501
 **********
 **   18 **HESSE 
 **********

 FCN=   5769.386     FROM HESSE     STATUS=OK           399 CALLS     3230 TOTAL
                     EDM=   .25E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10001E-03    260.54        .75869E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    12.382        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     42.165        54.874        .61726E-04   -1.4408    
   4  norm          4.9151        1.7284        .57093E-04   -1.5265    
   5  Prefactor     .10000E-03    .97386        .73070E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    8.8677        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    7.5602        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     20.128        19.973        .89268E-04   -1.4810    
   9  norm          .10000E-03    2.3385        .22350E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    13.683        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     3.0979        12.322        .11514E-02   -1.5356    
  12  Prefactor     .10000E-03    1.7433        .97185E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    13.354        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     13.145        19.456        .11047E-03   -1.4983    
  15  norm          .10000E-03    22.705        .32748E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    20.545        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .80241        422.16        .80926E-02   -1.5529    
  18  norm          .10000E-03    7.1059        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     8.0110        16.703        .14176E-03   -1.5142    
  20  Prefactor     .10000E-03    3.3530        .13549E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .72336        1.1376        .10967E-02   -1.5538    
  22  Prefactor     .10000E-03    62.651        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    1.1949        .21092        .20640E-03   -.86762    
  24  Prefactor     .77550        .22587        .28692E-03   -1.0064    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.47081e-09
Minuit parameter uncertainties:
  1  0.00255586
  2  7.90438e-06
  3  54.94
  4  1.72845
  5  6.02928e-07
  6  1.41434e-05
  7  3.9666e-08
  8  19.9796
  9  2.5844e-06
  10  2.67612e-05
  11  12.3325
  12  2.59784e-06
  13  5.75332e-06
  14  19.4653
  15  0.000283315
  16  4.90616e-06
  17  37.0733
  18  4.54922e-06
  19  16.7125
  20  3.91129e-06
  21  1.13765
  22  1.57198e-05
  23  0.211071
  24  0.226144
Done.

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

Extracting fit parameters...

4FGL J1418.4+3543
   Spectrum: LogParabola
283         norm:  1.000e-04  2.584e-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:  7.755e-01  2.261e-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.195e+00  2.111e-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.32e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.46e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/320624/likelihoodResults_521078401_521337601_4FGL_J1418.4+3543_daily_bin1087.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) = 5769.38760761
delta logL = -0.00203565830088

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5769.38555143
delta logL = 2.05257711059e-05

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10011E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.6525       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1949       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .77551       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=   5769.365     FROM MIGRAD    STATUS=CONVERGED    123 CALLS      350 TOTAL
                     EDM=   .30E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .12602        8.9937        .18979E-01    .19132E-02
   2  alpha         3.4920        2.6096        .41249        .43832E-04
   3  Normalizat    1.1864        .18469E-01    .35019E-01   -.38653E-04
   4  Prefactor     .78053        .21263E-01    .64670E-01    .74377E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.126021
  alpha      = 3.49202
  Normalizat = 1.18638
  Prefactor  = 0.780534
 **********
 **   18 **HESSE 
 **********

 FCN=   5769.365     FROM HESSE     STATUS=NOT POSDEF    35 CALLS      385 TOTAL
                     EDM=   .33E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .12602        147.94        .98950E-03   -1.5637    
   2  alpha         3.4920        4.2439        .63737E-01    .40804    
   3  Normalizat    1.1864        .10521        .20705E-03   -.87025    
   4  Prefactor     .78053        .11777        .28608E-03   -1.0045    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.25992e-06
Minuit parameter uncertainties:
  1  8.65368
  2  33.5111
  3  0.105227
  4  0.117804
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/320624': 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): 102
logL (Free Index) = 5769.36511306
delta logL = 0.0204588934103

Extracting fit parameters...

4FGL J1418.4+3543
   Spectrum: LogParabola
283         norm:  1.260e-01  8.654e+00  1.000e-04  1.000e+04 ( 1.000e-12)
284        alpha:  3.492e+00  3.351e+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:  7.805e-01  1.178e-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.186e+00  1.052e-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/320624/cmap_HighResolution_521078401_521337601_4FGL_J1418.4+3543_daily_bin1087.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.46e-05', job_status='DONE', photon_flux_upper_limit='4.32e-08', time_completed='2021-09-09 08:31:04.538745', job_id='320624', GAL2='0.78', fit_tolerance='1e-08', EG2='1.19', EG='1.19', time_epoch_completed='1631201464.54', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.78', dlogl='2.05e-02', ts2='0.04', photon_index_error='0.00', photon_index='2.02' WHERE bin_id='1087' AND source_name='4FGL J1418.4+3543' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  9 08:31:04 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0245>
Subject: Job 320624: <4FGL_J1418.4+3543_daily_bin1087> in cluster <slac> Done

Job <4FGL_J1418.4+3543_daily_bin1087> 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) <bullet0245>, 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:31:05 2021
Results reported at Thu Sep  9 08:31:05 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1418.4+3543_daily_bin1087 214.623 35.7192 521078401 521337601 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 :                                   676.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             229.78 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   916 sec.
    Turnaround time :                            918 sec.

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

