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


Performing analysis on: 4FGL_J1135.1+3014_daily_bin1179
RA = 173.788, Dec = 30.2344
tmin = 544924801, tmax = 545184001
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='933899', job_status='RUN', time_executed='2021-09-04 04:18:52.957677', time_epoch_executed='1630754332.96' WHERE source_name='4FGL J1135.1+3014' and cadence='daily' and bin_id='1179'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/933899

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/933899/ft1_4FGL_J1135.1+3014_daily_bin1179.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/933899/ft2_4FGL_J1135.1+3014_daily_bin1179.fits


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

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

Done.
real 4.16
user 3.87
sys 0.25

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/933899/ft2_4FGL_J1135.1+3014_daily_bin1179.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/933899/ft1_filteredMKT_4FGL_J1135.1+3014_daily_bin1179.fits evtable="EVENTS" outfile="/scratch/kocevski/933899/ft1_filtered_4FGL_J1135.1+3014_daily_bin1179.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/933899/ft1_filtered_4FGL_J1135.1+3014_daily_bin1179.fits" evtable="EVENTS" scfile=/scratch/kocevski/933899/ft2_4FGL_J1135.1+3014_daily_bin1179.fits sctable="SC_DATA" outfile=/scratch/kocevski/933899/ltcube_544924801_545184001_4FGL_J1135.1+3014_daily_bin1179.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/933899/ft2_4FGL_J1135.1+3014_daily_bin1179.fits
.....................!
real 11.76
user 11.32
sys 0.38

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/933899/ft1_filtered_4FGL_J1135.1+3014_daily_bin1179.fits evtable="EVENTS" scfile=/scratch/kocevski/933899/ft2_4FGL_J1135.1+3014_daily_bin1179.fits sctable="SC_DATA" expcube=/scratch/kocevski/933899/ltcube_544924801_545184001_4FGL_J1135.1+3014_daily_bin1179.fits outfile=/scratch/kocevski/933899/expmap_544924801_545184001_4FGL_J1135.1+3014_daily_bin1179.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/933899/ltcube_544924801_545184001_4FGL_J1135.1+3014_daily_bin1179.fits
.....................!
real 190.09
user 184.97
sys 4.56

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/933899/ft1_filtered_4FGL_J1135.1+3014_daily_bin1179.fits scfile=/scratch/kocevski/933899/ft2_4FGL_J1135.1+3014_daily_bin1179.fits outfile=/scratch/kocevski/933899/cmap_544924801_545184001_4FGL_J1135.1+3014_daily_bin1179.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.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/933899/ft1_filtered_4FGL_J1135.1+3014_daily_bin1179.fits scfile=/scratch/kocevski/933899/ft2_4FGL_J1135.1+3014_daily_bin1179.fits outfile=/scratch/kocevski/933899/cmap_HighResolution_544924801_545184001_4FGL_J1135.1+3014_daily_bin1179.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.55
user 0.40
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    6.0006       1.0000         .10000E-03   10000.    
     9 'norm      '    .10066E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    8.5100       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    31.104       1.0000         .10000E-03   10000.    
    14 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .11766E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    1.7336       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10061E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    79.602       1.0000         .10000E-03   10000.    
    20 'Prefactor '    15.800       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10087E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10230E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    29.966       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10034E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    5.1355       1.0000         .10000E-03   10000.    
    30 'Prefactor '    4.4074       1.0000         .10000E-03   10000.    
    31 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
    32 'Prefactor '    1.8916       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=   2883.988     FROM MIGRAD    STATUS=CONVERGED    126 CALLS     3631 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10008E-03    13.867        .42702E-06** at limit **
   2  Prefactor     .10000E-03    14.714       -.42628E-05** at limit **
   3  norm          .10000E-03    .90760       -.18390E-05** at limit **
   4  Prefactor     .10000E-03    2.9001       -.20840E-05** at limit **
   5  Prefactor     .11144E-03    62.470       -.31527E-04** at limit **
   6  Prefactor     .10069E-03    35.417       -.49744E-05** at limit **
   7  norm          .10078E-03    17.997       -.35743E-05** at limit **
   8  Prefactor     5.9975        3.3741        .76289E-06   -.74846E-02
   9  norm          .10003E-03    31.811        .80401E-05** at limit **
  10  Prefactor     8.5105        1.2314        .16787E-06   -.28131E-02
  11  Prefactor     .10000E-03    5.1248       -.42001E-05** at limit **
  12  Prefactor     .10164E-03    26.321        .80722E-06** at limit **
  13  Prefactor     31.123        4.5198        .16246E-05   -.21709E-02
  14  norm          .10000E-03    3.8928        .17461E-05** at limit **
  15  Prefactor     .10026E-03    27.562       -.33942E-05** at limit **
  16  Prefactor     1.7142        1.2691       -.42126E-06    .31692E-03
  17  Prefactor     .10006E-03    27.551       -.53774E-06** at limit **
  18  norm          .10000E-03    4.9260        .17477E-06** at limit **
  19  Prefactor     79.611        2.0760        .45403E-06   -.10448E-02
  20  Prefactor     15.804        1.0740        .36010E-07    .29261E-03
  21  Prefactor     .10000E-03    2.0292       -.48962E-06** at limit **
  22  Prefactor     .10267E-03    26.632        .35362E-05** at limit **
  23  Prefactor     .15197E-03    161.16       -.53776E-04** at limit **
  24  norm          29.968        4.9607        .21685E-05    .89550E-02
  25  Prefactor     .10000E-03    1.9349       -.30287E-06** at limit **
  26  Prefactor     .10635E-03    31.297       -.13595E-04** at limit **
  27  norm          .10000E-03    1.8679       -.17609E-05** at limit **
  28  Prefactor     .10042E-03    12.507        .24615E-05** at limit **
  29  Prefactor     5.1351        3.7568       -.81976E-06   -.17902E-03
  30  Prefactor     4.4075        3.6349       -.67310E-06   -.45574E-03
  31  Normalizat    .10000E-01    .54659       -.27257E-04** at limit **
  32  Prefactor     1.8917        .20324        .39766E-05    .32441E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100075
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000111438
  Prefactor  = 0.000100686
  norm       = 0.000100782
  Prefactor  = 5.99749
  norm       = 0.000100033
  Prefactor  = 8.51048
  Prefactor  = 0.0001
  Prefactor  = 0.000101642
  Prefactor  = 31.1232
  norm       = 0.0001
  Prefactor  = 0.000100265
  Prefactor  = 1.71421
  Prefactor  = 0.000100064
  norm       = 0.0001
  Prefactor  = 79.6106
  Prefactor  = 15.8036
  Prefactor  = 0.0001
  Prefactor  = 0.000102674
  Prefactor  = 0.000151974
  norm       = 29.9678
  Prefactor  = 0.0001
  Prefactor  = 0.000106351
  norm       = 0.0001
  Prefactor  = 0.000100419
  Prefactor  = 5.13511
  Prefactor  = 4.40746
  Normalizat = 0.01
  Prefactor  = 1.89168
 **********
 **   18 **HESSE 
 **********

 FCN=   2883.988     FROM HESSE     STATUS=OK           717 CALLS     4348 TOTAL
                     EDM=   .54E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10008E-03    38.957        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    14.683        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    .86386        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    2.8890        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .11144E-03    175.21        .90712E-02   -1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10069E-03    59.684        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10078E-03    41.759        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     5.9975        9.4737        .40979E-02   -1.5218    
   9  norm          .10003E-03    33.947        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     8.5105        11.721        .34354E-02   -1.5124    
  11  Prefactor     .10000E-03    5.1217        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10164E-03    70.642        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     31.123        55.580        .17961E-02   -1.4592    
  14  norm          .10000E-03    3.8951        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10026E-03    113.32        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     1.7142        79.917        .79694E-02   -1.5446    
  17  Prefactor     .10006E-03    107.29        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    4.8817        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     79.611        61.219        .11253E-02   -1.3921    
  20  Prefactor     15.804        17.159        .25190E-02   -1.4913    
  21  Prefactor     .10000E-03    1.9834        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10267E-03    93.314        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .15197E-03    298.40        .90712E-02   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          29.968        5.3328        .18298E-02   -1.4613    
  25  Prefactor     .10000E-03    1.9303        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10635E-03    135.29        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          .10000E-03    1.8669        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10042E-03    36.857        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     5.1351        3.7649        .44352E-02   -1.5255    
  30  Prefactor     4.4075        3.6539        .47958E-02   -1.5288    
  31  Normalizat    .10000E-01    .32297        .24562       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Prefactor     1.8917        .27616        .58564E-01   -.67086    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.37742e-07
Minuit parameter uncertainties:
  1  0.00343222
  2  2.95271e-05
  3  1.50687e-06
  4  3.12935e-06
  5  0.0897969
  6  0.0128057
  7  0.0114334
  8  9.47608
  9  0.00210458
  10  11.7239
  11  2.68632e-06
  12  0.0215669
  13  55.6726
  14  2.52812e-06
  15  0.0109785
  16  23.4415
  17  0.00524399
  18  1.83231e-06
  19  61.2671
  20  17.1643
  21  7.38135e-07
  22  0.0316397
  23  0.250328
  24  5.3329
  25  5.14296e-07
  26  0.0587596
  27  2.19567e-06
  28  0.00786057
  29  3.76504
  30  3.65408
  31  6.90597e-07
  32  0.276385
Done.

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

Extracting fit parameters...

4FGL J1135.1+3014
   Spectrum: PowerLaw
296    Prefactor:  1.003e-04  1.098e-02  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.892e+00  2.764e-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.000e-02  6.906e-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.42e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.87e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/933899/likelihoodResults_544924801_545184001_4FGL_J1135.1+3014_daily_bin1179.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) = 2883.98784771
delta logL = -4.7970707783e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 2883.98780007
delta logL = -3.33906882588e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10218E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5628       1.0000          .0000       10.000    
     3 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.8915       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=   2883.988     FROM MIGRAD    STATUS=CONVERGED     60 CALLS      265 TOTAL
                     EDM=   .36E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10001E-03    66.948        .90712E-02** at limit **
   2  Index         2.5318        7.0408        .50000        .22567E-05
   3  Normalizat    .10000E-01    .20233E-03    .24658    ** at limit **
   4  Prefactor     1.8917        .69448E-02    .58564E-01    .11281E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100015
  Index      = 2.53184
  Normalizat = 0.01
  Prefactor  = 1.89169
 **********
 **   18 **HESSE 
 **********

 FCN=   2883.988     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      296 TOTAL
                     EDM=   .23E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10001E-03    441.64        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.5318        7.0189        .50000       -.51626    
   3  Normalizat    .10000E-01    .47188E-02    .13139E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     1.8917        .17859E-01    .25885E-03   -.67086    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.32825e-08
Minuit parameter uncertainties:
  1  0.00512868
  2  340.663
  3  7.48457e-09
  4  0.0178588
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/933899': 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) = 2883.98779977
delta logL = -3.50059963239e-08

Extracting fit parameters...

4FGL J1135.1+3014
   Spectrum: PowerLaw
296    Prefactor:  1.000e-04  5.129e-03  1.000e-04  1.000e+04 ( 1.000e-13)
297        Index:  2.532e+00  3.407e+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:  1.892e+00  1.786e-02  0.000e+00  1.000e+01 ( 1.000e+00)
619        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
620        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
617   Normalization:  1.000e-02  7.485e-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/933899/cmap_HighResolution_544924801_545184001_4FGL_J1135.1+3014_daily_bin1179.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.87e-02', job_status='DONE', photon_flux_upper_limit='2.42e-07', time_completed='2021-09-04 04:29:29.626146', job_id='933899', GAL2='1.89', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1630754969.63', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.89', dlogl='-3.50e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.38' WHERE bin_id='1179' AND source_name='4FGL J1135.1+3014' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 04:29:29 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0074>
Subject: Job 933899: <4FGL_J1135.1+3014_daily_bin1179> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1135.1+3014_daily_bin1179 173.788 30.2344 544924801 545184001 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 :                                   582.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             295.65 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   782 sec.
    Turnaround time :                            785 sec.

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

