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


Performing analysis on: 4FGL_J1135.1+3014_daily_bin1224
RA = 173.788, Dec = 30.2344
tmin = 556588801, tmax = 556848001
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='933969', job_status='RUN', time_executed='2021-09-04 04:18:35.658020', time_epoch_executed='1630754315.66' WHERE source_name='4FGL J1135.1+3014' and cadence='daily' and bin_id='1224'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/933969

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/933969/ft1_4FGL_J1135.1+3014_daily_bin1224.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/933969/ft2_4FGL_J1135.1+3014_daily_bin1224.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/933969/ft1_4FGL_J1135.1+3014_daily_bin1224.fits outfile=/scratch/kocevski/933969/ft1_filteredMKT_4FGL_J1135.1+3014_daily_bin1224.fits ra=173.788 dec=30.2344 rad=12.0 tmin=556588801.0 tmax=556848001.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.68
user 3.44
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/933969/ft1_filtered_4FGL_J1135.1+3014_daily_bin1224.fits" evtable="EVENTS" scfile=/scratch/kocevski/933969/ft2_4FGL_J1135.1+3014_daily_bin1224.fits sctable="SC_DATA" outfile=/scratch/kocevski/933969/ltcube_556588801_556848001_4FGL_J1135.1+3014_daily_bin1224.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/933969/ft2_4FGL_J1135.1+3014_daily_bin1224.fits
.....................!
real 11.75
user 11.39
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/933969/ft1_filtered_4FGL_J1135.1+3014_daily_bin1224.fits evtable="EVENTS" scfile=/scratch/kocevski/933969/ft2_4FGL_J1135.1+3014_daily_bin1224.fits sctable="SC_DATA" expcube=/scratch/kocevski/933969/ltcube_556588801_556848001_4FGL_J1135.1+3014_daily_bin1224.fits outfile=/scratch/kocevski/933969/expmap_556588801_556848001_4FGL_J1135.1+3014_daily_bin1224.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/933969/ltcube_556588801_556848001_4FGL_J1135.1+3014_daily_bin1224.fits
.....................!
real 190.81
user 185.74
sys 4.60

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/933969/ft1_filtered_4FGL_J1135.1+3014_daily_bin1224.fits scfile=/scratch/kocevski/933969/ft2_4FGL_J1135.1+3014_daily_bin1224.fits outfile=/scratch/kocevski/933969/cmap_556588801_556848001_4FGL_J1135.1+3014_daily_bin1224.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.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/933969/ft1_filtered_4FGL_J1135.1+3014_daily_bin1224.fits scfile=/scratch/kocevski/933969/ft2_4FGL_J1135.1+3014_daily_bin1224.fits outfile=/scratch/kocevski/933969/cmap_HighResolution_556588801_556848001_4FGL_J1135.1+3014_daily_bin1224.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.60
user 0.38
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.2528       1.0000         .10000E-03   10000.    
     2 'Prefactor '    5.9140       1.0000         .10000E-03   10000.    
     3 'norm      '    9999.4       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .15840       1.0000         .10000E-03   10000.    
     5 'Prefactor '    14.990       1.0000         .10000E-03   10000.    
     6 'Prefactor '    44.474       1.0000         .10000E-03   10000.    
     7 'norm      '    18.762       1.0000         .10000E-03   10000.    
     8 'Prefactor '    539.98       1.0000         .10000E-03   10000.    
     9 'norm      '    .22564E-02   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .12392E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    7.3276       1.0000         .10000E-03   10000.    
    12 'Prefactor '    12.955       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .30567E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .14088E-01   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10976E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .11902E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    8.4496       1.0000         .10000E-03   10000.    
    18 'norm      '    .10051E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10070E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    11.996       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10172E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .77532E-02   1.0000         .10000E-03   10000.    
    24 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    294.62       1.0000         .10000E-03   10000.    
    27 'norm      '    .10012E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .13940       1.0000         .10000E-03   10000.    
    29 'Prefactor '    15.826       1.0000         .10000E-03   10000.    
    30 'Prefactor '    9.3615       1.0000         .10000E-03   10000.    
    31 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
    32 'Prefactor '    .30844E-09   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=   130.5183     FROM MIGRAD    STATUS=CONVERGED    483 CALLS     3655 TOTAL
                     EDM=   .15E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor    10000.0        9398.5        .26563E-03** at limit **
   2  Prefactor    10000.0        6100.1       -.87424E-04** at limit **
   3  norm         10000.0        1006.3       -.13019E-04** at limit **
   4  Prefactor     .10000E-03    6663.1        .22195E-04** at limit **
   5  Prefactor    10000.0        9901.7        .26485E-03** at limit **
   6  Prefactor    10000.0        8696.7       -.98104E-04** at limit **
   7  norm         10000.0       10000.0        .46663E-04** at limit **
   8  Prefactor     506.22        522.88        .14236E-05   -.75776E-06
   9  norm          .10000E-03    469.45       -.17158E-04** at limit **
  10  Prefactor     .10000E-03    225.70       -.24086E-06** at limit **
  11  Prefactor     .10000E-03    1405.0        .11209E-04** at limit **
  12  Prefactor     .10017E-03    9985.8       -.41984E-04** at limit **
  13  Prefactor     .10000E-03    324.44        .11445E-05** at limit **
  14  norm          .10000E-03    542.66       -.16293E-06** at limit **
  15  Prefactor     .10000E-03    175.43        .44939E-06** at limit **
  16  Prefactor     .10000E-03    145.46       -.34512E-06** at limit **
  17  Prefactor     .10000E-03    7580.8        .21151E-04** at limit **
  18  norm          .10000E-03    42.808        .89720E-07** at limit **
  19  Prefactor     .10000E-03    93.351        .25824E-06** at limit **
  20  Prefactor     .10000E-03    67.233       -.36310E-06** at limit **
  21  Prefactor     12.018        13.142       -.27395E-06    .19140E-04
  22  Prefactor     .10000E-03    151.75       -.13124E-05** at limit **
  23  Prefactor     .10000E-03    1201.0       -.10633E-05** at limit **
  24  norm          .10000E-03    3.8104        .13273E-07** at limit **
  25  Prefactor     .10000E-03    15.089       -.89622E-07** at limit **
  26  Prefactor     260.67        290.75       -.95327E-06    .89235E-05
  27  norm          .10000E-03    20.197        .97778E-08** at limit **
  28  Prefactor     .10000E-03    145.85        .36999E-05** at limit **
  29  Prefactor     15.221        21.652       -.17353E-05    .32076E-04
  30  Prefactor     8.9839        12.404        .84418E-07    .56599E-05
  31  Normalizat    .10000E-01    .41173       -.38832E-05** at limit **
  32  Prefactor     .13878E-13    .40256        .30439E-05** at limit **
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 10000
  Prefactor  = 10000
  norm       = 10000
  Prefactor  = 0.0001
  Prefactor  = 10000
  Prefactor  = 10000
  norm       = 10000
  Prefactor  = 506.221
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100004
  Prefactor  = 0.000100169
  Prefactor  = 0.0001
  norm       = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100004
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 12.0182
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 260.673
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 15.2206
  Prefactor  = 8.98386
  Normalizat = 0.01
  Prefactor  = 1.38778e-14
 **********
 **   18 **HESSE 
 **********

 FCN=   130.5183     FROM HESSE     STATUS=OK           701 CALLS     4356 TOTAL
                     EDM=   .26E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor    10000.0        9776.5        .68436E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor    10000.0        6446.6        .41282E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm         10000.0        1005.5        .11514E-01    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    6570.9        .97861E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor    10000.0        9950.6        .25862E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor    10000.0        9029.5        .15029E-01    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm         10000.0        9994.4        .23116E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     506.22        530.00        .44245E-03   -1.1169    
   9  norm          .10000E-03    464.82        .10059E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    226.32        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    1290.5        .37042E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10017E-03    9919.2        .27822E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    321.00        .10691E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    522.01        .90933E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    174.51        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    143.62        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    7460.3        .34477E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    41.923        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    92.951        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    67.243        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     12.018        13.156        .28915E-02   -1.5014    
  22  Prefactor     .10000E-03    148.75        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    1174.9        .92653E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10000E-03    3.8120        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    15.066        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     260.67        292.08        .59138E-03   -1.2465    
  27  norm          .10000E-03    19.671        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    131.60        .96974E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     15.221        22.133        .25170E-02   -1.4927    
  30  Prefactor     8.9839        12.412        .32746E-02   -1.5108    
  31  Normalizat    .10000E-01    .40424        .10253       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Prefactor     .13878E-13    .39967        .10184       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.64004e-11
Minuit parameter uncertainties:
  1  0.254116
  2  0.0323751
  3  0.000589701
  4  0.000330745
  5  0.0468654
  6  0.00313726
  7  0.0273419
  8  535.303
  9  0.000652937
  10  0.000504572
  11  0.00454293
  12  0.118764
  13  0.000220693
  14  0.00163418
  15  0.000259683
  16  2.08917e-05
  17  0.00953215
  18  1.01458e-06
  19  0.000115622
  20  2.85648e-05
  21  13.1588
  22  8.50039e-05
  23  0.00294432
  24  1.07072e-06
  25  2.38115e-06
  26  293.738
  27  7.56377e-07
  28  0.000239269
  29  22.1447
  30  12.4153
  31  2.5738e-07
  32  1.50367e-07
Done.

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

Extracting fit parameters...

4FGL J1135.1+3014
   Spectrum: PowerLaw
296    Prefactor:  1.000e-04  2.597e-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:  1.388e-14  1.504e-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  2.574e-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: 2.67e-06 ph cm-2 s-1
Energy Flux Upper Limit: 2.06e-01 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/933969/likelihoodResults_556588801_556848001_4FGL_J1135.1+3014_daily_bin1224.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) = 130.518315061
delta logL = -2.7063287007e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 130.518289439
delta logL = -1.44167776739e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .40003E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.6782       1.0000          .0000       10.000    
     3 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    .67879E-09   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=   130.5183     FROM MIGRAD    STATUS=CONVERGED     86 CALLS      262 TOTAL
                     EDM=   .17E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10562E-03    164.36        .12045E-01** at limit **
   2  Index         2.6008        5.5188        .50000        .25647E-05
   3  Normalizat    .10000E-01    .10475E-02    .22565E-02** at limit **
   4  Prefactor      .0000        .10342E-02    .22451E-02** at limit **
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000105621
  Index      = 2.60076
  Normalizat = 0.01
  Prefactor  = 0
 **********
 **   18 **HESSE 
 **********

 FCN=   130.5183     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      291 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10562E-03    1370.4        .12732E-02   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.6008        5.3952        .50000       -.50048    
   3  Normalizat    .10000E-01    .92949E-02    .45129E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor      .0000        .91764E-02    .44901E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.49393e-09
Minuit parameter uncertainties:
  1  0.179822
  2  1222.91
  3  5.36119e-10
  4  5.62952e-10
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/933969': 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) = 130.51828812
delta logL = -1.2220834833e-07

Extracting fit parameters...

4FGL J1135.1+3014
   Spectrum: PowerLaw
296    Prefactor:  1.056e-04  1.798e-01  1.000e-04  1.000e+04 ( 1.000e-13)
297        Index:  2.601e+00  1.223e+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:  0.000e+00  5.630e-10  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  5.361e-10  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/933969/cmap_HighResolution_556588801_556848001_4FGL_J1135.1+3014_daily_bin1224.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.06e-01', job_status='DONE', photon_flux_upper_limit='2.67e-06', time_completed='2021-09-04 04:25:02.633135', job_id='933969', GAL2='0.00', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1630754702.63', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.00', dlogl='-1.22e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.38' WHERE bin_id='1224' AND source_name='4FGL J1135.1+3014' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 04:25:02 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0015>
Subject: Job 933969: <4FGL_J1135.1+3014_daily_bin1224> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1135.1+3014_daily_bin1224 173.788 30.2344 556588801 556848001 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 :                                   344.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             262.47 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   511 sec.
    Turnaround time :                            513 sec.

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

