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


Performing analysis on: 4FGL_J1135.1+3014_daily_bin1230
RA = 173.788, Dec = 30.2344
tmin = 558144001, tmax = 558403201
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='933978', job_status='RUN', time_executed='2021-09-04 04:20:00.559210', time_epoch_executed='1630754400.56' WHERE source_name='4FGL J1135.1+3014' and cadence='daily' and bin_id='1230'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/933978

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/933978/ft1_4FGL_J1135.1+3014_daily_bin1230.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/933978/ft2_4FGL_J1135.1+3014_daily_bin1230.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/933978/ft1_4FGL_J1135.1+3014_daily_bin1230.fits outfile=/scratch/kocevski/933978/ft1_filteredMKT_4FGL_J1135.1+3014_daily_bin1230.fits ra=173.788 dec=30.2344 rad=12.0 tmin=558144001.0 tmax=558403201.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 4.22
user 4.00
sys 0.20

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/933978/ft1_filtered_4FGL_J1135.1+3014_daily_bin1230.fits evtable="EVENTS" scfile=/scratch/kocevski/933978/ft2_4FGL_J1135.1+3014_daily_bin1230.fits sctable="SC_DATA" expcube=/scratch/kocevski/933978/ltcube_558144001_558403201_4FGL_J1135.1+3014_daily_bin1230.fits outfile=/scratch/kocevski/933978/expmap_558144001_558403201_4FGL_J1135.1+3014_daily_bin1230.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/933978/ltcube_558144001_558403201_4FGL_J1135.1+3014_daily_bin1230.fits
.....................!
real 191.23
user 185.94
sys 4.44

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/933978/ft1_filtered_4FGL_J1135.1+3014_daily_bin1230.fits scfile=/scratch/kocevski/933978/ft2_4FGL_J1135.1+3014_daily_bin1230.fits outfile=/scratch/kocevski/933978/cmap_558144001_558403201_4FGL_J1135.1+3014_daily_bin1230.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.60
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/933978/ft1_filtered_4FGL_J1135.1+3014_daily_bin1230.fits scfile=/scratch/kocevski/933978/ft2_4FGL_J1135.1+3014_daily_bin1230.fits outfile=/scratch/kocevski/933978/cmap_HighResolution_558144001_558403201_4FGL_J1135.1+3014_daily_bin1230.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.56
user 0.37
sys 0.15

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/933978/ft1_filtered_4FGL_J1135.1+3014_daily_bin1230.fits', '/scratch/kocevski/933978/ft2_4FGL_J1135.1+3014_daily_bin1230.fits', expMap='/scratch/kocevski/933978/expmap_558144001_558403201_4FGL_J1135.1+3014_daily_bin1230.fits', expCube='/scratch/kocevski/933978/ltcube_558144001_558403201_4FGL_J1135.1+3014_daily_bin1230.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/933978/Model_4FGL_J1135.1+3014_daily_bin1230.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/933978/ft1_filtered_4FGL_J1135.1+3014_daily_bin1230.fits
Spacecraft file(s): /scratch/kocevski/933978/ft2_4FGL_J1135.1+3014_daily_bin1230.fits
Exposure map: /scratch/kocevski/933978/expmap_558144001_558403201_4FGL_J1135.1+3014_daily_bin1230.fits
Exposure cube: /scratch/kocevski/933978/ltcube_558144001_558403201_4FGL_J1135.1+3014_daily_bin1230.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/933978/Model_4FGL_J1135.1+3014_daily_bin1230.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 383.38521135

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 381.578874262

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.0915       1.0000         .10000E-03   10000.    
     2 'Prefactor '    1.4750       1.0000         .10000E-03   10000.    
     3 'norm      '    1.8795       1.0000         .10000E-03   10000.    
     4 'Prefactor '    14.762       1.0000         .10000E-03   10000.    
     5 'Prefactor '    2.5710       1.0000         .10000E-03   10000.    
     6 'Prefactor '    1.0008       1.0000         .10000E-03   10000.    
     7 'norm      '    9.2038       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .13624       1.0000         .10000E-03   10000.    
     9 'norm      '    22.608       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .26700E-01   1.0000         .10000E-03   10000.    
    11 'Prefactor '    1.7869       1.0000         .10000E-03   10000.    
    12 'Prefactor '    7.1795       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .85462       1.0000         .10000E-03   10000.    
    14 'norm      '    1.6993       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .30373E-02   1.0000         .10000E-03   10000.    
    16 'Prefactor '    1.0532       1.0000         .10000E-03   10000.    
    17 'Prefactor '    9.7364       1.0000         .10000E-03   10000.    
    18 'norm      '    2.7046       1.0000         .10000E-03   10000.    
    19 'Prefactor '    4.3286       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .73100E-01   1.0000         .10000E-03   10000.    
    21 'Prefactor '    21.980       1.0000         .10000E-03   10000.    
    22 'Prefactor '    2.5084       1.0000         .10000E-03   10000.    
    23 'Prefactor '    8.1470       1.0000         .10000E-03   10000.    
    24 'norm      '    9.6672       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .22190E-02   1.0000         .10000E-03   10000.    
    26 'Prefactor '    1.5353       1.0000         .10000E-03   10000.    
    27 'norm      '    .14559E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .75971E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    .22526E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    5.3983       1.0000         .10000E-03   10000.    
    31 'Normalizat'    .10038E-01   1.0000         .10000E-01   10.000    
    32 'Prefactor '    1.9085       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6210E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   381.5668     FROM MIGRAD    STATUS=CONVERGED    283 CALLS      434 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.0915        1.1950         .0000         .0000    
   2  Prefactor     .10000E-03    719.84       -.69479E-04** at limit **
   3  norm          1.8795        1.0407         .0000         .0000    
   4  Prefactor     .10020E-03    6240.6       -.60682E-04** at limit **
   5  Prefactor     2.5710        1.0203         .0000         .0000    
   6  Prefactor     1.0008        1.3884         .0000         .0000    
   7  norm          9.2038        1.0015         .0000         .0000    
   8  Prefactor     .10000E-03    56.575       -.62609E-05** at limit **
   9  norm          34.924        114.36       -.32101E-04   -.15167E-04
  10  Prefactor     .10000E-03    46.131        .38436E-06** at limit **
  11  Prefactor     1.7869        1.0458         .0000         .0000    
  12  Prefactor     7.1795        1.0024         .0000         .0000    
  13  Prefactor     .10001E-03    513.19       -.30235E-04** at limit **
  14  norm          1.6993        1.0516         .0000         .0000    
  15  Prefactor     .10000E-03    203.39        .41700E-07** at limit **
  16  Prefactor     .10007E-03    1257.2       -.10741E-04** at limit **
  17  Prefactor     9.7364        1.0013         .0000         .0000    
  18  norm          2.7046        1.0182         .0000         .0000    
  19  Prefactor     .11654E-03    9399.2        .32560E-03** at limit **
  20  Prefactor     .10000E-03    59.912       -.26756E-05** at limit **
  21  Prefactor     22.081        18.674       -.81991E-05   -.76192E-03
  22  Prefactor     .10001E-03    435.36        .26957E-04** at limit **
  23  Prefactor     8.1470        1.0019         .0000         .0000    
  24  norm          9.7030        10.761       -.41200E-06   -.19205E-03
  25  Prefactor     .10000E-03    16.553       -.11389E-05** at limit **
  26  Prefactor     .10000E-03    401.03       -.36037E-04** at limit **
  27  norm          .10000E-03    7.3137        .19502E-06** at limit **
  28  Prefactor     .10000E-03    71.500        .64736E-05** at limit **
  29  Prefactor     .10000E-03    6.4393        .14631E-05** at limit **
  30  Prefactor     5.3794        8.5086        .30793E-06   -.36323E-04
  31  Normalizat    .10000E-01    9.4278       -.75936E-04** at limit **
  32  Prefactor     1.9092        .65094        .26349E-04   -.61214E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.09146
  Prefactor  = 0.000100001
  norm       = 1.87947
  Prefactor  = 0.000100199
  Prefactor  = 2.57096
  Prefactor  = 1.0008
  norm       = 9.20378
  Prefactor  = 0.0001
  norm       = 34.924
  Prefactor  = 0.0001
  Prefactor  = 1.78687
  Prefactor  = 7.17949
  Prefactor  = 0.00010001
  norm       = 1.6993
  Prefactor  = 0.000100004
  Prefactor  = 0.000100067
  Prefactor  = 9.73637
  norm       = 2.70459
  Prefactor  = 0.000116544
  Prefactor  = 0.0001
  Prefactor  = 22.0806
  Prefactor  = 0.000100009
  Prefactor  = 8.14703
  norm       = 9.70304
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.37942
  Normalizat = 0.01
  Prefactor  = 1.90925
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   381.5668     FROM HESSE     STATUS=FAILED         9 CALLS      443 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     586.23        584.82         .0000       -1.5499    
   2  Prefactor     .10000E-03    .19542       -.69479E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          1.8795        1.0407         .0000       -1.5434    
   4  Prefactor     .10020E-03    .16980E-01   -.60682E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     2.5710        1.0203         .0000       -1.5387    
   6  Prefactor     1.0008        1.3884         .0000       -1.5508    
   7  norm          9.2038        1.0015         .0000       -1.5101    
   8  Prefactor     .10000E-03    .23438       -.62609E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          34.924        1.2424       -.32101E-04   -1.4525    
  10  Prefactor     .10000E-03    .20957        .38436E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     1.7869        1.0458         .0000       -1.5441    
  12  Prefactor     7.1795        1.0024         .0000       -1.5172    
  13  Prefactor     .10001E-03    .39954       -.30235E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          1.6993        1.0516         .0000       -1.5447    
  15  Prefactor     .10000E-03    .24539        .41700E-07   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10007E-03    .36153       -.10741E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     9.7364        1.0013         .0000       -1.5084    
  18  norm          2.7046        1.0182         .0000       -1.5379    
  19  Prefactor     .11654E-03    .58573E-01    .32560E-03   -1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    .22006       -.26756E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     22.081        1.0025       -.81991E-05   -1.4768    
  22  Prefactor     .10001E-03    .10401        .26957E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     8.1470        1.0019         .0000       -1.5137    
  24  norm          9.7030        1.0032       -.41200E-06   -1.5085    
  25  Prefactor     .10000E-03    .25334       -.11389E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    .18521       -.36037E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          .10000E-03    .20571        .19502E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    .27386        .64736E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .10000E-03    .20571        .14631E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     5.3794        1.0026        .30793E-06   -1.5244    
  31  Normalizat    .10000E-01    .25506       -.75936E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Prefactor     1.9092        1.0235        .26349E-04   -.66639    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 1.73744e-09
Minuit parameter uncertainties:
  1  1.19499
  2  3.23174e-05
  3  1.04068
  4  0.000116143
  5  1.02029
  6  1.38847
  7  1.00148
  8  3.89481e-06
  9  1.24241
  10  2.22712e-06
  11  1.04578
  12  1.00244
  13  0.000125934
  14  1.05161
  15  6.5859e-05
  16  0.000311737
  17  1.00132
  18  1.0182
  19  0.00196877
  20  8.36934e-07
  21  1.00255
  22  6.145e-05
  23  1.00189
  24  1.0032
  25  6.5178e-07
  26  4.58119e-06
  27  2.54784e-07
  28  1.24383e-05
  29  1.22297e-06
  30  1.0026
  31  7.04467e-05
  32  1.03539
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 381.566784771

Extracting fit parameters...

4FGL J1135.1+3014
   Spectrum: PowerLaw
296    Prefactor:  1.000e-04  6.586e-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:  1.909e+00  1.035e+00  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.000e-02  7.045e-05  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 173.788 30.234
Photon Flux Upper Limit: 2.61e-06 ph cm-2 s-1
Energy Flux Upper Limit: 2.01e-01 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/933978/likelihoodResults_558144001_558403201_4FGL_J1135.1+3014_daily_bin1230.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) = 381.56680719
delta logL = -2.24193461804e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 381.566785018
delta logL = -2.46800880177e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .12379E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.7700       1.0000          .0000       10.000    
     3 'Normalizat'    .10001E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.9093       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=   381.5668     FROM MIGRAD    STATUS=CONVERGED    101 CALLS      292 TOTAL
                     EDM=   .53E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10403E-03    129.23        .18142E-01** at limit **
   2  Index         2.6771        8.3565        .50000        .17785E-05
   3  Normalizat    .10000E-01    .25567E-01    .12402E-01** at limit **
   4  Prefactor     1.9093        .23004E-01    .26962E-03   -.11970E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000104027
  Index      = 2.67707
  Normalizat = 0.01
  Prefactor  = 1.90925
 **********
 **   18 **HESSE 
 **********

 FCN=   381.5668     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      321 TOTAL
                     EDM=   .40E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10403E-03    940.88        .23467E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.6771        8.5658        .50000       -.48317    
   3  Normalizat    .10000E-01    .19651        .24803E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     1.9093        .63293E-01    .53925E-04   -.66639    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.97469e-10
Minuit parameter uncertainties:
  1  0.125123
  2  1046.82
  3  1.32896e-05
  4  0.0632953
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/933978': 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) = 381.566784871
delta logL = -9.98736595648e-08

Extracting fit parameters...

4FGL J1135.1+3014
   Spectrum: PowerLaw
296    Prefactor:  1.040e-04  1.251e-01  1.000e-04  1.000e+04 ( 1.000e-13)
297        Index:  2.677e+00  1.047e+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.909e+00  6.330e-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.000e-02  1.329e-05  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/933978/cmap_HighResolution_558144001_558403201_4FGL_J1135.1+3014_daily_bin1230.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.01e-01', job_status='DONE', photon_flux_upper_limit='2.61e-06', time_completed='2021-09-04 04:26:50.208145', job_id='933978', GAL2='1.91', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1630754810.21', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='101', GAL='1.91', dlogl='-9.99e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.38' WHERE bin_id='1230' AND source_name='4FGL J1135.1+3014' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 04:26:50 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0244>
Subject: Job 933978: <4FGL_J1135.1+3014_daily_bin1230> in cluster <slac> Done

Job <4FGL_J1135.1+3014_daily_bin1230> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Sat Sep  4 04:16:31 2021
Job was executed on host(s) <bullet0244>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 04:16:32 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:32 2021
Terminated at Sat Sep  4 04:26:50 2021
Results reported at Sat Sep  4 04:26:50 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1135.1+3014_daily_bin1230 173.788 30.2344 558144001 558403201 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 :                                   333.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             277.74 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   618 sec.
    Turnaround time :                            619 sec.

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

