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


Performing analysis on: 4FGL_J1418.4+3543_daily_bin1035
RA = 214.623, Dec = 35.7192
tmin = 507600001, tmax = 507859201
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='320539', job_status='RUN', time_executed='2021-09-09 08:19:43.079596', time_epoch_executed='1631200783.08' WHERE source_name='4FGL J1418.4+3543' and cadence='daily' and bin_id='1035'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/320539

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/320539/ft1_4FGL_J1418.4+3543_daily_bin1035.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/320539/ft2_4FGL_J1418.4+3543_daily_bin1035.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/320539/ft1_4FGL_J1418.4+3543_daily_bin1035.fits outfile=/scratch/kocevski/320539/ft1_filteredMKT_4FGL_J1418.4+3543_daily_bin1035.fits ra=214.623 dec=35.7192 rad=12.0 tmin=507600001.0 tmax=507859201.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.60
user 3.34
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/320539/ft1_filtered_4FGL_J1418.4+3543_daily_bin1035.fits" evtable="EVENTS" scfile=/scratch/kocevski/320539/ft2_4FGL_J1418.4+3543_daily_bin1035.fits sctable="SC_DATA" outfile=/scratch/kocevski/320539/ltcube_507600001_507859201_4FGL_J1418.4+3543_daily_bin1035.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/320539/ft2_4FGL_J1418.4+3543_daily_bin1035.fits
.....................!
real 12.22
user 11.84
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/320539/ft1_filtered_4FGL_J1418.4+3543_daily_bin1035.fits evtable="EVENTS" scfile=/scratch/kocevski/320539/ft2_4FGL_J1418.4+3543_daily_bin1035.fits sctable="SC_DATA" expcube=/scratch/kocevski/320539/ltcube_507600001_507859201_4FGL_J1418.4+3543_daily_bin1035.fits outfile=/scratch/kocevski/320539/expmap_507600001_507859201_4FGL_J1418.4+3543_daily_bin1035.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/320539/ltcube_507600001_507859201_4FGL_J1418.4+3543_daily_bin1035.fits
.....................!
real 190.76
user 185.20
sys 5.20

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/320539/ft1_filtered_4FGL_J1418.4+3543_daily_bin1035.fits scfile=/scratch/kocevski/320539/ft2_4FGL_J1418.4+3543_daily_bin1035.fits outfile=/scratch/kocevski/320539/cmap_507600001_507859201_4FGL_J1418.4+3543_daily_bin1035.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/320539/ft1_filtered_4FGL_J1418.4+3543_daily_bin1035.fits scfile=/scratch/kocevski/320539/ft2_4FGL_J1418.4+3543_daily_bin1035.fits outfile=/scratch/kocevski/320539/cmap_HighResolution_507600001_507859201_4FGL_J1418.4+3543_daily_bin1035.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.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10051E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10709E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    52.177       1.0000         .10000E-03   10000.    
     4 'norm      '    6.1925       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    6.1236       1.0000         .10000E-03   10000.    
     7 'Prefactor '    7.0424       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    7.3616       1.0000         .10000E-03   10000.    
    10 'Prefactor '    24.058       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .92314E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    9.1974       1.0000         .10000E-03   10000.    
    13 'norm      '    .54236E-01   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10389E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    3.7892       1.0000         .10000E-03   10000.    
    16 'Prefactor '    6.8029       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    27.808       1.0000         .10000E-03   10000.    
    20 'Prefactor '    6.1419       1.0000         .10000E-03   10000.    
    21 'norm      '    1.5066       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    .93931       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .84280       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=   5637.178     FROM MIGRAD    STATUS=CONVERGED    966 CALLS     3542 TOTAL
                     EDM=   .51E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    54.149        .18142E-02** at limit **
   2  Prefactor     .10000E-03    51.027        .36285E-03** at limit **
   3  Prefactor     52.180        65.103        .55523E-04    .35218E-05
   4  norm          6.1926        1.8069        .52710E-04   -.32353E-05
   5  Prefactor     .10000E-03    1.2356        .81306E-03** at limit **
   6  norm          6.1226        12.259        .16224E-03   -.78483E-04
   7  Prefactor     7.0375        19.390        .15117E-03    .39107E-04
   8  Prefactor     .10000E-03    14.564        .18142E-02** at limit **
   9  norm          7.3614        3.9353        .10484E-03   -.50296E-04
  10  Prefactor     24.027        23.340        .81668E-04   -.10649E-03
  11  Prefactor     .10081E-03    44.367        .77339E-01** at limit **
  12  Prefactor     9.1978        4.8190        .11226E-03   -.14765E-03
  13  norm          .59433E-01    15.710        .87747E-01   -.71058E-04
  14  Prefactor     .10000E-03    36.110        .18142E-02** at limit **
  15  norm          3.7886        4.9237        .18161E-03   -.76435E-04
  16  Prefactor     6.7989        84.352        .15383E-03   -.23132E-04
  17  Prefactor     .10000E-03    20.348        .18142E-02** at limit **
  18  norm          .10000E-03    2.3098        .11144E-02** at limit **
  19  Prefactor     27.810        14.160        .75971E-04   -.12421E-04
  20  Prefactor     6.1419        4.8770        .14274E-03   -.88565E-04
  21  norm          1.5065        1.2421        .73677E-04    .20060E-05
  22  Prefactor     .10000E-03    33.046        .18142E-02** at limit **
  23  Normalizat    .93920        .20576        .22853E-03   -.90540E-05
  24  Prefactor     .84295        .22237        .27307E-03   -.20329E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 52.1796
  norm       = 6.19256
  Prefactor  = 0.0001
  norm       = 6.12258
  Prefactor  = 7.0375
  Prefactor  = 0.0001
  norm       = 7.36138
  Prefactor  = 24.0271
  Prefactor  = 0.000100812
  Prefactor  = 9.19784
  norm       = 0.0594331
  Prefactor  = 0.0001
  norm       = 3.78862
  Prefactor  = 6.79893
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 27.8095
  Prefactor  = 6.14188
  norm       = 1.5065
  Prefactor  = 0.000100001
  Normalizat = 0.939201
  Prefactor  = 0.842946
 **********
 **   18 **HESSE 
 **********

 FCN=   5637.178     FROM HESSE     STATUS=OK           393 CALLS     3935 TOTAL
                     EDM=   .48E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    54.161        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    51.030        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     52.180        65.105        .11105E-04   -1.4262    
   4  norm          6.1926        1.8069        .21084E-05   -1.5210    
   5  Prefactor     .10000E-03    1.2357        .16261E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          6.1226        12.259        .64895E-05   -1.5213    
   7  Prefactor     7.0375        19.385        .60467E-05   -1.5177    
   8  Prefactor     .10000E-03    14.567        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          7.3614        3.9353        .20967E-04   -1.5165    
  10  Prefactor     24.027        23.092        .32667E-05   -1.4727    
  11  Prefactor     .10081E-03    35.228        .87735E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     9.1978        4.8189        .44906E-05   -1.5101    
  13  norm          .59433E-01    15.537        .88549E-01   -1.5659    
  14  Prefactor     .10000E-03    36.127        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          3.7886        4.9233        .72643E-05   -1.5319    
  16  Prefactor     6.7989        84.341        .61533E-05   -1.5186    
  17  Prefactor     .10000E-03    20.350        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    2.3098        .22287E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     27.810        14.160        .30388E-05   -1.4653    
  20  Prefactor     6.1419        4.8770        .57097E-05   -1.5212    
  21  norm          1.5065        1.2421        .29471E-05   -1.5462    
  22  Prefactor     .10000E-03    33.046        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    .93920        .20600        .91411E-05   -.95096    
  24  Prefactor     .84295        .22263        .10923E-04   -.98164    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.8153e-10
Minuit parameter uncertainties:
  1  8.95518e-05
  2  0.000179766
  3  65.194
  4  1.80695
  5  3.95675e-07
  6  12.2637
  7  19.4025
  8  5.43185e-06
  9  3.93543
  10  23.1011
  11  0.0107055
  12  4.81912
  13  1.92075
  14  0.000210744
  15  4.92378
  16  47.9765
  17  6.77247e-05
  18  1.33659e-06
  19  14.1621
  20  4.87728
  21  1.24211
  22  0.000337378
  23  0.206175
  24  0.222872
Done.

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

Extracting fit parameters...

4FGL J1418.4+3543
   Spectrum: LogParabola
283         norm:  7.361e+00  3.935e+00  1.000e-04  1.000e+04 ( 1.000e-12)
284        alpha:  2.016e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
285         beta:  6.612e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
286           Eb:  8.292e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
575    Prefactor:  8.429e-01  2.229e-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:  9.392e-01  2.062e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 9.52
Ra Dec: 214.623 35.719
Photon Index (Fixed Index): 2.02 +/- 0.00
Photon Flux (Fixed Index): 4.47e-08 +/- 2.39e-08
Energy Flux (Fixed Index): 2.55e-05 +/- 1.36e-05

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) = 5636.78601451
delta logL = 0.392440988905

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5636.76298015
delta logL = 0.415475352615

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    7.5165       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.6399       1.0000          .0000       5.0000    
     3 'Normalizat'    .95278       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .83327       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=   5636.763     FROM MIGRAD    STATUS=CONVERGED     46 CALLS      197 TOTAL
                     EDM=   .54E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          7.5165        4.1330        .36570E-02    .39316E-03
   2  alpha         1.6398        .36684        .26991       -.19982E-04
   3  Normalizat    .95276        .16467        .45573E-01    .91310E-05
   4  Prefactor     .83329        .18804        .44149E-01    .14223E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 7.51651
  alpha      = 1.63982
  Normalizat = 0.952756
  Prefactor  = 0.833291
 **********
 **   18 **HESSE 
 **********

 FCN=   5636.763     FROM HESSE     STATUS=OK            33 CALLS      230 TOTAL
                     EDM=   .18E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          7.5165        4.0865        .10678E-03   -1.5160    
   2  alpha         1.6398        .38937        .11103E-01   -.35125    
   3  Normalizat    .95276        .19191        .22715E-03   -.94630    
   4  Prefactor     .83329        .21925        .27448E-03   -.98513    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.84328e-10
Minuit parameter uncertainties:
  1  4.08666
  2  0.391182
  3  0.192044
  4  0.219479
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/320539': 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) = 5636.76298013
delta logL = 0.41547536602

Extracting fit parameters...

4FGL J1418.4+3543
   Spectrum: LogParabola
283         norm:  7.517e+00  4.087e+00  1.000e-04  1.000e+04 ( 1.000e-12)
284        alpha:  1.640e+00  3.912e-01  0.000e+00  5.000e+00 ( 1.000e+00)
285         beta:  6.612e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
286           Eb:  8.292e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
575    Prefactor:  8.333e-01  2.195e-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:  9.528e-01  1.920e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 10.38
Ra Dec: 214.623 35.719
Photon Index (Free Index): 1.64 +/- 0.39
Photon Flux (Free Index): 3.25e-08 +/- 2.11e-08
Energy Flux (Free Index): 4.28e-05 +/- 3.57e-05

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

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='4.47e-08', energy_flux2='4.28e-05', photon_flux_error='2.39e-08', dlogl='4.15e-01', energy_flux='2.55e-05', photon_flux2='3.25e-08', job_status='DONE', time_completed='2021-09-09 08:30:46.121273', photon_index_error2='0.39', photon_index2='1.64', ts='9.52', fit_tolerance='1e-08', GAL='0.84', photon_index_error='0.00', energy_flux_error2='3.57e-05', EG='0.94', time_epoch_completed='1631201446.12', return_code='0', job_id='320539', GAL2='0.83', EG2='0.95', return_code2='0', energy_flux_error='1.36e-05', photon_flux_error2='2.11e-08', ts2='10.38', photon_index='2.02' WHERE bin_id='1035' AND source_name='4FGL J1418.4+3543' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  9 08:30:46 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0218>
Subject: Job 320539: <4FGL_J1418.4+3543_daily_bin1035> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1418.4+3543_daily_bin1035 214.623 35.7192 507600001 507859201 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 :                                   636.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             223.88 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   903 sec.
    Turnaround time :                            905 sec.

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

