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


Performing analysis on: 4FGL_J1135.1+3014_daily_bin709
RA = 173.788, Dec = 30.2344
tmin = 423100801, tmax = 423360001
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='930616', job_status='RUN', time_executed='2021-09-04 04:06:42.141844', time_epoch_executed='1630753602.14' WHERE source_name='4FGL J1135.1+3014' and cadence='daily' and bin_id='709'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/930616

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/930616/ft1_4FGL_J1135.1+3014_daily_bin709.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/930616/ft2_4FGL_J1135.1+3014_daily_bin709.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/930616/ft1_4FGL_J1135.1+3014_daily_bin709.fits outfile=/scratch/kocevski/930616/ft1_filteredMKT_4FGL_J1135.1+3014_daily_bin709.fits ra=173.788 dec=30.2344 rad=12.0 tmin=423100801.0 tmax=423360001.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.40
user 4.68
sys 0.27

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/930616/ft2_4FGL_J1135.1+3014_daily_bin709.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/930616/ft1_filteredMKT_4FGL_J1135.1+3014_daily_bin709.fits evtable="EVENTS" outfile="/scratch/kocevski/930616/ft1_filtered_4FGL_J1135.1+3014_daily_bin709.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.61
user 0.35
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/930616/ft1_filtered_4FGL_J1135.1+3014_daily_bin709.fits" evtable="EVENTS" scfile=/scratch/kocevski/930616/ft2_4FGL_J1135.1+3014_daily_bin709.fits sctable="SC_DATA" outfile=/scratch/kocevski/930616/ltcube_423100801_423360001_4FGL_J1135.1+3014_daily_bin709.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/930616/ft2_4FGL_J1135.1+3014_daily_bin709.fits
.....................!
real 12.37
user 11.72
sys 0.42

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/930616/ft1_filtered_4FGL_J1135.1+3014_daily_bin709.fits evtable="EVENTS" scfile=/scratch/kocevski/930616/ft2_4FGL_J1135.1+3014_daily_bin709.fits sctable="SC_DATA" expcube=/scratch/kocevski/930616/ltcube_423100801_423360001_4FGL_J1135.1+3014_daily_bin709.fits outfile=/scratch/kocevski/930616/expmap_423100801_423360001_4FGL_J1135.1+3014_daily_bin709.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/930616/ltcube_423100801_423360001_4FGL_J1135.1+3014_daily_bin709.fits
.....................!
real 193.62
user 186.19
sys 5.61

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/930616/ft1_filtered_4FGL_J1135.1+3014_daily_bin709.fits scfile=/scratch/kocevski/930616/ft2_4FGL_J1135.1+3014_daily_bin709.fits outfile=/scratch/kocevski/930616/cmap_423100801_423360001_4FGL_J1135.1+3014_daily_bin709.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.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/930616/ft1_filtered_4FGL_J1135.1+3014_daily_bin709.fits scfile=/scratch/kocevski/930616/ft2_4FGL_J1135.1+3014_daily_bin709.fits outfile=/scratch/kocevski/930616/cmap_HighResolution_423100801_423360001_4FGL_J1135.1+3014_daily_bin709.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.55
user 0.38
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    14.035       1.0000         .10000E-03   10000.    
     3 'norm      '    1.1896       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    3.2722       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    20.844       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10012E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    5.3877       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    9.3666       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    7.8228       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .11675E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    6.9478       1.0000         .10000E-03   10000.    
    24 'norm      '    4.2600       1.0000         .10000E-03   10000.    
    25 'Prefactor '    15.065       1.0000         .10000E-03   10000.    
    26 'Prefactor '    34.900       1.0000         .10000E-03   10000.    
    27 'norm      '    5.9085       1.0000         .10000E-03   10000.    
    28 'Prefactor '    5.6192       1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    2.1266       1.0000         .10000E-03   10000.    
    31 'Normalizat'    1.1308       1.0000         .10000E-01   10.000    
    32 'Prefactor '    .71782       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=   4607.462     FROM MIGRAD    STATUS=CONVERGED    825 CALLS     4276 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    14.111        .13314E-05** at limit **
   2  Prefactor     14.033        14.410        .90950E-07   -.28817E-05
   3  norm          1.1896        .39308       -.11492E-06   -.15054E-03
   4  Prefactor     .10000E-03    2.3318        .15972E-06** at limit **
   5  Prefactor     3.2779        27.236        .15191E-04   -.26563E-03
   6  Prefactor     .10000E-03    6.8397        .27949E-06** at limit **
   7  norm          20.846        20.742       -.27010E-05   -.13293E-03
   8  Prefactor     .10000E-03    3.2460        .56144E-07** at limit **
   9  norm          .10000E-03    26.542        .72964E-06** at limit **
  10  Prefactor     .10000E-03    6.7443        .48345E-06** at limit **
  11  Prefactor     5.3875        3.9572       -.15110E-06   -.58615E-03
  12  Prefactor     .10001E-03    42.491        .26640E-05** at limit **
  13  Prefactor     .10000E-03    9.6132        .88207E-07** at limit **
  14  norm          9.3664        4.0359       -.18187E-06   -.61778E-03
  15  Prefactor     .10000E-03    6.4911       -.34988E-06** at limit **
  16  Prefactor     .10000E-03    1.6123       -.18741E-07** at limit **
  17  Prefactor     .10000E-03    27.444        .29613E-06** at limit **
  18  norm          7.8231        2.2811        .30995E-06    .81681E-04
  19  Prefactor     .10000E-03    16.433       -.14897E-05** at limit **
  20  Prefactor     .10000E-03    7.5465       -.41455E-06** at limit **
  21  Prefactor     .10000E-03    .85193        .75090E-07** at limit **
  22  Prefactor     .10000E-03    49.707       -.37711E-05** at limit **
  23  Prefactor     6.9003        356.17       -.25650E-04   -.80016E-04
  24  norm          4.2599        1.9669        .51113E-07    .92496E-04
  25  Prefactor     15.067        8.7360        .51158E-07    .30986E-04
  26  Prefactor     34.874        38.015       -.51639E-05   -.48677E-03
  27  norm          5.9087        3.6351       -.15995E-06   -.33007E-03
  28  Prefactor     5.6200        9.8456        .37320E-05   -.41746E-03
  29  Prefactor     .10000E-03    .90740       -.30227E-07** at limit **
  30  Prefactor     2.1267        2.1442        .22432E-07    .58771E-04
  31  Normalizat    1.1307        .22414        .12102E-05   -.10433E-03
  32  Prefactor     .71777        .23921       -.26218E-05    .36697E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Prefactor  = 14.033
  norm       = 1.18962
  Prefactor  = 0.0001
  Prefactor  = 3.27794
  Prefactor  = 0.0001
  norm       = 20.8464
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.38754
  Prefactor  = 0.000100006
  Prefactor  = 0.0001
  norm       = 9.36644
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 7.82314
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100003
  Prefactor  = 6.9003
  norm       = 4.25991
  Prefactor  = 15.0667
  Prefactor  = 34.874
  norm       = 5.90867
  Prefactor  = 5.61999
  Prefactor  = 0.0001
  Prefactor  = 2.12673
  Normalizat = 1.13073
  Prefactor  = 0.717774
 **********
 **   18 **HESSE 
 **********

 FCN=   4607.462     FROM HESSE     STATUS=OK           653 CALLS     4929 TOTAL
                     EDM=   .36E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    14.181        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     14.033        14.404        .10692E-03   -1.4959    
   3  norm          1.1896        .39380        .23034E-04   -1.5490    
   4  Prefactor     .10000E-03    2.3692        .10101E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     3.2779        28.976        .11193E-02   -1.5346    
   6  Prefactor     .10000E-03    6.8463        .17342E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          20.846        20.739        .87729E-04   -1.4794    
   8  Prefactor     .10000E-03    3.2579        .11943E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    27.054        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    6.7633        .17221E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     5.3875        3.9570        .10405E-03   -1.5244    
  12  Prefactor     .10001E-03    42.882        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    9.6344        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          9.3664        4.0389        .81831E-04   -1.5096    
  15  Prefactor     .10000E-03    6.5146        .16898E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    1.6143        .84162E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    27.469        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          7.8231        2.3083        .45601E-04   -1.5148    
  19  Prefactor     .10000E-03    16.613        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    7.5593        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    .86268        .61155E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    50.470        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     6.9003        383.63        .15220E-03   -1.5183    
  24  norm          4.2599        1.9675        .61067E-04   -1.5295    
  25  Prefactor     15.067        8.7472        .10319E-03   -1.4931    
  26  Prefactor     34.874        39.091        .67835E-04   -1.4526    
  27  norm          5.9087        3.6337        .97547E-04   -1.5222    
  28  Prefactor     5.6200        9.9309        .84734E-03   -1.5234    
  29  Prefactor     .10000E-03    .90903        .63118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     2.1267        2.1482        .96297E-04   -1.5416    
  31  Normalizat    1.1307        .26749        .25080E-03   -.88771    
  32  Prefactor     .71777        .28093        .34152E-03   -1.0283    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.56929e-09
Minuit parameter uncertainties:
  1  0.000231344
  2  14.4079
  3  0.393799
  4  1.22964e-06
  5  19.5041
  6  4.03863e-05
  7  20.7462
  8  4.63371e-07
  9  1.10289e-05
  10  4.55735e-05
  11  3.95714
  12  0.00102809
  13  1.06977e-06
  14  4.03898
  15  5.27721e-05
  16  1.60439e-06
  17  9.70055e-05
  18  2.30836
  19  0.000332566
  20  6.49505e-05
  21  6.75576e-08
  22  0.000724754
  23  103.607
  24  1.96756
  25  8.74791
  26  39.1194
  27  3.63383
  28  9.93383
  29  8.81298e-07
  30  2.14828
  31  0.267813
  32  0.281488
Done.

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

Extracting fit parameters...

4FGL J1135.1+3014
   Spectrum: PowerLaw
296    Prefactor:  1.000e-04  5.277e-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:  7.178e-01  2.815e-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.131e+00  2.678e-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: 7.03e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.42e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/930616/likelihoodResults_423100801_423360001_4FGL_J1135.1+3014_daily_bin709.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) = 4607.46248524
delta logL = -0.000728183488718

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4607.46175703
delta logL = 2.86636350211e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10042E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.3617       1.0000          .0000       10.000    
     3 'Normalizat'    1.1307       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .71778       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=   4607.462     FROM MIGRAD    STATUS=CONVERGED     89 CALLS      245 TOTAL
                     EDM=   .16E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10193E-03    115.73        .17044E-02** at limit **
   2  Index         2.2722        6.0709        .50000        .15477E-04
   3  Normalizat    1.1307        .22237E-01    .25080E-03    .57116E-04
   4  Prefactor     .71777        .24753E-01    .34152E-03    .47203E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000101931
  Index      = 2.27222
  Normalizat = 1.13074
  Prefactor  = 0.717771
 **********
 **   18 **HESSE 
 **********

 FCN=   4607.462     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      274 TOTAL
                     EDM=   .72E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10193E-03    471.27        .34087E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.2722        5.8680        .50000       -.57705    
   3  Normalizat    1.1307        .48291E-01    .10032E-04   -.88771    
   4  Prefactor     .71777        .53741E-01    .13661E-04   -1.0283    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 7.15075e-08
Minuit parameter uncertainties:
  1  0.060825
  2  1235.88
  3  0.0482925
  4  0.0537449
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/930616': 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) = 4607.46175677
delta logL = 2.87346665573e-07

Extracting fit parameters...

4FGL J1135.1+3014
   Spectrum: PowerLaw
296    Prefactor:  1.019e-04  6.082e-02  1.000e-04  1.000e+04 ( 1.000e-13)
297        Index:  2.272e+00  1.236e+03  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:  7.178e-01  5.374e-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.131e+00  4.829e-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/930616/cmap_HighResolution_423100801_423360001_4FGL_J1135.1+3014_daily_bin709.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.42e-03', job_status='DONE', photon_flux_upper_limit='7.03e-08', time_completed='2021-09-04 04:20:11.569105', job_id='930616', GAL2='0.72', fit_tolerance='1e-08', EG2='1.13', EG='1.13', time_epoch_completed='1630754411.57', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.72', dlogl='2.87e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.38' WHERE bin_id='709' AND source_name='4FGL J1135.1+3014' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 04:20:11 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0206>
Subject: Job 930616: <4FGL_J1135.1+3014_daily_bin709> in cluster <slac> Done

Job <4FGL_J1135.1+3014_daily_bin709> was submitted from host <rhel6-64c> by user <kocevski> in cluster <slac> at Sat Sep  4 04:06:22 2021
Job was executed on host(s) <bullet0206>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 04:06:24 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:06:24 2021
Terminated at Sat Sep  4 04:20:12 2021
Results reported at Sat Sep  4 04:20:12 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1135.1+3014_daily_bin709 173.788 30.2344 423100801 423360001 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 :                                   804.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             292.08 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   827 sec.
    Turnaround time :                            830 sec.

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

