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


Performing analysis on: 4FGL_J1418.4+3543_daily_bin1350
RA = 214.623, Dec = 35.7192
tmin = 589248001, tmax = 589507201
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='322131', job_status='RUN', time_executed='2021-09-09 08:21:10.156522', time_epoch_executed='1631200870.16' WHERE source_name='4FGL J1418.4+3543' and cadence='daily' and bin_id='1350'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/322131

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/322131/ft1_4FGL_J1418.4+3543_daily_bin1350.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/322131/ft2_4FGL_J1418.4+3543_daily_bin1350.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/322131/ft1_4FGL_J1418.4+3543_daily_bin1350.fits outfile=/scratch/kocevski/322131/ft1_filteredMKT_4FGL_J1418.4+3543_daily_bin1350.fits ra=214.623 dec=35.7192 rad=12.0 tmin=589248001.0 tmax=589507201.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.14
user 2.91
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/322131/ft1_filtered_4FGL_J1418.4+3543_daily_bin1350.fits" evtable="EVENTS" scfile=/scratch/kocevski/322131/ft2_4FGL_J1418.4+3543_daily_bin1350.fits sctable="SC_DATA" outfile=/scratch/kocevski/322131/ltcube_589248001_589507201_4FGL_J1418.4+3543_daily_bin1350.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/322131/ft2_4FGL_J1418.4+3543_daily_bin1350.fits
.....................!
real 12.54
user 12.17
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/322131/ft1_filtered_4FGL_J1418.4+3543_daily_bin1350.fits evtable="EVENTS" scfile=/scratch/kocevski/322131/ft2_4FGL_J1418.4+3543_daily_bin1350.fits sctable="SC_DATA" expcube=/scratch/kocevski/322131/ltcube_589248001_589507201_4FGL_J1418.4+3543_daily_bin1350.fits outfile=/scratch/kocevski/322131/expmap_589248001_589507201_4FGL_J1418.4+3543_daily_bin1350.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/322131/ltcube_589248001_589507201_4FGL_J1418.4+3543_daily_bin1350.fits
.....................!
real 190.13
user 185.37
sys 4.32

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/322131/ft1_filtered_4FGL_J1418.4+3543_daily_bin1350.fits scfile=/scratch/kocevski/322131/ft2_4FGL_J1418.4+3543_daily_bin1350.fits outfile=/scratch/kocevski/322131/cmap_589248001_589507201_4FGL_J1418.4+3543_daily_bin1350.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.54
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/322131/ft1_filtered_4FGL_J1418.4+3543_daily_bin1350.fits scfile=/scratch/kocevski/322131/ft2_4FGL_J1418.4+3543_daily_bin1350.fits outfile=/scratch/kocevski/322131/cmap_HighResolution_589248001_589507201_4FGL_J1418.4+3543_daily_bin1350.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.39
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    13.759       1.0000         .10000E-03   10000.    
     4 'norm      '    16.910       1.0000         .10000E-03   10000.    
     5 'Prefactor '    1.6463       1.0000         .10000E-03   10000.    
     6 'norm      '    3.3715       1.0000         .10000E-03   10000.    
     7 'Prefactor '    1.7886       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .39603E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    10.025       1.0000         .10000E-03   10000.    
    12 'Prefactor '    42.650       1.0000         .10000E-03   10000.    
    13 'norm      '    17.781       1.0000         .10000E-03   10000.    
    14 'Prefactor '    19.553       1.0000         .10000E-03   10000.    
    15 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    3.5136       1.0000         .10000E-03   10000.    
    19 'Prefactor '    21.209       1.0000         .10000E-03   10000.    
    20 'Prefactor '    7.6194       1.0000         .10000E-03   10000.    
    21 'norm      '    .17680       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    .86262       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.2792       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=   8204.939     FROM MIGRAD    STATUS=CONVERGED    555 CALLS     2785 TOTAL
                     EDM=   .32E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    66.313        .23894E-07** at limit **
   2  Prefactor     .10000E-03    10.807       -.18386E-07** at limit **
   3  Prefactor     13.720        77.722       -.42821E-05   -.29546E-05
   4  norm          16.910        2.8070        .98333E-08    .31845E-04
   5  Prefactor     1.6467        3.7267       -.12469E-06    .10744E-05
   6  norm          3.3728        13.534       -.16206E-05   -.13235E-04
   7  Prefactor     1.7778        75.008        .12514E-05   -.24770E-05
   8  Prefactor     .10000E-03    6.7629       -.21948E-07** at limit **
   9  norm          .10000E-03    1.9197       -.24799E-08** at limit **
  10  Prefactor     .10000E-03    46.206        .54140E-05** at limit **
  11  Prefactor     10.010        19.495        .21747E-05   -.31876E-05
  12  Prefactor     42.651        6.8615        .44247E-08    .16633E-04
  13  norm          17.771        18.288        .35132E-06    .24964E-05
  14  Prefactor     19.562        25.235        .22609E-06    .13445E-04
  15  norm          .10000E-03    2.2913       -.13048E-07** at limit **
  16  Prefactor     .10000E-03    21.642       -.19346E-06** at limit **
  17  Prefactor     .10000E-03    13.943        .62601E-07** at limit **
  18  norm          3.5128        3.9093       -.12618E-07    .89193E-05
  19  Prefactor     21.212        15.152       -.52337E-07    .55277E-04
  20  Prefactor     7.6201        6.2799        .45175E-07    .14570E-03
  21  norm          .17705        .71545        .18410E-07    .45533E-03
  22  Prefactor     .10000E-03    21.906        .26502E-08** at limit **
  23  Normalizat    .86217        .18027        .35174E-07    .48320E-04
  24  Prefactor     1.2796        .19408        .26166E-06    .18814E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 13.7195
  norm       = 16.9101
  Prefactor  = 1.64674
  norm       = 3.37281
  Prefactor  = 1.77784
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10.0095
  Prefactor  = 42.6513
  norm       = 17.7709
  Prefactor  = 19.5621
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.51283
  Prefactor  = 21.212
  Prefactor  = 7.62011
  norm       = 0.177051
  Prefactor  = 0.0001
  Normalizat = 0.862167
  Prefactor  = 1.27964
 **********
 **   18 **HESSE 
 **********

 FCN=   8204.939     FROM HESSE     STATUS=OK           407 CALLS     3192 TOTAL
                     EDM=   .29E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    66.463        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    10.829        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     13.720        78.730        .10798E-03   -1.4967    
   4  norm          16.910        2.8105        .59664E-04   -1.4885    
   5  Prefactor     1.6467        3.7110        .25052E-03   -1.5451    
   6  norm          3.3728        13.686        .11019E-02   -1.5341    
   7  Prefactor     1.7778        69.689        .31279E-03   -1.5441    
   8  Prefactor     .10000E-03    6.7792        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    1.9345        .12248E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    46.439        .48902E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     10.010        19.453        .12656E-03   -1.5075    
  12  Prefactor     42.651        6.8825        .61384E-04   -1.4401    
  13  norm          17.771        18.267        .94983E-04   -1.4865    
  14  Prefactor     19.562        25.341        .90577E-04   -1.4823    
  15  norm          .10000E-03    2.3034        .13387E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    21.674        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    13.972        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          3.5128        3.9110        .18421E-03   -1.5333    
  19  Prefactor     21.212        15.152        .86973E-04   -1.4787    
  20  Prefactor     7.6201        6.1743        .14528E-03   -1.5156    
  21  norm          .17705        1.1589        .13644E-02   -1.5624    
  22  Prefactor     .10000E-03    21.911        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    .86217        .22401        .28757E-03   -.97803    
  24  Prefactor     1.2796        .23892        .27697E-03   -.83915    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.90907e-10
Minuit parameter uncertainties:
  1  0.000115526
  2  1.49328e-06
  3  65.8625
  4  2.81047
  5  3.71151
  6  13.5932
  7  22.289
  8  3.60421e-06
  9  7.58279e-07
  10  0.000119305
  11  19.4649
  12  6.88261
  13  18.2728
  14  25.355
  15  1.11593e-06
  16  2.11342e-05
  17  1.65171e-07
  18  3.91129
  19  15.1551
  20  6.17484
  21  0.90571
  22  3.56015e-06
  23  0.224248
  24  0.239121
Done.

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

Extracting fit parameters...

4FGL J1418.4+3543
   Spectrum: LogParabola
283         norm:  1.000e-04  7.583e-07  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.280e+00  2.391e-01  0.000e+00  1.000e+01 ( 1.000e+00)
576        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
577        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
574   Normalization:  8.622e-01  2.242e-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.83e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.75e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/322131/likelihoodResults_589248001_589507201_4FGL_J1418.4+3543_daily_bin1350.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) = 8204.94095529
delta logL = -0.00244973333793

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8204.93850583
delta logL = -2.82143446384e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10034E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.0280       1.0000          .0000       5.0000    
     3 'Normalizat'    .86204       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2798       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=   8204.939     FROM MIGRAD    STATUS=CONVERGED     98 CALLS      246 TOTAL
                     EDM=   .16E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    .46340        .35747E-01** at limit **
   2  alpha         2.7769        3.5146        .50000        .59026E-07
   3  Normalizat    .86217        .25156E-02    .28757E-03    .50506E-03
   4  Prefactor     1.2796        .29024E-02    .27697E-03    .53860E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 2.77694
  Normalizat = 0.862166
  Prefactor  = 1.27964
 **********
 **   18 **HESSE 
 **********

 FCN=   8204.939     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      277 TOTAL
                     EDM=   .62E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    132.42        .19382E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.7769        3.4048        .50000        .11100    
   3  Normalizat    .86217        .33073E-01    .57514E-04   -.97803    
   4  Prefactor     1.2796        .38157E-01    .55394E-04   -.83914    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 6.15564e-09
Minuit parameter uncertainties:
  1  0.000507559
  2  1368.72
  3  0.0330743
  4  0.0381583
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/322131': 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) = 8204.93850152
delta logL = 4.03476769861e-06

Extracting fit parameters...

4FGL J1418.4+3543
   Spectrum: LogParabola
283         norm:  1.000e-04  5.076e-04  1.000e-04  1.000e+04 ( 1.000e-12)
284        alpha:  2.777e+00  1.369e+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.280e+00  3.816e-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:  8.622e-01  3.307e-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 -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/322131/cmap_HighResolution_589248001_589507201_4FGL_J1418.4+3543_daily_bin1350.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.75e-05', job_status='DONE', photon_flux_upper_limit='4.83e-08', time_completed='2021-09-09 08:35:15.817500', job_id='322131', GAL2='1.28', fit_tolerance='1e-08', EG2='0.86', EG='0.86', time_epoch_completed='1631201715.82', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.28', dlogl='4.03e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.02' WHERE bin_id='1350' AND source_name='4FGL J1418.4+3543' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  9 08:35:15 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0038>
Subject: Job 322131: <4FGL_J1418.4+3543_daily_bin1350> in cluster <slac> Done

Job <4FGL_J1418.4+3543_daily_bin1350> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Thu Sep  9 08:20:51 2021
Job was executed on host(s) <bullet0038>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  9 08:20:52 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:20:52 2021
Terminated at Thu Sep  9 08:35:16 2021
Results reported at Thu Sep  9 08:35:16 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1418.4+3543_daily_bin1350 214.623 35.7192 589248001 589507201 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 :                                   808.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             326.26 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   864 sec.
    Turnaround time :                            865 sec.

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

