/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 5 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 = 7405
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1135.1+3014_daily_bin93
RA = 173.788, Dec = 30.2344
tmin = 263433601, tmax = 263692801
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='927309', job_status='RUN', time_executed='2021-09-04 03:56:41.750412', time_epoch_executed='1630753001.75' WHERE source_name='4FGL J1135.1+3014' and cadence='daily' and bin_id='93'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/927309

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/927309/ft1_4FGL_J1135.1+3014_daily_bin93.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/927309/ft2_4FGL_J1135.1+3014_daily_bin93.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/927309/ft1_4FGL_J1135.1+3014_daily_bin93.fits outfile=/scratch/kocevski/927309/ft1_filteredMKT_4FGL_J1135.1+3014_daily_bin93.fits ra=173.788 dec=30.2344 rad=12.0 tmin=263433601.0 tmax=263692801.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 3.46
user 3.23
sys 0.19

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/927309/ft1_filtered_4FGL_J1135.1+3014_daily_bin93.fits evtable="EVENTS" scfile=/scratch/kocevski/927309/ft2_4FGL_J1135.1+3014_daily_bin93.fits sctable="SC_DATA" expcube=/scratch/kocevski/927309/ltcube_263433601_263692801_4FGL_J1135.1+3014_daily_bin93.fits outfile=/scratch/kocevski/927309/expmap_263433601_263692801_4FGL_J1135.1+3014_daily_bin93.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/927309/ltcube_263433601_263692801_4FGL_J1135.1+3014_daily_bin93.fits
.....................!
real 190.21
user 185.37
sys 4.37

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/927309/ft1_filtered_4FGL_J1135.1+3014_daily_bin93.fits scfile=/scratch/kocevski/927309/ft2_4FGL_J1135.1+3014_daily_bin93.fits outfile=/scratch/kocevski/927309/cmap_263433601_263692801_4FGL_J1135.1+3014_daily_bin93.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.69
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/927309/ft1_filtered_4FGL_J1135.1+3014_daily_bin93.fits scfile=/scratch/kocevski/927309/ft2_4FGL_J1135.1+3014_daily_bin93.fits outfile=/scratch/kocevski/927309/cmap_HighResolution_263433601_263692801_4FGL_J1135.1+3014_daily_bin93.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.87
user 0.39
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10447E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    9.1322       1.0000         .10000E-03   10000.    
     3 'norm      '    .58219       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .25566       1.0000         .10000E-03   10000.    
     5 'Prefactor '    2.5815       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    4.2711       1.0000         .10000E-03   10000.    
     9 'norm      '    19.961       1.0000         .10000E-03   10000.    
    10 'Prefactor '    16.534       1.0000         .10000E-03   10000.    
    11 'Prefactor '    1.5874       1.0000         .10000E-03   10000.    
    12 'Prefactor '    8.4914       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10052E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    12.706       1.0000         .10000E-03   10000.    
    18 'norm      '    2.6761       1.0000         .10000E-03   10000.    
    19 'Prefactor '    11.980       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    1.0637       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .49329E-02   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10344E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    3.3044       1.0000         .10000E-03   10000.    
    25 'Prefactor '    1.2224       1.0000         .10000E-03   10000.    
    26 'Prefactor '    15.699       1.0000         .10000E-03   10000.    
    27 'norm      '    .10340E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    4.4497       1.0000         .10000E-03   10000.    
    30 'Prefactor '    8.5446       1.0000         .10000E-03   10000.    
    31 'Normalizat'    1.0908       1.0000         .10000E-01   10.000    
    32 'Prefactor '    .85097       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=   5081.555     FROM MIGRAD    STATUS=CONVERGED    863 CALLS     4393 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    17.228       -.12014E-07** at limit **
   2  Prefactor     9.1293        9.4658        .15570E-06   -.74155E-05
   3  norm          .58218        .26785       -.44841E-07   -.13107E-02
   4  Prefactor     .26032        2.0294        .27398E-06   -.18155E-03
   5  Prefactor     2.5792        18.452        .43574E-05   -.11266E-04
   6  Prefactor     .10000E-03    17.599        .24771E-06** at limit **
   7  norm          .10000E-03    6.9709        .21573E-07** at limit **
   8  Prefactor     4.2702        8.5606        .18460E-05    .17505E-03
   9  norm          19.959        14.535        .25282E-06    .82541E-05
  10  Prefactor     16.532        12.650       -.56831E-07    .27465E-04
  11  Prefactor     1.5870        2.7770        .46265E-06   -.15494E-02
  12  Prefactor     8.5507        49.092       -.10520E-04   -.27890E-03
  13  Prefactor     .10000E-03    9.1645       -.87486E-07** at limit **
  14  norm          .10001E-03    2.9481        .37023E-05** at limit **
  15  Prefactor     .10000E-03    4.4796       -.55890E-07** at limit **
  16  Prefactor     .10000E-03    2.1141       -.74088E-07** at limit **
  17  Prefactor     12.709        60.227       -.27063E-05   -.20385E-03
  18  norm          2.6766        1.5924       -.13719E-07   -.24854E-02
  19  Prefactor     11.974        16.858        .31604E-06    .20868E-04
  20  Prefactor     .10000E-03    11.337       -.14825E-06** at limit **
  21  Prefactor     1.0636        1.1114        .83965E-08   -.32673E-05
  22  Prefactor     .10000E-03    88.610       -.26996E-06** at limit **
  23  Prefactor     .10000E-03    33.454       -.23592E-06** at limit **
  24  norm          3.3050        1.4837        .50641E-07    .31492E-04
  25  Prefactor     1.2215        4.0904        .24030E-06   -.37814E-04
  26  Prefactor     15.695        29.616        .61317E-06   -.38789E-04
  27  norm          .10000E-03    3.0865       -.12292E-06** at limit **
  28  Prefactor     .10000E-03    3.6986       -.96634E-07** at limit **
  29  Prefactor     4.4507        2.9498        .21704E-07   -.13085E-03
  30  Prefactor     8.5455        3.3022        .70344E-07    .37639E-03
  31  Normalizat    1.0909        .21082       -.12259E-05   -.70227E-03
  32  Prefactor     .85107        .22453        .14218E-06   -.55916E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 9.12933
  norm       = 0.582183
  Prefactor  = 0.260316
  Prefactor  = 2.5792
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 4.27022
  norm       = 19.9591
  Prefactor  = 16.5316
  Prefactor  = 1.58696
  Prefactor  = 8.55066
  Prefactor  = 0.0001
  norm       = 0.00010001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 12.7091
  norm       = 2.67659
  Prefactor  = 11.9741
  Prefactor  = 0.0001
  Prefactor  = 1.06365
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  norm       = 3.30501
  Prefactor  = 1.22145
  Prefactor  = 15.6948
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.4507
  Prefactor  = 8.54552
  Normalizat = 1.0909
  Prefactor  = 0.851071
 **********
 **   18 **HESSE 
 **********

 FCN=   5081.555     FROM HESSE     STATUS=OK           659 CALLS     5052 TOTAL
                     EDM=   .44E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    17.256        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     9.1293        9.5367        .13263E-03   -1.5104    
   3  norm          .58218        .26789        .23531E-04   -1.5555    
   4  Prefactor     .26032        10.318        .18350E-02   -1.5606    
   5  Prefactor     2.5792        19.607        .12700E-02   -1.5387    
   6  Prefactor     .10000E-03    17.714        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    6.9971        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     4.2702        8.6962        .97475E-03   -1.5295    
   9  norm          19.959        14.567        .89648E-04   -1.4814    
  10  Prefactor     16.532        12.636        .49249E-03   -1.4895    
  11  Prefactor     1.5870        2.7167        .13024E-03   -1.5456    
  12  Prefactor     8.5507        54.969        .13757E-03   -1.5123    
  13  Prefactor     .10000E-03    9.2085        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10001E-03    4.7164        .16633E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    4.4894        .14734E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    2.1299        .10118E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     12.709        61.539        .11237E-03   -1.4995    
  18  norm          2.6766        1.6044        .57635E-04   -1.5381    
  19  Prefactor     11.974        16.876        .11574E-03   -1.5016    
  20  Prefactor     .10000E-03    11.384        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     1.0636        1.1230        .74000E-04   -1.5502    
  22  Prefactor     .10000E-03    91.036        .38442E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    33.474        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          3.3050        1.4847        .55169E-04   -1.5344    
  25  Prefactor     1.2215        4.0575        .25315E-03   -1.5487    
  26  Prefactor     15.695        29.683        .10109E-03   -1.4915    
  27  norm          .10000E-03    3.1862        .24300E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    3.7185        .13387E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     4.4507        2.9353        .94321E-04   -1.5286    
  30  Prefactor     8.5455        3.3015        .75978E-04   -1.5123    
  31  Normalizat    1.0909        .24747        .23782E-03   -.90044    
  32  Prefactor     .85107        .26263        .30482E-03   -.97872    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.39163e-09
Minuit parameter uncertainties:
  1  5.02884e-05
  2  9.53825
  3  0.267889
  4  3.27781
  5  14.2286
  6  1.59658e-05
  7  5.56395e-06
  8  8.69876
  9  14.57
  10  12.638
  11  2.71687
  12  43.4182
  13  5.41098e-06
  14  0.00043056
  15  4.2647e-06
  16  4.49157e-06
  17  56.0256
  18  1.60442
  19  16.8831
  20  4.01816e-05
  21  1.12299
  22  0.000859055
  23  0.000160748
  24  1.48467
  25  4.05837
  26  29.7111
  27  9.00267e-06
  28  7.70734e-06
  29  2.93544
  30  3.30157
  31  0.24773
  32  0.263017
Done.

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

Extracting fit parameters...

4FGL J1135.1+3014
   Spectrum: PowerLaw
296    Prefactor:  1.000e-04  4.265e-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:  8.511e-01  2.630e-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.091e+00  2.477e-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.42e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.18e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/927309/likelihoodResults_263433601_263692801_4FGL_J1135.1+3014_daily_bin93.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) = 5081.55572765
delta logL = -0.00104990153341

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5081.55467777
delta logL = -1.95641405298e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10043E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.3596       1.0000          .0000       10.000    
     3 'Normalizat'    1.0910       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .85097       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=   5081.555     FROM MIGRAD    STATUS=CONVERGED     87 CALLS      239 TOTAL
                     EDM=   .19E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10186E-03    72.169        .14900E-02** at limit **
   2  Index         2.2823        5.2613        .50000        .26631E-04
   3  Normalizat    1.0909        .18735E-01    .23782E-03    .94175E-05
   4  Prefactor     .85107        .21564E-01    .30482E-03   -.11525E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000101861
  Index      = 2.28232
  Normalizat = 1.0909
  Prefactor  = 0.851072
 **********
 **   18 **HESSE 
 **********

 FCN=   5081.555     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      268 TOTAL
                     EDM=   .82E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10186E-03    287.80        .29801E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.2823        5.9997        .50000       -.57464    
   3  Normalizat    1.0909        .39741E-01    .95127E-05   -.90044    
   4  Prefactor     .85107        .45735E-01    .12193E-04   -.97872    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 8.1834e-08
Minuit parameter uncertainties:
  1  0.0465064
  2  793.865
  3  0.0397417
  4  0.0457371
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/927309': 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) = 5081.55467729
delta logL = 4.5527031034e-07

Extracting fit parameters...

4FGL J1135.1+3014
   Spectrum: PowerLaw
296    Prefactor:  1.019e-04  4.651e-02  1.000e-04  1.000e+04 ( 1.000e-13)
297        Index:  2.282e+00  7.939e+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.511e-01  4.574e-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.091e+00  3.974e-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/927309/cmap_HighResolution_263433601_263692801_4FGL_J1135.1+3014_daily_bin93.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.18e-03', job_status='DONE', photon_flux_upper_limit='5.42e-08', time_completed='2021-09-04 04:11:15.130224', job_id='927309', GAL2='0.85', fit_tolerance='1e-08', EG2='1.09', EG='1.09', time_epoch_completed='1630753875.13', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.85', dlogl='4.55e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.38' WHERE bin_id='93' AND source_name='4FGL J1135.1+3014' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 04:11:15 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0142>
Subject: Job 927309: <4FGL_J1135.1+3014_daily_bin93> in cluster <slac> Done

Job <4FGL_J1135.1+3014_daily_bin93> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sat Sep  4 03:56:26 2021
Job was executed on host(s) <bullet0142>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 03:56:28 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:56:28 2021
Terminated at Sat Sep  4 04:11:15 2021
Results reported at Sat Sep  4 04:11:15 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1135.1+3014_daily_bin93 173.788 30.2344 263433601 263692801 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 :                                   865.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             330.03 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   887 sec.
    Turnaround time :                            890 sec.

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

