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


Performing analysis on: 4FGL_J1136.2+3407_daily_bin696
RA = 174.075, Dec = 34.129
tmin = 419731201, tmax = 419990401
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='948147', job_status='RUN', time_executed='2021-09-04 05:03:33.086572', time_epoch_executed='1630757013.09' WHERE source_name='4FGL J1136.2+3407' and cadence='daily' and bin_id='696'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/948147

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/948147/ft1_4FGL_J1136.2+3407_daily_bin696.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/948147/ft2_4FGL_J1136.2+3407_daily_bin696.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/948147/ft1_4FGL_J1136.2+3407_daily_bin696.fits outfile=/scratch/kocevski/948147/ft1_filteredMKT_4FGL_J1136.2+3407_daily_bin696.fits ra=174.075 dec=34.129 rad=12.0 tmin=419731201.0 tmax=419990401.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 6.24
user 5.61
sys 0.27

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/948147/ft2_4FGL_J1136.2+3407_daily_bin696.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/948147/ft1_filteredMKT_4FGL_J1136.2+3407_daily_bin696.fits evtable="EVENTS" outfile="/scratch/kocevski/948147/ft1_filtered_4FGL_J1136.2+3407_daily_bin696.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.96
user 0.33
sys 0.18

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/948147/ft1_filtered_4FGL_J1136.2+3407_daily_bin696.fits" evtable="EVENTS" scfile=/scratch/kocevski/948147/ft2_4FGL_J1136.2+3407_daily_bin696.fits sctable="SC_DATA" outfile=/scratch/kocevski/948147/ltcube_419731201_419990401_4FGL_J1136.2+3407_daily_bin696.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/948147/ft2_4FGL_J1136.2+3407_daily_bin696.fits
.....................!
real 12.47
user 11.91
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/948147/ft1_filtered_4FGL_J1136.2+3407_daily_bin696.fits evtable="EVENTS" scfile=/scratch/kocevski/948147/ft2_4FGL_J1136.2+3407_daily_bin696.fits sctable="SC_DATA" expcube=/scratch/kocevski/948147/ltcube_419731201_419990401_4FGL_J1136.2+3407_daily_bin696.fits outfile=/scratch/kocevski/948147/expmap_419731201_419990401_4FGL_J1136.2+3407_daily_bin696.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/948147/ltcube_419731201_419990401_4FGL_J1136.2+3407_daily_bin696.fits
.....................!
real 190.44
user 185.58
sys 4.30

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/948147/ft1_filtered_4FGL_J1136.2+3407_daily_bin696.fits scfile=/scratch/kocevski/948147/ft2_4FGL_J1136.2+3407_daily_bin696.fits outfile=/scratch/kocevski/948147/cmap_419731201_419990401_4FGL_J1136.2+3407_daily_bin696.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.55
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/948147/ft1_filtered_4FGL_J1136.2+3407_daily_bin696.fits scfile=/scratch/kocevski/948147/ft2_4FGL_J1136.2+3407_daily_bin696.fits outfile=/scratch/kocevski/948147/cmap_HighResolution_419731201_419990401_4FGL_J1136.2+3407_daily_bin696.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.39
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10037E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .17892E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    3.0081       1.0000         .10000E-03   10000.    
     5 'Prefactor '    2.7384       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    6.9449       1.0000         .10000E-03   10000.    
     8 'norm      '    .10025E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    5.4745       1.0000         .10000E-03   10000.    
    10 'Prefactor '    2.1355       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10669E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10178E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .20306E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    7.3028       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    6.7408       1.0000         .10000E-03   10000.    
    18 'Prefactor '    29.423       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10271E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    3.5414       1.0000         .10000E-03   10000.    
    24 'Prefactor '    115.59       1.0000         .10000E-03   10000.    
    25 'norm      '    2.6586       1.0000         .10000E-03   10000.    
    26 'Prefactor '    2.9544       1.0000         .10000E-03   10000.    
    27 'Prefactor '    4.7906       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .48619E-03   1.0000         .10000E-03   10000.    
    29 'Normalizat'    .71751       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .97287       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=   3812.481     FROM MIGRAD    STATUS=CONVERGED    800 CALLS     3966 TOTAL
                     EDM=   .51E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    60.379       -.90422E-04** at limit **
   2  Prefactor     .10002E-03    560.84       -.16412E-03** at limit **
   3  Prefactor     .10000E-03    4.2497        .12367E-06** at limit **
   4  norm          3.0081        .55276        .19323E-07    .12493E-02
   5  Prefactor     2.7387        2.5825        .14695E-06    .21109E-03
   6  Prefactor     .10000E-03    7.5121        .18499E-06** at limit **
   7  Prefactor     6.9428        11.544       -.35167E-05   -.99821E-05
   8  norm          .10000E-03    6.6129        .67945E-07** at limit **
   9  norm          5.4697        11.668       -.96982E-05   -.89582E-04
  10  Prefactor     2.1340        2.2387       -.35514E-06   -.84586E-03
  11  Prefactor     .10000E-03    119.48        .49851E-04** at limit **
  12  Prefactor     .10000E-03    9.8316       -.56089E-07** at limit **
  13  norm          .10000E-03    1.7102       -.28060E-06** at limit **
  14  Prefactor     7.2991        13.533       -.11373E-05   -.78881E-04
  15  Prefactor     .10000E-03    2.3069        .16321E-06** at limit **
  16  Prefactor     .10000E-03    39.078       -.10484E-04** at limit **
  17  norm          6.7408        1.9644       -.92502E-07   -.33961E-03
  18  Prefactor     29.427        24.214       -.25993E-06   -.23168E-04
  19  Prefactor     .10000E-03    1.2034       -.24310E-07** at limit **
  20  norm          .10000E-03    4.9673        .16540E-06** at limit **
  21  Prefactor     .10000E-03    51.255        .52925E-04** at limit **
  22  Prefactor     .10000E-03    53.559        .23430E-04** at limit **
  23  norm          3.5414        1.8148       -.56182E-07   -.33205E-03
  24  Prefactor     115.59        56.139       -.16077E-05   -.25768E-03
  25  norm          2.6598        5.2495       -.51174E-06   -.30868E-03
  26  Prefactor     2.9544        5.8025        .30250E-05   -.18145E-03
  27  Prefactor     4.7909        4.4897        .18849E-06   -.61989E-04
  28  Prefactor     .10000E-03    2.0158       -.18156E-06** at limit **
  29  Normalizat    .71737        .21802        .28684E-05    .26232E-03
  30  Prefactor     .97305        .25063       -.85677E-08    .27275E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.00010002
  Prefactor  = 0.0001
  norm       = 3.00814
  Prefactor  = 2.7387
  Prefactor  = 0.0001
  Prefactor  = 6.9428
  norm       = 0.0001
  norm       = 5.46966
  Prefactor  = 2.13403
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 7.29914
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 6.74076
  Prefactor  = 29.4265
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 3.54139
  Prefactor  = 115.586
  norm       = 2.65975
  Prefactor  = 2.95441
  Prefactor  = 4.7909
  Prefactor  = 0.000100003
  Normalizat = 0.717366
  Prefactor  = 0.973046
 **********
 **   18 **HESSE 
 **********

 FCN=   3812.481     FROM HESSE     STATUS=OK           582 CALLS     4548 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    60.649        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10002E-03    569.84        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    4.2536        .12430E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          3.0081        .55430        .18714E-04   -1.5361    
   5  Prefactor     2.7387        2.5862        .92611E-04   -1.5377    
   6  Prefactor     .10000E-03    7.5256        .16526E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     6.9428        11.552        .15224E-03   -1.5181    
   8  norm          .10000E-03    6.6253        .15507E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          5.4697        11.706        .17173E-03   -1.5240    
  10  Prefactor     2.1340        2.2060        .90106E-04   -1.5416    
  11  Prefactor     .10000E-03    120.17        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    9.8450        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    17.781        .15275E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     7.2991        13.532        .14842E-03   -1.5168    
  15  Prefactor     .10000E-03    2.3147        .91562E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    39.128        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          6.7408        1.9580        .44310E-04   -1.5189    
  18  Prefactor     29.427        24.199        .73862E-04   -1.4623    
  19  Prefactor     .10000E-03    1.2258        .66022E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    4.9680        .13441E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    51.604        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    53.584        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          3.5414        1.8120        .56666E-04   -1.5332    
  24  Prefactor     115.59        56.173        .37422E-04   -1.3554    
  25  norm          2.6598        5.2093        .14718E-03   -1.5382    
  26  Prefactor     2.9544        5.7749        .20225E-03   -1.5364    
  27  Prefactor     4.7909        4.5433        .95997E-04   -1.5270    
  28  Prefactor     .10000E-03    17.705        .16363E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    .71737        .25576        .26892E-03   -1.0321    
  30  Prefactor     .97305        .29370        .28031E-03   -.93633    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.14526e-09
Minuit parameter uncertainties:
  1  0.000277679
  2  0.00689787
  3  1.44377e-07
  4  0.554302
  5  2.58632
  6  3.8636e-06
  7  11.5557
  8  1.58785e-07
  9  11.7104
  10  2.2061
  11  0.000243289
  12  1.86937e-05
  13  0.000116272
  14  13.5379
  15  3.14845e-06
  16  1.37335e-05
  17  1.95806
  18  24.2074
  19  1.20045e-07
  20  1.20746e-06
  21  0.000414962
  22  2.02483e-05
  23  1.81204
  24  56.1992
  25  5.21014
  26  5.77596
  27  4.54367
  28  0.000425468
  29  0.256184
  30  0.294178
Done.

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

Extracting fit parameters...

4FGL J1136.2+3407
   Spectrum: PowerLaw
306    Prefactor:  1.000e-04  3.148e-06  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:  9.730e-01  2.942e-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:  7.174e-01  2.562e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 174.075 34.129
Photon Flux Upper Limit: 7.56e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.90e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/948147/likelihoodResults_419731201_419990401_4FGL_J1136.2+3407_daily_bin696.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) = 3812.48275908
delta logL = -0.0020316919472

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 3812.48072733
delta logL = 5.35396793566e-08

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 'Index     '    2.5397       1.0000          .0000       10.000    
     3 'Normalizat'    .71736       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .97309       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   3812.481     FROM MIGRAD    STATUS=CONVERGED     98 CALLS      249 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    28.132        .92273E-02** at limit **
   2  Index         2.0361        8.7293        .50000        .17924E-06
   3  Normalizat    .71737        .16559E-01    .26892E-03   -.21632E-03
   4  Prefactor     .97304        .19984E-01    .28031E-03   -.19879E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Index      = 2.03609
  Normalizat = 0.717365
  Prefactor  = 0.973043
 **********
 **   18 **HESSE 
 **********

 FCN=   3812.481     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      278 TOTAL
                     EDM=   .10E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    251.65        .99561E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.0361        8.6926        .50000       -.63451    
   3  Normalizat    .71737        .55590E-01    .10757E-04   -1.0321    
   4  Prefactor     .97304        .67087E-01    .56062E-04   -.93634    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 9.98872e-09
Minuit parameter uncertainties:
  1  0.000776487
  2  954.522
  3  0.0555944
  4  0.0670927
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/948147': 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) = 3812.4807241
delta logL = 3.28686883222e-06

Extracting fit parameters...

4FGL J1136.2+3407
   Spectrum: PowerLaw
306    Prefactor:  1.000e-04  7.765e-04  1.000e-04  1.000e+04 ( 1.000e-12)
307        Index:  2.036e+00  9.545e+02  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:  9.730e-01  6.709e-02  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:  7.174e-01  5.559e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
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/948147/cmap_HighResolution_419731201_419990401_4FGL_J1136.2+3407_daily_bin696.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.90e-03', job_status='DONE', photon_flux_upper_limit='7.56e-08', time_completed='2021-09-04 05:15:12.616099', job_id='948147', GAL2='0.97', fit_tolerance='1e-08', EG2='0.72', EG='0.72', time_epoch_completed='1630757712.62', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.97', dlogl='3.29e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.55' WHERE bin_id='696' AND source_name='4FGL J1136.2+3407' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 05:15:12 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0079>
Subject: Job 948147: <4FGL_J1136.2+3407_daily_bin696> in cluster <slac> Done

Job <4FGL_J1136.2+3407_daily_bin696> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Sat Sep  4 05:01:22 2021
Job was executed on host(s) <bullet0079>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 05:01:24 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:01:24 2021
Terminated at Sat Sep  4 05:15:13 2021
Results reported at Sat Sep  4 05:15:13 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1136.2+3407_daily_bin696 174.075 34.129 419731201 419990401 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 :                                   697.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             255.56 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   828 sec.
    Turnaround time :                            831 sec.

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

