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


Performing analysis on: 4FGL_J1135.1+3014_daily_bin1024
RA = 173.788, Dec = 30.2344
tmin = 504748801, tmax = 505008001
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='932255', job_status='RUN', time_executed='2021-09-04 04:11:34.371103', time_epoch_executed='1630753894.37' WHERE source_name='4FGL J1135.1+3014' and cadence='daily' and bin_id='1024'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/932255

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/932255/ft1_4FGL_J1135.1+3014_daily_bin1024.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/932255/ft2_4FGL_J1135.1+3014_daily_bin1024.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/932255/ft1_4FGL_J1135.1+3014_daily_bin1024.fits outfile=/scratch/kocevski/932255/ft1_filteredMKT_4FGL_J1135.1+3014_daily_bin1024.fits ra=173.788 dec=30.2344 rad=12.0 tmin=504748801.0 tmax=505008001.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.27
user 7.96
sys 0.26

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/932255/ft1_filtered_4FGL_J1135.1+3014_daily_bin1024.fits" evtable="EVENTS" scfile=/scratch/kocevski/932255/ft2_4FGL_J1135.1+3014_daily_bin1024.fits sctable="SC_DATA" outfile=/scratch/kocevski/932255/ltcube_504748801_505008001_4FGL_J1135.1+3014_daily_bin1024.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/932255/ft2_4FGL_J1135.1+3014_daily_bin1024.fits
.....................!
real 11.43
user 11.06
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/932255/ft1_filtered_4FGL_J1135.1+3014_daily_bin1024.fits evtable="EVENTS" scfile=/scratch/kocevski/932255/ft2_4FGL_J1135.1+3014_daily_bin1024.fits sctable="SC_DATA" expcube=/scratch/kocevski/932255/ltcube_504748801_505008001_4FGL_J1135.1+3014_daily_bin1024.fits outfile=/scratch/kocevski/932255/expmap_504748801_505008001_4FGL_J1135.1+3014_daily_bin1024.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/932255/ltcube_504748801_505008001_4FGL_J1135.1+3014_daily_bin1024.fits
.....................!
real 191.32
user 185.83
sys 3.77

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/932255/ft1_filtered_4FGL_J1135.1+3014_daily_bin1024.fits scfile=/scratch/kocevski/932255/ft2_4FGL_J1135.1+3014_daily_bin1024.fits outfile=/scratch/kocevski/932255/cmap_504748801_505008001_4FGL_J1135.1+3014_daily_bin1024.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=173.788 yref=30.2344 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.56
user 0.37
sys 0.14

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    .10019E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    2.3483       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    19.545       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .16855E-01   1.0000         .10000E-03   10000.    
     7 'norm      '    8.3225       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10091E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    10.859       1.0000         .10000E-03   10000.    
    10 'Prefactor '    6.6747       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10090E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    59.246       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10079E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .84898       1.0000         .10000E-03   10000.    
    15 'Prefactor '    23.773       1.0000         .10000E-03   10000.    
    16 'Prefactor '    1.6936       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .11642E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    1.4503       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    21.658       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10082E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    12.663       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    51.236       1.0000         .10000E-03   10000.    
    27 'norm      '    12.687       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10093E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    2.1267       1.0000         .10000E-03   10000.    
    30 'Prefactor '    .47024E-03   1.0000         .10000E-03   10000.    
    31 'Normalizat'    .91625       1.0000         .10000E-01   10.000    
    32 'Prefactor '    .89922       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=   5066.595     FROM MIGRAD    STATUS=CONVERGED    852 CALLS     4439 TOTAL
                     EDM=   .19E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    26.445       -.95368E-06** at limit **
   2  Prefactor     .10000E-03    10.666       -.33764E-05** at limit **
   3  norm          2.3482        .50067       -.46673E-07    .96114E-06
   4  Prefactor     .10000E-03    1.4344        .52767E-07** at limit **
   5  Prefactor     19.537        20.099        .98581E-06    .40077E-04
   6  Prefactor     .10005E-03    13.070       -.36071E-06** at limit **
   7  norm          8.3292        14.002       -.56208E-06   -.61735E-04
   8  Prefactor     .10000E-03    6.0195        .15360E-06** at limit **
   9  norm          10.845        17.224        .25923E-05    .71073E-04
  10  Prefactor     6.6678        15.771        .16550E-05    .21399E-04
  11  Prefactor     .10000E-03    2.5186        .14366E-05** at limit **
  12  Prefactor     59.290        58.904       -.10421E-05   -.43588E-04
  13  Prefactor     .10000E-03    25.682       -.13217E-05** at limit **
  14  norm          .84900        3.4700        .25985E-05   -.12057E-03
  15  Prefactor     23.774        16.692       -.44982E-07   -.36944E-04
  16  Prefactor     1.6949        3.6625        .22270E-06   -.10917E-03
  17  Prefactor     .10000E-03    23.769       -.13345E-05** at limit **
  18  norm          1.4502        1.0548       -.11330E-06   -.44894E-03
  19  Prefactor     .10000E-03    13.525        .18207E-05** at limit **
  20  Prefactor     21.653        23.266        .61687E-06   -.32139E-05
  21  Prefactor     .10000E-03    .62601        .20145E-07** at limit **
  22  Prefactor     .10000E-03    9.8883        .21901E-05** at limit **
  23  Prefactor     .10000E-03    29.043        .28631E-05** at limit **
  24  norm          12.663        2.4524        .59207E-07   -.29506E-03
  25  Prefactor     .10000E-03    4.0886        .31388E-07** at limit **
  26  Prefactor     51.235        43.427       -.32345E-08   -.54802E-04
  27  norm          12.687        4.8791        .55595E-07   -.25784E-03
  28  Prefactor     .10000E-03    6.4869       -.16266E-06** at limit **
  29  Prefactor     2.1264        2.7506        .71112E-07   -.14306E-03
  30  Prefactor     .10001E-03    1.4789        .43140E-06** at limit **
  31  Normalizat    .91623        .22141       -.28290E-05   -.14712E-03
  32  Prefactor     .89938        .22647       -.21979E-07   -.20689E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.34822
  Prefactor  = 0.0001
  Prefactor  = 19.5369
  Prefactor  = 0.00010005
  norm       = 8.3292
  Prefactor  = 0.0001
  norm       = 10.8449
  Prefactor  = 6.66776
  Prefactor  = 0.0001
  Prefactor  = 59.2898
  Prefactor  = 0.0001
  norm       = 0.848999
  Prefactor  = 23.7736
  Prefactor  = 1.69486
  Prefactor  = 0.0001
  norm       = 1.45023
  Prefactor  = 0.0001
  Prefactor  = 21.653
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 12.6635
  Prefactor  = 0.0001
  Prefactor  = 51.2348
  norm       = 12.6867
  Prefactor  = 0.0001
  Prefactor  = 2.12639
  Prefactor  = 0.000100013
  Normalizat = 0.916227
  Prefactor  = 0.899377
 **********
 **   18 **HESSE 
 **********

 FCN=   5066.595     FROM HESSE     STATUS=OK           659 CALLS     5098 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    26.502        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    10.750        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          2.3482        .48893        .21265E-04   -1.5401    
   4  Prefactor     .10000E-03    1.4450        .83221E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     19.537        19.845        .90595E-04   -1.4824    
   6  Prefactor     .10005E-03    147.67        .46946E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          8.3292        13.996        .13896E-03   -1.5131    
   8  Prefactor     .10000E-03    6.0407        .17046E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          10.845        17.347        .12158E-03   -1.5049    
  10  Prefactor     6.6678        15.765        .15532E-03   -1.5191    
  11  Prefactor     .10000E-03    2.5727        .21754E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     59.290        60.176        .52124E-04   -1.4166    
  13  Prefactor     .10000E-03    25.810        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .84900        3.6163        .20239E-03   -1.5524    
  15  Prefactor     23.774        16.684        .82154E-04   -1.4732    
  16  Prefactor     1.6949        3.6297        .19312E-03   -1.5448    
  17  Prefactor     .10000E-03    23.810        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          1.4502        1.0498        .59634E-04   -1.5467    
  19  Prefactor     .10000E-03    13.616        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     21.653        23.255        .86068E-04   -1.4777    
  21  Prefactor     .10000E-03    .62933        .54988E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    9.9663        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    29.186        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          12.663        2.4517        .46925E-04   -1.4996    
  25  Prefactor     .10000E-03    4.1315        .14045E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     51.235        43.527        .56028E-04   -1.4275    
  27  norm          12.687        4.8469        .86042E-04   -1.4995    
  28  Prefactor     .10000E-03    6.6072        .17696E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     2.1264        2.7320        .11962E-03   -1.5416    
  30  Prefactor     .10001E-03    13.205        .16383E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Normalizat    .91623        .25745        .27989E-03   -.95892    
  32  Prefactor     .89938        .26524        .31053E-03   -.96163    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.52677e-09
Minuit parameter uncertainties:
  1  1.69749e-05
  2  0.000103985
  3  0.488935
  4  3.49617e-06
  5  19.8521
  6  0.0054318
  7  14.0011
  8  8.91826e-07
  9  17.3548
  10  15.7751
  11  2.73367e-05
  12  60.2376
  13  3.62044e-05
  14  3.50458
  15  16.6868
  16  3.63014
  17  7.16541e-05
  18  1.04982
  19  8.7355e-05
  20  23.2643
  21  8.10311e-07
  22  9.00719e-05
  23  0.000206744
  24  2.45176
  25  6.58572e-06
  26  43.5537
  27  4.84707
  28  1.2804e-05
  29  2.7322
  30  0.000823895
  31  0.2578
  32  0.265616
Done.

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

Extracting fit parameters...

4FGL J1135.1+3014
   Spectrum: PowerLaw
296    Prefactor:  2.377e+01  1.669e+01  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:  8.994e-01  2.656e-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.162e-01  2.578e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.13
Ra Dec: 173.788 30.234
Photon Index (Fixed Index): 2.38 +/- 0.00
Photon Flux (Fixed Index): 6.07e-08 +/- 4.26e-08
Energy Flux (Fixed Index): 2.06e-05 +/- 1.44e-05

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): 0
logL (Free Index) = 5066.55809726
delta logL = 0.0366861682287

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5066.55327823
delta logL = 0.0415052036633

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    27.331       1.0000         .10000E-03   10000.    
     2 'Index     '    2.1956       1.0000          .0000       10.000    
     3 'Normalizat'    .92790       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .89076       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=   5066.553     FROM MIGRAD    STATUS=CONVERGED     93 CALLS      283 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     27.341        22.588        .76630E-04    .31600E-04
   2  Index         2.1957        .62755        .74409E-02    .24021E-03
   3  Normalizat    .92793        .24148        .27832E-03   -.61270E-05
   4  Prefactor     .89075        .26372        .31185E-03   -.10426E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 27.3414
  Index      = 2.19567
  Normalizat = 0.927928
  Prefactor  = 0.890748
 **********
 **   18 **HESSE 
 **********

 FCN=   5066.553     FROM HESSE     STATUS=OK            25 CALLS      308 TOTAL
                     EDM=   .47E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     27.341        22.121        .30652E-05   -1.4662    
   2  Index         2.1957        .61433        .14882E-02   -.59543    
   3  Normalizat    .92793        .24152        .11133E-04   -.95486    
   4  Prefactor     .89075        .26385        .12474E-04   -.96465    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.6532e-12
Minuit parameter uncertainties:
  1  22.1275
  2  0.616608
  3  0.241803
  4  0.264225
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/932255': 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): 0
logL (Free Index) = 5066.55327799
delta logL = 0.0415054380655

Extracting fit parameters...

4FGL J1135.1+3014
   Spectrum: PowerLaw
296    Prefactor:  2.734e+01  2.213e+01  1.000e-04  1.000e+04 ( 1.000e-13)
297        Index:  2.196e+00  6.166e-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:  8.907e-01  2.642e-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.279e-01  2.418e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.18
Ra Dec: 173.788 30.234
Photon Index (Free Index): 2.20 +/- 0.62
Photon Flux (Free Index): 5.15e-08 +/- 4.90e-08
Energy Flux (Free Index): 2.33e-05 +/- 2.06e-05

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/932255/cmap_HighResolution_504748801_505008001_4FGL_J1135.1+3014_daily_bin1024.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='6.07e-08', energy_flux2='2.33e-05', photon_flux_error='4.26e-08', dlogl='4.15e-02', energy_flux='2.06e-05', photon_flux2='5.15e-08', job_status='DONE', time_completed='2021-09-04 04:24:24.305850', photon_index_error2='0.62', photon_index2='2.20', ts='4.13', fit_tolerance='1e-08', GAL='0.90', photon_index_error='0.00', energy_flux_error2='2.06e-05', EG='0.92', time_epoch_completed='1630754664.31', return_code='0', job_id='932255', GAL2='0.89', EG2='0.93', return_code2='0', energy_flux_error='1.44e-05', photon_flux_error2='4.90e-08', ts2='4.18', photon_index='2.38' WHERE bin_id='1024' AND source_name='4FGL J1135.1+3014' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 04:24:24 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0025>
Subject: Job 932255: <4FGL_J1135.1+3014_daily_bin1024> in cluster <slac> Done

Job <4FGL_J1135.1+3014_daily_bin1024> was submitted from host <rhel6-64c> by user <kocevski> in cluster <slac> at Sat Sep  4 04:11:19 2021
Job was executed on host(s) <bullet0025>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 04:11:21 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:11:21 2021
Terminated at Sat Sep  4 04:24:27 2021
Results reported at Sat Sep  4 04:24:27 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1135.1+3014_daily_bin1024 173.788 30.2344 504748801 505008001 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 :                                   754.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             322.92 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   783 sec.
    Turnaround time :                            788 sec.

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

