/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/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 62 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 = 7444
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1135.1+3014_daily_bin376
RA = 173.788, Dec = 30.2344
tmin = 336787201, tmax = 337046401
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='927716', job_status='RUN', time_executed='2021-09-04 03:58:19.408666', time_epoch_executed='1630753099.41' WHERE source_name='4FGL J1135.1+3014' and cadence='daily' and bin_id='376'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/927716

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

Retrieving the FT1 file...

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

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

Retrieving 53 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/927716/ft1_4FGL_J1135.1+3014_daily_bin376.fits


Retrieving the FT1 file...

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

Retrieving 53 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/927716/ft2_4FGL_J1135.1+3014_daily_bin376.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/927716/ft1_4FGL_J1135.1+3014_daily_bin376.fits outfile=/scratch/kocevski/927716/ft1_filteredMKT_4FGL_J1135.1+3014_daily_bin376.fits ra=173.788 dec=30.2344 rad=12.0 tmin=336787201.0 tmax=337046401.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 6.75
user 6.47
sys 0.26

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/927716/ft2_4FGL_J1135.1+3014_daily_bin376.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/927716/ft2_4FGL_J1135.1+3014_daily_bin376.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/927716/ft1_filteredMKT_4FGL_J1135.1+3014_daily_bin376.fits evtable="EVENTS" outfile="/scratch/kocevski/927716/ft1_filtered_4FGL_J1135.1+3014_daily_bin376.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.49
user 0.33
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/927716/ft1_filtered_4FGL_J1135.1+3014_daily_bin376.fits" evtable="EVENTS" scfile=/scratch/kocevski/927716/ft2_4FGL_J1135.1+3014_daily_bin376.fits sctable="SC_DATA" outfile=/scratch/kocevski/927716/ltcube_336787201_337046401_4FGL_J1135.1+3014_daily_bin376.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/927716/ft2_4FGL_J1135.1+3014_daily_bin376.fits
.....................!
real 11.33
user 10.94
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/927716/ft1_filtered_4FGL_J1135.1+3014_daily_bin376.fits evtable="EVENTS" scfile=/scratch/kocevski/927716/ft2_4FGL_J1135.1+3014_daily_bin376.fits sctable="SC_DATA" expcube=/scratch/kocevski/927716/ltcube_336787201_337046401_4FGL_J1135.1+3014_daily_bin376.fits outfile=/scratch/kocevski/927716/expmap_336787201_337046401_4FGL_J1135.1+3014_daily_bin376.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/927716/ltcube_336787201_337046401_4FGL_J1135.1+3014_daily_bin376.fits
.....................!
real 190.78
user 185.49
sys 4.85

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

Setting source of interest to:
4FGL J1135.1+3014 @ 173.788 30.2344

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/927716/ft1_filtered_4FGL_J1135.1+3014_daily_bin376.fits scfile=/scratch/kocevski/927716/ft2_4FGL_J1135.1+3014_daily_bin376.fits outfile=/scratch/kocevski/927716/cmap_336787201_337046401_4FGL_J1135.1+3014_daily_bin376.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=173.788 yref=30.2344 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.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/927716/ft1_filtered_4FGL_J1135.1+3014_daily_bin376.fits scfile=/scratch/kocevski/927716/ft2_4FGL_J1135.1+3014_daily_bin376.fits outfile=/scratch/kocevski/927716/cmap_HighResolution_336787201_337046401_4FGL_J1135.1+3014_daily_bin376.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=173.788 yref=30.2344 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.59
user 0.38
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/927716/ft1_filtered_4FGL_J1135.1+3014_daily_bin376.fits evtable="EVENTS" scfile=/scratch/kocevski/927716/ft2_4FGL_J1135.1+3014_daily_bin376.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/927716/Model_4FGL_J1135.1+3014_daily_bin376.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/927716/ft1_filtered_4FGL_J1135.1+3014_daily_bin376.fits.....................!
real 49.02
user 46.98
sys 1.28

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/927716/ft1_filtered_4FGL_J1135.1+3014_daily_bin376.fits', '/scratch/kocevski/927716/ft2_4FGL_J1135.1+3014_daily_bin376.fits', expMap='/scratch/kocevski/927716/expmap_336787201_337046401_4FGL_J1135.1+3014_daily_bin376.fits', expCube='/scratch/kocevski/927716/ltcube_336787201_337046401_4FGL_J1135.1+3014_daily_bin376.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/927716/Model_4FGL_J1135.1+3014_daily_bin376.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1135.1+3014'

4FGL J1135.1+3014
   Spectrum: PowerLaw
296    Prefactor:  2.132e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
297        Index:  2.376e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
298        Scale:  1.179e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/927716/ft1_filtered_4FGL_J1135.1+3014_daily_bin376.fits
Spacecraft file(s): /scratch/kocevski/927716/ft2_4FGL_J1135.1+3014_daily_bin376.fits
Exposure map: /scratch/kocevski/927716/expmap_336787201_337046401_4FGL_J1135.1+3014_daily_bin376.fits
Exposure cube: /scratch/kocevski/927716/ltcube_336787201_337046401_4FGL_J1135.1+3014_daily_bin376.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/927716/Model_4FGL_J1135.1+3014_daily_bin376.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) = 5148.33973508

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    21.974       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    2.1364       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .15226E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .19901       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    14.064       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .25911E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .30684       1.0000         .10000E-03   10000.    
    11 'Prefactor '    11.516       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    9.4783       1.0000         .10000E-03   10000.    
    17 'Prefactor '    30.828       1.0000         .10000E-03   10000.    
    18 'norm      '    2.6330       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10283E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    31.910       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .68900E-01   1.0000         .10000E-03   10000.    
    22 'Prefactor '    11.059       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    2.4412       1.0000         .10000E-03   10000.    
    25 'Prefactor '    3.7144       1.0000         .10000E-03   10000.    
    26 'Prefactor '    9.1502       1.0000         .10000E-03   10000.    
    27 'norm      '    3.3616       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    3.8542       1.0000         .10000E-03   10000.    
    30 'Prefactor '    1.6606       1.0000         .10000E-03   10000.    
    31 'Normalizat'    1.0973       1.0000         .10000E-01   10.000    
    32 'Prefactor '    .86567       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6210E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5148.333     FROM MIGRAD    STATUS=CONVERGED    180 CALLS     3731 TOTAL
                     EDM=   .56E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     21.961        3.8211        .34746E-05   -.11193E-02
   2  Prefactor     .10000E-03    3.5618        .31817E-06** at limit **
   3  norm          2.1366        .45354        .28813E-06    .17880E-02
   4  Prefactor     .10000E-03    4.3251       -.13974E-06** at limit **
   5  Prefactor     .10008E-03    934.51       -.69367E-04** at limit **
   6  Prefactor     .10000E-03    9.2259       -.16848E-05** at limit **
   7  norm          14.065        4.8396       -.53632E-06   -.24499E-02
   8  Prefactor     .10000E-03    30.233       -.16031E-04** at limit **
   9  norm          .10000E-03    4.7011       -.38078E-07** at limit **
  10  Prefactor     .15405        422.92        .54165E-04   -.40402E-04
  11  Prefactor     11.514        3.9336       -.49044E-06   -.59008E-03
  12  Prefactor     .10000E-03    24.611       -.29910E-04** at limit **
  13  Prefactor     .10000E-03    5.8129       -.18611E-05** at limit **
  14  norm          .10000E-03    1.1279       -.46934E-06** at limit **
  15  Prefactor     .10000E-03    4.4737        .22923E-05** at limit **
  16  Prefactor     9.4764        1.9729        .26850E-05    .36018E-02
  17  Prefactor     30.814        4.5774        .22733E-05   -.21425E-02
  18  norm          2.6328        1.1980       -.13884E-06   -.14796E-03
  19  Prefactor     .10002E-03    38.726        .18410E-05** at limit **
  20  Prefactor     31.917        2.2960        .90612E-06    .30025E-03
  21  Prefactor     .63256E-01    7.3253       -.23226E-05    .43255E-04
  22  Prefactor     11.051        9.4865        .10426E-04    .25905E-02
  23  Prefactor     .10000E-03    24.179        .23839E-04** at limit **
  24  norm          2.4407        1.4270       -.56031E-06   -.38561E-03
  25  Prefactor     3.7137        4.7408       -.32908E-05   -.15710E-03
  26  Prefactor     9.1397        22.647        .29560E-04   -.10532E-02
  27  norm          3.3605        3.7888       -.97001E-06    .15306E-03
  28  Prefactor     .10000E-03    8.3643        .14390E-05** at limit **
  29  Prefactor     3.8541        2.7453        .19661E-06   -.15386E-03
  30  Prefactor     1.6605        1.8746        .13450E-06   -.10118E-04
  31  Normalizat    1.0975        .24371       -.37479E-05   -.12159E-04
  32  Prefactor     .86565        .26968        .19597E-05   -.43947E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 21.9614
  Prefactor  = 0.0001
  norm       = 2.13664
  Prefactor  = 0.0001
  Prefactor  = 0.000100075
  Prefactor  = 0.0001
  norm       = 14.0648
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 0.154054
  Prefactor  = 11.5144
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 9.47639
  Prefactor  = 30.814
  norm       = 2.6328
  Prefactor  = 0.000100021
  Prefactor  = 31.9172
  Prefactor  = 0.0632559
  Prefactor  = 11.051
  Prefactor  = 0.0001
  norm       = 2.44065
  Prefactor  = 3.71368
  Prefactor  = 9.1397
  norm       = 3.36051
  Prefactor  = 0.0001
  Prefactor  = 3.85408
  Prefactor  = 1.6605
  Normalizat = 1.09755
  Prefactor  = 0.865649
 **********
 **   18 **HESSE 
 **********

 FCN=   5148.333     FROM HESSE     STATUS=OK           753 CALLS     4484 TOTAL
                     EDM=   .12E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     21.961        27.119        .21362E-02   -1.4770    
   2  Prefactor     .10000E-03    3.5574        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          2.1366        .47041        .48733E-02   -1.5416    
   4  Prefactor     .10000E-03    1.8688        .32968E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10008E-03    23.337        .99731E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    9.2254        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          14.065        16.650        .26701E-02   -1.4958    
   8  Prefactor     .10000E-03    8.8944        .72145E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    4.6932        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .15405        13.227        .10455       -1.5629    
  11  Prefactor     11.514        4.1690        .29513E-02   -1.5029    
  12  Prefactor     .10000E-03    24.982        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    5.8010        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    1.1105        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    4.4646        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     9.4764        7.5455        .32542E-02   -1.5092    
  17  Prefactor     30.814        38.418        .18041E-02   -1.4597    
  18  norm          2.6328        1.2354        .62825E-02   -1.5383    
  19  Prefactor     .10002E-03    38.785        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     31.917        19.281        .17733E-02   -1.4577    
  21  Prefactor     .63256E-01    .94633        .40204E-01   -1.5658    
  22  Prefactor     11.051        22.520        .30118E-02   -1.5043    
  23  Prefactor     .10000E-03    24.520        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          2.4407        1.4356        .65464E-02   -1.5396    
  25  Prefactor     3.7137        4.7764        .52383E-02   -1.5323    
  26  Prefactor     9.1397        27.202        .33124E-02   -1.5103    
  27  norm          3.3605        3.8054        .55180E-02   -1.5341    
  28  Prefactor     .10000E-03    8.2230        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     3.8541        2.7411        .51389E-02   -1.5315    
  30  Prefactor     1.6605        1.8950        .81846E-02   -1.5450    
  31  Normalizat    1.0975        .20759        .56192E-01   -.89831    
  32  Prefactor     .86565        .22680        .72195E-01   -.97352    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.21195e-07
Minuit parameter uncertainties:
  1  27.1339
  2  4.13072e-06
  3  0.470416
  4  1.63413e-05
  5  0.00265069
  6  1.28872e-05
  7  16.6554
  8  0.000170222
  9  2.75926e-05
  10  2.8547
  11  4.16911
  12  1.30153e-05
  13  3.05703e-05
  14  1.95102e-06
  15  2.80517e-05
  16  7.54624
  17  38.4491
  18  1.2354
  19  0.00178512
  20  19.2847
  21  0.488953
  22  22.5377
  23  5.38782e-05
  24  1.43563
  25  4.77687
  26  27.2384
  27  3.80566
  28  2.68719e-05
  29  2.74118
  30  1.8951
  31  0.207744
  32  0.227049
Done.

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

Extracting fit parameters...

4FGL J1135.1+3014
   Spectrum: PowerLaw
296    Prefactor:  1.000e-04  2.805e-05  1.000e-04  1.000e+04 ( 1.000e-13)
297        Index:  2.376e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
298        Scale:  1.179e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
618    Prefactor:  8.656e-01  2.270e-01  0.000e+00  1.000e+01 ( 1.000e+00)
619        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
620        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
617   Normalization:  1.098e+00  2.077e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 173.788 30.234
Photon Flux Upper Limit: 5.64e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.35e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/927716/likelihoodResults_336787201_337046401_4FGL_J1135.1+3014_daily_bin376.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) = 5148.33452269
delta logL = -0.00105494085801

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5148.33346842
delta logL = -6.62592356093e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10435E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.3561       1.0000          .0000       10.000    
     3 'Normalizat'    1.0977       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .86543       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6210E+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=   5148.333     FROM MIGRAD    STATUS=CONVERGED     91 CALLS      247 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10288E-03    4.4699        .15046E-01** at limit **
   2  Index         2.2592        7.4075        .50000        .31311E-04
   3  Normalizat    1.0975        .47206E-02    .24848E-03    .24753E-04
   4  Prefactor     .86565        .54794E-02    .31945E-03    .11958E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000102879
  Index      = 2.25923
  Normalizat = 1.09755
  Prefactor  = 0.86565
 **********
 **   18 **HESSE 
 **********

 FCN=   5148.333     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      276 TOTAL
                     EDM=   .26E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10288E-03    73.237        .15474E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.2592        8.1706        .50000       -.58015    
   3  Normalizat    1.0975        .19382E-01    .99391E-05   -.89831    
   4  Prefactor     .86565        .22498E-01    .12778E-04   -.97352    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.57608e-08
Minuit parameter uncertainties:
  1  0.0290783
  2  408.207
  3  0.0193821
  4  0.0224978
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/927716': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5148.33346709
delta logL = 6.64967956254e-07

Extracting fit parameters...

4FGL J1135.1+3014
   Spectrum: PowerLaw
296    Prefactor:  1.029e-04  2.908e-02  1.000e-04  1.000e+04 ( 1.000e-13)
297        Index:  2.259e+00  4.082e+02  0.000e+00  1.000e+01 (-1.000e+00)
298        Scale:  1.179e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
618    Prefactor:  8.657e-01  2.250e-02  0.000e+00  1.000e+01 ( 1.000e+00)
619        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
620        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
617   Normalization:  1.098e+00  1.938e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 173.788 30.234

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/927716/cmap_HighResolution_336787201_337046401_4FGL_J1135.1+3014_daily_bin376.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.35e-03', job_status='DONE', photon_flux_upper_limit='5.64e-08', time_completed='2021-09-04 04:12:39.362466', job_id='927716', GAL2='0.87', fit_tolerance='1e-08', EG2='1.10', EG='1.10', time_epoch_completed='1630753959.36', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.87', dlogl='6.65e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.38' WHERE bin_id='376' AND source_name='4FGL J1135.1+3014' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 04:12:39 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0230>
Subject: Job 927716: <4FGL_J1135.1+3014_daily_bin376> in cluster <slac> Done

Job <4FGL_J1135.1+3014_daily_bin376> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sat Sep  4 03:57:01 2021
Job was executed on host(s) <bullet0230>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 03:57:02 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Sep  4 03:57:02 2021
Terminated at Sat Sep  4 04:12:40 2021
Results reported at Sat Sep  4 04:12:40 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1135.1+3014_daily_bin376 173.788 30.2344 336787201 337046401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1135.1+3014 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   845.00 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             305.39 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   937 sec.
    Turnaround time :                            939 sec.

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

