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


Performing analysis on: 4FGL_J1415.5+4830_daily_bin1156
RA = 213.899, Dec = 48.5142
tmin = 538963201, tmax = 539222401
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='272388', job_status='RUN', time_executed='2021-09-09 05:48:00.959817', time_epoch_executed='1631191680.96' WHERE source_name='4FGL J1415.5+4830' and cadence='daily' and bin_id='1156'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/272388

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/272388/ft1_4FGL_J1415.5+4830_daily_bin1156.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/272388/ft2_4FGL_J1415.5+4830_daily_bin1156.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/272388/ft1_4FGL_J1415.5+4830_daily_bin1156.fits outfile=/scratch/kocevski/272388/ft1_filteredMKT_4FGL_J1415.5+4830_daily_bin1156.fits ra=213.899 dec=48.5142 rad=12.0 tmin=538963201.0 tmax=539222401.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 4.67
user 4.34
sys 0.23

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/272388/ft2_4FGL_J1415.5+4830_daily_bin1156.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/272388/ft2_4FGL_J1415.5+4830_daily_bin1156.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/272388/ft1_filteredMKT_4FGL_J1415.5+4830_daily_bin1156.fits evtable="EVENTS" outfile="/scratch/kocevski/272388/ft1_filtered_4FGL_J1415.5+4830_daily_bin1156.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.64
user 0.34
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/272388/ft1_filtered_4FGL_J1415.5+4830_daily_bin1156.fits" evtable="EVENTS" scfile=/scratch/kocevski/272388/ft2_4FGL_J1415.5+4830_daily_bin1156.fits sctable="SC_DATA" outfile=/scratch/kocevski/272388/ltcube_538963201_539222401_4FGL_J1415.5+4830_daily_bin1156.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/272388/ft2_4FGL_J1415.5+4830_daily_bin1156.fits
.....................!
real 12.20
user 11.48
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/272388/ft1_filtered_4FGL_J1415.5+4830_daily_bin1156.fits evtable="EVENTS" scfile=/scratch/kocevski/272388/ft2_4FGL_J1415.5+4830_daily_bin1156.fits sctable="SC_DATA" expcube=/scratch/kocevski/272388/ltcube_538963201_539222401_4FGL_J1415.5+4830_daily_bin1156.fits outfile=/scratch/kocevski/272388/expmap_538963201_539222401_4FGL_J1415.5+4830_daily_bin1156.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/272388/ltcube_538963201_539222401_4FGL_J1415.5+4830_daily_bin1156.fits
.....................!
real 193.48
user 186.36
sys 5.29

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 205 point sources and 0 extended sources

Setting source of interest to:
4FGL J1415.5+4830 @ 213.899 48.5142

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/272388/ft1_filtered_4FGL_J1415.5+4830_daily_bin1156.fits scfile=/scratch/kocevski/272388/ft2_4FGL_J1415.5+4830_daily_bin1156.fits outfile=/scratch/kocevski/272388/cmap_538963201_539222401_4FGL_J1415.5+4830_daily_bin1156.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=213.899 yref=48.5142 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 1.59
user 0.38
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/272388/ft1_filtered_4FGL_J1415.5+4830_daily_bin1156.fits scfile=/scratch/kocevski/272388/ft2_4FGL_J1415.5+4830_daily_bin1156.fits outfile=/scratch/kocevski/272388/cmap_HighResolution_538963201_539222401_4FGL_J1415.5+4830_daily_bin1156.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=213.899 yref=48.5142 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 1.15
user 0.39
sys 0.18

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/272388/ft1_filtered_4FGL_J1415.5+4830_daily_bin1156.fits evtable="EVENTS" scfile=/scratch/kocevski/272388/ft2_4FGL_J1415.5+4830_daily_bin1156.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/272388/Model_4FGL_J1415.5+4830_daily_bin1156.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/272388/ft1_filtered_4FGL_J1415.5+4830_daily_bin1156.fits.....................!
real 42.48
user 36.02
sys 1.20

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/272388/ft1_filtered_4FGL_J1415.5+4830_daily_bin1156.fits', '/scratch/kocevski/272388/ft2_4FGL_J1415.5+4830_daily_bin1156.fits', expMap='/scratch/kocevski/272388/expmap_538963201_539222401_4FGL_J1415.5+4830_daily_bin1156.fits', expCube='/scratch/kocevski/272388/ltcube_538963201_539222401_4FGL_J1415.5+4830_daily_bin1156.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/272388/Model_4FGL_J1415.5+4830_daily_bin1156.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1415.5+4830'

4FGL J1415.5+4830
   Spectrum: PowerLaw
322    Prefactor:  1.339e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
323        Index:  1.944e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
324        Scale:  2.185e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/272388/ft1_filtered_4FGL_J1415.5+4830_daily_bin1156.fits
Spacecraft file(s): /scratch/kocevski/272388/ft2_4FGL_J1415.5+4830_daily_bin1156.fits
Exposure map: /scratch/kocevski/272388/expmap_538963201_539222401_4FGL_J1415.5+4830_daily_bin1156.fits
Exposure cube: /scratch/kocevski/272388/ltcube_538963201_539222401_4FGL_J1415.5+4830_daily_bin1156.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/272388/Model_4FGL_J1415.5+4830_daily_bin1156.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) = 3901.59218991

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.5006       1.0000         .10000E-03   10000.    
     2 'Prefactor '    47.042       1.0000         .10000E-03   10000.    
     3 'Prefactor '    3.2672       1.0000         .10000E-03   10000.    
     4 'Prefactor '    17.966       1.0000         .10000E-03   10000.    
     5 'norm      '    10.147       1.0000         .10000E-03   10000.    
     6 'Prefactor '    94.270       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    7.1623       1.0000         .10000E-03   10000.    
    10 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    2.2263       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10038E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    76.297       1.0000         .10000E-03   10000.    
    16 'Prefactor '    6.3987       1.0000         .10000E-03   10000.    
    17 'Prefactor '    53.032       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10168E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    17.650       1.0000         .10000E-03   10000.    
    21 'norm      '    25.182       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    19.863       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10132E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    21.543       1.0000         .10000E-03   10000.    
    27 'Prefactor '    32.909       1.0000         .10000E-03   10000.    
    28 'Prefactor '    9.3066       1.0000         .10000E-03   10000.    
    29 'Prefactor '    7.8836       1.0000         .10000E-03   10000.    
    30 'norm      '    4.7859       1.0000         .10000E-03   10000.    
    31 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    32 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    33 'Prefactor '    32.580       1.0000         .10000E-03   10000.    
    34 'norm      '    .28821       1.0000         .10000E-03   10000.    
    35 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    36 'Normalizat'    .89199       1.0000         .10000E-01   10.000    
    37 'Prefactor '    .90947       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6530E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   3901.474     FROM MIGRAD    STATUS=CONVERGED   1049 CALLS     5603 TOTAL
                     EDM=   .45E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.5004        5.0833        .97596E-07    .26761E-04
   2  Prefactor     47.027        61.802        .27039E-05    .27365E-04
   3  Prefactor     3.2946        126.50       -.79450E-05   -.86207E-05
   4  Prefactor     18.037        73.374       -.94598E-05    .29438E-04
   5  norm          10.145        10.750        .12577E-05    .11962E-03
   6  Prefactor     94.256        87.971        .20520E-05    .10078E-04
   7  Prefactor     .10000E-03    70.374       -.12910E-05** at limit **
   8  Prefactor     .10000E-03    18.574       -.11466E-07** at limit **
   9  norm          7.1622        2.9249        .17118E-06    .48293E-04
  10  norm          .10000E-03    36.909        .89535E-06** at limit **
  11  norm          .10000E-03    1.4064       -.35743E-07** at limit **
  12  norm          2.2243        16.201        .43778E-05    .18753E-04
  13  Prefactor     .10000E-03    80.143        .21741E-06** at limit **
  14  Prefactor     .10000E-03    17.053        .40638E-06** at limit **
  15  Prefactor     76.294        76.641        .85929E-06    .50186E-05
  16  Prefactor     6.3982        6.4780       -.34156E-08    .97406E-05
  17  Prefactor     53.048        35.416       -.30759E-06    .29947E-04
  18  Prefactor     .10000E-03    23.947       -.40951E-06** at limit **
  19  Prefactor     .10000E-03    1.1637        .78026E-08** at limit **
  20  Prefactor     17.655        26.174        .10172E-06    .18779E-04
  21  norm          25.176        24.228        .12201E-06    .62709E-05
  22  Prefactor     .10000E-03    16.128        .85014E-07** at limit **
  23  Prefactor     19.870        28.275       -.17355E-06    .76193E-05
  24  Prefactor     .10000E-03    45.694       -.14211E-06** at limit **
  25  Prefactor     .10000E-03    15.349       -.33610E-06** at limit **
  26  Prefactor     21.538        36.537        .25615E-06   -.38350E-05
  27  Prefactor     32.906        49.795        .26444E-06   -.67948E-06
  28  Prefactor     9.3029        16.460        .19111E-06    .77750E-05
  29  Prefactor     7.8834        20.681        .58287E-08    .59616E-05
  30  norm          4.7855        2.5312       -.16370E-07    .21322E-04
  31  Prefactor     .10000E-03    6.8290       -.29067E-07** at limit **
  32  Prefactor     .10000E-03    2.7404       -.30898E-07** at limit **
  33  Prefactor     32.583        14.404        .59373E-07    .40862E-05
  34  norm          .28117        2.7468       -.28823E-06    .15229E-03
  35  Prefactor     .10000E-03    5.2513       -.63925E-07** at limit **
  36  Normalizat    .89139        .25240       -.21170E-05    .69477E-04
  37  Prefactor     .91016        .26358        .23533E-05    .35243E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 3.50042
  Prefactor  = 47.0273
  Prefactor  = 3.29465
  Prefactor  = 18.037
  norm       = 10.1446
  Prefactor  = 94.2564
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 7.16223
  norm       = 0.0001
  norm       = 0.0001
  norm       = 2.22428
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 76.2945
  Prefactor  = 6.39823
  Prefactor  = 53.0483
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 17.6547
  norm       = 25.1764
  Prefactor  = 0.0001
  Prefactor  = 19.8702
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 21.5377
  Prefactor  = 32.9063
  Prefactor  = 9.3029
  Prefactor  = 7.88338
  norm       = 4.78553
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 32.5829
  norm       = 0.28117
  Prefactor  = 0.0001
  Normalizat = 0.891389
  Prefactor  = 0.910162
 **********
 **   18 **HESSE 
 **********

 FCN=   3901.474     FROM HESSE     STATUS=OK           857 CALLS     6460 TOTAL
                     EDM=   .26E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.5004        5.0716        .16295E-03   -1.5334    
   2  Prefactor     47.027        61.589        .58461E-04   -1.4335    
   3  Prefactor     3.2946        117.26        .22404E-03   -1.5345    
   4  Prefactor     18.037        72.917        .94493E-04   -1.4858    
   5  norm          10.145        10.415        .12579E-03   -1.5071    
   6  Prefactor     94.256        87.692        .41394E-04   -1.3763    
   7  Prefactor     .10000E-03    70.397        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    18.579        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          7.1622        2.9240        .63147E-04   -1.5173    
  10  norm          .10000E-03    36.893        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    1.4089        .72332E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          2.2243        16.684        .13778E-02   -1.5410    
  13  Prefactor     .10000E-03    80.426        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    17.093        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     76.294        76.855        .45971E-04   -1.3959    
  16  Prefactor     6.3982        6.4677        .14973E-03   -1.5202    
  17  Prefactor     53.048        35.620        .55076E-04   -1.4250    
  18  Prefactor     .10000E-03    23.948        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    1.1671        .65672E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     17.655        26.343        .95335E-04   -1.4867    
  21  norm          25.176        24.235        .79827E-04   -1.4704    
  22  Prefactor     .10000E-03    16.154        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     19.870        28.292        .89868E-04   -1.4816    
  24  Prefactor     .10000E-03    45.717        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    15.371        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     21.538        36.557        .86296E-04   -1.4779    
  27  Prefactor     32.906        49.807        .69851E-04   -1.4560    
  28  Prefactor     9.3029        16.484        .65685E-03   -1.5098    
  29  Prefactor     7.8834        20.623        .14281E-03   -1.5146    
  30  norm          4.7855        2.5292        .65684E-04   -1.5270    
  31  Prefactor     .10000E-03    6.9051        .15936E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Prefactor     .10000E-03    2.7452        .10096E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  33  Prefactor     32.583        14.437        .70201E-04   -1.4566    
  34  norm          .28117        10.514        .19752E-02   -1.5602    
  35  Prefactor     .10000E-03    5.2698        .13969E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  36  Normalizat    .89139        .29439        .25219E-03   -.96763    
  37  Prefactor     .91016        .30919        .29231E-03   -.95787    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.58918e-10
Minuit parameter uncertainties:
  1  5.07225
  2  61.6724
  3  39.3945
  4  72.6855
  5  10.4167
  6  87.8125
  7  9.32584e-05
  8  8.81792e-06
  9  2.92408
  10  4.96035e-05
  11  8.41001e-07
  12  12.188
  13  6.08765e-05
  14  1.42034e-05
  15  76.9558
  16  6.46837
  17  35.6341
  18  2.75662e-05
  19  4.28169e-07
  20  26.3601
  21  24.2442
  22  1.12572e-05
  23  28.3107
  24  4.33924e-06
  25  1.14771e-05
  26  36.5945
  27  49.8696
  28  16.4925
  29  20.6419
  30  2.52927
  31  2.52838e-06
  32  6.97583e-07
  33  14.4382
  34  3.43876
  35  1.32754e-06
  36  0.294922
  37  0.309788
Done.

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

Extracting fit parameters...

4FGL J1415.5+4830
   Spectrum: PowerLaw
322    Prefactor:  6.398e+00  6.468e+00  1.000e-04  1.000e+04 ( 1.000e-13)
323        Index:  1.944e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
324        Scale:  2.185e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
650    Prefactor:  9.102e-01  3.098e-01  0.000e+00  1.000e+01 ( 1.000e+00)
651        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
652        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
649   Normalization:  8.914e-01  2.949e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.50
Ra Dec: 213.899 48.514
Photon Index (Fixed Index): 1.94 +/- 0.00
Photon Flux (Fixed Index): 2.72e-08 +/- 2.75e-08
Energy Flux (Fixed Index): 2.17e-05 +/- 2.19e-05

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) = 3901.40681283
delta logL = 0.0673142720502

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3901.40386128
delta logL = 0.0702658275059

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.8438       1.0000         .10000E-03   10000.    
     2 'Index     '    2.3994       1.0000          .0000       10.000    
     3 'Normalizat'    .86336       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .92572       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6530E+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=   3901.404     FROM MIGRAD    STATUS=CONVERGED     89 CALLS      289 TOTAL
                     EDM=   .71E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.8430        8.3330        .11035E-03   -.83582E-03
   2  Index         2.3997        1.3227        .62261E-02   -.14140E-03
   3  Normalizat    .86325        .26855        .25546E-03   -.19058E-03
   4  Prefactor     .92554        .29653        .28984E-03   -.28170E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.84301
  Index      = 2.39972
  Normalizat = 0.863253
  Prefactor  = 0.925536
 **********
 **   18 **HESSE 
 **********

 FCN=   3901.404     FROM HESSE     STATUS=OK            25 CALLS      314 TOTAL
                     EDM=   .81E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.8430        6.8246        .44141E-05   -1.5268    
   2  Index         2.3997        1.0851        .24904E-03   -.54692    
   3  Normalizat    .86325        .26192        .10218E-04   -.97764    
   4  Prefactor     .92554        .29419        .57968E-04   -.95254    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.09378e-10
Minuit parameter uncertainties:
  1  6.82572
  2  1.09712
  3  0.262306
  4  0.294694
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/272388': 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) = 3901.40385921
delta logL = 0.070267894886

Extracting fit parameters...

4FGL J1415.5+4830
   Spectrum: PowerLaw
322    Prefactor:  4.843e+00  6.826e+00  1.000e-04  1.000e+04 ( 1.000e-13)
323        Index:  2.400e+00  1.097e+00  0.000e+00  1.000e+01 (-1.000e+00)
324        Scale:  2.185e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
650    Prefactor:  9.255e-01  2.947e-01  0.000e+00  1.000e+01 ( 1.000e+00)
651        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
652        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
649   Normalization:  8.633e-01  2.623e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.64
Ra Dec: 213.899 48.514
Photon Index (Free Index): 2.40 +/- 1.10
Photon Flux (Free Index): 5.67e-08 +/- 9.58e-08
Energy Flux (Free Index): 1.86e-05 +/- 1.56e-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/272388/cmap_HighResolution_538963201_539222401_4FGL_J1415.5+4830_daily_bin1156.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.72e-08', energy_flux2='1.86e-05', photon_flux_error='2.75e-08', dlogl='7.03e-02', energy_flux='2.17e-05', photon_flux2='5.67e-08', job_status='DONE', time_completed='2021-09-09 06:01:02.586181', photon_index_error2='1.10', photon_index2='2.40', ts='4.50', fit_tolerance='1e-08', GAL='0.91', photon_index_error='0.00', energy_flux_error2='1.56e-05', EG='0.89', time_epoch_completed='1631192462.59', return_code='0', job_id='272388', GAL2='0.93', EG2='0.86', return_code2='0', energy_flux_error='2.19e-05', photon_flux_error2='9.58e-08', ts2='4.64', photon_index='1.94' WHERE bin_id='1156' AND source_name='4FGL J1415.5+4830' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  9 06:01:02 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0102>
Subject: Job 272388: <4FGL_J1415.5+4830_daily_bin1156> in cluster <slac> Done

Job <4FGL_J1415.5+4830_daily_bin1156> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Thu Sep  9 05:47:38 2021
Job was executed on host(s) <bullet0102>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  9 05:47:39 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Sep  9 05:47:39 2021
Terminated at Thu Sep  9 06:01:03 2021
Results reported at Thu Sep  9 06:01:03 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1415.5+4830_daily_bin1156 213.899 48.5142 538963201 539222401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1415.5+4830 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   766.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             325.75 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   803 sec.
    Turnaround time :                            805 sec.

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

