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


Performing analysis on: 4FGL_J1136.2+3407_daily_bin806
RA = 174.075, Dec = 34.129
tmin = 448243201, tmax = 448502401
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='949830', job_status='RUN', time_executed='2021-09-04 05:08:41.112432', time_epoch_executed='1630757321.11' WHERE source_name='4FGL J1136.2+3407' and cadence='daily' and bin_id='806'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/949830

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/949830/ft1_4FGL_J1136.2+3407_daily_bin806.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/949830/ft2_4FGL_J1136.2+3407_daily_bin806.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/949830/ft1_4FGL_J1136.2+3407_daily_bin806.fits outfile=/scratch/kocevski/949830/ft1_filteredMKT_4FGL_J1136.2+3407_daily_bin806.fits ra=174.075 dec=34.129 rad=12.0 tmin=448243201.0 tmax=448502401.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 5.55
user 5.04
sys 0.26

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/949830/ft2_4FGL_J1136.2+3407_daily_bin806.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/949830/ft1_filteredMKT_4FGL_J1136.2+3407_daily_bin806.fits evtable="EVENTS" outfile="/scratch/kocevski/949830/ft1_filtered_4FGL_J1136.2+3407_daily_bin806.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.51
user 0.34
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/949830/ft1_filtered_4FGL_J1136.2+3407_daily_bin806.fits" evtable="EVENTS" scfile=/scratch/kocevski/949830/ft2_4FGL_J1136.2+3407_daily_bin806.fits sctable="SC_DATA" outfile=/scratch/kocevski/949830/ltcube_448243201_448502401_4FGL_J1136.2+3407_daily_bin806.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/949830/ft2_4FGL_J1136.2+3407_daily_bin806.fits
.....................!
real 11.83
user 11.38
sys 0.41

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/949830/ft1_filtered_4FGL_J1136.2+3407_daily_bin806.fits evtable="EVENTS" scfile=/scratch/kocevski/949830/ft2_4FGL_J1136.2+3407_daily_bin806.fits sctable="SC_DATA" expcube=/scratch/kocevski/949830/ltcube_448243201_448502401_4FGL_J1136.2+3407_daily_bin806.fits outfile=/scratch/kocevski/949830/expmap_448243201_448502401_4FGL_J1136.2+3407_daily_bin806.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/949830/ltcube_448243201_448502401_4FGL_J1136.2+3407_daily_bin806.fits
.....................!
real 192.80
user 186.05
sys 6.33

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/949830/ft1_filtered_4FGL_J1136.2+3407_daily_bin806.fits scfile=/scratch/kocevski/949830/ft2_4FGL_J1136.2+3407_daily_bin806.fits outfile=/scratch/kocevski/949830/cmap_448243201_448502401_4FGL_J1136.2+3407_daily_bin806.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.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/949830/ft1_filtered_4FGL_J1136.2+3407_daily_bin806.fits scfile=/scratch/kocevski/949830/ft2_4FGL_J1136.2+3407_daily_bin806.fits outfile=/scratch/kocevski/949830/cmap_HighResolution_448243201_448502401_4FGL_J1136.2+3407_daily_bin806.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.56
user 0.36
sys 0.19

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/949830/ft1_filtered_4FGL_J1136.2+3407_daily_bin806.fits', '/scratch/kocevski/949830/ft2_4FGL_J1136.2+3407_daily_bin806.fits', expMap='/scratch/kocevski/949830/expmap_448243201_448502401_4FGL_J1136.2+3407_daily_bin806.fits', expCube='/scratch/kocevski/949830/ltcube_448243201_448502401_4FGL_J1136.2+3407_daily_bin806.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/949830/Model_4FGL_J1136.2+3407_daily_bin806.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/949830/ft1_filtered_4FGL_J1136.2+3407_daily_bin806.fits
Spacecraft file(s): /scratch/kocevski/949830/ft2_4FGL_J1136.2+3407_daily_bin806.fits
Exposure map: /scratch/kocevski/949830/expmap_448243201_448502401_4FGL_J1136.2+3407_daily_bin806.fits
Exposure cube: /scratch/kocevski/949830/ltcube_448243201_448502401_4FGL_J1136.2+3407_daily_bin806.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/949830/Model_4FGL_J1136.2+3407_daily_bin806.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) = 4094.91902487

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10039E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10083E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    1.2024       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10123E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    16.036       1.0000         .10000E-03   10000.    
     9 'norm      '    .37275E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .91020       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10063E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10079E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    5.6862       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    3.7583       1.0000         .10000E-03   10000.    
    16 'Prefactor '    5.0883       1.0000         .10000E-03   10000.    
    17 'norm      '    2.4026       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .18791E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .46913       1.0000         .10000E-03   10000.    
    20 'norm      '    .10018E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10650E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .71105E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    8.6123       1.0000         .10000E-03   10000.    
    24 'Prefactor '    73.642       1.0000         .10000E-03   10000.    
    25 'norm      '    8.5219       1.0000         .10000E-03   10000.    
    26 'Prefactor '    7.9005       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .33220       1.0000         .10000E-03   10000.    
    28 'Prefactor '    3.1654       1.0000         .10000E-03   10000.    
    29 'Normalizat'    .66500       1.0000         .10000E-01   10.000    
    30 'Prefactor '    1.0431       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=   4094.904     FROM MIGRAD    STATUS=CONVERGED    773 CALLS     4006 TOTAL
                     EDM=   .25E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    16.704       -.59001E-07** at limit **
   2  Prefactor     .10000E-03    39.429       -.72832E-07** at limit **
   3  Prefactor     .10000E-03    4.5933       -.68535E-08** at limit **
   4  norm          1.2025        .35114        .97694E-08    .13979E-02
   5  Prefactor     .10000E-03    1.7463        .19509E-07** at limit **
   6  Prefactor     .10011E-03    18.358       -.14768E-05** at limit **
   7  Prefactor     .10000E-03    19.177        .21921E-06** at limit **
   8  norm          16.048        17.650        .75594E-07    .16039E-03
   9  norm          .10001E-03    11.654        .62238E-06** at limit **
  10  Prefactor     .90869        2.1943        .23528E-06    .22670E-03
  11  Prefactor     .10000E-03    22.512       -.30730E-06** at limit **
  12  Prefactor     .10000E-03    16.477       -.13945E-06** at limit **
  13  norm          5.6879        3.4767       -.26550E-07    .40819E-04
  14  Prefactor     .10000E-03    19.169        .14552E-06** at limit **
  15  Prefactor     3.7605        6.7531        .65231E-06   -.27079E-04
  16  Prefactor     5.0943        129.14        .11117E-05    .77597E-05
  17  norm          2.4018        1.5082       -.20682E-06    .35506E-04
  18  Prefactor     .10000E-03    77.144       -.13956E-05** at limit **
  19  Prefactor     .46852        1.1779        .26624E-06    .43831E-03
  20  norm          .10000E-03    6.2830       -.40643E-07** at limit **
  21  Prefactor     .10000E-03    65.296        .21961E-05** at limit **
  22  Prefactor     .10001E-03    199.22       -.27085E-05** at limit **
  23  norm          8.6121        2.2342       -.34003E-08   -.13747E-03
  24  Prefactor     73.655        42.388        .56634E-06    .33570E-04
  25  norm          8.5216        4.8620       -.44063E-06   -.42349E-03
  26  Prefactor     7.9005        7.2709       -.29529E-08   -.18297E-04
  27  Prefactor     .33257        4.6712        .25130E-05   -.32148E-04
  28  Prefactor     3.1653        4.0292       -.36807E-07   -.22205E-03
  29  Normalizat    .66497        .20366       -.61504E-06    .23057E-06
  30  Prefactor     1.0431        .22955        .92990E-07   -.25839E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.20254
  Prefactor  = 0.0001
  Prefactor  = 0.000100105
  Prefactor  = 0.0001
  norm       = 16.0477
  norm       = 0.000100013
  Prefactor  = 0.908689
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 5.68786
  Prefactor  = 0.0001
  Prefactor  = 3.76048
  Prefactor  = 5.09433
  norm       = 2.40182
  Prefactor  = 0.0001
  Prefactor  = 0.468525
  norm       = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.000100006
  norm       = 8.6121
  Prefactor  = 73.6549
  norm       = 8.52162
  Prefactor  = 7.90053
  Prefactor  = 0.332565
  Prefactor  = 3.16529
  Normalizat = 0.664972
  Prefactor  = 1.04312
 **********
 **   18 **HESSE 
 **********

 FCN=   4094.904     FROM HESSE     STATUS=OK           600 CALLS     4606 TOTAL
                     EDM=   .59E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    16.790        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    39.442        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    4.6033        .13392E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          1.2025        .34493        .19389E-04   -1.5489    
   5  Prefactor     .10000E-03    8.3154        .16120E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10011E-03    78.112        .46549E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    19.366        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          16.048        16.620        .10002E-03   -1.4907    
   9  norm          .10001E-03    60.999        .41160E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .90869        1.8162        .13362E-02   -1.5517    
  11  Prefactor     .10000E-03    22.603        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    16.604        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          5.6879        3.4114        .84360E-04   -1.5231    
  14  Prefactor     .10000E-03    19.424        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     3.7605        6.5928        .20230E-03   -1.5320    
  16  Prefactor     5.0943        128.23        .17824E-03   -1.5257    
  17  norm          2.4018        1.4918        .53538E-04   -1.5398    
  18  Prefactor     .10000E-03    80.208        .36285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .46852        .97906        .10978E-02   -1.5571    
  20  norm          .10000E-03    6.2935        .15663E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    66.530        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10001E-03    203.39        .20971E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          8.6121        2.2306        .46414E-04   -1.5121    
  24  Prefactor     73.655        42.321        .46786E-04   -1.3989    
  25  norm          8.5216        4.8659        .93061E-04   -1.5124    
  26  Prefactor     7.9005        7.2690        .14265E-03   -1.5146    
  27  Prefactor     .33257        4.7278        .24337E-02   -1.5593    
  28  Prefactor     3.1653        3.9947        .13190E-03   -1.5352    
  29  Normalizat    .66497        .23469        .26684E-03   -1.0529    
  30  Prefactor     1.0431        .27310        .26360E-03   -.91306    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.94011e-08
Minuit parameter uncertainties:
  1  5.4502e-06
  2  4.00957e-05
  3  9.76788e-07
  4  0.344932
  5  3.56939e-05
  6  0.00574111
  7  0.000102914
  8  16.6249
  9  0.00175808
  10  1.81632
  11  0.000132231
  12  4.37016e-05
  13  3.41156
  14  5.72322e-05
  15  6.59409
  16  51.2397
  17  1.49178
  18  0.000285867
  19  0.979089
  20  5.86288e-06
  21  0.000395472
  22  0.00214024
  23  2.23067
  24  42.3386
  25  4.86618
  26  7.26976
  27  2.50768
  28  3.995
  29  0.235041
  30  0.273464
Done.

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

Extracting fit parameters...

4FGL J1136.2+3407
   Spectrum: PowerLaw
306    Prefactor:  3.760e+00  6.594e+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:  1.043e+00  2.735e-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:  6.650e-01  2.350e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.39
Ra Dec: 174.075 34.129
Photon Flux Upper Limit: 1.26e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.86e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/949830/likelihoodResults_448243201_448502401_4FGL_J1136.2+3407_daily_bin806.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) = 4094.86351693
delta logL = 0.040389817364

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4094.83667674
delta logL = 0.0672300025108

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.0881       1.0000         .10000E-03   10000.    
     2 'Index     '    3.2266       1.0000          .0000       10.000    
     3 'Normalizat'    .64850       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0592       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4094.837     FROM MIGRAD    STATUS=CONVERGED     97 CALLS      263 TOTAL
                     EDM=   .81E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.0763        8.6445        .13029E-03   -.11344E-05
   2  Index         3.2291        2.6708        .43267E-02    .46778E-04
   3  Normalizat    .64854        .22957        .26993E-03   -.44223E-06
   4  Prefactor     1.0593        .27635        .26180E-03   -.43425E-07
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.07628
  Index      = 3.22911
  Normalizat = 0.648536
  Prefactor  = 1.05926
 **********
 **   18 **HESSE 
 **********

 FCN=   4094.837     FROM HESSE     STATUS=OK            25 CALLS      288 TOTAL
                     EDM=   .90E-14    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.0763        6.8535        .52115E-05   -1.5420    
   2  Index         3.2291        2.2067        .86535E-03   -.36203    
   3  Normalizat    .64854        .22919        .10797E-04   -1.0596    
   4  Prefactor     1.0593        .27517        .10472E-04   -.90779    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.96479e-15
Minuit parameter uncertainties:
  1  6.85611
  2  2.29815
  3  0.229529
  4  0.275541
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/949830': 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) = 4094.83667451
delta logL = 0.0672322315336

Extracting fit parameters...

4FGL J1136.2+3407
   Spectrum: PowerLaw
306    Prefactor:  2.076e+00  6.856e+00  1.000e-04  1.000e+04 ( 1.000e-12)
307        Index:  3.229e+00  2.298e+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:  1.059e+00  2.755e-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:  6.485e-01  2.295e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.39
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/949830/cmap_HighResolution_448243201_448502401_4FGL_J1136.2+3407_daily_bin806.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.86e-03', job_status='DONE', photon_flux_upper_limit='1.26e-07', time_completed='2021-09-04 05:20:47.515103', job_id='949830', GAL2='1.06', fit_tolerance='1e-08', EG2='0.65', EG='0.66', time_epoch_completed='1630758047.52', return_code2='0', ts='0.39', comment='SUCCESS', return_code='0', GAL='1.04', dlogl='6.72e-02', ts2='0.53', photon_index_error='0.00', photon_index='2.55' WHERE bin_id='806' AND source_name='4FGL J1136.2+3407' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 05:20:47 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0187>
Subject: Job 949830: <4FGL_J1136.2+3407_daily_bin806> in cluster <slac> Done

Job <4FGL_J1136.2+3407_daily_bin806> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sat Sep  4 05:06:36 2021
Job was executed on host(s) <bullet0187>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 05:06:37 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Sep  4 05:06:37 2021
Terminated at Sat Sep  4 05:20:48 2021
Results reported at Sat Sep  4 05:20:48 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1136.2+3407_daily_bin806 174.075 34.129 448243201 448502401 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 :                                   724.22 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             299.48 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   850 sec.
    Turnaround time :                            852 sec.

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

