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


Performing analysis on: 4FGL_J1418.4+3543_daily_bin96
RA = 214.623, Dec = 35.7192
tmin = 264211201, tmax = 264470401
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='312518', job_status='RUN', time_executed='2021-09-09 07:54:42.579203', time_epoch_executed='1631199282.58' WHERE source_name='4FGL J1418.4+3543' and cadence='daily' and bin_id='96'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/312518

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/312518/ft1_4FGL_J1418.4+3543_daily_bin96.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/312518/ft2_4FGL_J1418.4+3543_daily_bin96.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/312518/ft1_4FGL_J1418.4+3543_daily_bin96.fits outfile=/scratch/kocevski/312518/ft1_filteredMKT_4FGL_J1418.4+3543_daily_bin96.fits ra=214.623 dec=35.7192 rad=12.0 tmin=264211201.0 tmax=264470401.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.70
user 1.52
sys 0.15

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/312518/ft1_filtered_4FGL_J1418.4+3543_daily_bin96.fits" evtable="EVENTS" scfile=/scratch/kocevski/312518/ft2_4FGL_J1418.4+3543_daily_bin96.fits sctable="SC_DATA" outfile=/scratch/kocevski/312518/ltcube_264211201_264470401_4FGL_J1418.4+3543_daily_bin96.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/312518/ft2_4FGL_J1418.4+3543_daily_bin96.fits
.....................!
real 12.19
user 11.85
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/312518/ft1_filtered_4FGL_J1418.4+3543_daily_bin96.fits evtable="EVENTS" scfile=/scratch/kocevski/312518/ft2_4FGL_J1418.4+3543_daily_bin96.fits sctable="SC_DATA" expcube=/scratch/kocevski/312518/ltcube_264211201_264470401_4FGL_J1418.4+3543_daily_bin96.fits outfile=/scratch/kocevski/312518/expmap_264211201_264470401_4FGL_J1418.4+3543_daily_bin96.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/312518/ltcube_264211201_264470401_4FGL_J1418.4+3543_daily_bin96.fits
.....................!
real 190.21
user 185.48
sys 4.36

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/312518/ft1_filtered_4FGL_J1418.4+3543_daily_bin96.fits scfile=/scratch/kocevski/312518/ft2_4FGL_J1418.4+3543_daily_bin96.fits outfile=/scratch/kocevski/312518/cmap_264211201_264470401_4FGL_J1418.4+3543_daily_bin96.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.38
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/312518/ft1_filtered_4FGL_J1418.4+3543_daily_bin96.fits scfile=/scratch/kocevski/312518/ft2_4FGL_J1418.4+3543_daily_bin96.fits outfile=/scratch/kocevski/312518/cmap_HighResolution_264211201_264470401_4FGL_J1418.4+3543_daily_bin96.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.58
user 0.39
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .12913E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10068E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    36.653       1.0000         .10000E-03   10000.    
     4 'norm      '    2.6024       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10082E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .11238E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10538E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    13.549       1.0000         .10000E-03   10000.    
     9 'norm      '    .10107E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    7.4954       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .12337E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10081E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    1.8929       1.0000         .10000E-03   10000.    
    14 'Prefactor '    12.197       1.0000         .10000E-03   10000.    
    15 'norm      '    6.9603       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10570E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10221E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    5.8578       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10323E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    4.0578       1.0000         .10000E-03   10000.    
    21 'norm      '    .10600E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .14546E-01   1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.0260       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.0567       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=   7092.883     FROM MIGRAD    STATUS=CONVERGED    575 CALLS     2738 TOTAL
                     EDM=   .24E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    23.235       -.23017E-06** at limit **
   2  Prefactor     .10000E-03    10.865        .49954E-07** at limit **
   3  Prefactor     36.825        61.809       -.16964E-09   -.28168E-04
   4  norm          2.6026        1.3234        .21375E-07   -.44241E-05
   5  Prefactor     .10000E-03    2.3958       -.36366E-07** at limit **
   6  norm          .10000E-03    8.4751       -.40994E-07** at limit **
   7  Prefactor     .10000E-03    4.0057       -.71298E-08** at limit **
   8  Prefactor     13.553        20.915        .11713E-05    .96921E-04
   9  norm          .10000E-03    3.7243       -.42002E-07** at limit **
  10  Prefactor     7.4900        8.9239       -.75631E-07    .51219E-05
  11  Prefactor     .10000E-03    19.219       -.10027E-05** at limit **
  12  Prefactor     .10000E-03    2.3623       -.20320E-07** at limit **
  13  norm          1.9054        15.139        .14116E-05    .16739E-04
  14  Prefactor     12.223        22.349       -.28108E-06   -.59660E-04
  15  norm          6.9613        6.0372        .25627E-06    .37325E-05
  16  Prefactor     .10000E-03    19.704        .12367E-05** at limit **
  17  Prefactor     .10000E-03    14.083       -.43806E-07** at limit **
  18  norm          5.8587        5.6205       -.18311E-06   -.13618E-03
  19  Prefactor     .10000E-03    4.5638        .16358E-06** at limit **
  20  Prefactor     4.0551        6.4880       -.55948E-06   -.47298E-03
  21  norm          .10000E-03    1.0359        .11030E-05** at limit **
  22  Prefactor     .10001E-03    794.09       -.45536E-05** at limit **
  23  Normalizat    1.0260        .15994       -.80808E-06   -.33001E-03
  24  Prefactor     1.0565        .17501        .36401E-07   -.32223E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 36.8252
  norm       = 2.60261
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 13.5533
  norm       = 0.0001
  Prefactor  = 7.48996
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.90541
  Prefactor  = 12.2232
  norm       = 6.96134
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 5.85869
  Prefactor  = 0.0001
  Prefactor  = 4.05506
  norm       = 0.0001
  Prefactor  = 0.000100011
  Normalizat = 1.02596
  Prefactor  = 1.05647
 **********
 **   18 **HESSE 
 **********

 FCN=   7092.883     FROM HESSE     STATUS=OK           391 CALLS     3129 TOTAL
                     EDM=   .70E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    23.254        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    10.926        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     36.825        62.382        .66198E-04   -1.4494    
   4  norm          2.6026        1.3252        .67020E-04   -1.5385    
   5  Prefactor     .10000E-03    2.4525        .25426E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    8.5223        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    4.0064        .16462E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     13.553        21.165        .10882E-03   -1.4972    
   9  norm          .10000E-03    3.8928        .31686E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     7.4900        8.8914        .14649E-03   -1.5161    
  11  Prefactor     .10000E-03    19.526        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    2.4585        .25245E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          1.9054        15.111        .30240E-03   -1.5432    
  14  Prefactor     12.223        22.400        .11470E-03   -1.5009    
  15  norm          6.9613        6.0379        .15206E-03   -1.5180    
  16  Prefactor     .10000E-03    19.927        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    14.113        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          5.8587        5.6253        .16593E-03   -1.5224    
  19  Prefactor     .10000E-03    4.5775        .17575E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     4.0551        6.6455        .20016E-03   -1.5305    
  21  norm          .10000E-03    1.2166        .13696E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10001E-03    813.67        .18191E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    1.0260        .19293        .23015E-03   -.92166    
  24  Prefactor     1.0565        .21115        .26037E-03   -.90870    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.99803e-10
Minuit parameter uncertainties:
  1  3.45937e-05
  2  1.46775e-05
  3  62.4924
  4  1.32522
  5  4.30648e-06
  6  4.63328e-06
  7  2.24757e-07
  8  21.1765
  9  2.34695e-06
  10  8.89293
  11  0.000155257
  12  4.55861e-06
  13  10.7352
  14  22.415
  15  6.0384
  16  0.000217151
  17  9.96307e-07
  18  5.62584
  19  3.99753e-06
  20  6.64668
  21  4.14972e-05
  22  0.00617209
  23  0.193063
  24  0.211315
Done.

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

Extracting fit parameters...

4FGL J1418.4+3543
   Spectrum: LogParabola
283         norm:  1.000e-04  2.347e-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:  1.056e+00  2.113e-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.026e+00  1.931e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/312518/likelihoodResults_264211201_264470401_4FGL_J1418.4+3543_daily_bin96.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) = 7092.88377782
delta logL = -0.00122674732029

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7092.88255308
delta logL = -2.01075090445e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .12784E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.0691       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0261       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0563       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=   7092.857     FROM MIGRAD    STATUS=CONVERGED    171 CALLS      330 TOTAL
                     EDM=   .40E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .24124        104.62        .24926E-02   -.10784E-02
   2  alpha         3.2600        2.9778        .50000        .48502E-04
   3  Normalizat    1.0161        .43822E-01    .23015E-03    .24303E-04
   4  Prefactor     1.0617        .48056E-01    .26037E-03    .11222E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.241245
  alpha      = 3.25999
  Normalizat = 1.01611
  Prefactor  = 1.06174
 **********
 **   18 **HESSE 
 **********

 FCN=   7092.857     FROM HESSE     STATUS=OK            29 CALLS      359 TOTAL
                     EDM=   .43E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .24124        8.0844        .99705E-04   -1.5806    
   2  alpha         3.2600        4.0461        .49558E-01    6.5921    
   3  Normalizat    1.0161        .18566        .92061E-05   -.92493    
   4  Prefactor     1.0617        .20948        .10415E-04   -.90699    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.32448e-10
Minuit parameter uncertainties:
  1  2.79291
  2  5.35421
  3  0.185779
  4  0.209637
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/312518': 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) = 7092.85699477
delta logL = 0.0255563064284

Extracting fit parameters...

4FGL J1418.4+3543
   Spectrum: LogParabola
283         norm:  2.412e-01  2.793e+00  1.000e-04  1.000e+04 ( 1.000e-12)
284        alpha:  3.260e+00  5.354e+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.062e+00  2.096e-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.016e+00  1.858e-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 -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/312518/cmap_HighResolution_264211201_264470401_4FGL_J1418.4+3543_daily_bin96.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.81e-05', job_status='DONE', photon_flux_upper_limit='4.93e-08', time_completed='2021-09-09 08:06:45.530012', job_id='312518', GAL2='1.06', fit_tolerance='1e-08', EG2='1.02', EG='1.03', time_epoch_completed='1631200005.53', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.06', dlogl='2.56e-02', ts2='0.06', photon_index_error='0.00', photon_index='2.02' WHERE bin_id='96' AND source_name='4FGL J1418.4+3543' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  9 08:06:45 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0265>
Subject: Job 312518: <4FGL_J1418.4+3543_daily_bin96> in cluster <slac> Done

Job <4FGL_J1418.4+3543_daily_bin96> was submitted from host <rhel6-64o> by user <kocevski> in cluster <slac> at Thu Sep  9 07:50:42 2021
Job was executed on host(s) <bullet0265>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  9 07:50:44 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:44 2021
Terminated at Thu Sep  9 08:06:46 2021
Results reported at Thu Sep  9 08:06:46 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1418.4+3543_daily_bin96 214.623 35.7192 264211201 264470401 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 :                                   726.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             265.79 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   961 sec.
    Turnaround time :                            964 sec.

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

