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


Performing analysis on: 4FGL_J1418.4+3543_daily_bin1094
RA = 214.623, Dec = 35.7192
tmin = 522892801, tmax = 523152001
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='320634', job_status='RUN', time_executed='2021-09-09 08:19:45.300091', time_epoch_executed='1631200785.3' WHERE source_name='4FGL J1418.4+3543' and cadence='daily' and bin_id='1094'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/320634

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/320634/ft1_4FGL_J1418.4+3543_daily_bin1094.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/320634/ft2_4FGL_J1418.4+3543_daily_bin1094.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/320634/ft1_4FGL_J1418.4+3543_daily_bin1094.fits outfile=/scratch/kocevski/320634/ft1_filteredMKT_4FGL_J1418.4+3543_daily_bin1094.fits ra=214.623 dec=35.7192 rad=12.0 tmin=522892801.0 tmax=523152001.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.84
user 3.57
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/320634/ft1_filtered_4FGL_J1418.4+3543_daily_bin1094.fits" evtable="EVENTS" scfile=/scratch/kocevski/320634/ft2_4FGL_J1418.4+3543_daily_bin1094.fits sctable="SC_DATA" outfile=/scratch/kocevski/320634/ltcube_522892801_523152001_4FGL_J1418.4+3543_daily_bin1094.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/320634/ft2_4FGL_J1418.4+3543_daily_bin1094.fits
.....................!
real 11.88
user 11.47
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/320634/ft1_filtered_4FGL_J1418.4+3543_daily_bin1094.fits evtable="EVENTS" scfile=/scratch/kocevski/320634/ft2_4FGL_J1418.4+3543_daily_bin1094.fits sctable="SC_DATA" expcube=/scratch/kocevski/320634/ltcube_522892801_523152001_4FGL_J1418.4+3543_daily_bin1094.fits outfile=/scratch/kocevski/320634/expmap_522892801_523152001_4FGL_J1418.4+3543_daily_bin1094.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/320634/ltcube_522892801_523152001_4FGL_J1418.4+3543_daily_bin1094.fits
.....................!
real 190.86
user 184.99
sys 5.50

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/320634/ft1_filtered_4FGL_J1418.4+3543_daily_bin1094.fits scfile=/scratch/kocevski/320634/ft2_4FGL_J1418.4+3543_daily_bin1094.fits outfile=/scratch/kocevski/320634/cmap_522892801_523152001_4FGL_J1418.4+3543_daily_bin1094.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.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/320634/ft1_filtered_4FGL_J1418.4+3543_daily_bin1094.fits scfile=/scratch/kocevski/320634/ft2_4FGL_J1418.4+3543_daily_bin1094.fits outfile=/scratch/kocevski/320634/cmap_HighResolution_522892801_523152001_4FGL_J1418.4+3543_daily_bin1094.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=214.623 yref=35.7192 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.54
user 0.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    79.862       1.0000         .10000E-03   10000.    
     4 'norm      '    4.1657       1.0000         .10000E-03   10000.    
     5 'Prefactor '    11.301       1.0000         .10000E-03   10000.    
     6 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .12282E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    23.036       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10050E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    36.059       1.0000         .10000E-03   10000.    
    15 'norm      '    4.5736       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10115E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    4.7406       1.0000         .10000E-03   10000.    
    19 'Prefactor '    2.6169       1.0000         .10000E-03   10000.    
    20 'Prefactor '    5.8720       1.0000         .10000E-03   10000.    
    21 'norm      '    .73617       1.0000         .10000E-03   10000.    
    22 'Prefactor '    39.498       1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.0620       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .95919       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=   6105.841     FROM MIGRAD    STATUS=CONVERGED    528 CALLS     2708 TOTAL
                     EDM=   .60E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    39.081        .62102E-06** at limit **
   2  Prefactor     .10000E-03    22.631        .18390E-06** at limit **
   3  Prefactor     79.856        63.082        .10594E-05    .20773E-04
   4  norm          4.1660        1.8960        .40114E-07    .92562E-05
   5  Prefactor     11.301        6.1468        .42007E-06   -.20796E-03
   6  norm          .10000E-03    7.8405       -.10060E-06** at limit **
   7  Prefactor     .10000E-03    10.052        .46841E-06** at limit **
   8  Prefactor     .10000E-03    7.2554        .69878E-07** at limit **
   9  norm          .10000E-03    3.8599        .23175E-06** at limit **
  10  Prefactor     .10000E-03    30.283       -.90071E-06** at limit **
  11  Prefactor     23.042        19.278        .49925E-06    .24928E-03
  12  Prefactor     .10000E-03    1.1278        .24568E-07** at limit **
  13  norm          .10000E-03    13.834       -.38202E-06** at limit **
  14  Prefactor     36.057        31.022        .55703E-06    .34192E-04
  15  norm          4.5763        7.4693       -.19996E-07    .55174E-04
  16  Prefactor     .10000E-03    19.376        .14021E-05** at limit **
  17  Prefactor     .10000E-03    39.323        .98020E-06** at limit **
  18  norm          4.7383        7.6724        .84651E-06   -.17398E-03
  19  Prefactor     2.6228        22.551        .63791E-05   -.13003E-03
  20  Prefactor     5.8768        9.3483        .39107E-07    .10899E-03
  21  norm          .73511        1.5203       -.54255E-06   -.13013E-02
  22  Prefactor     39.476        80.179        .58742E-05    .47864E-04
  23  Normalizat    1.0617        .19009       -.86963E-06    .13824E-03
  24  Prefactor     .95959        .20181        .54845E-07    .86694E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 79.8563
  norm       = 4.16603
  Prefactor  = 11.3013
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 23.0418
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 36.0568
  norm       = 4.57631
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 4.73833
  Prefactor  = 2.62279
  Prefactor  = 5.87676
  norm       = 0.735105
  Prefactor  = 39.4755
  Normalizat = 1.06172
  Prefactor  = 0.959588
 **********
 **   18 **HESSE 
 **********

 FCN=   6105.841     FROM HESSE     STATUS=OK           395 CALLS     3103 TOTAL
                     EDM=   .79E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    39.110        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    22.776        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     79.856        63.136        .44941E-04   -1.3918    
   4  norm          4.1660        1.8962        .69485E-04   -1.5300    
   5  Prefactor     11.301        6.1411        .59587E-03   -1.5035    
   6  norm          .10000E-03    7.8674        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    10.079        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    7.2671        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    3.9817        .29949E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    29.863        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     23.042        19.122        .83457E-04   -1.4748    
  12  Prefactor     .10000E-03    1.1329        .81018E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    13.882        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     36.057        30.999        .66739E-04   -1.4506    
  15  norm          4.5763        7.4562        .18822E-03   -1.5280    
  16  Prefactor     .10000E-03    19.318        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    39.467        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          4.7383        7.6147        .92402E-03   -1.5273    
  19  Prefactor     2.6228        22.846        .12607E-02   -1.5384    
  20  Prefactor     5.8768        8.9013        .16573E-03   -1.5223    
  21  norm          .73511        1.3632        .12020E-02   -1.5536    
  22  Prefactor     39.476        81.032        .63777E-04   -1.4451    
  23  Normalizat    1.0617        .22040        .23786E-03   -.90991    
  24  Prefactor     .95959        .23456        .28105E-03   -.94089    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.93378e-10
Minuit parameter uncertainties:
  1  3.5444e-05
  2  1.22047e-05
  3  63.1891
  4  1.89622
  5  6.14146
  6  3.73799e-07
  7  3.03284e-05
  8  2.29261e-06
  9  1.68559e-05
  10  0.000224373
  11  19.1267
  12  1.10373e-06
  13  3.11817e-05
  14  31.0129
  15  7.45768
  16  5.3389e-05
  17  6.66689e-05
  18  7.6163
  19  15.4894
  20  8.90334
  21  1.36325
  22  81.2592
  23  0.220594
  24  0.234809
Done.

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

Extracting fit parameters...

4FGL J1418.4+3543
   Spectrum: LogParabola
283         norm:  1.000e-04  1.686e-05  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:  9.596e-01  2.348e-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.062e+00  2.206e-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.74e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.26e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/320634/likelihoodResults_522892801_523152001_4FGL_J1418.4+3543_daily_bin1094.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) = 6105.84218326
delta logL = -0.00119815315975

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6105.84098208
delta logL = 3.03197248286e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10535E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.0980       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0617       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .95962       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5780E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6103.200     FROM MIGRAD    STATUS=CONVERGED    150 CALLS      304 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .14815        2.0759        .34063E-02    .31274E-02
   2  alpha         5.0000        3.2419        .41845    ** at limit **
   3  Normalizat    .90412        .13733        .57616E-01   -.78911E-04
   4  Prefactor     1.0763        .13988        .45760E-01    .18786E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.148146
  alpha      = 5
  Normalizat = 0.904122
  Prefactor  = 1.07629
 **********
 **   18 **HESSE 
 **********

 FCN=   6103.200     FROM HESSE     STATUS=OK            29 CALLS      333 TOTAL
                     EDM=   .50E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .14815        .81051E-01    .15296E-04   -1.5631    
   2  alpha         5.0000        .95822        .39830E-01    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    .90412        .21603        .25481E-03   -.96315    
   4  Prefactor     1.0763        .24010        .26710E-03   -.90228    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.02654e-10
Minuit parameter uncertainties:
  1  0.0810507
  2  1.37996e-05
  3  0.216238
  4  0.240339
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/320634': 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) = 6103.20047391
delta logL = 2.64051119839

Extracting fit parameters...

4FGL J1418.4+3543
   Spectrum: LogParabola
283         norm:  1.481e-01  8.105e-02  1.000e-04  1.000e+04 ( 1.000e-12)
284        alpha:  5.000e+00  1.380e-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:  1.076e+00  2.403e-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.041e-01  2.162e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.73
Ra Dec: 214.623 35.719
Photon Index (Free Index): 5.00 +/- 0.00
Photon Flux (Free Index): 1.16e-07 +/- 6.29e-08
Energy Flux (Free Index): 1.57e-05 +/- 8.54e-06

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/320634/cmap_HighResolution_522892801_523152001_4FGL_J1418.4+3543_daily_bin1094.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.26e-05', comment='SUCCESS', energy_flux2='1.57e-05', dlogl='2.64e+00', photon_flux2='1.16e-07', job_status='DONE', time_completed='2021-09-09 08:31:20.527105', photon_index_error2='0.00', photon_index2='5.00', ts='-0.00', fit_tolerance='1e-08', GAL='0.96', photon_index_error='0.00', photon_flux_upper_limit='5.74e-08', energy_flux_error2='8.54e-06', EG='1.06', time_epoch_completed='1631201480.53', return_code='0', job_id='320634', GAL2='1.08', EG2='0.90', return_code2='0', photon_flux_error2='6.29e-08', ts2='5.73', photon_index='2.02' WHERE bin_id='1094' AND source_name='4FGL J1418.4+3543' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  9 08:31:20 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0141>
Subject: Job 320634: <4FGL_J1418.4+3543_daily_bin1094> in cluster <slac> Done

Job <4FGL_J1418.4+3543_daily_bin1094> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Thu Sep  9 08:15:47 2021
Job was executed on host(s) <bullet0141>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  9 08:15:48 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:48 2021
Terminated at Thu Sep  9 08:31:21 2021
Results reported at Thu Sep  9 08:31:21 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1418.4+3543_daily_bin1094 214.623 35.7192 522892801 523152001 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 :                                   670.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             237.72 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   932 sec.
    Turnaround time :                            934 sec.

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

