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


Performing analysis on: 4FGL_J1135.1+3014_daily_bin1158
RA = 173.788, Dec = 30.2344
tmin = 539481601, tmax = 539740801
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='933867', job_status='RUN', time_executed='2021-09-04 04:18:22.699580', time_epoch_executed='1630754302.7' WHERE source_name='4FGL J1135.1+3014' and cadence='daily' and bin_id='1158'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/933867

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/933867/ft1_4FGL_J1135.1+3014_daily_bin1158.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/933867/ft2_4FGL_J1135.1+3014_daily_bin1158.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/933867/ft1_4FGL_J1135.1+3014_daily_bin1158.fits outfile=/scratch/kocevski/933867/ft1_filteredMKT_4FGL_J1135.1+3014_daily_bin1158.fits ra=173.788 dec=30.2344 rad=12.0 tmin=539481601.0 tmax=539740801.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.15
user 4.90
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/933867/ft2_4FGL_J1135.1+3014_daily_bin1158.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/933867/ft1_filteredMKT_4FGL_J1135.1+3014_daily_bin1158.fits evtable="EVENTS" outfile="/scratch/kocevski/933867/ft1_filtered_4FGL_J1135.1+3014_daily_bin1158.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.35
sys 0.14

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/933867/ft1_filtered_4FGL_J1135.1+3014_daily_bin1158.fits evtable="EVENTS" scfile=/scratch/kocevski/933867/ft2_4FGL_J1135.1+3014_daily_bin1158.fits sctable="SC_DATA" expcube=/scratch/kocevski/933867/ltcube_539481601_539740801_4FGL_J1135.1+3014_daily_bin1158.fits outfile=/scratch/kocevski/933867/expmap_539481601_539740801_4FGL_J1135.1+3014_daily_bin1158.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/933867/ltcube_539481601_539740801_4FGL_J1135.1+3014_daily_bin1158.fits
.....................!
real 190.75
user 185.74
sys 4.62

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/933867/ft1_filtered_4FGL_J1135.1+3014_daily_bin1158.fits scfile=/scratch/kocevski/933867/ft2_4FGL_J1135.1+3014_daily_bin1158.fits outfile=/scratch/kocevski/933867/cmap_539481601_539740801_4FGL_J1135.1+3014_daily_bin1158.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/933867/ft1_filtered_4FGL_J1135.1+3014_daily_bin1158.fits scfile=/scratch/kocevski/933867/ft2_4FGL_J1135.1+3014_daily_bin1158.fits outfile=/scratch/kocevski/933867/cmap_HighResolution_539481601_539740801_4FGL_J1135.1+3014_daily_bin1158.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.57
user 0.41
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    16.074       1.0000         .10000E-03   10000.    
     3 'norm      '    4.2321       1.0000         .10000E-03   10000.    
     4 'Prefactor '    4.1835       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10235E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    28.862       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    20.307       1.0000         .10000E-03   10000.    
    10 'Prefactor '    8.6147       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10214E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10388E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    1.4725       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    20.151       1.0000         .10000E-03   10000.    
    17 'Prefactor '    51.030       1.0000         .10000E-03   10000.    
    18 'norm      '    1.8962       1.0000         .10000E-03   10000.    
    19 'Prefactor '    35.657       1.0000         .10000E-03   10000.    
    20 'Prefactor '    3.2978       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .12857E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10408E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    28.261       1.0000         .10000E-03   10000.    
    24 'norm      '    14.056       1.0000         .10000E-03   10000.    
    25 'Prefactor '    7.0530       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10952E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    7.8544       1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10960E-03   1.0000         .10000E-03   10000.    
    31 'Normalizat'    .33605       1.0000         .10000E-01   10.000    
    32 'Prefactor '    1.3993       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=   2803.504     FROM MIGRAD    STATUS=CONVERGED    840 CALLS     4988 TOTAL
                     EDM=   .52E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    14.335        .79862E-07** at limit **
   2  Prefactor     16.074        18.827       -.26625E-05    .19073E-04
   3  norm          4.2321        .88057        .29823E-07    .30106E-03
   4  Prefactor     4.1810        6.1765        .49853E-05   -.53979E-04
   5  Prefactor     .10000E-03    32.676        .26073E-06** at limit **
   6  Prefactor     .10000E-03    26.082       -.70488E-08** at limit **
   7  norm          28.861        26.468        .57042E-06    .33681E-04
   8  Prefactor     .10000E-03    4.5602        .86701E-07** at limit **
   9  norm          20.314        22.548        .63028E-06    .84157E-04
  10  Prefactor     8.6139        19.779        .16263E-05    .35892E-04
  11  Prefactor     .10000E-03    3.9193        .33791E-06** at limit **
  12  Prefactor     .10000E-03    24.268        .34509E-07** at limit **
  13  Prefactor     .10000E-03    7.0729       -.29987E-07** at limit **
  14  norm          1.4722        2.4075        .96002E-07    .40010E-04
  15  Prefactor     .10000E-03    7.7233       -.80574E-08** at limit **
  16  Prefactor     20.151        11.223        .80073E-06    .58514E-04
  17  Prefactor     50.954        78.011        .26316E-06   -.67780E-04
  18  norm          1.8934        2.7611        .13258E-05    .16316E-03
  19  Prefactor     35.581        34.311        .28237E-05    .22834E-04
  20  Prefactor     3.2879        43.254        .47052E-05    .30076E-04
  21  Prefactor     .10001E-03    3.6629       -.18529E-05** at limit **
  22  Prefactor     .10000E-03    21.482        .64491E-06** at limit **
  23  Prefactor     28.095        120.12       -.13085E-04   -.40477E-04
  24  norm          14.058        3.6025        .33983E-06    .43176E-03
  25  Prefactor     7.0511        7.3964        .60569E-06    .11520E-03
  26  Prefactor     .10000E-03    68.623        .25973E-05** at limit **
  27  norm          .10000E-03    4.6260       -.66913E-07** at limit **
  28  Prefactor     .10000E-03    4.5029        .31194E-06** at limit **
  29  Prefactor     7.8544        4.8296        .28183E-06   -.18044E-04
  30  Prefactor     .10000E-03    4.2619        .13549E-05** at limit **
  31  Normalizat    .33597        .35008       -.18458E-04    .25087E-04
  32  Prefactor     1.3994        .36114        .73391E-05    .91934E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 16.0743
  norm       = 4.23213
  Prefactor  = 4.18105
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 28.8605
  Prefactor  = 0.0001
  norm       = 20.3137
  Prefactor  = 8.6139
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.47223
  Prefactor  = 0.0001
  Prefactor  = 20.1515
  Prefactor  = 50.9544
  norm       = 1.89341
  Prefactor  = 35.5806
  Prefactor  = 3.28786
  Prefactor  = 0.000100012
  Prefactor  = 0.0001
  Prefactor  = 28.0952
  norm       = 14.0575
  Prefactor  = 7.05106
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.85435
  Prefactor  = 0.0001
  Normalizat = 0.335967
  Prefactor  = 1.39936
 **********
 **   18 **HESSE 
 **********

 FCN=   2803.504     FROM HESSE     STATUS=OK           657 CALLS     5645 TOTAL
                     EDM=   .19E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    14.337        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     16.074        18.774        .99900E-04   -1.4906    
   3  norm          4.2321        .88063        .21740E-04   -1.5296    
   4  Prefactor     4.1810        6.1832        .67946E-03   -1.5299    
   5  Prefactor     .10000E-03    32.790        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    26.129        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          28.861        26.373        .74575E-04   -1.4633    
   8  Prefactor     .10000E-03    4.5624        .11043E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          20.314        22.463        .88882E-04   -1.4806    
  10  Prefactor     8.6139        19.720        .13657E-03   -1.5121    
  11  Prefactor     .10000E-03    4.0456        .20379E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    24.271        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    7.0736        .13754E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          1.4722        2.3653        .10109E-03   -1.5465    
  15  Prefactor     .10000E-03    7.7293        .14372E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     20.151        11.136        .89225E-04   -1.4810    
  17  Prefactor     50.954        77.435        .56141E-04   -1.4279    
  18  norm          1.8934        2.7671        .73609E-04   -1.5433    
  19  Prefactor     35.581        33.991        .67113E-04   -1.4514    
  20  Prefactor     3.2879        43.039        .22295E-03   -1.5345    
  21  Prefactor     .10001E-03    7.7475        .18703E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    21.500        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     28.095        123.24        .75361E-04   -1.4647    
  24  norm          14.058        3.5937        .47048E-04   -1.4958    
  25  Prefactor     7.0511        7.3850        .14071E-03   -1.5177    
  26  Prefactor     .10000E-03    68.959        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          .10000E-03    4.7072        .22095E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    4.5103        .10975E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     7.8544        4.7999        .87329E-04   -1.5147    
  30  Prefactor     .10000E-03    4.4514        .21310E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Normalizat    .33597        .35313        .43825E-03   -1.2075    
  32  Prefactor     1.3994        .37907        .26768E-03   -.80399    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.8933e-09
Minuit parameter uncertainties:
  1  1.38525e-05
  2  18.7809
  3  0.880629
  4  6.18415
  5  7.51337e-05
  6  5.26107e-05
  7  26.3838
  8  6.99292e-06
  9  22.4724
  10  19.7352
  11  2.20222e-06
  12  4.74048e-06
  13  7.2272e-06
  14  2.36545
  15  2.60609e-06
  16  11.1371
  17  77.5885
  18  2.76728
  19  34.0096
  20  23.812
  21  0.000614099
  22  0.000109909
  23  118.098
  24  3.59372
  25  7.3859
  26  0.000500937
  27  1.22452e-05
  28  5.42937e-06
  29  4.80018
  30  2.42456e-05
  31  0.355498
  32  0.379826
Done.

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

Extracting fit parameters...

4FGL J1135.1+3014
   Spectrum: PowerLaw
296    Prefactor:  1.000e-04  2.606e-06  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:  1.399e+00  3.798e-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:  3.360e-01  3.555e-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: 9.78e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.55e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/933867/likelihoodResults_539481601_539740801_4FGL_J1135.1+3014_daily_bin1158.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) = 2803.50496223
delta logL = -0.000571405174014

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 2803.50439074
delta logL = 8.46525836096e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.3584       1.0000          .0000       10.000    
     3 'Normalizat'    .33596       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3994       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=   2803.504     FROM MIGRAD    STATUS=CONVERGED    103 CALLS      262 TOTAL
                     EDM=   .10E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    43.488        .14588E-01** at limit **
   2  Index         1.7191        8.4073        .50000        .37682E-06
   3  Normalizat    .33597        .13668E-01    .43818E-03    .46626E-03
   4  Prefactor     1.3994        .16360E-01    .26769E-03    .76212E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.71906
  Normalizat = 0.335971
  Prefactor  = 1.39936
 **********
 **   18 **HESSE 
 **********

 FCN=   2803.504     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      291 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    456.17        .16800E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.7191        6.3146        .50000       -.71576    
   3  Normalizat    .33597        .46630E-01    .17527E-04   -1.2075    
   4  Prefactor     1.3994        .55816E-01    .53538E-04   -.80399    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.0584e-08
Minuit parameter uncertainties:
  1  0.000874114
  2  1431.04
  3  0.0466355
  4  0.0558184
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/933867': 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) = 2803.5043891
delta logL = 1.73020225702e-06

Extracting fit parameters...

4FGL J1135.1+3014
   Spectrum: PowerLaw
296    Prefactor:  1.000e-04  8.741e-04  1.000e-04  1.000e+04 ( 1.000e-13)
297        Index:  1.719e+00  1.431e+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:  1.399e+00  5.582e-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:  3.360e-01  4.664e-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/933867/cmap_HighResolution_539481601_539740801_4FGL_J1135.1+3014_daily_bin1158.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.55e-03', job_status='DONE', photon_flux_upper_limit='9.78e-08', time_completed='2021-09-04 04:29:55.302322', job_id='933867', GAL2='1.40', fit_tolerance='1e-08', EG2='0.34', EG='0.34', time_epoch_completed='1630754995.3', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.40', dlogl='1.73e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.38' WHERE bin_id='1158' AND source_name='4FGL J1135.1+3014' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 04:29:55 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0143>
Subject: Job 933867: <4FGL_J1135.1+3014_daily_bin1158> in cluster <slac> Done

Job <4FGL_J1135.1+3014_daily_bin1158> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Sat Sep  4 04:16:23 2021
Job was executed on host(s) <bullet0143>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 04:16: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:16:24 2021
Terminated at Sat Sep  4 04:29:56 2021
Results reported at Sat Sep  4 04:29:56 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1135.1+3014_daily_bin1158 173.788 30.2344 539481601 539740801 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 :                                   650.04 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             293.22 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   811 sec.
    Turnaround time :                            813 sec.

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

