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


Performing analysis on: 4FGL_J1418.4+3543_daily_bin1013
RA = 214.623, Dec = 35.7192
tmin = 501897601, tmax = 502156801
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='320507', job_status='RUN', time_executed='2021-09-09 08:18:00.188981', time_epoch_executed='1631200680.19' WHERE source_name='4FGL J1418.4+3543' and cadence='daily' and bin_id='1013'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/320507

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/320507/ft1_4FGL_J1418.4+3543_daily_bin1013.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/320507/ft2_4FGL_J1418.4+3543_daily_bin1013.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/320507/ft1_4FGL_J1418.4+3543_daily_bin1013.fits outfile=/scratch/kocevski/320507/ft1_filteredMKT_4FGL_J1418.4+3543_daily_bin1013.fits ra=214.623 dec=35.7192 rad=12.0 tmin=501897601.0 tmax=502156801.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.46
user 3.27
sys 0.17

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/320507/ft2_4FGL_J1418.4+3543_daily_bin1013.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/320507/ft1_filteredMKT_4FGL_J1418.4+3543_daily_bin1013.fits evtable="EVENTS" outfile="/scratch/kocevski/320507/ft1_filtered_4FGL_J1418.4+3543_daily_bin1013.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.48
user 0.33
sys 0.15

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/320507/ft1_filtered_4FGL_J1418.4+3543_daily_bin1013.fits evtable="EVENTS" scfile=/scratch/kocevski/320507/ft2_4FGL_J1418.4+3543_daily_bin1013.fits sctable="SC_DATA" expcube=/scratch/kocevski/320507/ltcube_501897601_502156801_4FGL_J1418.4+3543_daily_bin1013.fits outfile=/scratch/kocevski/320507/expmap_501897601_502156801_4FGL_J1418.4+3543_daily_bin1013.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/320507/ltcube_501897601_502156801_4FGL_J1418.4+3543_daily_bin1013.fits
.....................!
real 189.38
user 184.87
sys 4.14

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/320507/ft1_filtered_4FGL_J1418.4+3543_daily_bin1013.fits scfile=/scratch/kocevski/320507/ft2_4FGL_J1418.4+3543_daily_bin1013.fits outfile=/scratch/kocevski/320507/cmap_501897601_502156801_4FGL_J1418.4+3543_daily_bin1013.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/320507/ft1_filtered_4FGL_J1418.4+3543_daily_bin1013.fits scfile=/scratch/kocevski/320507/ft2_4FGL_J1418.4+3543_daily_bin1013.fits outfile=/scratch/kocevski/320507/cmap_HighResolution_501897601_502156801_4FGL_J1418.4+3543_daily_bin1013.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.55
user 0.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    67.779       1.0000         .10000E-03   10000.    
     2 'Prefactor '    2.2331       1.0000         .10000E-03   10000.    
     3 'Prefactor '    18.341       1.0000         .10000E-03   10000.    
     4 'norm      '    5.3396       1.0000         .10000E-03   10000.    
     5 'Prefactor '    1.3587       1.0000         .10000E-03   10000.    
     6 'norm      '    20.720       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .11794E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    10.261       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    10.452       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10034E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    35.552       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .12547E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    5.9043       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    5.6293       1.0000         .10000E-03   10000.    
    21 'norm      '    .64555       1.0000         .10000E-03   10000.    
    22 'Prefactor '    69.147       1.0000         .10000E-03   10000.    
    23 'Normalizat'    .86842       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.0252       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=   5188.375     FROM MIGRAD    STATUS=CONVERGED    533 CALLS     2693 TOTAL
                     EDM=   .32E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     67.778        55.296        .44420E-06   -.11359E-04
   2  Prefactor     2.2335        30.832        .25541E-05    .33501E-05
   3  Prefactor     18.344        69.605        .31420E-05   -.37700E-05
   4  norm          5.3396        2.1030        .11873E-06   -.69445E-04
   5  Prefactor     1.3588        2.7574        .66704E-06    .41706E-04
   6  norm          20.722        16.843        .90656E-06   -.24194E-04
   7  Prefactor     .10000E-03    7.1580       -.42038E-07** at limit **
   8  Prefactor     .10000E-03    12.193       -.69947E-06** at limit **
   9  norm          .10000E-03    2.3506        .98307E-07** at limit **
  10  Prefactor     .10000E-03    4.4234       -.18141E-07** at limit **
  11  Prefactor     10.265        11.524        .20933E-06   -.39570E-04
  12  Prefactor     .10000E-03    1.2533       -.77531E-07** at limit **
  13  norm          10.454        11.533        .17143E-06   -.22926E-04
  14  Prefactor     .10000E-03    11.652        .67092E-06** at limit **
  15  norm          .10000E-03    3.3639       -.93612E-07** at limit **
  16  Prefactor     35.554        33.195        .61917E-07   -.25070E-04
  17  Prefactor     .10000E-03    44.947        .23425E-06** at limit **
  18  norm          5.9040        5.8289       -.18159E-05    .52893E-04
  19  Prefactor     .10000E-03    17.430       -.66203E-06** at limit **
  20  Prefactor     5.6374        5.7236       -.29849E-05   -.50156E-03
  21  norm          .63906        1.9105        .43476E-05   -.49108E-04
  22  Prefactor     69.400        117.72        .78391E-05    .50478E-04
  23  Normalizat    .86838        .17538       -.13783E-05   -.40715E-03
  24  Prefactor     1.0253        .19853       -.34323E-05   -.27970E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 67.7783
  Prefactor  = 2.23348
  Prefactor  = 18.3438
  norm       = 5.33964
  Prefactor  = 1.35877
  norm       = 20.7218
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 10.2649
  Prefactor  = 0.0001
  norm       = 10.4543
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 35.5537
  Prefactor  = 0.0001
  norm       = 5.90395
  Prefactor  = 0.0001
  Prefactor  = 5.63741
  norm       = 0.639056
  Prefactor  = 69.3996
  Normalizat = 0.868377
  Prefactor  = 1.02527
 **********
 **   18 **HESSE 
 **********

 FCN=   5188.375     FROM HESSE     STATUS=OK           395 CALLS     3088 TOTAL
                     EDM=   .68E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     67.778        55.312        .48753E-04   -1.4060    
   2  Prefactor     2.2335        30.942        .27509E-03   -1.5409    
   3  Prefactor     18.344        70.032        .93520E-04   -1.4851    
   4  norm          5.3396        2.1060        .63014E-04   -1.5246    
   5  Prefactor     1.3588        2.7173        .16413E-03   -1.5475    
   6  norm          20.722        16.856        .43996E-03   -1.4797    
   7  Prefactor     .10000E-03    7.1720        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    12.261        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    4.2688        .21351E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    4.4264        .14790E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     10.265        11.523        .12508E-03   -1.5067    
  12  Prefactor     .10000E-03    1.2647        .78707E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          10.454        11.499        .12393E-03   -1.5061    
  14  Prefactor     .10000E-03    11.683        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    3.4404        .12896E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     35.554        33.206        .67211E-04   -1.4515    
  17  Prefactor     .10000E-03    45.842        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          5.9040        5.8258        .82632E-03   -1.5222    
  19  Prefactor     .10000E-03    18.028        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     5.6374        5.7359        .16206E-03   -1.5233    
  21  norm          .63906        1.9181        .13872E-03   -1.5548    
  22  Prefactor     69.400        118.37        .24136E-03   -1.4040    
  23  Normalizat    .86838        .20672        .23075E-03   -.97580    
  24  Prefactor     1.0253        .23294        .25144E-03   -.91892    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.7746e-10
Minuit parameter uncertainties:
  1  55.3537
  2  16.6363
  3  70.3487
  4  2.10607
  5  2.71755
  6  16.86
  7  6.67087e-06
  8  1.47084e-05
  9  0.000128687
  10  6.66608e-06
  11  11.5259
  12  6.28864e-06
  13  11.5018
  14  4.51537e-05
  15  1.7521e-05
  16  33.2232
  17  0.000254113
  18  5.8264
  19  7.55037e-05
  20  5.73648
  21  1.91829
  22  118.771
  23  0.20691
  24  0.233166
Done.

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

Extracting fit parameters...

4FGL J1418.4+3543
   Spectrum: LogParabola
283         norm:  1.000e-04  1.287e-04  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.025e+00  2.332e-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.684e-01  2.069e-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: 5.17e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.94e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/320507/likelihoodResults_501897601_502156801_4FGL_J1418.4+3543_daily_bin1013.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) = 5188.37561757
delta logL = -0.00111565500356

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5188.37450133
delta logL = 5.88661350776e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10367E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.0760       1.0000          .0000       5.0000    
     3 'Normalizat'    .86819       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0255       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=   5188.361     FROM MIGRAD    STATUS=CONVERGED    170 CALLS      331 TOTAL
                     EDM=   .55E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .21344        170.81        .22595E-02   -.10474E-02
   2  alpha         3.0217        2.7267        .50000        .45268E-04
   3  Normalizat    .86283        .44472E-01    .23075E-03    .41237E-04
   4  Prefactor     1.0278        .52403E-01    .25144E-03    .27949E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.213437
  alpha      = 3.02174
  Normalizat = 0.862828
  Prefactor  = 1.02782
 **********
 **   18 **HESSE 
 **********

 FCN=   5188.361     FROM HESSE     STATUS=OK            29 CALLS      360 TOTAL
                     EDM=   .68E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .21344        4.2506        .90380E-04   -1.5800    
   2  alpha         3.0217        3.9011        .47682E-01    .21024    
   3  Normalizat    .86283        .19725        .92301E-05   -.97779    
   4  Prefactor     1.0278        .23017        .50289E-04   -.91808    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.80849e-10
Minuit parameter uncertainties:
  1  1.90468
  2  3.32245
  3  0.197412
  4  0.230396
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/320507': 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) = 5188.36051604
delta logL = 0.013985874999

Extracting fit parameters...

4FGL J1418.4+3543
   Spectrum: LogParabola
283         norm:  2.134e-01  1.905e+00  1.000e-04  1.000e+04 ( 1.000e-12)
284        alpha:  3.022e+00  3.322e+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.028e+00  2.304e-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.628e-01  1.974e-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/320507/cmap_HighResolution_501897601_502156801_4FGL_J1418.4+3543_daily_bin1013.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.94e-05', job_status='DONE', photon_flux_upper_limit='5.17e-08', time_completed='2021-09-09 08:28:29.733198', job_id='320507', GAL2='1.03', fit_tolerance='1e-08', EG2='0.86', EG='0.87', time_epoch_completed='1631201309.73', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.03', dlogl='1.40e-02', ts2='0.03', photon_index_error='0.00', photon_index='2.02' WHERE bin_id='1013' AND source_name='4FGL J1418.4+3543' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  9 08:28:29 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0067>
Subject: Job 320507: <4FGL_J1418.4+3543_daily_bin1013> in cluster <slac> Done

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

Your job looked like:

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

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

