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


Performing analysis on: 4FGL_J1418.4+3543_daily_bin71
RA = 214.623, Dec = 35.7192
tmin = 257731201, tmax = 257990401
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='312474', job_status='RUN', time_executed='2021-09-09 07:50:53.699558', time_epoch_executed='1631199053.7' WHERE source_name='4FGL J1418.4+3543' and cadence='daily' and bin_id='71'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/312474

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/312474/ft1_4FGL_J1418.4+3543_daily_bin71.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/312474/ft2_4FGL_J1418.4+3543_daily_bin71.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/312474/ft1_4FGL_J1418.4+3543_daily_bin71.fits outfile=/scratch/kocevski/312474/ft1_filteredMKT_4FGL_J1418.4+3543_daily_bin71.fits ra=214.623 dec=35.7192 rad=12.0 tmin=257731201.0 tmax=257990401.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.42
user 1.25
sys 0.14

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/312474/ft1_filtered_4FGL_J1418.4+3543_daily_bin71.fits" evtable="EVENTS" scfile=/scratch/kocevski/312474/ft2_4FGL_J1418.4+3543_daily_bin71.fits sctable="SC_DATA" outfile=/scratch/kocevski/312474/ltcube_257731201_257990401_4FGL_J1418.4+3543_daily_bin71.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/312474/ft2_4FGL_J1418.4+3543_daily_bin71.fits
.....................!
real 12.44
user 12.09
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/312474/ft1_filtered_4FGL_J1418.4+3543_daily_bin71.fits evtable="EVENTS" scfile=/scratch/kocevski/312474/ft2_4FGL_J1418.4+3543_daily_bin71.fits sctable="SC_DATA" expcube=/scratch/kocevski/312474/ltcube_257731201_257990401_4FGL_J1418.4+3543_daily_bin71.fits outfile=/scratch/kocevski/312474/expmap_257731201_257990401_4FGL_J1418.4+3543_daily_bin71.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/312474/ltcube_257731201_257990401_4FGL_J1418.4+3543_daily_bin71.fits
.....................!
real 189.79
user 184.89
sys 4.55

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/312474/ft1_filtered_4FGL_J1418.4+3543_daily_bin71.fits scfile=/scratch/kocevski/312474/ft2_4FGL_J1418.4+3543_daily_bin71.fits outfile=/scratch/kocevski/312474/cmap_257731201_257990401_4FGL_J1418.4+3543_daily_bin71.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.35
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/312474/ft1_filtered_4FGL_J1418.4+3543_daily_bin71.fits scfile=/scratch/kocevski/312474/ft2_4FGL_J1418.4+3543_daily_bin71.fits outfile=/scratch/kocevski/312474/cmap_HighResolution_257731201_257990401_4FGL_J1418.4+3543_daily_bin71.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.53
user 0.39
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    19.430       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    29.269       1.0000         .10000E-03   10000.    
     4 'norm      '    7.8761       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10022E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .94784       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10082E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    2.3924       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10308E-02   1.0000         .10000E-03   10000.    
    13 'norm      '    .10081E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    50.578       1.0000         .10000E-03   10000.    
    15 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10064E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    7.0464       1.0000         .10000E-03   10000.    
    18 'norm      '    7.0818       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    3.9809       1.0000         .10000E-03   10000.    
    21 'norm      '    .81976E-01   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    .91396       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.0448       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=   4927.275     FROM MIGRAD    STATUS=CONVERGED    541 CALLS     2419 TOTAL
                     EDM=   .91E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     19.423        67.913       -.10094E-05   -.31837E-04
   2  Prefactor     .10000E-03    12.954        .60540E-06** at limit **
   3  Prefactor     29.268        52.377        .12300E-06   -.11283E-04
   4  norm          7.8760        2.2797        .24553E-07   -.21601E-04
   5  Prefactor     .10000E-03    2.6921        .64057E-07** at limit **
   6  norm          .10000E-03    12.175        .58532E-06** at limit **
   7  Prefactor     .10000E-03    9.8091       -.42330E-06** at limit **
   8  Prefactor     .10000E-03    9.1539        .76558E-06** at limit **
   9  norm          .94451        5.9313        .20141E-05   -.46487E-04
  10  Prefactor     .10000E-03    27.747        .32541E-05** at limit **
  11  Prefactor     2.4149        48.242       -.12590E-05   -.34748E-04
  12  Prefactor     .10357E-03    3.3561       -.14427E-05** at limit **
  13  norm          .10000E-03    27.761        .13602E-05** at limit **
  14  Prefactor     50.564        32.466       -.89352E-06   -.28805E-03
  15  norm          .10000E-03    3.0593        .11943E-06** at limit **
  16  Prefactor     .10000E-03    21.732       -.16188E-05** at limit **
  17  Prefactor     7.0380        20.036       -.31446E-06   -.26652E-04
  18  norm          7.0821        6.7975       -.15892E-05   -.47583E-03
  19  Prefactor     .10000E-03    9.6161       -.42829E-06** at limit **
  20  Prefactor     3.9868        8.2244        .35828E-06    .13795E-04
  21  norm          .75741E-01    1.0341        .15665E-08    .29614E-04
  22  Prefactor     .10000E-03    33.588        .16715E-05** at limit **
  23  Normalizat    .91384        .19312       -.46105E-06   -.33829E-04
  24  Prefactor     1.0450        .20782       -.15470E-06   -.24879E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 19.4225
  Prefactor  = 0.0001
  Prefactor  = 29.2679
  norm       = 7.87599
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.94451
  Prefactor  = 0.000100001
  Prefactor  = 2.41495
  Prefactor  = 0.000103574
  norm       = 0.0001
  Prefactor  = 50.5637
  norm       = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 7.03802
  norm       = 7.08208
  Prefactor  = 0.0001
  Prefactor  = 3.98681
  norm       = 0.0757407
  Prefactor  = 0.000100002
  Normalizat = 0.913837
  Prefactor  = 1.04501
 **********
 **   18 **HESSE 
 **********

 FCN=   4927.275     FROM HESSE     STATUS=OK           403 CALLS     2822 TOTAL
                     EDM=   .60E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     19.423        68.276        .90864E-04   -1.4826    
   2  Prefactor     .10000E-03    13.076        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     29.268        52.539        .74056E-04   -1.4625    
   4  norm          7.8760        2.2812        .55032E-04   -1.5147    
   5  Prefactor     .10000E-03    2.7531        .11237E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    12.402        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    9.8786        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    9.2365        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .94451        8.3440        .27212E-02   -1.5514    
  10  Prefactor     .10000E-03    27.986        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     2.4149        47.086        .26478E-03   -1.5397    
  12  Prefactor     .10357E-03    77.694        .19200E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    27.911        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     50.564        32.929        .56390E-04   -1.4285    
  15  norm          .10000E-03    3.0714        .11989E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    21.940        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     7.0380        20.049        .15112E-03   -1.5177    
  18  norm          7.0821        6.8936        .75371E-03   -1.5176    
  19  Prefactor     .10000E-03    9.6740        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     3.9868        8.1918        .20215E-03   -1.5309    
  21  norm          .75741E-01    6.3270        .12855E-02   -1.5653    
  22  Prefactor     .10000E-03    33.829        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    .91384        .22774        .23137E-03   -.95976    
  24  Prefactor     1.0450        .24658        .25328E-03   -.91244    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.04849e-08
Minuit parameter uncertainties:
  1  68.5524
  2  9.99863e-05
  3  52.6217
  4  2.28118
  5  6.03503e-06
  6  7.26049e-05
  7  9.09062e-05
  8  0.000111405
  9  5.61536
  10  0.000369866
  11  21.3459
  12  0.0333703
  13  0.000118392
  14  32.9405
  15  5.98729e-06
  16  0.000346672
  17  20.0686
  18  6.89438
  19  5.38556e-05
  20  8.19408
  21  1.38374
  22  0.000455701
  23  0.227978
  24  0.246848
Done.

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

Extracting fit parameters...

4FGL J1418.4+3543
   Spectrum: LogParabola
283         norm:  9.445e-01  5.615e+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

GAL_V02
   Spectrum: PowerLaw
575    Prefactor:  1.045e+00  2.468e-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.138e-01  2.280e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/312474/likelihoodResults_257731201_257990401_4FGL_J1418.4+3543_daily_bin71.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) = 4926.26376647
delta logL = 1.01078204314

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4926.13809276
delta logL = 1.13645576138

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.4888       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.4239       1.0000          .0000       5.0000    
     3 'Normalizat'    .83111       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0956       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=   4926.138     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      211 TOTAL
                     EDM=   .62E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.4894        26.839        .87855E-03    .28743E-03
   2  alpha         3.4239        4.2118        .27876        .56280E-04
   3  Normalizat    .83108        .66107E-01    .44015E-01    .14513E-04
   4  Prefactor     1.0955        .75404E-01    .56083E-01   -.26278E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 1.48936
  alpha      = 3.42387
  Normalizat = 0.831075
  Prefactor  = 1.09554
 **********
 **   18 **HESSE 
 **********

 FCN=   4926.138     FROM HESSE     STATUS=OK            33 CALLS      244 TOTAL
                     EDM=   .34E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.4894        3.8533        .35142E-04   -1.5464    
   2  alpha         3.4239        1.3816        .11363E-01    .37852    
   3  Normalizat    .83108        .21457        .24118E-03   -.98926    
   4  Prefactor     1.0955        .24553        .24798E-03   -.89609    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.42288e-11
Minuit parameter uncertainties:
  1  3.85398
  2  1.47963
  3  0.214785
  4  0.245784
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/312474': 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) = 4926.13809256
delta logL = 1.13645595649

Extracting fit parameters...

4FGL J1418.4+3543
   Spectrum: LogParabola
283         norm:  1.489e+00  3.854e+00  1.000e-04  1.000e+04 ( 1.000e-12)
284        alpha:  3.424e+00  1.480e+00  0.000e+00  5.000e+00 ( 1.000e+00)
285         beta:  6.612e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
286           Eb:  8.292e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
575    Prefactor:  1.096e+00  2.458e-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.311e-01  2.148e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.48
Ra Dec: 214.623 35.719
Photon Index (Free Index): 3.42 +/- 1.48
Photon Flux (Free Index): 7.04e-08 +/- 5.43e-08
Energy Flux (Free Index): 1.25e-05 +/- 1.11e-05

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/312474/cmap_HighResolution_257731201_257990401_4FGL_J1418.4+3543_daily_bin71.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.68e-05', comment='SUCCESS', energy_flux2='1.25e-05', dlogl='1.14e+00', photon_flux2='7.04e-08', job_status='DONE', time_completed='2021-09-09 08:00:33.750464', photon_index_error2='1.48', photon_index2='3.42', ts='0.03', fit_tolerance='1e-08', GAL='1.05', photon_index_error='0.00', photon_flux_upper_limit='8.22e-08', energy_flux_error2='1.11e-05', EG='0.91', time_epoch_completed='1631199633.75', return_code='0', job_id='312474', GAL2='1.10', EG2='0.83', return_code2='0', photon_flux_error2='5.43e-08', ts2='2.48', photon_index='2.02' WHERE bin_id='71' AND source_name='4FGL J1418.4+3543' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  9 08:00:33 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0202>
Subject: Job 312474: <4FGL_J1418.4+3543_daily_bin71> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1418.4+3543_daily_bin71 214.623 35.7192 257731201 257990401 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 :                                   578.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             339.15 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   593 sec.
    Turnaround time :                            595 sec.

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

