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


Performing analysis on: 4FGL_J1418.4+3543_daily_bin1068
RA = 214.623, Dec = 35.7192
tmin = 516153601, tmax = 516412801
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='320596', job_status='RUN', time_executed='2021-09-09 08:18:09.004512', time_epoch_executed='1631200689.0' WHERE source_name='4FGL J1418.4+3543' and cadence='daily' and bin_id='1068'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/320596

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/320596/ft1_4FGL_J1418.4+3543_daily_bin1068.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/320596/ft2_4FGL_J1418.4+3543_daily_bin1068.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/320596/ft1_4FGL_J1418.4+3543_daily_bin1068.fits outfile=/scratch/kocevski/320596/ft1_filteredMKT_4FGL_J1418.4+3543_daily_bin1068.fits ra=214.623 dec=35.7192 rad=12.0 tmin=516153601.0 tmax=516412801.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.50
user 3.27
sys 0.21

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/320596/ft1_filtered_4FGL_J1418.4+3543_daily_bin1068.fits evtable="EVENTS" scfile=/scratch/kocevski/320596/ft2_4FGL_J1418.4+3543_daily_bin1068.fits sctable="SC_DATA" expcube=/scratch/kocevski/320596/ltcube_516153601_516412801_4FGL_J1418.4+3543_daily_bin1068.fits outfile=/scratch/kocevski/320596/expmap_516153601_516412801_4FGL_J1418.4+3543_daily_bin1068.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/320596/ltcube_516153601_516412801_4FGL_J1418.4+3543_daily_bin1068.fits
.....................!
real 190.31
user 185.62
sys 4.35

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/320596/ft1_filtered_4FGL_J1418.4+3543_daily_bin1068.fits scfile=/scratch/kocevski/320596/ft2_4FGL_J1418.4+3543_daily_bin1068.fits outfile=/scratch/kocevski/320596/cmap_516153601_516412801_4FGL_J1418.4+3543_daily_bin1068.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.52
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/320596/ft1_filtered_4FGL_J1418.4+3543_daily_bin1068.fits scfile=/scratch/kocevski/320596/ft2_4FGL_J1418.4+3543_daily_bin1068.fits outfile=/scratch/kocevski/320596/cmap_HighResolution_516153601_516412801_4FGL_J1418.4+3543_daily_bin1068.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/320596/ft1_filtered_4FGL_J1418.4+3543_daily_bin1068.fits evtable="EVENTS" scfile=/scratch/kocevski/320596/ft2_4FGL_J1418.4+3543_daily_bin1068.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/320596/Model_4FGL_J1418.4+3543_daily_bin1068.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/320596/ft1_filtered_4FGL_J1418.4+3543_daily_bin1068.fits.....................!
real 45.64
user 44.35
sys 1.14

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    5.5901       1.0000         .10000E-03   10000.    
     3 'Prefactor '    101.43       1.0000         .10000E-03   10000.    
     4 'norm      '    11.240       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10625E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10039E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    2.0418       1.0000         .10000E-03   10000.    
    10 'Prefactor '    5.9139       1.0000         .10000E-03   10000.    
    11 'Prefactor '    4.8461       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    19.297       1.0000         .10000E-03   10000.    
    15 'norm      '    1.2728       1.0000         .10000E-03   10000.    
    16 'Prefactor '    25.467       1.0000         .10000E-03   10000.    
    17 'Prefactor '    15.723       1.0000         .10000E-03   10000.    
    18 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    9.8092       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    2.1714       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10066E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    .82185       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.1247       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=   5873.968     FROM MIGRAD    STATUS=CONVERGED    937 CALLS     3461 TOTAL
                     EDM=   .14E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    20.367        .18142E-02** at limit **
   2  Prefactor     5.5893        7.8575        .16992E-03    .58879E-05
   3  Prefactor     101.43        86.751        .39921E-04   -.20504E-05
   4  norm          11.240        2.4460        .53781E-04   -.20293E-04
   5  Prefactor     .10000E-03    5.0987        .22749E-02** at limit **
   6  norm          .10000E-03    6.8294        .18142E-02** at limit **
   7  Prefactor     .10000E-03    11.446        .18142E-02** at limit **
   8  Prefactor     .10000E-03    6.7658        .18142E-02** at limit **
   9  norm          2.0422        3.9743        .20136E-03    .27666E-05
  10  Prefactor     5.8831        64.256        .16513E-03    .17212E-04
  11  Prefactor     4.8927        122.97        .18274E-03    .16487E-04
  12  Prefactor     .10000E-03    1.2088        .81964E-03** at limit **
  13  norm          .10000E-03    6.3751        .18142E-02** at limit **
  14  Prefactor     19.291        30.729        .91177E-04   -.41147E-05
  15  norm          1.2720        3.7443        .24866E-03    .32964E-04
  16  Prefactor     25.463        42.570        .79380E-04   -.21483E-05
  17  Prefactor     15.724        23.055        .10101E-03    .20260E-05
  18  norm          .10000E-03    5.5834        .17556E-02** at limit **
  19  Prefactor     9.8084        10.742        .12795E-03   -.19815E-04
  20  Prefactor     .10000E-03    3.4582        .13831E-02** at limit **
  21  norm          2.1713        1.6504        .81880E-04   -.43320E-04
  22  Prefactor     .10000E-03    50.112        .18142E-02** at limit **
  23  Normalizat    .82185        .21540        .24444E-03    .12306E-03
  24  Prefactor     1.1247        .23386        .25016E-03   -.15679E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 5.58929
  Prefactor  = 101.433
  norm       = 11.2395
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.04221
  Prefactor  = 5.8831
  Prefactor  = 4.89271
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 19.2909
  norm       = 1.272
  Prefactor  = 25.463
  Prefactor  = 15.7236
  norm       = 0.0001
  Prefactor  = 9.80837
  Prefactor  = 0.0001
  norm       = 2.17126
  Prefactor  = 0.0001
  Normalizat = 0.821852
  Prefactor  = 1.12466
 **********
 **   18 **HESSE 
 **********

 FCN=   5873.968     FROM HESSE     STATUS=OK           373 CALLS     3834 TOTAL
                     EDM=   .14E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    20.367        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     5.5893        7.8575        .67967E-05   -1.5235    
   3  Prefactor     101.43        86.761        .79841E-05   -1.3690    
   4  norm          11.240        2.4460        .21512E-05   -1.5037    
   5  Prefactor     .10000E-03    5.1237        .45498E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    6.8303        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    11.447        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    6.7663        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          2.0422        3.9727        .80542E-05   -1.5422    
  10  Prefactor     5.8831        62.372        .66052E-05   -1.5223    
  11  Prefactor     4.8927        119.39        .73094E-05   -1.5266    
  12  Prefactor     .10000E-03    1.2089        .16393E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    6.3752        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     19.291        30.720        .36471E-05   -1.4829    
  15  norm          1.2720        3.7438        .99464E-05   -1.5482    
  16  Prefactor     25.463        42.569        .31752E-05   -1.4698    
  17  Prefactor     15.724        23.055        .40403E-05   -1.4915    
  18  norm          .10000E-03    5.5866        .35111E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     9.8084        10.741        .51178E-05   -1.5081    
  20  Prefactor     .10000E-03    3.4590        .27662E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          2.1713        1.6503        .32752E-05   -1.5413    
  22  Prefactor     .10000E-03    50.113        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    .82185        .21565        .97777E-05   -.99263    
  24  Prefactor     1.1247        .23416        .10006E-04   -.88682    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.4187e-10
Minuit parameter uncertainties:
  1  5.48347e-06
  2  7.85899
  3  86.8697
  4  2.44603
  5  4.99698e-05
  6  7.50186e-06
  7  8.23666e-06
  8  4.55562e-07
  9  3.97324
  10  38.3623
  11  48.4458
  12  1.74082e-07
  13  1.72908e-06
  14  30.7449
  15  3.74447
  16  42.6195
  17  23.0681
  18  1.11861e-05
  19  10.7434
  20  3.16554e-06
  21  1.6503
  22  8.92188e-06
  23  0.215876
  24  0.23438
Done.

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

Extracting fit parameters...

4FGL J1418.4+3543
   Spectrum: LogParabola
283         norm:  2.042e+00  3.973e+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:  1.125e+00  2.344e-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:  8.219e-01  2.159e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/320596/likelihoodResults_516153601_516412801_4FGL_J1418.4+3543_daily_bin1068.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) = 5873.82359619
delta logL = 0.144597702017

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5873.82034458
delta logL = 0.147849304682

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.8200       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.5690       1.0000          .0000       5.0000    
     3 'Normalizat'    .80931       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1323       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=   5873.820     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      211 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.8195        79.429        .77383E-02    .67916E-03
   2  alpha         2.5696        3.3404        .41171        .34533E-04
   3  Normalizat    .80932        .44480E-01    .43732E-01    .33716E-05
   4  Prefactor     1.1323        .51641E-01    .56397E-01    .65684E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 1.81955
  alpha      = 2.56957
  Normalizat = 0.809322
  Prefactor  = 1.13233
 **********
 **   18 **HESSE 
 **********

 FCN=   5873.820     FROM HESSE     STATUS=OK            33 CALLS      244 TOTAL
                     EDM=   .44E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.8195        3.5527        .13939E-03   -1.5438    
   2  alpha         2.5696        1.1261        .19270E-01    .27830E-01
   3  Normalizat    .80932        .19428        .24615E-03   -.99724    
   4  Prefactor     1.1323        .22820        .24938E-03   -.88440    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.38337e-09
Minuit parameter uncertainties:
  1  3.55311
  2  1.16814
  3  0.194447
  4  0.228398
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/320596': 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) = 5873.82034441
delta logL = 0.147849479124

Extracting fit parameters...

4FGL J1418.4+3543
   Spectrum: LogParabola
283         norm:  1.820e+00  3.553e+00  1.000e-04  1.000e+04 ( 1.000e-12)
284        alpha:  2.570e+00  1.168e+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:  1.132e+00  2.284e-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:  8.093e-01  1.944e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.32
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/320596/cmap_HighResolution_516153601_516412801_4FGL_J1418.4+3543_daily_bin1068.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.92e-05', job_status='DONE', photon_flux_upper_limit='6.89e-08', time_completed='2021-09-09 08:30:40.853884', job_id='320596', GAL2='1.13', fit_tolerance='1e-08', EG2='0.81', EG='0.82', time_epoch_completed='1631201440.85', return_code2='0', ts='0.32', comment='SUCCESS', return_code='0', GAL='1.12', dlogl='1.48e-01', ts2='0.62', photon_index_error='0.00', photon_index='2.02' WHERE bin_id='1068' AND source_name='4FGL J1418.4+3543' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  9 08:30:40 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0065>
Subject: Job 320596: <4FGL_J1418.4+3543_daily_bin1068> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1418.4+3543_daily_bin1068 214.623 35.7192 516153601 516412801 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 :                                   709.41 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             294.82 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   895 sec.
    Turnaround time :                            896 sec.

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

