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


Performing analysis on: 4FGL_J1136.2+3407_daily_bin261
RA = 174.075, Dec = 34.129
tmin = 306979201, tmax = 307238401
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='945686', job_status='RUN', time_executed='2021-09-04 04:54:31.413963', time_epoch_executed='1630756471.41' WHERE source_name='4FGL J1136.2+3407' and cadence='daily' and bin_id='261'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/945686

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/945686/ft1_4FGL_J1136.2+3407_daily_bin261.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/945686/ft2_4FGL_J1136.2+3407_daily_bin261.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/945686/ft1_4FGL_J1136.2+3407_daily_bin261.fits outfile=/scratch/kocevski/945686/ft1_filteredMKT_4FGL_J1136.2+3407_daily_bin261.fits ra=174.075 dec=34.129 rad=12.0 tmin=306979201.0 tmax=307238401.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 14.00
user 13.63
sys 0.32

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/945686/ft2_4FGL_J1136.2+3407_daily_bin261.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/945686/ft2_4FGL_J1136.2+3407_daily_bin261.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/945686/ft1_filteredMKT_4FGL_J1136.2+3407_daily_bin261.fits evtable="EVENTS" outfile="/scratch/kocevski/945686/ft1_filtered_4FGL_J1136.2+3407_daily_bin261.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.35
sys 0.13

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/945686/ft1_filtered_4FGL_J1136.2+3407_daily_bin261.fits" evtable="EVENTS" scfile=/scratch/kocevski/945686/ft2_4FGL_J1136.2+3407_daily_bin261.fits sctable="SC_DATA" outfile=/scratch/kocevski/945686/ltcube_306979201_307238401_4FGL_J1136.2+3407_daily_bin261.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/945686/ft2_4FGL_J1136.2+3407_daily_bin261.fits
.....................!
real 11.31
user 10.93
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/945686/ft1_filtered_4FGL_J1136.2+3407_daily_bin261.fits evtable="EVENTS" scfile=/scratch/kocevski/945686/ft2_4FGL_J1136.2+3407_daily_bin261.fits sctable="SC_DATA" expcube=/scratch/kocevski/945686/ltcube_306979201_307238401_4FGL_J1136.2+3407_daily_bin261.fits outfile=/scratch/kocevski/945686/expmap_306979201_307238401_4FGL_J1136.2+3407_daily_bin261.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/945686/ltcube_306979201_307238401_4FGL_J1136.2+3407_daily_bin261.fits
.....................!
real 191.51
user 186.10
sys 4.81

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 198 point sources and 0 extended sources

Setting source of interest to:
4FGL J1136.2+3407 @ 174.075 34.129

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/945686/ft1_filtered_4FGL_J1136.2+3407_daily_bin261.fits scfile=/scratch/kocevski/945686/ft2_4FGL_J1136.2+3407_daily_bin261.fits outfile=/scratch/kocevski/945686/cmap_306979201_307238401_4FGL_J1136.2+3407_daily_bin261.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=174.075 yref=34.129 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.39
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/945686/ft1_filtered_4FGL_J1136.2+3407_daily_bin261.fits scfile=/scratch/kocevski/945686/ft2_4FGL_J1136.2+3407_daily_bin261.fits outfile=/scratch/kocevski/945686/cmap_HighResolution_306979201_307238401_4FGL_J1136.2+3407_daily_bin261.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=174.075 yref=34.129 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.37
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/945686/ft1_filtered_4FGL_J1136.2+3407_daily_bin261.fits evtable="EVENTS" scfile=/scratch/kocevski/945686/ft2_4FGL_J1136.2+3407_daily_bin261.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/945686/Model_4FGL_J1136.2+3407_daily_bin261.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/945686/ft1_filtered_4FGL_J1136.2+3407_daily_bin261.fits.....................!
real 44.89
user 43.60
sys 1.14

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/945686/ft1_filtered_4FGL_J1136.2+3407_daily_bin261.fits', '/scratch/kocevski/945686/ft2_4FGL_J1136.2+3407_daily_bin261.fits', expMap='/scratch/kocevski/945686/expmap_306979201_307238401_4FGL_J1136.2+3407_daily_bin261.fits', expCube='/scratch/kocevski/945686/ltcube_306979201_307238401_4FGL_J1136.2+3407_daily_bin261.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/945686/Model_4FGL_J1136.2+3407_daily_bin261.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1136.2+3407'

4FGL J1136.2+3407
   Spectrum: PowerLaw
306    Prefactor:  1.848e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
307        Index:  2.553e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
308        Scale:  6.244e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/945686/ft1_filtered_4FGL_J1136.2+3407_daily_bin261.fits
Spacecraft file(s): /scratch/kocevski/945686/ft2_4FGL_J1136.2+3407_daily_bin261.fits
Exposure map: /scratch/kocevski/945686/expmap_306979201_307238401_4FGL_J1136.2+3407_daily_bin261.fits
Exposure cube: /scratch/kocevski/945686/ltcube_306979201_307238401_4FGL_J1136.2+3407_daily_bin261.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/945686/Model_4FGL_J1136.2+3407_daily_bin261.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) = 4465.18415569

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    54.418       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .28257E-02   1.0000         .10000E-03   10000.    
     4 'norm      '    1.4067       1.0000         .10000E-03   10000.    
     5 'Prefactor '    2.2211       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .58597       1.0000         .10000E-03   10000.    
     9 'norm      '    .10470E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .70119       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10216E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10019E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    2.5473       1.0000         .10000E-03   10000.    
    16 'Prefactor '    44.773       1.0000         .10000E-03   10000.    
    17 'norm      '    1.8604       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10610E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    10.121       1.0000         .10000E-03   10000.    
    20 'norm      '    .10122E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10284E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    30.948       1.0000         .10000E-03   10000.    
    23 'norm      '    16.411       1.0000         .10000E-03   10000.    
    24 'Prefactor '    10.872       1.0000         .10000E-03   10000.    
    25 'norm      '    9.7794       1.0000         .10000E-03   10000.    
    26 'Prefactor '    11.490       1.0000         .10000E-03   10000.    
    27 'Prefactor '    3.8315       1.0000         .10000E-03   10000.    
    28 'Prefactor '    4.0055       1.0000         .10000E-03   10000.    
    29 'Normalizat'    1.2569       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .71926       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6260E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   4465.146     FROM MIGRAD    STATUS=CONVERGED    800 CALLS     4050 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     54.450        42.962        .15665E-04   -.30534E-04
   2  Prefactor     .10000E-03    53.659       -.11768E-04** at limit **
   3  Prefactor     .10023E-03    16.417        .15882E-05** at limit **
   4  norm          1.4067        .38737       -.53639E-08   -.23861E-03
   5  Prefactor     2.2215        4.2341       -.82579E-06   -.96821E-03
   6  Prefactor     .10000E-03    7.6264        .23014E-06** at limit **
   7  Prefactor     .10000E-03    6.4094        .46879E-07** at limit **
   8  norm          .56231        15.631       -.91808E-06   -.11862E-03
   9  norm          .10000E-03    29.845        .14969E-04** at limit **
  10  Prefactor     .70524        2.2767        .20555E-06   -.58515E-03
  11  Prefactor     .10000E-03    18.349        .37851E-05** at limit **
  12  Prefactor     .10000E-03    94.433        .53390E-04** at limit **
  13  norm          .10000E-03    2.0407        .75305E-06** at limit **
  14  Prefactor     .10000E-03    22.104       -.99090E-05** at limit **
  15  Prefactor     2.5419        7.3576       -.40909E-05   -.64061E-03
  16  Prefactor     44.763        54.455       -.76289E-05   -.87553E-04
  17  norm          1.8606        1.4645        .20101E-06   -.51424E-03
  18  Prefactor     .10000E-03    145.72       -.49282E-04** at limit **
  19  Prefactor     10.124        4.8050        .52535E-07    .65748E-03
  20  norm          .10000E-03    12.226       -.13026E-06** at limit **
  21  Prefactor     .10000E-03    48.459       -.15159E-04** at limit **
  22  Prefactor     30.953        65.134        .62508E-05   -.70807E-05
  23  norm          16.412        3.4346        .14718E-06    .85949E-03
  24  Prefactor     10.865        40.390       -.70059E-05    .15872E-04
  25  norm          9.7791        5.9251       -.21692E-06   -.75063E-03
  26  Prefactor     11.488        9.0703        .42330E-06    .25498E-04
  27  Prefactor     3.8317        3.6415       -.20364E-07   -.41893E-04
  28  Prefactor     4.0051        4.8353        .66288E-06   -.22106E-03
  29  Normalizat    1.2569        .24010        .38951E-06   -.32777E-03
  30  Prefactor     .71928        .25780       -.25132E-05   -.19133E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 54.4496
  Prefactor  = 0.0001
  Prefactor  = 0.000100234
  norm       = 1.40667
  Prefactor  = 2.22152
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.562308
  norm       = 0.0001
  Prefactor  = 0.705242
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 2.54187
  Prefactor  = 44.7631
  norm       = 1.86062
  Prefactor  = 0.000100004
  Prefactor  = 10.1236
  norm       = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 30.9533
  norm       = 16.4116
  Prefactor  = 10.8647
  norm       = 9.77915
  Prefactor  = 11.4879
  Prefactor  = 3.83173
  Prefactor  = 4.00508
  Normalizat = 1.2569
  Prefactor  = 0.719275
 **********
 **   18 **HESSE 
 **********

 FCN=   4465.146     FROM HESSE     STATUS=OK           592 CALLS     4642 TOTAL
                     EDM=   .52E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     54.450        42.937        .54374E-04   -1.4231    
   2  Prefactor     .10000E-03    53.655        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10023E-03    81.740        .48540E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          1.4067        .38844        .21054E-04   -1.5471    
   5  Prefactor     2.2215        3.9820        .16893E-03   -1.5410    
   6  Prefactor     .10000E-03    7.6350        .18019E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    6.4190        .16522E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .56231        155.61        .48076E-02   -1.5558    
   9  norm          .10000E-03    30.540        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .70524        1.9819        .16206E-02   -1.5540    
  11  Prefactor     .10000E-03    18.354        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    96.470        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    7.1231        .17591E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    22.305        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     2.5419        7.3039        .25585E-03   -1.5389    
  16  Prefactor     44.763        54.065        .59918E-04   -1.4369    
  17  norm          1.8606        1.4608        .60485E-04   -1.5435    
  18  Prefactor     .10000E-03    147.62        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     10.124        4.7999        .96437E-04   -1.5072    
  20  norm          .10000E-03    12.305        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    48.694        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     30.953        65.338        .72023E-04   -1.4595    
  23  norm          16.412        3.4385        .53734E-04   -1.4898    
  24  Prefactor     10.865        40.356        .12151E-03   -1.5049    
  25  norm          9.7791        5.9576        .56755E-03   -1.5082    
  26  Prefactor     11.488        9.0725        .11819E-03   -1.5030    
  27  Prefactor     3.8317        3.6554        .11336E-03   -1.5316    
  28  Prefactor     4.0051        4.8170        .15228E-03   -1.5308    
  29  Normalizat    1.2569        .28427        .25099E-03   -.84862    
  30  Prefactor     .71928        .29989        .36411E-03   -1.0278    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.21995e-09
Minuit parameter uncertainties:
  1  42.9611
  2  1.32037e-05
  3  0.00875314
  4  0.388442
  5  3.98243
  6  1.28386e-05
  7  3.50001e-07
  8  18.7562
  9  0.000174516
  10  1.98205
  11  1.84842e-05
  12  0.000158542
  13  0.000264869
  14  2.59941e-06
  15  7.30648
  16  54.1242
  17  1.46083
  18  0.0016273
  19  4.80006
  20  1.05827e-05
  21  0.000381834
  22  65.4899
  23  3.43858
  24  40.4575
  25  5.95799
  26  9.07354
  27  3.65556
  28  4.81749
  29  0.284622
  30  0.300572
Done.

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

Extracting fit parameters...

4FGL J1136.2+3407
   Spectrum: PowerLaw
306    Prefactor:  2.542e+00  7.306e+00  1.000e-04  1.000e+04 ( 1.000e-12)
307        Index:  2.553e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
308        Scale:  6.244e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
623    Prefactor:  7.193e-01  3.006e-01  0.000e+00  1.000e+01 ( 1.000e+00)
624        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
625        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
622   Normalization:  1.257e+00  2.846e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.14
Ra Dec: 174.075 34.129
Photon Flux Upper Limit: 1.38e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.08e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/945686/likelihoodResults_306979201_307238401_4FGL_J1136.2+3407_daily_bin261.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): 0
logL (Free Index) = 4464.9282056
delta logL = 0.217495682594

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4464.90477412
delta logL = 0.240927164015

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.7159       1.0000         .10000E-03   10000.    
     2 'Index     '    3.6136       1.0000          .0000       10.000    
     3 'Normalizat'    1.2183       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .74526       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6260E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4464.905     FROM MIGRAD    STATUS=CONVERGED     49 CALLS      206 TOTAL
                     EDM=   .45E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.7162        59.603        .80198E-02    .70052E-04
   2  Index         3.6144        6.7762        .21010        .68605E-04
   3  Normalizat    1.2183        .55816E-01    .57515E-01    .10391E-04
   4  Prefactor     .74525        .63297E-01    .80894E-01    .17166E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.7162
  Index      = 3.61445
  Normalizat = 1.21831
  Prefactor  = 0.745247
 **********
 **   18 **HESSE 
 **********

 FCN=   4464.905     FROM HESSE     STATUS=OK            33 CALLS      239 TOTAL
                     EDM=   .76E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.7162        5.6423        .11401E-03   -1.5446    
   2  Index         3.6144        2.0592        .83496E-02   -.28079    
   3  Normalizat    1.2183        .27258        .25434E-03   -.86039    
   4  Prefactor     .74525        .30119        .35819E-03   -1.0178    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.6123e-10
Minuit parameter uncertainties:
  1  5.64405
  2  2.12807
  3  0.272902
  4  0.301858
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/945686': 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) = 4464.90477362
delta logL = 0.24092766612

Extracting fit parameters...

4FGL J1136.2+3407
   Spectrum: PowerLaw
306    Prefactor:  1.716e+00  5.644e+00  1.000e-04  1.000e+04 ( 1.000e-12)
307        Index:  3.614e+00  2.128e+00  0.000e+00  1.000e+01 (-1.000e+00)
308        Scale:  6.244e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
623    Prefactor:  7.452e-01  3.019e-01  0.000e+00  1.000e+01 ( 1.000e+00)
624        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
625        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
622   Normalization:  1.218e+00  2.729e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.14
Ra Dec: 174.075 34.129

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/945686/cmap_HighResolution_306979201_307238401_4FGL_J1136.2+3407_daily_bin261.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.08e-02', job_status='DONE', photon_flux_upper_limit='1.38e-07', time_completed='2021-09-04 05:08:00.340408', job_id='945686', GAL2='0.75', fit_tolerance='1e-08', EG2='1.22', EG='1.26', time_epoch_completed='1630757280.34', return_code2='0', ts='0.14', comment='SUCCESS', return_code='0', GAL='0.72', dlogl='2.41e-01', ts2='0.64', photon_index_error='0.00', photon_index='2.55' WHERE bin_id='261' AND source_name='4FGL J1136.2+3407' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 05:08:00 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0014>
Subject: Job 945686: <4FGL_J1136.2+3407_daily_bin261> in cluster <slac> Done

Job <4FGL_J1136.2+3407_daily_bin261> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Sat Sep  4 04:52:40 2021
Job was executed on host(s) <bullet0014>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 04:52: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:52:42 2021
Terminated at Sat Sep  4 05:08:01 2021
Results reported at Sat Sep  4 05:08:01 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1136.2+3407_daily_bin261 174.075 34.129 306979201 307238401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1136.2+3407 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   801.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             257.38 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   918 sec.
    Turnaround time :                            921 sec.

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

