/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 111 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_bin1520
RA = 214.623, Dec = 35.7192
tmin = 633312001, tmax = 633571201
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='323524', job_status='RUN', time_executed='2021-09-09 08:27:30.732421', time_epoch_executed='1631201250.73' WHERE source_name='4FGL J1418.4+3543' and cadence='daily' and bin_id='1520'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/323524

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/323524/ft1_4FGL_J1418.4+3543_daily_bin1520.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/323524/ft2_4FGL_J1418.4+3543_daily_bin1520.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/323524/ft1_4FGL_J1418.4+3543_daily_bin1520.fits outfile=/scratch/kocevski/323524/ft1_filteredMKT_4FGL_J1418.4+3543_daily_bin1520.fits ra=214.623 dec=35.7192 rad=12.0 tmin=633312001.0 tmax=633571201.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.69
user 3.46
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/323524/ft1_filtered_4FGL_J1418.4+3543_daily_bin1520.fits" evtable="EVENTS" scfile=/scratch/kocevski/323524/ft2_4FGL_J1418.4+3543_daily_bin1520.fits sctable="SC_DATA" outfile=/scratch/kocevski/323524/ltcube_633312001_633571201_4FGL_J1418.4+3543_daily_bin1520.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/323524/ft2_4FGL_J1418.4+3543_daily_bin1520.fits
.....................!
real 12.00
user 11.68
sys 0.28

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/323524/ft1_filtered_4FGL_J1418.4+3543_daily_bin1520.fits evtable="EVENTS" scfile=/scratch/kocevski/323524/ft2_4FGL_J1418.4+3543_daily_bin1520.fits sctable="SC_DATA" expcube=/scratch/kocevski/323524/ltcube_633312001_633571201_4FGL_J1418.4+3543_daily_bin1520.fits outfile=/scratch/kocevski/323524/expmap_633312001_633571201_4FGL_J1418.4+3543_daily_bin1520.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/323524/ltcube_633312001_633571201_4FGL_J1418.4+3543_daily_bin1520.fits
.....................!
real 190.04
user 185.46
sys 4.12

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/323524/ft1_filtered_4FGL_J1418.4+3543_daily_bin1520.fits scfile=/scratch/kocevski/323524/ft2_4FGL_J1418.4+3543_daily_bin1520.fits outfile=/scratch/kocevski/323524/cmap_633312001_633571201_4FGL_J1418.4+3543_daily_bin1520.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.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/323524/ft1_filtered_4FGL_J1418.4+3543_daily_bin1520.fits scfile=/scratch/kocevski/323524/ft2_4FGL_J1418.4+3543_daily_bin1520.fits outfile=/scratch/kocevski/323524/cmap_HighResolution_633312001_633571201_4FGL_J1418.4+3543_daily_bin1520.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.55
user 0.40
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    4.9884       1.0000         .10000E-03   10000.    
     3 'Prefactor '    6.6806       1.0000         .10000E-03   10000.    
     4 'norm      '    3.6986       1.0000         .10000E-03   10000.    
     5 'Prefactor '    6.7815       1.0000         .10000E-03   10000.    
     6 'norm      '    .85179       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    4.1720       1.0000         .10000E-03   10000.    
     9 'norm      '    1.8972       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .16917E-02   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10087E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    13.056       1.0000         .10000E-03   10000.    
    13 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10125E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10084E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    48.476       1.0000         .10000E-03   10000.    
    17 'Prefactor '    38.450       1.0000         .10000E-03   10000.    
    18 'norm      '    .10015E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    39.653       1.0000         .10000E-03   10000.    
    20 'Prefactor '    5.6771       1.0000         .10000E-03   10000.    
    21 'norm      '    1.4533       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .80526E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.4129       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .46097       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=   6321.617     FROM MIGRAD    STATUS=CONVERGED    536 CALLS     2322 TOTAL
                     EDM=   .60E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    16.140        .23988E-06** at limit **
   2  Prefactor     4.9872        15.748       -.70428E-06    .59331E-05
   3  Prefactor     6.6817        53.853       -.77122E-06    .32624E-05
   4  norm          3.6993        2.0414       -.11807E-06    .13464E-03
   5  Prefactor     6.7827        4.5962       -.23588E-06    .65284E-04
   6  norm          .85030        10.050        .50457E-06   -.88891E-04
   7  Prefactor     .10000E-03    5.8125       -.47369E-07** at limit **
   8  Prefactor     4.1770        18.962       -.14162E-05    .40181E-05
   9  norm          1.9010        3.8247       -.88586E-06   -.12860E-04
  10  Prefactor     .10000E-03    37.382        .11380E-04** at limit **
  11  Prefactor     .10000E-03    11.197       -.84481E-08** at limit **
  12  Prefactor     13.057        4.4849       -.54471E-08    .12934E-03
  13  norm          .10000E-03    5.9671        .21663E-06** at limit **
  14  Prefactor     .10000E-03    17.689       -.53847E-06** at limit **
  15  norm          .10000E-03    3.2383       -.19551E-06** at limit **
  16  Prefactor     48.490        37.875       -.49757E-06   -.15078E-04
  17  Prefactor     38.443        25.640       -.87302E-07    .22675E-04
  18  norm          .10000E-03    3.8143       -.58351E-07** at limit **
  19  Prefactor     39.653        17.449       -.56932E-07   -.37422E-04
  20  Prefactor     5.6772        7.3691       -.43607E-06   -.65544E-04
  21  norm          1.4516        1.4598        .37154E-06   -.17079E-03
  22  Prefactor     .10000E-03    269.68        .10985E-04** at limit **
  23  Normalizat    1.4126        .18116        .96221E-06   -.15132E-04
  24  Prefactor     .46133        .18274        .10613E-05    .76661E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 4.98719
  Prefactor  = 6.68168
  norm       = 3.69935
  Prefactor  = 6.78272
  norm       = 0.850303
  Prefactor  = 0.0001
  Prefactor  = 4.177
  norm       = 1.90096
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 13.0573
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 48.4897
  Prefactor  = 38.4427
  norm       = 0.0001
  Prefactor  = 39.6535
  Prefactor  = 5.67715
  norm       = 1.45161
  Prefactor  = 0.0001
  Normalizat = 1.4126
  Prefactor  = 0.461329
 **********
 **   18 **HESSE 
 **********

 FCN=   6321.617     FROM HESSE     STATUS=OK           407 CALLS     2729 TOTAL
                     EDM=   .34E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    16.148        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     4.9872        15.739        .18005E-03   -1.5261    
   3  Prefactor     6.6817        53.923        .15525E-03   -1.5191    
   4  norm          3.6993        2.0478        .79588E-04   -1.5323    
   5  Prefactor     6.7827        4.6075        .13281E-03   -1.5187    
   6  norm          .85030        36.850        .47260E-02   -1.5524    
   7  Prefactor     .10000E-03    5.8154        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     4.1770        19.186        .19732E-03   -1.5299    
   9  norm          1.9010        3.7589        .20753E-03   -1.5432    
  10  Prefactor     .10000E-03    37.101        .41973E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    11.232        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     13.057        4.4928        .94072E-04   -1.4985    
  13  norm          .10000E-03    5.9741        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    17.771        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    3.2719        .13976E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     48.490        37.877        .28797E-03   -1.4314    
  17  Prefactor     38.443        25.651        .64638E-04   -1.4467    
  18  norm          .10000E-03    3.8206        .15162E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     39.653        17.463        .63653E-04   -1.4448    
  20  Prefactor     5.6772        7.3328        .16859E-03   -1.5231    
  21  norm          1.4516        1.4350        .87164E-04   -1.5467    
  22  Prefactor     .10000E-03    270.39        .20898E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    1.4126        .20505        .20312E-03   -.80265    
  24  Prefactor     .46133        .20608        .36876E-03   -1.1379    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.41458e-08
Minuit parameter uncertainties:
  1  1.28656e-05
  2  15.7521
  3  38.0096
  4  2.04788
  5  4.60775
  6  11.2021
  7  6.15627e-06
  8  17.9135
  9  3.75936
  10  2.49535e-05
  11  1.70181e-05
  12  4.49293
  13  1.23125e-05
  14  4.83164e-05
  15  8.94863e-06
  16  37.8957
  17  25.6581
  18  3.43704e-06
  19  17.4649
  20  7.33399
  21  1.43506
  22  0.000253898
  23  0.205172
  24  0.206417
Done.

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

Extracting fit parameters...

4FGL J1418.4+3543
   Spectrum: LogParabola
283         norm:  1.901e+00  3.759e+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:  4.613e-01  2.064e-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.413e+00  2.052e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/323524/likelihoodResults_633312001_633571201_4FGL_J1418.4+3543_daily_bin1520.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) = 6321.24653033
delta logL = 0.370886579638

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6321.24177995
delta logL = 0.375636953992

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.8219       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.8751       1.0000          .0000       5.0000    
     3 'Normalizat'    1.3854       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .47666       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=   6321.242     FROM MIGRAD    STATUS=CONVERGED     86 CALLS      253 TOTAL
                     EDM=   .11E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.8217        3.3063        .11258E-03    .81696E-04
   2  alpha         2.8752        1.1048        .15977E-01    .14195E-04
   3  Normalizat    1.3854        .19055        .20466E-03   -.31381E-03
   4  Prefactor     .47665        .20513        .36294E-03   -.16786E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 1.82167
  alpha      = 2.87522
  Normalizat = 1.38541
  Prefactor  = 0.476651
 **********
 **   18 **HESSE 
 **********

 FCN=   6321.242     FROM HESSE     STATUS=OK            25 CALLS      278 TOTAL
                     EDM=   .85E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.8217        2.9142        .45031E-05   -1.5438    
   2  alpha         2.8752        .98069        .63909E-03    .15066    
   3  Normalizat    1.3854        .19054        .40932E-04   -.81052    
   4  Prefactor     .47665        .20498        .14518E-04   -1.1306    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.50556e-11
Minuit parameter uncertainties:
  1  2.91443
  2  1.00843
  3  0.190635
  4  0.205294
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/323524': 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) = 6321.24177983
delta logL = 0.375637079787

Extracting fit parameters...

4FGL J1418.4+3543
   Spectrum: LogParabola
283         norm:  1.822e+00  2.914e+00  1.000e-04  1.000e+04 ( 1.000e-12)
284        alpha:  2.875e+00  1.008e+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:  4.767e-01  2.053e-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.385e+00  1.906e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.08
Ra Dec: 214.623 35.719
Photon Index (Free Index): 2.88 +/- 1.01
Photon Flux (Free Index): 3.55e-08 +/- 4.18e-08
Energy Flux (Free Index): 7.93e-06 +/- 8.90e-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/323524/cmap_HighResolution_633312001_633571201_4FGL_J1418.4+3543_daily_bin1520.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.83e-05', comment='SUCCESS', energy_flux2='7.93e-06', dlogl='3.76e-01', photon_flux2='3.55e-08', job_status='DONE', time_completed='2021-09-09 08:38:56.698804', photon_index_error2='1.01', photon_index2='2.88', ts='0.32', fit_tolerance='1e-08', GAL='0.46', photon_index_error='0.00', photon_flux_upper_limit='6.73e-08', energy_flux_error2='8.90e-06', EG='1.41', time_epoch_completed='1631201936.7', return_code='0', job_id='323524', GAL2='0.48', EG2='1.39', return_code2='0', photon_flux_error2='4.18e-08', ts2='1.08', photon_index='2.02' WHERE bin_id='1520' AND source_name='4FGL J1418.4+3543' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  9 08:38:56 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0138>
Subject: Job 323524: <4FGL_J1418.4+3543_daily_bin1520> in cluster <slac> Done

Job <4FGL_J1418.4+3543_daily_bin1520> was submitted from host <rhel6-64c> by user <kocevski> in cluster <slac> at Thu Sep  9 08:25:24 2021
Job was executed on host(s) <bullet0138>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  9 08:25:26 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:25:26 2021
Terminated at Thu Sep  9 08:38:57 2021
Results reported at Thu Sep  9 08:38:57 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1418.4+3543_daily_bin1520 214.623 35.7192 633312001 633571201 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 :                                   677.27 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             301.79 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   810 sec.
    Turnaround time :                            813 sec.

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

