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


Performing analysis on: 4FGL_J1135.1+3014_daily_bin1472
RA = 173.788, Dec = 30.2344
tmin = 620870401, tmax = 621129601
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='935531', job_status='RUN', time_executed='2021-09-04 04:23:26.196106', time_epoch_executed='1630754606.2' WHERE source_name='4FGL J1135.1+3014' and cadence='daily' and bin_id='1472'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/935531

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/935531/ft1_4FGL_J1135.1+3014_daily_bin1472.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/935531/ft2_4FGL_J1135.1+3014_daily_bin1472.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/935531/ft1_4FGL_J1135.1+3014_daily_bin1472.fits outfile=/scratch/kocevski/935531/ft1_filteredMKT_4FGL_J1135.1+3014_daily_bin1472.fits ra=173.788 dec=30.2344 rad=12.0 tmin=620870401.0 tmax=621129601.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.22
user 3.01
sys 0.18

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/935531/ft1_filtered_4FGL_J1135.1+3014_daily_bin1472.fits evtable="EVENTS" scfile=/scratch/kocevski/935531/ft2_4FGL_J1135.1+3014_daily_bin1472.fits sctable="SC_DATA" expcube=/scratch/kocevski/935531/ltcube_620870401_621129601_4FGL_J1135.1+3014_daily_bin1472.fits outfile=/scratch/kocevski/935531/expmap_620870401_621129601_4FGL_J1135.1+3014_daily_bin1472.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/935531/ltcube_620870401_621129601_4FGL_J1135.1+3014_daily_bin1472.fits
.....................!
real 191.65
user 185.49
sys 4.09

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/935531/ft1_filtered_4FGL_J1135.1+3014_daily_bin1472.fits scfile=/scratch/kocevski/935531/ft2_4FGL_J1135.1+3014_daily_bin1472.fits outfile=/scratch/kocevski/935531/cmap_620870401_621129601_4FGL_J1135.1+3014_daily_bin1472.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.56
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/935531/ft1_filtered_4FGL_J1135.1+3014_daily_bin1472.fits scfile=/scratch/kocevski/935531/ft2_4FGL_J1135.1+3014_daily_bin1472.fits outfile=/scratch/kocevski/935531/cmap_HighResolution_620870401_621129601_4FGL_J1135.1+3014_daily_bin1472.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.54
user 0.39
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10775E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .15376E-02   1.0000         .10000E-03   10000.    
     3 'norm      '    4.9248       1.0000         .10000E-03   10000.    
     4 'Prefactor '    9999.9       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .60358E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     7 'norm      '   10000.0       1.0000         .10000E-03   10000.    
     8 'Prefactor '    10000.       1.0000         .10000E-03   10000.    
     9 'norm      '    10000.       1.0000         .10000E-03   10000.    
    10 'Prefactor '    2.4477       1.0000         .10000E-03   10000.    
    11 'Prefactor '   10000.0       1.0000         .10000E-03   10000.    
    12 'Prefactor '   10000.0       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .30359E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10632E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10960E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .79308E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10484E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .11226E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10167E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .16926E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    10.302       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .16008E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    5.6453       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10536E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    7.2391       1.0000         .10000E-03   10000.    
    28 'Prefactor '    17.406       1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    9.7745       1.0000         .10000E-03   10000.    
    31 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
    32 'Prefactor '    .11752E-05   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=   306.9591     FROM MIGRAD    STATUS=CONVERGED    846 CALLS     5792 TOTAL
                     EDM=   .84E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    204.27        .36144E-07** at limit **
   2  Prefactor     .10000E-03    6174.2       -.80900E-08** at limit **
   3  norm          4.9274        4.9301       -.26967E-08    .61060E-06
   4  Prefactor    10000.0        6407.4        .33983E-06** at limit **
   5  Prefactor     .10000E-03    907.10        .15472E-07** at limit **
   6  Prefactor     .10000E-03    503.50        .15581E-07** at limit **
   7  norm         10000.0        7302.7       -.32654E-05** at limit **
   8  Prefactor    10000.0        7832.0        .12834E-05** at limit **
   9  norm         10000.0        1986.0        .66852E-06** at limit **
  10  Prefactor     .10023E-03    5464.9       -.34789E-03** at limit **
  11  Prefactor     10000.        586.08        .21697E-07** at limit **
  12  Prefactor    10000.0        9776.6        .56483E-06** at limit **
  13  Prefactor     .10000E-03    1670.3       -.10160E-06** at limit **
  14  norm          .10000E-03    1030.5        .11381E-06** at limit **
  15  Prefactor     .10000E-03    712.15        .26184E-07** at limit **
  16  Prefactor     .10000E-03    455.19       -.45945E-07** at limit **
  17  Prefactor     .10000E-03    1005.5        .96515E-07** at limit **
  18  norm          .10000E-03    12.315        .15978E-07** at limit **
  19  Prefactor     .10000E-03    134.57        .25691E-07** at limit **
  20  Prefactor     .10000E-03    400.36       -.11750E-04** at limit **
  21  Prefactor     10.312        15.680       -.37746E-05    .41050E-04
  22  Prefactor     .10000E-03    88.108        .96771E-09** at limit **
  23  Prefactor     .10000E-03    245.37       -.26935E-07** at limit **
  24  norm          5.6480        5.5536       -.15710E-06    .39464E-04
  25  Prefactor     .10000E-03    13.294       -.53484E-06** at limit **
  26  Prefactor     .10000E-03    44.565        .25857E-07** at limit **
  27  norm          7.2414        6.5395        .42291E-08    .26942E-04
  28  Prefactor     17.404        16.479        .35944E-07    .90356E-05
  29  Prefactor     .10000E-03    3.0337        .11508E-07** at limit **
  30  Prefactor     9.7732        8.1807       -.19747E-07    .13459E-03
  31  Normalizat    .10000E-01    .13441       -.59619E-06** at limit **
  32  Prefactor     .27003E-09    .86532       -.35990E-05** at limit **
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 4.92745
  Prefactor  = 10000
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 10000
  Prefactor  = 10000
  norm       = 10000
  Prefactor  = 0.000100229
  Prefactor  = 10000
  Prefactor  = 10000
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10.312
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 5.64797
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 7.24137
  Prefactor  = 17.4045
  Prefactor  = 0.0001
  Prefactor  = 9.7732
  Normalizat = 0.01
  Prefactor  = 2.7003e-10
 **********
 **   18 **HESSE 
 **********

 FCN=   306.9591     FROM HESSE     STATUS=OK           637 CALLS     6429 TOTAL
                     EDM=   .26E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    204.29        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    6174.2        .20451E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          4.9274        4.9365        .38044E-04   -1.5264    
   4  Prefactor    10000.0        6407.9        .18823E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    907.10        .21061E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    503.50        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm         10000.0        7303.4        .18283E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor    10000.0        7832.0        .18142E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm         10000.0        1986.4        .18142E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10023E-03    5483.8        .13074E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     10000.        586.09        .19877E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor    10000.0        9776.9        .18279E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    1670.3        .21385E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    1030.6        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    712.25        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    455.19        .20907E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    1005.6        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    12.322        .60103E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    134.58        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    400.42        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     10.312        15.618        .83196E-04   -1.5066    
  22  Prefactor     .10000E-03    88.108        .16097E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    245.38        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          5.6480        5.5468        .39816E-04   -1.5233    
  25  Prefactor     .10000E-03    13.286        .62420E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    44.565        .11440E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          7.2414        6.5526        .40594E-04   -1.5170    
  28  Prefactor     17.404        16.467        .67655E-04   -1.4873    
  29  Prefactor     .10000E-03    3.0362        .29811E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     9.7732        7.5637        .40242E-04   -1.5083    
  31  Normalizat    .10000E-01    .13464        .19848E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Prefactor     .27003E-09    1.0855        .92591E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.60883e-10
Minuit parameter uncertainties:
  1  5.11267e-05
  2  3.12624e-05
  3  4.93687
  4  0.00169549
  5  6.05869e-05
  6  3.7516e-05
  7  0.00252426
  8  0.0022169
  9  0.000145606
  10  0.27068
  11  3.70314e-05
  12  0.00780988
  13  0.000161445
  14  0.000357868
  15  0.00031818
  16  7.57488e-06
  17  0.00031672
  18  9.47787e-07
  19  0.000123587
  20  0.000579183
  21  15.6241
  22  2.55501e-06
  23  5.56196e-05
  24  5.54734
  25  1.88457e-05
  26  1.10571e-06
  27  6.55329
  28  16.4709
  29  9.88829e-07
  30  7.56448
  31  6.7821e-07
  32  3.48927e-05
Done.

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

Extracting fit parameters...

4FGL J1135.1+3014
   Spectrum: PowerLaw
296    Prefactor:  1.000e-04  3.182e-04  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:  2.700e-10  3.489e-05  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  6.782e-07  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/935531/likelihoodResults_620870401_621129601_4FGL_J1135.1+3014_daily_bin1472.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) = 306.959130799
delta logL = -9.80023054353e-06

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 306.959130051
delta logL = -9.05243132365e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .96310E-02   1.0000         .10000E-03   10000.    
     2 'Index     '    2.3762       1.0000          .0000       10.000    
     3 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    .56837E-05   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=   306.9591     FROM MIGRAD    STATUS=CONVERGED     94 CALLS      245 TOTAL
                     EDM=   .25E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10634E-03    1549.7        .18143E-01** at limit **
   2  Index         2.2020        5.9038        .50000        .17782E-06
   3  Normalizat    .10000E-01    .53337E-03    .19848E-02** at limit **
   4  Prefactor     .41578E-12    .44410E-02    .92592E-02** at limit **
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.00010634
  Index      = 2.20198
  Normalizat = 0.01
  Prefactor  = 4.15779e-13
 **********
 **   18 **HESSE 
 **********

 FCN=   306.9591     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      274 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10634E-03    8018.2        .36287E-02   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.2020        8.7791        .50000       -.59391    
   3  Normalizat    .10000E-01    .26191E-02    .39696E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .41578E-12    .21827E-01    .18518E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.20573e-09
Minuit parameter uncertainties:
  1  0.448117
  2  5509.43
  3  7.29734e-09
  4  1.90553e-07
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/935531': 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) = 306.959120994
delta logL = 4.73994532513e-09

Extracting fit parameters...

4FGL J1135.1+3014
   Spectrum: PowerLaw
296    Prefactor:  1.063e-04  4.481e-01  1.000e-04  1.000e+04 ( 1.000e-13)
297        Index:  2.202e+00  5.509e+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:  4.158e-13  1.906e-07  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.297e-09  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/935531/cmap_HighResolution_620870401_621129601_4FGL_J1135.1+3014_daily_bin1472.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.01e-01', job_status='DONE', photon_flux_upper_limit='1.04e-05', time_completed='2021-09-04 04:29:45.736810', job_id='935531', GAL2='0.00', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1630754985.74', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.00', dlogl='4.74e-09', ts2='-0.00', photon_index_error='0.00', photon_index='2.38' WHERE bin_id='1472' AND source_name='4FGL J1135.1+3014' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 04:29:45 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0230>
Subject: Job 935531: <4FGL_J1135.1+3014_daily_bin1472> in cluster <slac> Done

Job <4FGL_J1135.1+3014_daily_bin1472> was submitted from host <rhel6-64o> by user <kocevski> in cluster <slac> at Sat Sep  4 04:21:22 2021
Job was executed on host(s) <bullet0230>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 04:21: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:21:24 2021
Terminated at Sat Sep  4 04:29:46 2021
Results reported at Sat Sep  4 04:29:46 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1135.1+3014_daily_bin1472 173.788 30.2344 620870401 621129601 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 :                                   370.26 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             221.47 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   501 sec.
    Turnaround time :                            504 sec.

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

