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


Performing analysis on: 4FGL_J1415.5+4830_monthly_bin127
RA = 213.899, Dec = 48.5142
tmin = 566179201, tmax = 568771201
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='607301', job_status='RUN', time_executed='2021-10-25 17:15:38.379033', time_epoch_executed='1635207338.38' WHERE source_name='4FGL J1415.5+4830' and cadence='monthly' and bin_id='127'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/607301

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

Retrieving the FT1 file...

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

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

Retrieving 455 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/607301/ft1_4FGL_J1415.5+4830_monthly_bin127.fits


Retrieving the FT1 file...

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

Retrieving 455 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/607301/ft2_4FGL_J1415.5+4830_monthly_bin127.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/607301/ft1_4FGL_J1415.5+4830_monthly_bin127.fits outfile=/scratch/kocevski/607301/ft1_filteredMKT_4FGL_J1415.5+4830_monthly_bin127.fits ra=213.899 dec=48.5142 rad=12.0 tmin=566179201.0 tmax=568771201.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 22.61
user 22.00
sys 0.56

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/607301/ft2_4FGL_J1415.5+4830_monthly_bin127.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/607301/ft1_filteredMKT_4FGL_J1415.5+4830_monthly_bin127.fits evtable="EVENTS" outfile="/scratch/kocevski/607301/ft1_filtered_4FGL_J1415.5+4830_monthly_bin127.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.83
user 0.65
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/607301/ft1_filtered_4FGL_J1415.5+4830_monthly_bin127.fits" evtable="EVENTS" scfile=/scratch/kocevski/607301/ft2_4FGL_J1415.5+4830_monthly_bin127.fits sctable="SC_DATA" outfile=/scratch/kocevski/607301/ltcube_566179201_568771201_4FGL_J1415.5+4830_monthly_bin127.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/607301/ft2_4FGL_J1415.5+4830_monthly_bin127.fits
.....................!
real 116.36
user 115.81
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/607301/ft1_filtered_4FGL_J1415.5+4830_monthly_bin127.fits evtable="EVENTS" scfile=/scratch/kocevski/607301/ft2_4FGL_J1415.5+4830_monthly_bin127.fits sctable="SC_DATA" expcube=/scratch/kocevski/607301/ltcube_566179201_568771201_4FGL_J1415.5+4830_monthly_bin127.fits outfile=/scratch/kocevski/607301/expmap_566179201_568771201_4FGL_J1415.5+4830_monthly_bin127.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/607301/ltcube_566179201_568771201_4FGL_J1415.5+4830_monthly_bin127.fits
.....................!
real 191.86
user 186.00
sys 5.52

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/607301/ft1_filtered_4FGL_J1415.5+4830_monthly_bin127.fits scfile=/scratch/kocevski/607301/ft2_4FGL_J1415.5+4830_monthly_bin127.fits outfile=/scratch/kocevski/607301/cmap_566179201_568771201_4FGL_J1415.5+4830_monthly_bin127.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 0.79
user 0.62
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/607301/ft1_filtered_4FGL_J1415.5+4830_monthly_bin127.fits scfile=/scratch/kocevski/607301/ft2_4FGL_J1415.5+4830_monthly_bin127.fits outfile=/scratch/kocevski/607301/cmap_HighResolution_566179201_568771201_4FGL_J1415.5+4830_monthly_bin127.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 0.79
user 0.61
sys 0.17

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/607301/ft1_filtered_4FGL_J1415.5+4830_monthly_bin127.fits', '/scratch/kocevski/607301/ft2_4FGL_J1415.5+4830_monthly_bin127.fits', expMap='/scratch/kocevski/607301/expmap_566179201_568771201_4FGL_J1415.5+4830_monthly_bin127.fits', expCube='/scratch/kocevski/607301/ltcube_566179201_568771201_4FGL_J1415.5+4830_monthly_bin127.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/607301/Model_4FGL_J1415.5+4830_monthly_bin127.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/607301/ft1_filtered_4FGL_J1415.5+4830_monthly_bin127.fits
Spacecraft file(s): /scratch/kocevski/607301/ft2_4FGL_J1415.5+4830_monthly_bin127.fits
Exposure map: /scratch/kocevski/607301/expmap_566179201_568771201_4FGL_J1415.5+4830_monthly_bin127.fits
Exposure cube: /scratch/kocevski/607301/ltcube_566179201_568771201_4FGL_J1415.5+4830_monthly_bin127.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/607301/Model_4FGL_J1415.5+4830_monthly_bin127.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) = 106328.132381

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.1170       1.0000         .10000E-03   10000.    
     2 'Prefactor '    19.916       1.0000         .10000E-03   10000.    
     3 'Prefactor '    3.7708       1.0000         .10000E-03   10000.    
     4 'Prefactor '    10.826       1.0000         .10000E-03   10000.    
     5 'norm      '    .10018E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    1.8001       1.0000         .10000E-03   10000.    
     7 'Prefactor '    26.197       1.0000         .10000E-03   10000.    
     8 'Prefactor '    1.7986       1.0000         .10000E-03   10000.    
     9 'norm      '    15.762       1.0000         .10000E-03   10000.    
    10 'norm      '    .81871E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10100E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    1.9469       1.0000         .10000E-03   10000.    
    13 'Prefactor '    8.8413       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    1.7523       1.0000         .10000E-03   10000.    
    17 'Prefactor '    1.8328       1.0000         .10000E-03   10000.    
    18 'Prefactor '    2.7630       1.0000         .10000E-03   10000.    
    19 'Prefactor '    1.4963       1.0000         .10000E-03   10000.    
    20 'Prefactor '    9.0629       1.0000         .10000E-03   10000.    
    21 'norm      '    2.6234       1.0000         .10000E-03   10000.    
    22 'Prefactor '    1.6618       1.0000         .10000E-03   10000.    
    23 'Prefactor '    6.3850       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    2.9510       1.0000         .10000E-03   10000.    
    26 'Prefactor '    13.811       1.0000         .10000E-03   10000.    
    27 'Prefactor '    12.193       1.0000         .10000E-03   10000.    
    28 'Prefactor '    3.5681       1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    30 'norm      '    1.2869       1.0000         .10000E-03   10000.    
    31 'Prefactor '    .12473       1.0000         .10000E-03   10000.    
    32 'Prefactor '    2.4409       1.0000         .10000E-03   10000.    
    33 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    34 'norm      '    .52144       1.0000         .10000E-03   10000.    
    35 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    36 'Normalizat'    1.0018       1.0000         .10000E-01   10.000    
    37 'Prefactor '    1.0295       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   106328.1     FROM MIGRAD    STATUS=CONVERGED   1064 CALLS     4867 TOTAL
                     EDM=   .25E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.1171        .72588         .0000        .12450E-01
   2  Prefactor     19.913        8.6537         .0000       -.10542E-01
   3  Prefactor     3.7707        2.6960         .0000        .16472E-02
   4  Prefactor     10.827        7.3655         .0000        .40829E-02
   5  norm          .10000E-03    .17106         .0000    ** at limit **
   6  Prefactor     1.7987        6.6475         .0000       -.14950E-02
   7  Prefactor     26.197        14.595         .0000       -.26494E-03
   8  Prefactor     1.7978        6.4105         .0000        .17228E-01
   9  norm          15.762        .65716         .0000       -.18196E-03
  10  norm          .10020E-03    2.5923         .0000    ** at limit **
  11  norm          .10000E-03    .11393         .0000    ** at limit **
  12  norm          1.9472        2.1428         .0000        .31415E-02
  13  Prefactor     8.8414        8.0662         .0000        .10631E-02
  14  Prefactor     .10000E-03    .52440         .0000    ** at limit **
  15  Prefactor     .10000E-03    3.0954         .0000    ** at limit **
  16  Prefactor     1.7523        .77383         .0000        .21224E-02
  17  Prefactor     1.8329        4.0449         .0000        .48904E-01
  18  Prefactor     2.7630        2.9211         .0000        .64629E-01
  19  Prefactor     1.4963        .60054         .0000        .79971E-02
  20  Prefactor     9.0632        4.1872         .0000       -.21839E-02
  21  norm          2.6234        2.2533         .0000        .55059E-01
  22  Prefactor     1.6625        5.4276         .0000        .19375E-02
  23  Prefactor     6.3846        6.1011         .0000       -.88663E-03
  24  Prefactor     .10000E-03    2.8748         .0000    ** at limit **
  25  Prefactor     2.9510        3.2482         .0000        .24303E-01
  26  Prefactor     13.810        6.3253         .0000       -.42562E-02
  27  Prefactor     12.193        6.1895         .0000       -.26453E-02
  28  Prefactor     3.5681        2.3422         .0000        .48876E-02
  29  Prefactor     .10000E-03    1.9227         .0000    ** at limit **
  30  norm          1.2869        .30505         .0000        .41620E-02
  31  Prefactor     .12317        .44288         .0000        .41900E-02
  32  Prefactor     2.4409        1.0554         .0000        .18985E-02
  33  Prefactor     .10000E-03    .31712         .0000    ** at limit **
  34  norm          .52149        .45134         .0000        .15816E-01
  35  Prefactor     .10000E-03    .54183         .0000    ** at limit **
  36  Normalizat    1.0018        .43257E-01     .0000       -.28314E-03
  37  Prefactor     1.0295        .48074E-01     .0000        .58392E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.11714
  Prefactor  = 19.9132
  Prefactor  = 3.77066
  Prefactor  = 10.8268
  norm       = 0.0001
  Prefactor  = 1.79874
  Prefactor  = 26.1965
  Prefactor  = 1.79784
  norm       = 15.7623
  norm       = 0.000100196
  norm       = 0.0001
  norm       = 1.9472
  Prefactor  = 8.84145
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 1.75233
  Prefactor  = 1.83286
  Prefactor  = 2.76297
  Prefactor  = 1.49629
  Prefactor  = 9.06318
  norm       = 2.62344
  Prefactor  = 1.66252
  Prefactor  = 6.38459
  Prefactor  = 0.0001
  Prefactor  = 2.95103
  Prefactor  = 13.81
  Prefactor  = 12.1931
  Prefactor  = 3.56806
  Prefactor  = 0.0001
  norm       = 1.28694
  Prefactor  = 0.123173
  Prefactor  = 2.44091
  Prefactor  = 0.0001
  norm       = 0.521491
  Prefactor  = 0.0001
  Normalizat = 1.00183
  Prefactor  = 1.02952
 **********
 **   18 **HESSE 
 **********

 FCN=   106328.1     FROM HESSE     STATUS=OK           889 CALLS     5756 TOTAL
                     EDM=   .75E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.1171        .70823        .21292E-03   -1.5497    
   2  Prefactor     19.913        8.5867        .89749E-04   -1.4815    
   3  Prefactor     3.7707        2.6178        .20790E-03   -1.5320    
   4  Prefactor     10.827        7.3366        .60884E-03   -1.5050    
   5  norm          .10000E-03    .45373        .25242E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     1.7987        6.6096        .31158E-03   -1.5440    
   7  Prefactor     26.197        14.595        .78268E-04   -1.4684    
   8  Prefactor     1.7978        6.3989        .15587E-02   -1.5440    
   9  norm          15.762        .65765        .51144E-04   -1.4914    
  10  norm          .10020E-03    2.5874        .20873       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    .64704        .20951E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          1.9472        2.1325        .29746E-03   -1.5429    
  13  Prefactor     8.8414        8.0398        .13480E-03   -1.5113    
  14  Prefactor     .10000E-03    .52641        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    3.1218        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     1.7523        .77046        .18343E-03   -1.5443    
  17  Prefactor     1.8329        4.0476        .15412E-02   -1.5437    
  18  Prefactor     2.7630        2.8473        .12243E-02   -1.5376    
  19  Prefactor     1.4963        .58077        .13539E-03   -1.5463    
  20  Prefactor     9.0632        4.1009        .13313E-03   -1.5106    
  21  norm          2.6234        2.2402        .12590E-02   -1.5384    
  22  Prefactor     1.6625        5.3064        .32724E-03   -1.5450    
  23  Prefactor     6.3846        5.9702        .15884E-03   -1.5203    
  24  Prefactor     .10000E-03    2.8842        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     2.9510        3.2406        .11821E-02   -1.5364    
  26  Prefactor     13.810        6.2447        .10778E-03   -1.4965    
  27  Prefactor     12.193        6.1880        .11472E-03   -1.5009    
  28  Prefactor     3.5681        2.3365        .21395E-03   -1.5330    
  29  Prefactor     .10000E-03    1.9866        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  norm          1.2869        .30253        .84267E-04   -1.5481    
  31  Prefactor     .12317        .46230        .63587E-01   -1.5638    
  32  Prefactor     2.4409        1.0539        .13094E-03   -1.5395    
  33  Prefactor     .10000E-03    1.2235        .33764E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  34  norm          .52149        .44481        .19589E-03   -1.5564    
  35  Prefactor     .10000E-03    .55614        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  36  Normalizat    1.0018        .51888E-01    .23449E-03   -.92969    
  37  Prefactor     1.0295        .58082E-01    .27799E-03   -.91752    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.54885e-08
Minuit parameter uncertainties:
  1  0.708233
  2  8.58718
  3  2.61784
  4  7.33723
  5  9.94102e-07
  6  6.61226
  7  14.5974
  8  6.40129
  9  0.657649
  10  0.00142469
  11  2.4875e-06
  12  2.13257
  13  8.04082
  14  1.16625e-06
  15  9.87375e-05
  16  0.770461
  17  4.0482
  18  2.84748
  19  0.580771
  20  4.10103
  21  2.24023
  22  5.30785
  23  5.97074
  24  6.09338e-05
  25  3.24075
  26  6.24499
  27  6.18831
  28  2.33656
  29  1.15912e-05
  30  0.302533
  31  0.462316
  32  1.05394
  33  5.15095e-06
  34  0.444812
  35  1.91817e-06
  36  0.0518907
  37  0.058086
Done.

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

Extracting fit parameters...

4FGL J1415.5+4830
   Spectrum: PowerLaw
322    Prefactor:  1.752e+00  7.705e-01  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:  1.030e+00  5.809e-02  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:  1.002e+00  5.189e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 13.24
Ra Dec: 213.899 48.514
Photon Index (Fixed Index): 1.94 +/- 0.00
Photon Flux (Fixed Index): 7.45e-09 +/- 3.27e-09
Energy Flux (Fixed Index): 5.93e-06 +/- 2.61e-06

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) = 106328.046464
delta logL = 0.0309958153521

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 106328.032252
delta logL = 0.0452079171228

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.6719       1.0000         .10000E-03   10000.    
     2 'Index     '    2.0385       1.0000          .0000       10.000    
     3 'Normalizat'    1.0007       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0300       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.

 FCN=   106328.0     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      205 TOTAL
                     EDM=   .66E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.6718        5.5064        .81500E-02    .34631E-02
   2  Index         2.0385        .98161        .25572        .50018E-03
   3  Normalizat    1.0007        .92793E-02    .46175E-01    .16878E-03
   4  Prefactor     1.0299        .10233E-01    .62843E-01    .18976E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.67176
  Index      = 2.03852
  Normalizat = 1.00071
  Prefactor  = 1.02992
 **********
 **   18 **HESSE 
 **********

 FCN=   106328.0     FROM HESSE     STATUS=OK            33 CALLS      238 TOTAL
                     EDM=   .26E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.6718        .81675        .17463E-03   -1.5449    
   2  Index         2.0385        .32425        .10079E-01   -.63391    
   3  Normalizat    1.0007        .47619E-01    .23460E-03   -.93007    
   4  Prefactor     1.0299        .57192E-01    .27794E-03   -.91739    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.60524e-08
Minuit parameter uncertainties:
  1  0.816757
  2  0.324602
  3  0.0476208
  4  0.0571951
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/607301': 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) = 106328.032252
delta logL = 0.0452081054973

Extracting fit parameters...

4FGL J1415.5+4830
   Spectrum: PowerLaw
322    Prefactor:  1.672e+00  8.168e-01  1.000e-04  1.000e+04 ( 1.000e-13)
323        Index:  2.039e+00  3.246e-01  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:  1.030e+00  5.720e-02  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:  1.001e+00  4.762e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 13.32
Ra Dec: 213.899 48.514
Photon Index (Free Index): 2.04 +/- 0.32
Photon Flux (Free Index): 8.65e-09 +/- 5.37e-09
Energy Flux (Free Index): 5.45e-06 +/- 2.87e-06

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  2.220e+00 [aplpy.core]
Saving /scratch/kocevski/607301/cmap_HighResolution_566179201_568771201_4FGL_J1415.5+4830_monthly_bin127.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='7.45e-09', energy_flux2='5.45e-06', photon_flux_error='3.27e-09', dlogl='4.52e-02', energy_flux='5.93e-06', photon_flux2='8.65e-09', job_status='DONE', time_completed='2021-10-25 20:22:14.601591', photon_index_error2='0.32', photon_index2='2.04', ts='13.24', fit_tolerance='1e-08', GAL='1.03', photon_index_error='0.00', energy_flux_error2='2.87e-06', EG='1.00', time_epoch_completed='1635218534.6', return_code='0', job_id='607301', GAL2='1.03', EG2='1.00', return_code2='0', energy_flux_error='2.61e-06', photon_flux_error2='5.37e-09', ts2='13.32', photon_index='1.94' WHERE bin_id='127' AND source_name='4FGL J1415.5+4830' AND cadence='monthly';

Database successfully updated.


Analysis Complete.


Mon Oct 25 20:22:14 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0007>
Subject: Job 607301: <4FGL_J1415.5+4830_monthly_bin127> in cluster <slac> Done

Job <4FGL_J1415.5+4830_monthly_bin127> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Mon Oct 25 17:15:22 2021
Job was executed on host(s) <bullet0007>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Oct 25 17:15:28 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Oct 25 17:15:28 2021
Terminated at Mon Oct 25 20:22:15 2021
Results reported at Mon Oct 25 20:22:15 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1415.5+4830_monthly_bin127 213.899 48.5142 566179201 568771201 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 :                                   11128.40 sec.
    Max Memory :                                 1107 MB
    Average Memory :                             467.04 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   3417 MB
    Max Processes :                              6
    Max Threads :                                21
    Run time :                                   11207 sec.
    Turnaround time :                            11213 sec.

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

