/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 4 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 = 7430
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1135.1+3014_daily_bin321
RA = 173.788, Dec = 30.2344
tmin = 322531201, tmax = 322790401
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='927659', job_status='RUN', time_executed='2021-09-04 03:57:08.448974', time_epoch_executed='1630753028.45' WHERE source_name='4FGL J1135.1+3014' and cadence='daily' and bin_id='321'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/927659

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/927659/ft1_4FGL_J1135.1+3014_daily_bin321.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/927659/ft2_4FGL_J1135.1+3014_daily_bin321.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/927659/ft1_4FGL_J1135.1+3014_daily_bin321.fits outfile=/scratch/kocevski/927659/ft1_filteredMKT_4FGL_J1135.1+3014_daily_bin321.fits ra=173.788 dec=30.2344 rad=12.0 tmin=322531201.0 tmax=322790401.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 8.35
user 7.97
sys 0.31

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/927659/ft1_filtered_4FGL_J1135.1+3014_daily_bin321.fits" evtable="EVENTS" scfile=/scratch/kocevski/927659/ft2_4FGL_J1135.1+3014_daily_bin321.fits sctable="SC_DATA" outfile=/scratch/kocevski/927659/ltcube_322531201_322790401_4FGL_J1135.1+3014_daily_bin321.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/927659/ft2_4FGL_J1135.1+3014_daily_bin321.fits
.....................!
real 11.88
user 11.46
sys 0.38

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/927659/ft1_filtered_4FGL_J1135.1+3014_daily_bin321.fits evtable="EVENTS" scfile=/scratch/kocevski/927659/ft2_4FGL_J1135.1+3014_daily_bin321.fits sctable="SC_DATA" expcube=/scratch/kocevski/927659/ltcube_322531201_322790401_4FGL_J1135.1+3014_daily_bin321.fits outfile=/scratch/kocevski/927659/expmap_322531201_322790401_4FGL_J1135.1+3014_daily_bin321.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/927659/ltcube_322531201_322790401_4FGL_J1135.1+3014_daily_bin321.fits
.....................!
real 191.05
user 185.92
sys 4.71

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/927659/ft1_filtered_4FGL_J1135.1+3014_daily_bin321.fits scfile=/scratch/kocevski/927659/ft2_4FGL_J1135.1+3014_daily_bin321.fits outfile=/scratch/kocevski/927659/cmap_322531201_322790401_4FGL_J1135.1+3014_daily_bin321.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.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/927659/ft1_filtered_4FGL_J1135.1+3014_daily_bin321.fits scfile=/scratch/kocevski/927659/ft2_4FGL_J1135.1+3014_daily_bin321.fits outfile=/scratch/kocevski/927659/cmap_HighResolution_322531201_322790401_4FGL_J1135.1+3014_daily_bin321.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.40
sys 0.13

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    21.769       1.0000         .10000E-03   10000.    
     2 'Prefactor '    5.2755       1.0000         .10000E-03   10000.    
     3 'norm      '    2.1611       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10153E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    10.726       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10098E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10247E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    3.5732       1.0000         .10000E-03   10000.    
    12 'Prefactor '    50.441       1.0000         .10000E-03   10000.    
    13 'Prefactor '    7.2943       1.0000         .10000E-03   10000.    
    14 'norm      '    .10239E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10068E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .25953E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    1.9417       1.0000         .10000E-03   10000.    
    19 'Prefactor '    1.9125       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    2.3836       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    5.8081       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .41852E-02   1.0000         .10000E-03   10000.    
    26 'Prefactor '    24.113       1.0000         .10000E-03   10000.    
    27 'norm      '    1.9334       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .17211       1.0000         .10000E-03   10000.    
    29 'Prefactor '    2.3327       1.0000         .10000E-03   10000.    
    30 'Prefactor '    5.4572       1.0000         .10000E-03   10000.    
    31 'Normalizat'    1.0479       1.0000         .10000E-01   10.000    
    32 'Prefactor '    .73803       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=   5820.124     FROM MIGRAD    STATUS=CONVERGED    846 CALLS     4394 TOTAL
                     EDM=   .88E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     21.778        25.062        .82739E-05   -.12885E-04
   2  Prefactor     5.2742        12.342        .78986E-06   -.11944E-03
   3  norm          2.1611        .41995       -.50817E-07    .82578E-03
   4  Prefactor     .10000E-03    1.8815        .89935E-07** at limit **
   5  Prefactor     10.734        16.245        .29791E-05   -.34729E-04
   6  Prefactor     .10000E-03    7.6681       -.36307E-05** at limit **
   7  norm          .10000E-03    8.8804        .19296E-05** at limit **
   8  Prefactor     .10000E-03    2.5762       -.24352E-07** at limit **
   9  norm          .10000E-03    15.831        .20559E-05** at limit **
  10  Prefactor     .10000E-03    5.3552       -.39112E-05** at limit **
  11  Prefactor     3.5741        2.9393        .12270E-05   -.10244E-03
  12  Prefactor     50.430        44.790       -.10346E-04    .56162E-04
  13  Prefactor     7.2931        14.031        .16840E-05   -.78118E-04
  14  norm          .10000E-03    .77144        .72053E-07** at limit **
  15  Prefactor     .10000E-03    3.9484       -.23065E-06** at limit **
  16  Prefactor     .10000E-03    1.6332        .12841E-06** at limit **
  17  Prefactor     .10001E-03    125.76       -.51871E-04** at limit **
  18  norm          1.9409        .94313        .24951E-06    .23969E-02
  19  Prefactor     1.9197        46.057        .12386E-04   -.12255E-03
  20  Prefactor     .10000E-03    5.5635        .51869E-05** at limit **
  21  Prefactor     2.3848        1.6900       -.25821E-06   -.79783E-03
  22  Prefactor     .10000E-03    8.7437        .69180E-06** at limit **
  23  Prefactor     .10000E-03    20.602       -.64535E-05** at limit **
  24  norm          5.8087        1.6401       -.21602E-07   -.49938E-03
  25  Prefactor     .10035E-03    3.4773        .12221E-05** at limit **
  26  Prefactor     24.112        27.409       -.50211E-05   -.23775E-04
  27  norm          1.9335        1.7490        .86675E-07    .80750E-04
  28  Prefactor     .21911        6.2157        .28702E-06   -.20331E-03
  29  Prefactor     2.3327        1.6614        .71208E-07    .17676E-03
  30  Prefactor     5.4578        2.3944        .38545E-07   -.12295E-03
  31  Normalizat    1.0475        .18795       -.14009E-05   -.66861E-04
  32  Prefactor     .73830        .19707       -.31495E-07   -.12550E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 21.7779
  Prefactor  = 5.27419
  norm       = 2.16115
  Prefactor  = 0.0001
  Prefactor  = 10.7342
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.57413
  Prefactor  = 50.43
  Prefactor  = 7.29315
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100012
  norm       = 1.94091
  Prefactor  = 1.91973
  Prefactor  = 0.0001
  Prefactor  = 2.38481
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 5.8087
  Prefactor  = 0.00010035
  Prefactor  = 24.1116
  norm       = 1.9335
  Prefactor  = 0.219105
  Prefactor  = 2.33267
  Prefactor  = 5.45778
  Normalizat = 1.04746
  Prefactor  = 0.738301
 **********
 **   18 **HESSE 
 **********

 FCN=   5820.124     FROM HESSE     STATUS=OK           661 CALLS     5055 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     21.778        25.063        .85847E-04   -1.4774    
   2  Prefactor     5.2742        12.298        .17499E-03   -1.5249    
   3  norm          2.1611        .42175        .20335E-04   -1.5414    
   4  Prefactor     .10000E-03    1.9219        .20360E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     10.734        16.281        .12234E-03   -1.5053    
   6  Prefactor     .10000E-03    7.6912        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    8.9099        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    2.5840        .11958E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    16.142        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    5.3768        .17244E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     3.5741        2.9294        .98224E-04   -1.5330    
  12  Prefactor     50.430        44.706        .56466E-04   -1.4286    
  13  Prefactor     7.2931        14.029        .14851E-03   -1.5168    
  14  norm          .10000E-03    .77807        .65300E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    3.9529        .14801E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    1.6423        .95170E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10001E-03    127.88        .42900E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          1.9409        .94357        .49686E-04   -1.5429    
  19  Prefactor     1.9197        44.687        .30058E-03   -1.5431    
  20  Prefactor     .10000E-03    5.5780        .17587E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     2.3848        1.6736        .78247E-04   -1.5399    
  22  Prefactor     .10000E-03    8.7593        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    20.629        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          5.8087        1.6378        .49120E-04   -1.5226    
  25  Prefactor     .10035E-03    35.581        .26887E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     24.112        27.415        .81574E-04   -1.4725    
  27  norm          1.9335        1.7514        .92858E-04   -1.5430    
  28  Prefactor     .21911        46.953        .36096E-02   -1.5614    
  29  Prefactor     2.3327        1.6675        .80407E-04   -1.5402    
  30  Prefactor     5.4578        2.3924        .75214E-04   -1.5241    
  31  Normalizat    1.0475        .21765        .23601E-03   -.91457    
  32  Prefactor     .73830        .22808        .31395E-03   -1.0204    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.08265e-08
Minuit parameter uncertainties:
  1  25.0749
  2  12.3038
  3  0.421753
  4  6.8069e-06
  5  16.2879
  6  6.9566e-06
  7  3.85717e-05
  8  2.16843e-06
  9  2.74952e-05
  10  6.63472e-06
  11  2.92957
  12  44.7353
  13  14.035
  14  1.44283e-05
  15  7.69447e-06
  16  1.48771e-06
  17  0.00251678
  18  0.943575
  19  18.5395
  20  4.16023e-06
  21  1.67363
  22  2.09472e-05
  23  5.63922e-06
  24  1.63776
  25  0.00706615
  26  27.4289
  27  1.75143
  28  6.41851
  29  1.66753
  30  2.39243
  31  0.217834
  32  0.228368
Done.

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

Extracting fit parameters...

4FGL J1135.1+3014
   Spectrum: PowerLaw
296    Prefactor:  1.000e-04  7.694e-06  1.000e-04  1.000e+04 ( 1.000e-13)
297        Index:  2.376e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
298        Scale:  1.179e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
618    Prefactor:  7.383e-01  2.284e-01  0.000e+00  1.000e+01 ( 1.000e+00)
619        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
620        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
617   Normalization:  1.047e+00  2.178e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 173.788 30.234
Photon Flux Upper Limit: 4.98e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.84e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/927659/likelihoodResults_322531201_322790401_4FGL_J1135.1+3014_daily_bin321.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) = 5820.12538519
delta logL = -0.00119792868554

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5820.12418701
delta logL = 2.51149685937e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.3535       1.0000          .0000       10.000    
     3 'Normalizat'    1.0475       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .73830       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=   5820.124     FROM MIGRAD    STATUS=CONVERGED     91 CALLS      243 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10334E-03    3.9468        .15108E-01** at limit **
   2  Index         2.2481        7.5248        .50000        .38072E-04
   3  Normalizat    1.0475        .40893E-02    .23601E-03    .26975E-06
   4  Prefactor     .73830        .46600E-02    .31394E-03    .33062E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000103336
  Index      = 2.2481
  Normalizat = 1.04746
  Prefactor  = 0.738304
 **********
 **   18 **HESSE 
 **********

 FCN=   5820.124     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      272 TOTAL
                     EDM=   .24E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10334E-03    64.010        .15622E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.2481        5.1977        .50000       -.58282    
   3  Normalizat    1.0475        .16689E-01    .47203E-04   -.91457    
   4  Prefactor     .73830        .19018E-01    .12558E-04   -1.0204    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.42925e-08
Minuit parameter uncertainties:
  1  0.0292571
  2  367.624
  3  0.0166892
  4  0.0190184
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/927659': 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) = 5820.12418633
delta logL = 9.38243829296e-07

Extracting fit parameters...

4FGL J1135.1+3014
   Spectrum: PowerLaw
296    Prefactor:  1.033e-04  2.926e-02  1.000e-04  1.000e+04 ( 1.000e-13)
297        Index:  2.248e+00  3.676e+02  0.000e+00  1.000e+01 (-1.000e+00)
298        Scale:  1.179e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
618    Prefactor:  7.383e-01  1.902e-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.047e+00  1.669e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 173.788 30.234

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/927659/cmap_HighResolution_322531201_322790401_4FGL_J1135.1+3014_daily_bin321.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.84e-03', job_status='DONE', photon_flux_upper_limit='4.98e-08', time_completed='2021-09-04 04:13:20.483941', job_id='927659', GAL2='0.74', fit_tolerance='1e-08', EG2='1.05', EG='1.05', time_epoch_completed='1630754000.48', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.74', dlogl='9.38e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.38' WHERE bin_id='321' AND source_name='4FGL J1135.1+3014' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 04:13:20 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0134>
Subject: Job 927659: <4FGL_J1135.1+3014_daily_bin321> in cluster <slac> Done

Job <4FGL_J1135.1+3014_daily_bin321> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sat Sep  4 03:56:54 2021
Job was executed on host(s) <bullet0134>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 03:56:55 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Sep  4 03:56:55 2021
Terminated at Sat Sep  4 04:13:21 2021
Results reported at Sat Sep  4 04:13:21 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1135.1+3014_daily_bin321 173.788 30.2344 322531201 322790401 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 :                                   960.13 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             302.57 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   985 sec.
    Turnaround time :                            987 sec.

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

