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


Performing analysis on: 4FGL_J1418.4+3543_daily_bin1072
RA = 214.623, Dec = 35.7192
tmin = 517190401, tmax = 517449601
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='320601', job_status='RUN', time_executed='2021-09-09 08:19:42.093571', time_epoch_executed='1631200782.09' WHERE source_name='4FGL J1418.4+3543' and cadence='daily' and bin_id='1072'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/320601

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/320601/ft1_4FGL_J1418.4+3543_daily_bin1072.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/320601/ft2_4FGL_J1418.4+3543_daily_bin1072.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/320601/ft1_4FGL_J1418.4+3543_daily_bin1072.fits outfile=/scratch/kocevski/320601/ft1_filteredMKT_4FGL_J1418.4+3543_daily_bin1072.fits ra=214.623 dec=35.7192 rad=12.0 tmin=517190401.0 tmax=517449601.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 4.78
user 4.36
sys 0.23

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/320601/ft1_filtered_4FGL_J1418.4+3543_daily_bin1072.fits evtable="EVENTS" scfile=/scratch/kocevski/320601/ft2_4FGL_J1418.4+3543_daily_bin1072.fits sctable="SC_DATA" expcube=/scratch/kocevski/320601/ltcube_517190401_517449601_4FGL_J1418.4+3543_daily_bin1072.fits outfile=/scratch/kocevski/320601/expmap_517190401_517449601_4FGL_J1418.4+3543_daily_bin1072.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/320601/ltcube_517190401_517449601_4FGL_J1418.4+3543_daily_bin1072.fits
.....................!
real 191.37
user 185.99
sys 5.00

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/320601/ft1_filtered_4FGL_J1418.4+3543_daily_bin1072.fits scfile=/scratch/kocevski/320601/ft2_4FGL_J1418.4+3543_daily_bin1072.fits outfile=/scratch/kocevski/320601/cmap_517190401_517449601_4FGL_J1418.4+3543_daily_bin1072.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.55
user 0.38
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/320601/ft1_filtered_4FGL_J1418.4+3543_daily_bin1072.fits scfile=/scratch/kocevski/320601/ft2_4FGL_J1418.4+3543_daily_bin1072.fits outfile=/scratch/kocevski/320601/cmap_HighResolution_517190401_517449601_4FGL_J1418.4+3543_daily_bin1072.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/320601/ft1_filtered_4FGL_J1418.4+3543_daily_bin1072.fits evtable="EVENTS" scfile=/scratch/kocevski/320601/ft2_4FGL_J1418.4+3543_daily_bin1072.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/320601/Model_4FGL_J1418.4+3543_daily_bin1072.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/320601/ft1_filtered_4FGL_J1418.4+3543_daily_bin1072.fits.....................!
real 43.46
user 42.20
sys 1.12

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    70.363       1.0000         .10000E-03   10000.    
     4 'norm      '    10.629       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    33.614       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      '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .31736E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .29629E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    16.036       1.0000         .10000E-03   10000.    
    15 'norm      '    10.011       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .58663E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    19.708       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.1694       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .71215       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=   5135.583     FROM MIGRAD    STATUS=CONVERGED    544 CALLS     2740 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    43.635        .20369E-04** at limit **
   2  Prefactor     .10000E-03    7.5715       -.35356E-05** at limit **
   3  Prefactor     70.411        91.921        .50788E-04   -.16771E-04
   4  norm          10.630        2.5016       -.57963E-07   -.74655E-04
   5  Prefactor     .10000E-03    1.6069        .34747E-07** at limit **
   6  norm          33.624        20.534       -.41931E-06    .29299E-05
   7  Prefactor     .10000E-03    7.7360        .41355E-05** at limit **
   8  Prefactor     .10000E-03    11.144       -.32375E-05** at limit **
   9  norm          .10000E-03    1.5058        .17667E-07** at limit **
  10  Prefactor     .10000E-03    11.324        .18664E-05** at limit **
  11  Prefactor     .10000E-03    23.922       -.24425E-04** at limit **
  12  Prefactor     .10000E-03    2.6532        .74052E-06** at limit **
  13  norm          .10003E-03    10.467        .17470E-05** at limit **
  14  Prefactor     16.051        24.229        .69228E-05    .67728E-05
  15  norm          10.013        8.4008        .50459E-07   -.98386E-04
  16  Prefactor     .10000E-03    20.397        .16536E-04** at limit **
  17  Prefactor     .10007E-03    167.16       -.74091E-04** at limit **
  18  norm          .10000E-03    3.9141       -.54968E-08** at limit **
  19  Prefactor     19.707        16.241        .10697E-05    .81631E-04
  20  Prefactor     .10000E-03    3.0144        .38590E-07** at limit **
  21  norm          .10000E-03    .64448        .15181E-06** at limit **
  22  Prefactor     .10000E-03    71.921       -.84671E-05** at limit **
  23  Normalizat    1.1690        .19790       -.65428E-05    .62315E-03
  24  Prefactor     .71236        .20654        .29400E-05   -.36112E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 70.4105
  norm       = 10.6302
  Prefactor  = 0.0001
  norm       = 33.6243
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 0.000100033
  Prefactor  = 16.0506
  norm       = 10.0132
  Prefactor  = 0.0001
  Prefactor  = 0.000100068
  norm       = 0.0001
  Prefactor  = 19.7071
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.169
  Prefactor  = 0.712362
 **********
 **   18 **HESSE 
 **********

 FCN=   5135.583     FROM HESSE     STATUS=OK           393 CALLS     3133 TOTAL
                     EDM=   .35E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    43.705        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    7.5786        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     70.411        92.253        .47855E-04   -1.4028    
   4  norm          10.630        2.5040        .52969E-04   -1.5056    
   5  Prefactor     .10000E-03    1.6250        .88694E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          33.624        20.541        .69116E-04   -1.4548    
   7  Prefactor     .10000E-03    7.7485        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    11.167        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    1.5130        .85858E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    11.383        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    24.238        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    5.9306        .22492E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10003E-03    69.347        .44749E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     16.051        24.246        .10002E-03   -1.4906    
  15  norm          10.013        8.3758        .12664E-03   -1.5075    
  16  Prefactor     .10000E-03    20.442        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10007E-03    170.45        .42152E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    3.9162        .13845E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     19.707        16.207        .90222E-04   -1.4820    
  20  Prefactor     .10000E-03    3.0208        .12147E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    .98982        .11150E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    72.030        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    1.1690        .23290        .21887E-03   -.87566    
  24  Prefactor     .71236        .24356        .29961E-03   -1.0304    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.48594e-09
Minuit parameter uncertainties:
  1  0.00010162
  2  8.36409e-06
  3  92.4417
  4  2.50403
  5  6.49193e-06
  6  20.5455
  7  5.591e-06
  8  2.31216e-05
  9  4.96087e-06
  10  3.95277e-05
  11  0.000184821
  12  0.000152776
  13  0.0030446
  14  24.2608
  15  8.37675
  16  1.94679e-07
  17  0.00681291
  18  1.74351e-06
  19  16.2105
  20  6.30164e-06
  21  1.64817e-05
  22  7.449e-05
  23  0.233101
  24  0.243927
Done.

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

Extracting fit parameters...

4FGL J1418.4+3543
   Spectrum: LogParabola
283         norm:  1.000e-04  4.961e-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:  7.124e-01  2.439e-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.169e+00  2.331e-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.48e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.55e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/320601/likelihoodResults_517190401_517449601_4FGL_J1418.4+3543_daily_bin1072.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) = 5135.5859747
delta logL = -0.00308139369099

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5135.58289323
delta logL = 7.29287421564e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.0254       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1690       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .71237       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=   5135.583     FROM MIGRAD    STATUS=CONVERGED     95 CALLS      242 TOTAL
                     EDM=   .47E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    18.797        .86153E-02** at limit **
   2  alpha         2.3833        3.4536        .50000        .44133E-07
   3  Normalizat    1.1690        .15477E-01    .21887E-03   -.38740E-03
   4  Prefactor     .71237        .17005E-01    .29961E-03   -.29411E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 2.38331
  Normalizat = 1.16899
  Prefactor  = 0.712371
 **********
 **   18 **HESSE 
 **********

 FCN=   5135.583     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      271 TOTAL
                     EDM=   .44E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    175.06        .88722E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.3833        2.9966        .50000       -.46692E-01
   3  Normalizat    1.1690        .54116E-01    .43774E-04   -.87567    
   4  Prefactor     .71237        .59458E-01    .11984E-04   -1.0304    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.39327e-10
Minuit parameter uncertainties:
  1  1.29053e-05
  2  1317.02
  3  0.0541185
  4  0.059463
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/320601': 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): 102
logL (Free Index) = 5135.58289095
delta logL = 2.35777224589e-06

Extracting fit parameters...

4FGL J1418.4+3543
   Spectrum: LogParabola
283         norm:  1.000e-04  1.291e-05  1.000e-04  1.000e+04 ( 1.000e-12)
284        alpha:  2.383e+00  1.317e+03  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:  7.124e-01  5.946e-02  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.169e+00  5.412e-02  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/320601/cmap_HighResolution_517190401_517449601_4FGL_J1418.4+3543_daily_bin1072.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.55e-05', job_status='DONE', photon_flux_upper_limit='4.48e-08', time_completed='2021-09-09 08:30:26.681182', job_id='320601', GAL2='0.71', fit_tolerance='1e-08', EG2='1.17', EG='1.17', time_epoch_completed='1631201426.68', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.71', dlogl='2.36e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.02' WHERE bin_id='1072' AND source_name='4FGL J1418.4+3543' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  9 08:30:26 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0130>
Subject: Job 320601: <4FGL_J1418.4+3543_daily_bin1072> in cluster <slac> Done

Job <4FGL_J1418.4+3543_daily_bin1072> 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) <bullet0130>, 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:27 2021
Results reported at Thu Sep  9 08:30:27 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1418.4+3543_daily_bin1072 214.623 35.7192 517190401 517449601 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 :                                   618.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             214.52 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   880 sec.
    Turnaround time :                            882 sec.

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

