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


Performing analysis on: 4FGL_J1135.1+3014_daily_bin994
RA = 173.788, Dec = 30.2344
tmin = 496972801, tmax = 497232001
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='932211', job_status='RUN', time_executed='2021-09-04 04:11:31.019141', time_epoch_executed='1630753891.02' WHERE source_name='4FGL J1135.1+3014' and cadence='daily' and bin_id='994'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/932211

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/932211/ft1_4FGL_J1135.1+3014_daily_bin994.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/932211/ft2_4FGL_J1135.1+3014_daily_bin994.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/932211/ft1_4FGL_J1135.1+3014_daily_bin994.fits outfile=/scratch/kocevski/932211/ft1_filteredMKT_4FGL_J1135.1+3014_daily_bin994.fits ra=173.788 dec=30.2344 rad=12.0 tmin=496972801.0 tmax=497232001.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 5.21
user 4.92
sys 0.20

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

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

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/932211/ft1_filtered_4FGL_J1135.1+3014_daily_bin994.fits" evtable="EVENTS" scfile=/scratch/kocevski/932211/ft2_4FGL_J1135.1+3014_daily_bin994.fits sctable="SC_DATA" outfile=/scratch/kocevski/932211/ltcube_496972801_497232001_4FGL_J1135.1+3014_daily_bin994.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/932211/ft2_4FGL_J1135.1+3014_daily_bin994.fits
.....................!
real 12.00
user 11.64
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/932211/ft1_filtered_4FGL_J1135.1+3014_daily_bin994.fits evtable="EVENTS" scfile=/scratch/kocevski/932211/ft2_4FGL_J1135.1+3014_daily_bin994.fits sctable="SC_DATA" expcube=/scratch/kocevski/932211/ltcube_496972801_497232001_4FGL_J1135.1+3014_daily_bin994.fits outfile=/scratch/kocevski/932211/expmap_496972801_497232001_4FGL_J1135.1+3014_daily_bin994.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/932211/ltcube_496972801_497232001_4FGL_J1135.1+3014_daily_bin994.fits
.....................!
real 189.49
user 184.52
sys 4.55

Generating the xml model:
radLim = 0.001
maxRad = 12
normsOnly = True
freeVariableSources = True
Fixing all sources to their catalog values, except variable sources
Creating file and adding sources from 4FGL
Added 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/932211/ft1_filtered_4FGL_J1135.1+3014_daily_bin994.fits scfile=/scratch/kocevski/932211/ft2_4FGL_J1135.1+3014_daily_bin994.fits outfile=/scratch/kocevski/932211/cmap_496972801_497232001_4FGL_J1135.1+3014_daily_bin994.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.54
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/932211/ft1_filtered_4FGL_J1135.1+3014_daily_bin994.fits scfile=/scratch/kocevski/932211/ft2_4FGL_J1135.1+3014_daily_bin994.fits outfile=/scratch/kocevski/932211/cmap_HighResolution_496972801_497232001_4FGL_J1135.1+3014_daily_bin994.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.54
user 0.39
sys 0.14

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/932211/ft1_filtered_4FGL_J1135.1+3014_daily_bin994.fits', '/scratch/kocevski/932211/ft2_4FGL_J1135.1+3014_daily_bin994.fits', expMap='/scratch/kocevski/932211/expmap_496972801_497232001_4FGL_J1135.1+3014_daily_bin994.fits', expCube='/scratch/kocevski/932211/ltcube_496972801_497232001_4FGL_J1135.1+3014_daily_bin994.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/932211/Model_4FGL_J1135.1+3014_daily_bin994.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/932211/ft1_filtered_4FGL_J1135.1+3014_daily_bin994.fits
Spacecraft file(s): /scratch/kocevski/932211/ft2_4FGL_J1135.1+3014_daily_bin994.fits
Exposure map: /scratch/kocevski/932211/expmap_496972801_497232001_4FGL_J1135.1+3014_daily_bin994.fits
Exposure cube: /scratch/kocevski/932211/ltcube_496972801_497232001_4FGL_J1135.1+3014_daily_bin994.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/932211/Model_4FGL_J1135.1+3014_daily_bin994.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) = 3983.06056748

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .99179       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10056E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    4.3226       1.0000         .10000E-03   10000.    
     9 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    4.8972       1.0000         .10000E-03   10000.    
    14 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    4.1788       1.0000         .10000E-03   10000.    
    16 'Prefactor '    5.7582       1.0000         .10000E-03   10000.    
    17 'Prefactor '    21.537       1.0000         .10000E-03   10000.    
    18 'norm      '    .10029E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    8.6326       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    14.202       1.0000         .10000E-03   10000.    
    24 'norm      '    .33353       1.0000         .10000E-03   10000.    
    25 'Prefactor '    8.7752       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .16148E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    15.398       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    .44096       1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    31 'Normalizat'    1.2402       1.0000         .10000E-01   10.000    
    32 'Prefactor '    .47607       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.

 FCN=   3983.060     FROM MIGRAD    STATUS=CONVERGED    854 CALLS     5309 TOTAL
                     EDM=   .90E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    13.374        .75870E-06** at limit **
   2  Prefactor     .10000E-03    18.345       -.29186E-06** at limit **
   3  norm          .99178        .34034       -.20030E-07    .32271E-03
   4  Prefactor     .10000E-03    2.1786        .11859E-06** at limit **
   5  Prefactor     .10000E-03    6.2215       -.12520E-05** at limit **
   6  Prefactor     .10000E-03    18.183        .48632E-07** at limit **
   7  norm          .10000E-03    32.803        .28362E-06** at limit **
   8  Prefactor     4.3246        8.9948       -.73233E-08    .29611E-05
   9  norm          .10000E-03    4.0756        .39978E-07** at limit **
  10  Prefactor     .10000E-03    7.1672        .38221E-06** at limit **
  11  Prefactor     .10000E-03    .79414       -.17865E-07** at limit **
  12  Prefactor     .10000E-03    11.391       -.38757E-06** at limit **
  13  Prefactor     4.8568        19.126        .27631E-05    .12679E-03
  14  norm          .10000E-03    .81045       -.31845E-07** at limit **
  15  Prefactor     4.1950        14.557       -.20245E-05   -.79463E-04
  16  Prefactor     5.7596        5.6424        .33992E-07    .20854E-03
  17  Prefactor     21.530        34.227        .31083E-05    .34831E-03
  18  norm          .10000E-03    .89853       -.15968E-05** at limit **
  19  Prefactor     8.6381        23.962       -.18549E-05   -.51629E-04
  20  Prefactor     .10000E-03    6.1367        .11060E-05** at limit **
  21  Prefactor     .10000E-03    1.1732       -.23014E-07** at limit **
  22  Prefactor     .10000E-03    12.578       -.33395E-06** at limit **
  23  Prefactor     14.167        78.698       -.29703E-05    .98957E-04
  24  norm          .33361        .86726        .23414E-06    .45622E-03
  25  Prefactor     8.7763        5.5796       -.54735E-07   -.62357E-05
  26  Prefactor     .10000E-03    118.00       -.19423E-05** at limit **
  27  norm          15.396        5.5162       -.27750E-06   -.43299E-03
  28  Prefactor     .10000E-03    3.0666        .33618E-08** at limit **
  29  Prefactor     .44192        3.3750        .64457E-06   -.15996E-03
  30  Prefactor     .10000E-03    1.2186       -.14283E-07** at limit **
  31  Normalizat    1.2400        .20835        .14503E-05    .51650E-03
  32  Prefactor     .47619        .22277       -.55731E-06    .27932E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.991779
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 4.32457
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.85682
  norm       = 0.0001
  Prefactor  = 4.195
  Prefactor  = 5.75964
  Prefactor  = 21.5296
  norm       = 0.000100001
  Prefactor  = 8.63812
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 14.1675
  norm       = 0.33361
  Prefactor  = 8.77626
  Prefactor  = 0.000100001
  norm       = 15.3961
  Prefactor  = 0.0001
  Prefactor  = 0.441924
  Prefactor  = 0.0001
  Normalizat = 1.24001
  Prefactor  = 0.476186
 **********
 **   18 **HESSE 
 **********

 FCN=   3983.060     FROM HESSE     STATUS=OK           653 CALLS     5962 TOTAL
                     EDM=   .19E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    13.397        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    18.660        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .99178        .34073        .20805E-04   -1.5509    
   4  Prefactor     .10000E-03    3.9087        .17844E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    6.2966        .15453E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    18.472        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    33.731        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     4.3246        8.9802        .19375E-03   -1.5292    
   9  norm          .10000E-03    4.0852        .12443E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    7.1923        .16499E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    .79932        .54877E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    11.400        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     4.8568        19.012        .18176E-03   -1.5267    
  14  norm          .10000E-03    .81550        .55459E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     4.1950        14.459        .19716E-03   -1.5298    
  16  Prefactor     5.7596        5.6484        .14041E-03   -1.5228    
  17  Prefactor     21.530        35.369        .86309E-04   -1.4780    
  18  norm          .10000E-03    1.0725        .94781E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     8.6381        24.040        .13643E-03   -1.5120    
  20  Prefactor     .10000E-03    6.1756        .15311E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    1.1899        .66461E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    12.622        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     14.167        79.183        .10628E-03   -1.4955    
  24  norm          .33361        .75580        .91009E-03   -1.5592    
  25  Prefactor     8.7763        5.5780        .11488E-03   -1.5115    
  26  Prefactor     .10000E-03    121.48        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          15.396        5.2888        .72840E-04   -1.4923    
  28  Prefactor     .10000E-03    3.0714        .10793E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .44192        5.1139        .18849E-02   -1.5575    
  30  Prefactor     .10000E-03    1.2433        .67931E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Normalizat    1.2400        .23324        .19764E-03   -.85375    
  32  Prefactor     .47619        .24689        .34137E-03   -1.1308    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.92031e-08
Minuit parameter uncertainties:
  1  7.3035e-05
  2  8.95837e-05
  3  0.340734
  4  6.85365e-05
  5  9.89933e-05
  6  4.01106e-06
  7  5.57465e-05
  8  8.98301
  9  5.01387e-07
  10  2.31268e-05
  11  1.32218e-06
  12  4.02611e-05
  13  19.0354
  14  6.36337e-07
  15  14.4706
  16  5.64895
  17  35.4034
  18  7.01248e-05
  19  24.0665
  20  7.94306e-05
  21  9.17354e-07
  22  4.07587e-05
  23  67.1238
  24  0.755819
  25  5.57829
  26  0.00078689
  27  5.28899
  28  1.18793e-06
  29  3.00661
  30  2.19796e-06
  31  0.233439
  32  0.247449
Done.

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

Extracting fit parameters...

4FGL J1135.1+3014
   Spectrum: PowerLaw
296    Prefactor:  4.195e+00  1.447e+01  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:  4.762e-01  2.474e-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.240e+00  2.334e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/932211/likelihoodResults_496972801_497232001_4FGL_J1135.1+3014_daily_bin994.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) = 3982.78844104
delta logL = 0.271317508962

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 3982.47599429
delta logL = 0.583764250478

Fit tolerance = 1e-08

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

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

 FCN=   3982.476     FROM MIGRAD    STATUS=CONVERGED    208 CALLS      582 TOTAL
                     EDM=   .50E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    .54694E-02    .32292E-03** at limit **
   2  Index         7.9231        3.0011        .14966       -.95140E-04
   3  Normalizat    1.1873        .46904E-01    .35213E-01   -.46544E-04
   4  Prefactor     .52290        .52231E-01    .73851E-01    .30110E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 7.92311
  Normalizat = 1.18726
  Prefactor  = 0.522895
 **********
 **   18 **HESSE 
 **********

 FCN=   3982.476     FROM HESSE     STATUS=NOT POSDEF    39 CALLS      621 TOTAL
                     EDM=   .53E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    .32003E-01    .17380E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         7.9231        8.3818        .57470E-02    .62441    
   3  Normalizat    1.1873        .10735        .20115E-03   -.86997    
   4  Prefactor     .52290        .11957        .32700E-03   -1.1094    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 5.25901e-08
Minuit parameter uncertainties:
  1  1.16428e-07
  2  6.08591
  3  0.107366
  4  0.119632
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/932211': 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) = 3982.47599416
delta logL = 0.583764381533

Extracting fit parameters...

4FGL J1135.1+3014
   Spectrum: PowerLaw
296    Prefactor:  1.000e-04  1.164e-07  1.000e-04  1.000e+04 ( 1.000e-13)
297        Index:  7.923e+00  6.086e+00  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:  5.229e-01  1.196e-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.187e+00  1.074e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.36
Ra Dec: 173.788 30.234
Photon Index (Free Index): 7.92 +/- 6.09
Photon Flux (Free Index): 4.53e-08 +/- 6.29e-07
Energy Flux (Free Index): 5.27e-06 +/- 7.27e-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/932211/cmap_HighResolution_496972801_497232001_4FGL_J1135.1+3014_daily_bin994.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.24e-03', comment='SUCCESS', energy_flux2='5.27e-06', dlogl='5.84e-01', photon_flux2='4.53e-08', job_status='DONE', time_completed='2021-09-04 04:25:24.007755', photon_index_error2='6.09', photon_index2='7.92', ts='0.14', fit_tolerance='1e-08', GAL='0.48', photon_index_error='0.00', photon_flux_upper_limit='9.39e-08', energy_flux_error2='7.27e-05', EG='1.24', time_epoch_completed='1630754724.01', return_code='0', job_id='932211', GAL2='0.52', EG2='1.19', return_code2='102', photon_flux_error2='6.29e-07', ts2='1.36', photon_index='2.38' WHERE bin_id='994' AND source_name='4FGL J1135.1+3014' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 04:25:24 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0286>
Subject: Job 932211: <4FGL_J1135.1+3014_daily_bin994> in cluster <slac> Done

Job <4FGL_J1135.1+3014_daily_bin994> was submitted from host <rhel6-64c> by user <kocevski> in cluster <slac> at Sat Sep  4 04:11:16 2021
Job was executed on host(s) <bullet0286>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 04:11:17 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Sep  4 04:11:17 2021
Terminated at Sat Sep  4 04:25:27 2021
Results reported at Sat Sep  4 04:25:27 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1135.1+3014_daily_bin994 173.788 30.2344 496972801 497232001 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 :                                   817.27 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             301.04 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   847 sec.
    Turnaround time :                            851 sec.

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

