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


Performing analysis on: 4FGL_J1135.1+3014_daily_bin733
RA = 173.788, Dec = 30.2344
tmin = 429321601, tmax = 429580801
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='930650', job_status='RUN', time_executed='2021-09-04 04:06:45.510153', time_epoch_executed='1630753605.51' WHERE source_name='4FGL J1135.1+3014' and cadence='daily' and bin_id='733'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/930650

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/930650/ft1_4FGL_J1135.1+3014_daily_bin733.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/930650/ft2_4FGL_J1135.1+3014_daily_bin733.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/930650/ft1_4FGL_J1135.1+3014_daily_bin733.fits outfile=/scratch/kocevski/930650/ft1_filteredMKT_4FGL_J1135.1+3014_daily_bin733.fits ra=173.788 dec=30.2344 rad=12.0 tmin=429321601.0 tmax=429580801.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 6.87
user 6.26
sys 0.28

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/930650/ft1_filtered_4FGL_J1135.1+3014_daily_bin733.fits evtable="EVENTS" scfile=/scratch/kocevski/930650/ft2_4FGL_J1135.1+3014_daily_bin733.fits sctable="SC_DATA" expcube=/scratch/kocevski/930650/ltcube_429321601_429580801_4FGL_J1135.1+3014_daily_bin733.fits outfile=/scratch/kocevski/930650/expmap_429321601_429580801_4FGL_J1135.1+3014_daily_bin733.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/930650/ltcube_429321601_429580801_4FGL_J1135.1+3014_daily_bin733.fits
.....................!
real 191.89
user 185.61
sys 5.78

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/930650/ft1_filtered_4FGL_J1135.1+3014_daily_bin733.fits scfile=/scratch/kocevski/930650/ft2_4FGL_J1135.1+3014_daily_bin733.fits outfile=/scratch/kocevski/930650/cmap_429321601_429580801_4FGL_J1135.1+3014_daily_bin733.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.55
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/930650/ft1_filtered_4FGL_J1135.1+3014_daily_bin733.fits scfile=/scratch/kocevski/930650/ft2_4FGL_J1135.1+3014_daily_bin733.fits outfile=/scratch/kocevski/930650/cmap_HighResolution_429321601_429580801_4FGL_J1135.1+3014_daily_bin733.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.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10080E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    18.940       1.0000         .10000E-03   10000.    
     3 'norm      '    .32992       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10034E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10010E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10088E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    3.3938       1.0000         .10000E-03   10000.    
    10 'Prefactor '    36.550       1.0000         .10000E-03   10000.    
    11 'Prefactor '    3.5253       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    8.0250       1.0000         .10000E-03   10000.    
    14 'norm      '    .13066E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    6.0225       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10064E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    16.342       1.0000         .10000E-03   10000.    
    21 'Prefactor '    1.5190       1.0000         .10000E-03   10000.    
    22 'Prefactor '    5.1402       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    3.2116       1.0000         .10000E-03   10000.    
    26 'Prefactor '    24.934       1.0000         .10000E-03   10000.    
    27 'norm      '    12.946       1.0000         .10000E-03   10000.    
    28 'Prefactor '    6.1851       1.0000         .10000E-03   10000.    
    29 'Prefactor '    1.8805       1.0000         .10000E-03   10000.    
    30 'Prefactor '    1.9982       1.0000         .10000E-03   10000.    
    31 'Normalizat'    .75623       1.0000         .10000E-01   10.000    
    32 'Prefactor '    1.2909       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=   3982.012     FROM MIGRAD    STATUS=CONVERGED    827 CALLS     4339 TOTAL
                     EDM=   .16E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    38.072       -.54356E-06** at limit **
   2  Prefactor     18.939        17.443        .35344E-06   -.90186E-05
   3  norm          .32994        .32970        .40198E-07    .12553E-03
   4  Prefactor     .10000E-03    1.4902        .23586E-07** at limit **
   5  Prefactor     .10000E-03    13.139        .46879E-06** at limit **
   6  Prefactor     .10000E-03    11.086       -.13340E-05** at limit **
   7  norm          .10000E-03    9.8176       -.71958E-06** at limit **
   8  Prefactor     .10000E-03    13.710        .11681E-05** at limit **
   9  norm          3.3922        20.717        .10815E-05   -.78831E-05
  10  Prefactor     36.554        23.135       -.13029E-06   -.47532E-04
  11  Prefactor     3.5237        3.2132        .49797E-07   -.96495E-04
  12  Prefactor     .10000E-03    24.973       -.20055E-05** at limit **
  13  Prefactor     8.0216        14.346        .10581E-06   -.18246E-04
  14  norm          .10000E-03    2.4568        .33504E-06** at limit **
  15  Prefactor     .10000E-03    5.9303       -.65378E-07** at limit **
  16  Prefactor     .10000E-03    8.7618        .74174E-06** at limit **
  17  Prefactor     .10000E-03    36.433       -.17985E-05** at limit **
  18  norm          6.0214        2.1179        .32850E-07   -.17251E-03
  19  Prefactor     .10000E-03    19.927        .11416E-05** at limit **
  20  Prefactor     16.336        28.554       -.15967E-06   -.10112E-04
  21  Prefactor     1.5190        3.0792        .14568E-06   -.33757E-04
  22  Prefactor     5.1316        42.571        .12308E-05   -.21153E-04
  23  Prefactor     .10000E-03    43.300        .35809E-05** at limit **
  24  norm          .10000E-03    .40204       -.59882E-07** at limit **
  25  Prefactor     3.2096        6.8750        .31697E-05   -.46330E-04
  26  Prefactor     24.901        46.108        .60080E-05   -.11094E-05
  27  norm          12.946        4.8542       -.37166E-07   -.38743E-04
  28  Prefactor     6.1841        8.8655        .29464E-06   -.35349E-04
  29  Prefactor     1.8799        2.8142        .28340E-07   -.26723E-04
  30  Prefactor     1.9983        1.8258        .30587E-07   -.22831E-04
  31  Normalizat    .75627        .24611       -.24607E-05   -.63095E-04
  32  Prefactor     1.2908        .27185       -.25622E-06   -.78278E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 18.9394
  norm       = 0.329938
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 3.39218
  Prefactor  = 36.5538
  Prefactor  = 3.52369
  Prefactor  = 0.0001
  Prefactor  = 8.02156
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 6.02136
  Prefactor  = 0.0001
  Prefactor  = 16.3364
  Prefactor  = 1.51899
  Prefactor  = 5.13158
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 3.20956
  Prefactor  = 24.9011
  norm       = 12.9461
  Prefactor  = 6.18415
  Prefactor  = 1.87986
  Prefactor  = 1.99831
  Normalizat = 0.75627
  Prefactor  = 1.29085
 **********
 **   18 **HESSE 
 **********

 FCN=   3982.012     FROM HESSE     STATUS=OK           659 CALLS     4998 TOTAL
                     EDM=   .28E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    38.205        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     18.939        17.455        .92030E-04   -1.4837    
   3  norm          .32994        .32392        .35030E-04   -1.5593    
   4  Prefactor     .10000E-03    1.4955        .75183E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    13.207        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    11.086        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    9.8235        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    13.922        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          3.3922        20.672        .21962E-03   -1.5340    
  10  Prefactor     36.554        23.140        .66290E-04   -1.4498    
  11  Prefactor     3.5237        3.1904        .10331E-03   -1.5333    
  12  Prefactor     .10000E-03    24.975        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     8.0216        14.336        .14153E-03   -1.5141    
  14  norm          .10000E-03    4.7276        .18963E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    5.9338        .15007E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    8.9657        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    36.445        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          6.0214        2.1131        .52026E-04   -1.5217    
  19  Prefactor     .10000E-03    20.009        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     16.336        28.544        .99075E-04   -1.4899    
  21  Prefactor     1.5190        3.0359        .14347E-03   -1.5461    
  22  Prefactor     5.1316        42.303        .17732E-03   -1.5255    
  23  Prefactor     .10000E-03    43.324        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10000E-03    .41120        .39047E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     3.2096        6.8848        .11125E-02   -1.5350    
  26  Prefactor     24.901        46.129        .80223E-04   -1.4710    
  27  norm          12.946        4.8439        .74790E-04   -1.4988    
  28  Prefactor     6.1841        8.8541        .80710E-03   -1.5211    
  29  Prefactor     1.8799        2.7877        .11510E-03   -1.5434    
  30  Prefactor     1.9983        1.8257        .78255E-04   -1.5425    
  31  Normalizat    .75627        .28715        .30378E-03   -1.0171    
  32  Prefactor     1.2908        .32196        .27664E-03   -.83580    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.83365e-11
Minuit parameter uncertainties:
  1  4.87239e-05
  2  17.4598
  3  0.323925
  4  1.53769e-06
  5  2.06786e-05
  6  4.36378e-07
  7  6.37529e-06
  8  2.90228e-05
  9  16.7565
  10  23.1458
  11  3.19054
  12  1.1103e-05
  13  14.3425
  14  2.951e-06
  15  2.81426e-07
  16  1.64707e-05
  17  7.73735e-06
  18  2.11312
  19  3.01889e-06
  20  28.5677
  21  3.03616
  22  29.4955
  23  3.66514e-05
  24  9.92857e-07
  25  6.88645
  26  46.1953
  27  4.844
  28  8.85593
  29  2.78786
  30  1.82577
  31  0.287723
  32  0.32246
Done.

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

Extracting fit parameters...

4FGL J1135.1+3014
   Spectrum: PowerLaw
296    Prefactor:  1.000e-04  2.814e-07  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.291e+00  3.225e-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:  7.563e-01  2.877e-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.74e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.97e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/930650/likelihoodResults_429321601_429580801_4FGL_J1135.1+3014_daily_bin733.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.01249711
delta logL = -0.000783698168561

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 3982.0117142
delta logL = -7.8151742855e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10822E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.3506       1.0000          .0000       10.000    
     3 'Normalizat'    .75649       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2906       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=   3982.012     FROM MIGRAD    STATUS=CONVERGED     91 CALLS      248 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10366E-03    7.0235        .15399E-01** at limit **
   2  Index         2.2507        6.1231        .50000        .28896E-04
   3  Normalizat    .75627        .59214E-02    .30377E-03    .23278E-04
   4  Prefactor     1.2908        .68911E-02    .27664E-03    .11651E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.00010366
  Index      = 2.25073
  Normalizat = 0.756271
  Prefactor  = 1.29085
 **********
 **   18 **HESSE 
 **********

 FCN=   3982.012     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      277 TOTAL
                     EDM=   .14E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10366E-03    84.232        .15943E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.2507        6.6290        .50000       -.58219    
   3  Normalizat    .75627        .20757E-01    .12151E-04   -1.0171    
   4  Prefactor     1.2908        .24156E-01    .11065E-04   -.83580    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.40769e-08
Minuit parameter uncertainties:
  1  0.0351641
  2  378.481
  3  0.020757
  4  0.0241563
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/930650': 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.01171272
delta logL = 6.96943970979e-07

Extracting fit parameters...

4FGL J1135.1+3014
   Spectrum: PowerLaw
296    Prefactor:  1.037e-04  3.516e-02  1.000e-04  1.000e+04 ( 1.000e-13)
297        Index:  2.251e+00  3.785e+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:  1.291e+00  2.416e-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:  7.563e-01  2.076e-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/930650/cmap_HighResolution_429321601_429580801_4FGL_J1135.1+3014_daily_bin733.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.97e-03', job_status='DONE', photon_flux_upper_limit='7.74e-08', time_completed='2021-09-04 04:19:07.489784', job_id='930650', GAL2='1.29', fit_tolerance='1e-08', EG2='0.76', EG='0.76', time_epoch_completed='1630754347.49', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.29', dlogl='6.97e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.38' WHERE bin_id='733' AND source_name='4FGL J1135.1+3014' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 04:19:07 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0044>
Subject: Job 930650: <4FGL_J1135.1+3014_daily_bin733> in cluster <slac> Done

Job <4FGL_J1135.1+3014_daily_bin733> was submitted from host <rhel6-64c> by user <kocevski> in cluster <slac> at Sat Sep  4 04:06:25 2021
Job was executed on host(s) <bullet0044>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 04:06:26 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:26 2021
Terminated at Sat Sep  4 04:19:07 2021
Results reported at Sat Sep  4 04:19:07 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1135.1+3014_daily_bin733 173.788 30.2344 429321601 429580801 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 :                                   738.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             279.96 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   761 sec.
    Turnaround time :                            762 sec.

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

