/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 55 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 = 7659
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1418.4+3543_daily_bin6
RA = 214.623, Dec = 35.7192
tmin = 240883201, tmax = 241142401
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='312378', job_status='RUN', time_executed='2021-09-09 07:51:39.404408', time_epoch_executed='1631199099.4' WHERE source_name='4FGL J1418.4+3543' and cadence='daily' and bin_id='6'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/312378

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/312378/ft1_4FGL_J1418.4+3543_daily_bin6.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/312378/ft2_4FGL_J1418.4+3543_daily_bin6.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/312378/ft1_4FGL_J1418.4+3543_daily_bin6.fits outfile=/scratch/kocevski/312378/ft1_filteredMKT_4FGL_J1418.4+3543_daily_bin6.fits ra=214.623 dec=35.7192 rad=12.0 tmin=240883201.0 tmax=241142401.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 1.49
user 1.31
sys 0.17

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/312378/ft1_filtered_4FGL_J1418.4+3543_daily_bin6.fits evtable="EVENTS" scfile=/scratch/kocevski/312378/ft2_4FGL_J1418.4+3543_daily_bin6.fits sctable="SC_DATA" expcube=/scratch/kocevski/312378/ltcube_240883201_241142401_4FGL_J1418.4+3543_daily_bin6.fits outfile=/scratch/kocevski/312378/expmap_240883201_241142401_4FGL_J1418.4+3543_daily_bin6.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/312378/ltcube_240883201_241142401_4FGL_J1418.4+3543_daily_bin6.fits
.....................!
real 190.80
user 185.02
sys 5.43

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/312378/ft1_filtered_4FGL_J1418.4+3543_daily_bin6.fits scfile=/scratch/kocevski/312378/ft2_4FGL_J1418.4+3543_daily_bin6.fits outfile=/scratch/kocevski/312378/cmap_240883201_241142401_4FGL_J1418.4+3543_daily_bin6.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.54
user 0.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/312378/ft1_filtered_4FGL_J1418.4+3543_daily_bin6.fits scfile=/scratch/kocevski/312378/ft2_4FGL_J1418.4+3543_daily_bin6.fits outfile=/scratch/kocevski/312378/cmap_HighResolution_240883201_241142401_4FGL_J1418.4+3543_daily_bin6.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/312378/ft1_filtered_4FGL_J1418.4+3543_daily_bin6.fits evtable="EVENTS" scfile=/scratch/kocevski/312378/ft2_4FGL_J1418.4+3543_daily_bin6.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/312378/Model_4FGL_J1418.4+3543_daily_bin6.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/312378/ft1_filtered_4FGL_J1418.4+3543_daily_bin6.fits.....................!
real 49.45
user 48.18
sys 1.16

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10088E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    2.1769       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .46444E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10019E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10053E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    24.771       1.0000         .10000E-03   10000.    
     9 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10298E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    12.840       1.0000         .10000E-03   10000.    
    12 'Prefactor '    4.4971       1.0000         .10000E-03   10000.    
    13 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10189E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    45.634       1.0000         .10000E-03   10000.    
    17 'Prefactor '    3.9474       1.0000         .10000E-03   10000.    
    18 'norm      '    3.6066       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .69769       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .48829E-02   1.0000         .10000E-03   10000.    
    21 'norm      '    1.7149       1.0000         .10000E-03   10000.    
    22 'Prefactor '    2.3164       1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.0310       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .84868       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=   6442.969     FROM MIGRAD    STATUS=CONVERGED    563 CALLS     2780 TOTAL
                     EDM=   .74E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    13.777        .21709E-05** at limit **
   2  Prefactor     .10000E-03    11.208       -.38589E-05** at limit **
   3  Prefactor     .10000E-03    94.167        .10745E-05** at limit **
   4  norm          2.1770        1.2741       -.10772E-06   -.15432E-03
   5  Prefactor     .10022E-03    1.6200       -.38609E-06** at limit **
   6  norm          .10000E-03    8.9892        .86208E-05** at limit **
   7  Prefactor     .10000E-03    8.4534       -.97850E-05** at limit **
   8  Prefactor     24.773        18.695        .22385E-06   -.58256E-05
   9  norm          .10000E-03    1.1400       -.25409E-07** at limit **
  10  Prefactor     .10000E-03    6.5835       -.11348E-06** at limit **
  11  Prefactor     12.835        15.715       -.50767E-06    .36536E-04
  12  Prefactor     4.4975        3.5993       -.43895E-06   -.30053E-03
  13  norm          .10000E-03    2.9658        .97843E-08** at limit **
  14  Prefactor     .10000E-03    7.8830        .30097E-05** at limit **
  15  norm          .10000E-03    3.5818       -.53582E-07** at limit **
  16  Prefactor     45.640        30.135        .27624E-06    .75444E-05
  17  Prefactor     3.9399        47.511       -.32996E-05   -.23490E-04
  18  norm          3.6058        6.1952       -.86775E-06   -.21342E-03
  19  Prefactor     .75663        9.7432        .23101E-06   -.22088E-03
  20  Prefactor     .10004E-03    6.7266        .18555E-06** at limit **
  21  norm          1.7148        1.3507        .17158E-05    .28160E-02
  22  Prefactor     2.2418        611.26       -.36389E-03    .20217E-04
  23  Normalizat    1.0309        .16257        .16809E-05    .43169E-03
  24  Prefactor     .84873        .17324        .17485E-05    .35473E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.17697
  Prefactor  = 0.000100218
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 24.7726
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 12.8351
  Prefactor  = 4.49754
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 45.6399
  Prefactor  = 3.93995
  norm       = 3.60577
  Prefactor  = 0.756627
  Prefactor  = 0.000100036
  norm       = 1.71477
  Prefactor  = 2.24185
  Normalizat = 1.03089
  Prefactor  = 0.848726
 **********
 **   18 **HESSE 
 **********

 FCN=   6442.969     FROM HESSE     STATUS=OK           415 CALLS     3195 TOTAL
                     EDM=   .18E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    13.779        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    11.278        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    94.511        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          2.1770        1.2706        .67179E-04   -1.5413    
   5  Prefactor     .10022E-03    4.5002        .34009E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    9.0585        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    8.4759        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     24.773        18.752        .80485E-04   -1.4712    
   9  norm          .10000E-03    1.1473        .83669E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    6.5872        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     12.835        15.872        .11179E-03   -1.4991    
  12  Prefactor     4.4975        3.6061        .12889E-03   -1.5284    
  13  norm          .10000E-03    2.9660        .13500E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    7.8916        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    3.6455        .14823E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     45.640        30.135        .59352E-04   -1.4356    
  17  Prefactor     3.9399        47.301        .20303E-03   -1.5311    
  18  norm          3.6058        6.1831        .21276E-03   -1.5328    
  19  Prefactor     .75663        41.191        .45689E-02   -1.5534    
  20  Prefactor     .10004E-03    8.5016        .53631E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          1.7148        1.3511        .73479E-04   -1.5446    
  22  Prefactor     2.2418        624.32        .26954E-03   -1.5409    
  23  Normalizat    1.0309        .19603        .21319E-03   -.92003    
  24  Prefactor     .84873        .20693        .26322E-03   -.97956    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.76432e-09
Minuit parameter uncertainties:
  1  7.73054e-06
  2  1.67881e-05
  3  0.000321488
  4  1.27062
  5  0.00198221
  6  5.36379e-05
  7  6.44261e-06
  8  18.7565
  9  2.33052e-06
  10  6.9599e-06
  11  15.8769
  12  3.60623
  13  9.20583e-07
  14  1.28679e-05
  15  1.10459e-05
  16  30.1448
  17  27.3297
  18  6.18422
  19  11.1727
  20  0.00110406
  21  1.35112
  22  75.6318
  23  0.196172
  24  0.207122
Done.

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

Extracting fit parameters...

4FGL J1418.4+3543
   Spectrum: LogParabola
283         norm:  1.000e-04  2.331e-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.487e-01  2.071e-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.031e+00  1.962e-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: 3.38e-08 ph cm-2 s-1
Energy Flux Upper Limit: 1.92e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/312378/likelihoodResults_240883201_241142401_4FGL_J1418.4+3543_daily_bin6.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) = 6442.97313702
delta logL = -0.00410590159481

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6442.96901035
delta logL = 2.07631819649e-05

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    3.1787       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0309       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .84873       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   6442.969     FROM MIGRAD    STATUS=FAILED        91 CALLS      297 TOTAL
                     EDM=   .63E-07    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10011E-03    2.3912        .11414E-02** at limit **
   2  alpha         3.2195        3.6820        .17302       -.10021E-03
   3  Normalizat    1.0309        .17712        .21319E-03    .57381E-03
   4  Prefactor     .84873        .20124        .26322E-03    .33320E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   6442.969     FROM SIMPLEX   STATUS=UNCHANGED    112 CALLS      409 TOTAL
                     EDM=   .10E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10011E-03    2.3912        .20874E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         3.2195        3.6820        .83426E-03    .29195    
   3  Normalizat    1.0309        .17712        .95192E-04   -.92003    
   4  Prefactor     .84873        .20124        .10023E-03   -.97956    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6442.807     FROM MIGRAD    STATUS=CONVERGED    107 CALLS      516 TOTAL
                     EDM=   .18E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .33271E-01    .62826E-01    .84057E-07   -.28223E-02
   2  alpha         5.0000        4.0346       -.48754E-03** at limit **
   3  Normalizat    .99515        .18874       -.14204E-04   -.50705E-03
   4  Prefactor     .87533        .20697        .11708E-04   -.41800E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.033271
  alpha      = 5
  Normalizat = 0.995154
  Prefactor  = 0.875326
 **********
 **   18 **HESSE 
 **********

 FCN=   6442.807     FROM HESSE     STATUS=OK            29 CALLS      545 TOTAL
                     EDM=   .51E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .33271E-01    .71621E-01    .22829E-02   -1.5672    
   2  alpha         5.0000        4.2407        .69207E-01    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    .99515        .19561        .42638E-04   -.93193    
   4  Prefactor     .87533        .21153        .52644E-04   -.97009    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.11939e-10
Minuit parameter uncertainties:
  1  0.0716212
  2  8.00718e-05
  3  0.19575
  4  0.211727
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/312378': 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) = 6442.80669353
delta logL = 0.162337582212

Extracting fit parameters...

4FGL J1418.4+3543
   Spectrum: LogParabola
283         norm:  3.327e-02  7.162e-02  1.000e-04  1.000e+04 ( 1.000e-12)
284        alpha:  5.000e+00  8.007e-05  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.753e-01  2.117e-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.952e-01  1.957e-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/312378/cmap_HighResolution_240883201_241142401_4FGL_J1418.4+3543_daily_bin6.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.92e-05', job_status='DONE', photon_flux_upper_limit='3.38e-08', time_completed='2021-09-09 08:03:23.966541', job_id='312378', GAL2='0.88', fit_tolerance='1e-08', EG2='1.00', EG='1.03', time_epoch_completed='1631199803.97', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.85', dlogl='1.62e-01', ts2='0.36', photon_index_error='0.00', photon_index='2.02' WHERE bin_id='6' AND source_name='4FGL J1418.4+3543' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  9 08:03:23 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0009>
Subject: Job 312378: <4FGL_J1418.4+3543_daily_bin6> in cluster <slac> Done

Job <4FGL_J1418.4+3543_daily_bin6> was submitted from host <rhel6-64o> by user <kocevski> in cluster <slac> at Thu Sep  9 07:50:33 2021
Job was executed on host(s) <bullet0009>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  9 07:50:35 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Sep  9 07:50:35 2021
Terminated at Thu Sep  9 08:03:24 2021
Results reported at Thu Sep  9 08:03:24 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1418.4+3543_daily_bin6 214.623 35.7192 240883201 241142401 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 :                                   703.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             330.11 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   769 sec.
    Turnaround time :                            771 sec.

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

