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


Performing analysis on: 4FGL_J1135.1+3014_daily_bin615
RA = 173.788, Dec = 30.2344
tmin = 398736001, tmax = 398995201
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='929258', job_status='RUN', time_executed='2021-09-04 04:02:01.241982', time_epoch_executed='1630753321.24' WHERE source_name='4FGL J1135.1+3014' and cadence='daily' and bin_id='615'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/929258

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/929258/ft1_4FGL_J1135.1+3014_daily_bin615.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/929258/ft2_4FGL_J1135.1+3014_daily_bin615.fits


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

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

Done.
real 6.13
user 5.83
sys 0.26

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/929258/ft1_filtered_4FGL_J1135.1+3014_daily_bin615.fits" evtable="EVENTS" scfile=/scratch/kocevski/929258/ft2_4FGL_J1135.1+3014_daily_bin615.fits sctable="SC_DATA" outfile=/scratch/kocevski/929258/ltcube_398736001_398995201_4FGL_J1135.1+3014_daily_bin615.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/929258/ft2_4FGL_J1135.1+3014_daily_bin615.fits
.....................!
real 12.27
user 11.86
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/929258/ft1_filtered_4FGL_J1135.1+3014_daily_bin615.fits evtable="EVENTS" scfile=/scratch/kocevski/929258/ft2_4FGL_J1135.1+3014_daily_bin615.fits sctable="SC_DATA" expcube=/scratch/kocevski/929258/ltcube_398736001_398995201_4FGL_J1135.1+3014_daily_bin615.fits outfile=/scratch/kocevski/929258/expmap_398736001_398995201_4FGL_J1135.1+3014_daily_bin615.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/929258/ltcube_398736001_398995201_4FGL_J1135.1+3014_daily_bin615.fits
.....................!
real 192.56
user 185.56
sys 6.37

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/929258/ft1_filtered_4FGL_J1135.1+3014_daily_bin615.fits scfile=/scratch/kocevski/929258/ft2_4FGL_J1135.1+3014_daily_bin615.fits outfile=/scratch/kocevski/929258/cmap_398736001_398995201_4FGL_J1135.1+3014_daily_bin615.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.57
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/929258/ft1_filtered_4FGL_J1135.1+3014_daily_bin615.fits scfile=/scratch/kocevski/929258/ft2_4FGL_J1135.1+3014_daily_bin615.fits outfile=/scratch/kocevski/929258/cmap_HighResolution_398736001_398995201_4FGL_J1135.1+3014_daily_bin615.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.57
user 0.39
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    3.1962       1.0000         .10000E-03   10000.    
     4 'Prefactor '    2.9335       1.0000         .10000E-03   10000.    
     5 'Prefactor '    5.9127       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .12527E-01   1.0000         .10000E-03   10000.    
     7 'norm      '    16.920       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .51255E-02   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .37334       1.0000         .10000E-03   10000.    
    12 'Prefactor '    13.738       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .69937       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    2.7024       1.0000         .10000E-03   10000.    
    19 'Prefactor '    22.933       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .17482E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    15.619       1.0000         .10000E-03   10000.    
    23 'Prefactor '    112.48       1.0000         .10000E-03   10000.    
    24 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    4.1859       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .86654E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    5.1848       1.0000         .10000E-03   10000.    
    28 'Prefactor '    9.1503       1.0000         .10000E-03   10000.    
    29 'Prefactor '    2.9130       1.0000         .10000E-03   10000.    
    30 'Prefactor '    .86978       1.0000         .10000E-03   10000.    
    31 'Normalizat'    .93455       1.0000         .10000E-01   10.000    
    32 'Prefactor '    1.2710       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=   5519.425     FROM MIGRAD    STATUS=CONVERGED    125 CALLS     3672 TOTAL
                     EDM=   .15E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  8.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    7.0495        .18057E-04** at limit **
   2  Prefactor     .10000E-03    5.5993       -.50708E-06** at limit **
   3  norm          3.1960        .55024        .50296E-06    .67089E-03
   4  Prefactor     2.9331        3.2612        .26599E-06   -.42360E-04
   5  Prefactor     5.8966        1.8244        .88618E-06    .10795E-03
   6  Prefactor     .10007E-03    138.84       -.46242E-04** at limit **
   7  norm          16.917        1.7619        .68782E-06    .11602E-02
   8  Prefactor     .10000E-03    3.9583        .46347E-06** at limit **
   9  norm          .10000E-03    72.583        .38479E-04** at limit **
  10  Prefactor     .10000E-03    8.2596       -.29490E-05** at limit **
  11  Prefactor     .37253        1.8845        .71697E-06   -.49441E-05
  12  Prefactor     13.746        1.5760        .10624E-05   -.64460E-03
  13  Prefactor     .10000E-03    5.2918       -.15278E-04** at limit **
  14  norm          .69835        2.3506       -.30098E-07    .29107E-03
  15  Prefactor     .10000E-03    9.8586        .16450E-04** at limit **
  16  Prefactor     .10000E-03    3.7350       -.70757E-06** at limit **
  17  Prefactor     .10000E-03    24.967       -.98497E-05** at limit **
  18  norm          2.7023        1.3405        .13376E-06   -.80044E-04
  19  Prefactor     22.950        1.9515        .46171E-06    .31937E-03
  20  Prefactor     .10000E-03    6.3908        .15980E-04** at limit **
  21  Prefactor     .10000E-03    7.1651       -.21849E-04** at limit **
  22  Prefactor     15.580        5.0758       -.34170E-05    .15049E-02
  23  Prefactor     112.48        1.0125       -.57832E-07    .44272E-03
  24  norm          .10000E-03    .50081       -.89084E-07** at limit **
  25  Prefactor     4.1868        1.0163       -.26760E-06   -.16280E-03
  26  Prefactor     .10011E-03    8.6115       -.10501E-04** at limit **
  27  norm          5.1840        3.4975        .32459E-05   -.37773E-04
  28  Prefactor     9.1451        1.1523        .93530E-06   -.57488E-03
  29  Prefactor     2.9128        2.5682       -.17474E-05   -.16543E-03
  30  Prefactor     .86915        1.7851       -.11855E-05    .85338E-04
  31  Normalizat    .93490        .24649       -.20363E-05    .26308E-04
  32  Prefactor     1.2707        .27932       -.12307E-05   -.20113E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.19597
  Prefactor  = 2.93308
  Prefactor  = 5.89664
  Prefactor  = 0.000100073
  norm       = 16.9172
  Prefactor  = 0.0001
  norm       = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.372534
  Prefactor  = 13.7464
  Prefactor  = 0.000100003
  norm       = 0.698347
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.70234
  Prefactor  = 22.9495
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 15.5804
  Prefactor  = 112.483
  norm       = 0.0001
  Prefactor  = 4.18684
  Prefactor  = 0.000100113
  norm       = 5.18398
  Prefactor  = 9.14507
  Prefactor  = 2.91281
  Prefactor  = 0.869152
  Normalizat = 0.934902
  Prefactor  = 1.2707
 **********
 **   18 **HESSE 
 **********

 FCN=   5519.425     FROM HESSE     STATUS=OK           751 CALLS     4423 TOTAL
                     EDM=   .74E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    13.507        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    5.5926        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          3.1960        .59067        .50079E-02   -1.5350    
   4  Prefactor     2.9331        3.2898        .59290E-02   -1.5365    
   5  Prefactor     5.8966        23.330        .41287E-02   -1.5222    
   6  Prefactor     .10007E-03    23.869        .11452       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          16.917        19.670        .24342E-02   -1.4885    
   8  Prefactor     .10000E-03    3.9414        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    7.8620        .95840E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    8.2057        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .37253        2.2183        .10742E-01   -1.5586    
  12  Prefactor     13.746        35.908        .27016E-02   -1.4966    
  13  Prefactor     .10000E-03    12.223        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .69835        2.5012        .12059E-01   -1.5541    
  15  Prefactor     .10000E-03    9.8397        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    3.6978        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    24.975        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          2.7023        1.3701        .61949E-02   -1.5379    
  19  Prefactor     22.950        26.883        .20911E-02   -1.4749    
  20  Prefactor     .10000E-03    13.401        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    1.3098        .55389E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     15.580        30.604        .25336E-02   -1.4918    
  23  Prefactor     112.48        77.417        .94823E-03   -1.3583    
  24  norm          .10000E-03    .48644        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     4.1868        5.8745        .49245E-02   -1.5299    
  26  Prefactor     .10011E-03    185.17        .10427E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          5.1840        3.4980        .44137E-02   -1.5253    
  28  Prefactor     9.1451        8.9300        .33123E-02   -1.5103    
  29  Prefactor     2.9128        2.5629        .59511E-02   -1.5367    
  30  Prefactor     .86915        2.1053        .32462E-01   -1.5522    
  31  Normalizat    .93490        .21653        .65544E-01   -.95244    
  32  Prefactor     1.2707        .23296        .65257E-01   -.84183    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.42004e-08
Minuit parameter uncertainties:
  1  0.000129409
  2  1.95825e-05
  3  0.590671
  4  3.28998
  5  23.3656
  6  0.00263315
  7  19.6773
  8  8.41076e-06
  9  0.000203601
  10  2.6606e-05
  11  1.81798
  12  35.9646
  13  0.000366236
  14  2.50161
  15  4.32047e-05
  16  1.27717e-05
  17  4.86774e-05
  18  1.37015
  19  26.8968
  20  3.88428e-05
  21  0.000112229
  22  30.6352
  23  77.4872
  24  2.09184e-07
  25  5.87535
  26  0.00918257
  27  3.49816
  28  8.93131
  29  2.56297
  30  2.10551
  31  0.216733
  32  0.233147
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
618    Prefactor:  1.271e+00  2.331e-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:  9.349e-01  2.167e-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: 8.06e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.22e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/929258/likelihoodResults_398736001_398995201_4FGL_J1135.1+3014_daily_bin615.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) = 5519.42515927
delta logL = -0.000481815561216

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5519.42467749
delta logL = -4.13519956055e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10054E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.3762       1.0000          .0000       10.000    
     3 'Normalizat'    .93489       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2707       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.

 FCN=   5519.425     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      213 TOTAL
                     EDM=   .22E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1042.9        .90712E-02** at limit **
   2  Index         2.3761        8.8072        .50000       -.30627E-07
   3  Normalizat    .93490        .63440E-01    .65544E-01    .30985E-04
   4  Prefactor     1.2707        .72506E-01    .65257E-01    .17488E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.37612
  Normalizat = 0.934901
  Prefactor  = 1.2707
 **********
 **   18 **HESSE 
 **********

 FCN=   5519.425     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      246 TOTAL
                     EDM=   .35E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    2127.2        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.3761        6.6072        .50000       -.55245    
   3  Normalizat    .93490        .16761        .28992E-03   -.95244    
   4  Prefactor     1.2707        .19189        .28864E-03   -.84182    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.48056e-11
Minuit parameter uncertainties:
  1  0.000126089
  2  65.0086
  3  0.1677
  4  0.191992
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/929258': 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) = 5519.42467745
delta logL = 1.00044417195e-11

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
618    Prefactor:  1.271e+00  1.920e-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:  9.349e-01  1.677e-01  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/929258/cmap_HighResolution_398736001_398995201_4FGL_J1135.1+3014_daily_bin615.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.22e-03', job_status='DONE', photon_flux_upper_limit='8.06e-08', time_completed='2021-09-04 04:16:36.769037', job_id='929258', GAL2='1.27', fit_tolerance='1e-08', EG2='0.93', EG='0.93', time_epoch_completed='1630754196.77', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.27', dlogl='1.00e-11', ts2='-0.00', photon_index_error='0.00', photon_index='2.38' WHERE bin_id='615' AND source_name='4FGL J1135.1+3014' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 04:16:36 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0036>
Subject: Job 929258: <4FGL_J1135.1+3014_daily_bin615> in cluster <slac> Done

Job <4FGL_J1135.1+3014_daily_bin615> was submitted from host <rhel6-64a> by user <kocevski> in cluster <slac> at Sat Sep  4 04:01:40 2021
Job was executed on host(s) <bullet0036>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 04:01:42 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:01:42 2021
Terminated at Sat Sep  4 04:16:37 2021
Results reported at Sat Sep  4 04:16:37 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1135.1+3014_daily_bin615 173.788 30.2344 398736001 398995201 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 :                                   860.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             320.69 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   895 sec.
    Turnaround time :                            897 sec.

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

