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


Performing analysis on: 4FGL_J1418.4+3543_daily_bin34
RA = 214.623, Dec = 35.7192
tmin = 248140801, tmax = 248400001
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='312419', job_status='RUN', time_executed='2021-09-09 07:54:26.040892', time_epoch_executed='1631199266.04' WHERE source_name='4FGL J1418.4+3543' and cadence='daily' and bin_id='34'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/312419

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/312419/ft1_4FGL_J1418.4+3543_daily_bin34.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/312419/ft2_4FGL_J1418.4+3543_daily_bin34.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/312419/ft1_4FGL_J1418.4+3543_daily_bin34.fits outfile=/scratch/kocevski/312419/ft1_filteredMKT_4FGL_J1418.4+3543_daily_bin34.fits ra=214.623 dec=35.7192 rad=12.0 tmin=248140801.0 tmax=248400001.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.40
user 1.22
sys 0.17

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/312419/ft1_filtered_4FGL_J1418.4+3543_daily_bin34.fits evtable="EVENTS" scfile=/scratch/kocevski/312419/ft2_4FGL_J1418.4+3543_daily_bin34.fits sctable="SC_DATA" expcube=/scratch/kocevski/312419/ltcube_248140801_248400001_4FGL_J1418.4+3543_daily_bin34.fits outfile=/scratch/kocevski/312419/expmap_248140801_248400001_4FGL_J1418.4+3543_daily_bin34.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/312419/ltcube_248140801_248400001_4FGL_J1418.4+3543_daily_bin34.fits
.....................!
real 189.62
user 184.81
sys 4.46

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/312419/ft1_filtered_4FGL_J1418.4+3543_daily_bin34.fits scfile=/scratch/kocevski/312419/ft2_4FGL_J1418.4+3543_daily_bin34.fits outfile=/scratch/kocevski/312419/cmap_248140801_248400001_4FGL_J1418.4+3543_daily_bin34.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.52
user 0.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/312419/ft1_filtered_4FGL_J1418.4+3543_daily_bin34.fits scfile=/scratch/kocevski/312419/ft2_4FGL_J1418.4+3543_daily_bin34.fits outfile=/scratch/kocevski/312419/cmap_HighResolution_248140801_248400001_4FGL_J1418.4+3543_daily_bin34.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.36
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.2825       1.0000         .10000E-03   10000.    
     2 'Prefactor '    23.991       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    3.1708       1.0000         .10000E-03   10000.    
     6 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    18.503       1.0000         .10000E-03   10000.    
     9 'norm      '    .10360E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .83521E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    10.808       1.0000         .10000E-03   10000.    
    15 'norm      '    .20077E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10067E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    30.917       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    1.7697       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    .72029       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.3093       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=   5582.107     FROM MIGRAD    STATUS=CONVERGED    559 CALLS     2387 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.2017        189.81       -.24992E-03    .47125E-04
   2  Prefactor     23.989        19.251        .64468E-06    .98302E-04
   3  Prefactor     .10000E-03    24.181        .20164E-04** at limit **
   4  norm          .10000E-03    .53705       -.29846E-06** at limit **
   5  Prefactor     3.1703        3.5428       -.52699E-06   -.15874E-03
   6  norm          .10000E-03    9.1524       -.29002E-05** at limit **
   7  Prefactor     .10000E-03    10.929        .82814E-05** at limit **
   8  Prefactor     18.498        19.375       -.16367E-05    .85071E-04
   9  norm          .10000E-03    3.3685       -.37070E-06** at limit **
  10  Prefactor     .10000E-03    5.0408       -.11243E-07** at limit **
  11  Prefactor     .10009E-03    9.5277       -.35049E-05** at limit **
  12  Prefactor     .10000E-03    .98361       -.88797E-07** at limit **
  13  norm          .10000E-03    6.6480        .57422E-06** at limit **
  14  Prefactor     10.815        26.462       -.13702E-05    .14150E-03
  15  norm          .10006E-03    4.9347       -.42316E-05** at limit **
  16  Prefactor     .10000E-03    72.087        .50435E-04** at limit **
  17  Prefactor     .10000E-03    31.938       -.28729E-04** at limit **
  18  norm          .10000E-03    2.9861       -.19646E-06** at limit **
  19  Prefactor     30.916        17.497       -.87925E-06    .48276E-03
  20  Prefactor     .10000E-03    5.3044       -.29959E-06** at limit **
  21  norm          1.7691        1.5706       -.29176E-06    .17424E-03
  22  Prefactor     .10000E-03    103.18       -.26881E-04** at limit **
  23  Normalizat    .72051        .17250        .68082E-05    .11982E-02
  24  Prefactor     1.3091        .19510       -.13411E-06    .13646E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.20166
  Prefactor  = 23.9887
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 3.1703
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 18.4984
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100091
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 10.8153
  norm       = 0.000100056
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 30.916
  Prefactor  = 0.0001
  norm       = 1.76906
  Prefactor  = 0.0001
  Normalizat = 0.720512
  Prefactor  = 1.30906
 **********
 **   18 **HESSE 
 **********

 FCN=   5582.107     FROM HESSE     STATUS=OK           391 CALLS     2778 TOTAL
                     EDM=   .83E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.2017        193.77        .27175E-03   -1.5411    
   2  Prefactor     23.989        19.239        .81781E-04   -1.4728    
   3  Prefactor     .10000E-03    24.212        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    .79549        .10617E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     3.1703        3.5314        .14157E-03   -1.5352    
   6  norm          .10000E-03    9.2181        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    10.960        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     18.498        19.382        .93111E-04   -1.4848    
   9  norm          .10000E-03    3.5283        .26760E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    5.0480        .16373E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10009E-03    46.043        .43342E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    .99001        .72347E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    6.6603        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     10.815        26.394        .12187E-03   -1.5050    
  15  norm          .10006E-03    13.108        .31603E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    72.362        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    32.105        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    2.9876        .12608E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     30.916        17.440        .72060E-04   -1.4595    
  20  Prefactor     .10000E-03    5.4129        .16779E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          1.7691        1.5562        .84121E-04   -1.5442    
  22  Prefactor     .10000E-03    103.43        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    .72051        .20278        .25251E-03   -1.0309    
  24  Prefactor     1.3091        .23343        .23150E-03   -.83038    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.29283e-09
Minuit parameter uncertainties:
  1  41.4471
  2  19.2442
  3  8.22992e-06
  4  1.76589e-05
  5  3.53164
  6  4.10945e-05
  7  2.90396e-05
  8  19.389
  9  2.57059e-05
  10  1.71206e-06
  11  0.00410113
  12  5.63732e-06
  13  1.40248e-07
  14  26.4223
  15  0.00171549
  16  0.000346556
  17  9.99512e-05
  18  1.62901e-06
  19  17.443
  20  7.40963e-06
  21  1.55622
  22  6.20802e-05
  23  0.202988
  24  0.233619
Done.

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

Extracting fit parameters...

4FGL J1418.4+3543
   Spectrum: LogParabola
283         norm:  1.000e-04  2.571e-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:  1.309e+00  2.336e-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:  7.205e-01  2.030e-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.86e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.77e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/312419/likelihoodResults_248140801_248400001_4FGL_J1418.4+3543_daily_bin34.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) = 5582.10816174
delta logL = -0.00135352028974

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5582.10680947
delta logL = -1.25324459077e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10870E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    1.9833       1.0000          .0000       5.0000    
     3 'Normalizat'    .72073       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3088       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=   5582.107     FROM MIGRAD    STATUS=CONVERGED    109 CALLS      256 TOTAL
                     EDM=   .92E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    308.56        .21077E-02** at limit **
   2  alpha         1.6106        3.1487        .50000       -.76147E-07
   3  Normalizat    .72051        .34278E-01    .25251E-03    .42883E-03
   4  Prefactor     1.3091        .41301E-01    .23150E-03    .48230E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 1.61061
  Normalizat = 0.720511
  Prefactor  = 1.30906
 **********
 **   18 **HESSE 
 **********

 FCN=   5582.107     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      285 TOTAL
                     EDM=   .31E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    1000.7        .42154E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.6106        3.8337        .50000       -.36372    
   3  Normalizat    .72051        .99718E-01    .50502E-04   -1.0309    
   4  Prefactor     1.3091        .12014        .46300E-04   -.83038    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.07391e-09
Minuit parameter uncertainties:
  1  8.90272e-05
  2  1373.61
  3  0.0997431
  4  0.120168
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/312419': 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) = 5582.10680426
delta logL = 3.96389441448e-06

Extracting fit parameters...

4FGL J1418.4+3543
   Spectrum: LogParabola
283         norm:  1.000e-04  8.903e-05  1.000e-04  1.000e+04 ( 1.000e-12)
284        alpha:  1.611e+00  1.374e+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:  1.309e+00  1.202e-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:  7.205e-01  9.974e-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/312419/cmap_HighResolution_248140801_248400001_4FGL_J1418.4+3543_daily_bin34.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.77e-05', job_status='DONE', photon_flux_upper_limit='4.86e-08', time_completed='2021-09-09 08:04:35.606439', job_id='312419', GAL2='1.31', fit_tolerance='1e-08', EG2='0.72', EG='0.72', time_epoch_completed='1631199875.61', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.31', dlogl='3.96e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.02' WHERE bin_id='34' AND source_name='4FGL J1418.4+3543' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  9 08:04:35 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0240>
Subject: Job 312419: <4FGL_J1418.4+3543_daily_bin34> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1418.4+3543_daily_bin34 214.623 35.7192 248140801 248400001 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 :                                   608.25 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             310.62 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   838 sec.
    Turnaround time :                            840 sec.

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

