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


Performing analysis on: 4FGL_J1136.2+3407_daily_bin832
RA = 174.075, Dec = 34.129
tmin = 454982401, tmax = 455241601
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='949869', job_status='RUN', time_executed='2021-09-04 05:06:59.583522', time_epoch_executed='1630757219.58' WHERE source_name='4FGL J1136.2+3407' and cadence='daily' and bin_id='832'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/949869

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/949869/ft1_4FGL_J1136.2+3407_daily_bin832.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/949869/ft2_4FGL_J1136.2+3407_daily_bin832.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/949869/ft1_4FGL_J1136.2+3407_daily_bin832.fits outfile=/scratch/kocevski/949869/ft1_filteredMKT_4FGL_J1136.2+3407_daily_bin832.fits ra=174.075 dec=34.129 rad=12.0 tmin=454982401.0 tmax=455241601.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 3.43
user 3.20
sys 0.22

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/949869/ft1_filtered_4FGL_J1136.2+3407_daily_bin832.fits evtable="EVENTS" scfile=/scratch/kocevski/949869/ft2_4FGL_J1136.2+3407_daily_bin832.fits sctable="SC_DATA" expcube=/scratch/kocevski/949869/ltcube_454982401_455241601_4FGL_J1136.2+3407_daily_bin832.fits outfile=/scratch/kocevski/949869/expmap_454982401_455241601_4FGL_J1136.2+3407_daily_bin832.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/949869/ltcube_454982401_455241601_4FGL_J1136.2+3407_daily_bin832.fits
.....................!
real 188.73
user 183.98
sys 4.38

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/949869/ft1_filtered_4FGL_J1136.2+3407_daily_bin832.fits scfile=/scratch/kocevski/949869/ft2_4FGL_J1136.2+3407_daily_bin832.fits outfile=/scratch/kocevski/949869/cmap_454982401_455241601_4FGL_J1136.2+3407_daily_bin832.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.53
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/949869/ft1_filtered_4FGL_J1136.2+3407_daily_bin832.fits scfile=/scratch/kocevski/949869/ft2_4FGL_J1136.2+3407_daily_bin832.fits outfile=/scratch/kocevski/949869/cmap_HighResolution_454982401_455241601_4FGL_J1136.2+3407_daily_bin832.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/949869/ft1_filtered_4FGL_J1136.2+3407_daily_bin832.fits evtable="EVENTS" scfile=/scratch/kocevski/949869/ft2_4FGL_J1136.2+3407_daily_bin832.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/949869/Model_4FGL_J1136.2+3407_daily_bin832.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/949869/ft1_filtered_4FGL_J1136.2+3407_daily_bin832.fits.....................!
real 55.70
user 54.40
sys 1.13

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    22.281       1.0000         .10000E-03   10000.    
     4 'norm      '    2.1315       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10532E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    2.0439       1.0000         .10000E-03   10000.    
     7 'Prefactor '    2.8253       1.0000         .10000E-03   10000.    
     8 'norm      '    .10031E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    14.913       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    51.993       1.0000         .10000E-03   10000.    
    12 'Prefactor '    29.104       1.0000         .10000E-03   10000.    
    13 'norm      '    1.0144       1.0000         .10000E-03   10000.    
    14 'Prefactor '    3.4674       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .23029E-01   1.0000         .10000E-03   10000.    
    16 'Prefactor '    84.956       1.0000         .10000E-03   10000.    
    17 'norm      '    1.7998       1.0000         .10000E-03   10000.    
    18 'Prefactor '    4.2735       1.0000         .10000E-03   10000.    
    19 'Prefactor '    4.6811       1.0000         .10000E-03   10000.    
    20 'norm      '    5.3571       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    3.9822       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    24.298       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    1.2310       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .51890       1.0000         .10000E-03   10000.    
    29 'Normalizat'    .74900       1.0000         .10000E-01   10.000    
    30 'Prefactor '    1.0702       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=   6529.072     FROM MIGRAD    STATUS=CONVERGED    801 CALLS     3462 TOTAL
                     EDM=   .34E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    13.202       -.24796E-07** at limit **
   2  Prefactor     .10000E-03    42.842       -.27482E-05** at limit **
   3  Prefactor     22.271        13.311       -.37709E-07    .49466E-04
   4  norm          2.1314        .41880       -.60436E-07    .87620E-04
   5  Prefactor     .10000E-03    2.1307       -.10043E-06** at limit **
   6  Prefactor     2.0470        20.743       -.27090E-06    .65945E-05
   7  Prefactor     2.8165        18.112        .55392E-05   -.19464E-06
   8  norm          .10000E-03    9.3094       -.62818E-07** at limit **
   9  norm          14.906        12.866       -.17638E-06    .25224E-04
  10  Prefactor     .10000E-03    .66060        .13601E-07** at limit **
  11  Prefactor     52.035        40.706       -.29958E-06    .28287E-04
  12  Prefactor     29.119        23.785        .15619E-05    .77122E-04
  13  norm          1.0123        2.3842        .84322E-07   -.19061E-04
  14  Prefactor     3.4624        12.095       -.10032E-05   -.16899E-05
  15  Prefactor     .10470E-03    2.5440       -.33479E-06** at limit **
  16  Prefactor     84.953        41.071        .42302E-07    .28964E-05
  17  norm          1.7998        1.0677       -.18384E-07   -.13053E-03
  18  Prefactor     4.2708        20.731       -.59108E-06    .48325E-05
  19  Prefactor     4.6801        2.6978        .38072E-07    .40022E-04
  20  norm          5.3562        6.8904       -.14108E-06   -.25560E-04
  21  Prefactor     .10000E-03    29.430       -.19478E-05** at limit **
  22  Prefactor     .10000E-03    36.375        .43063E-05** at limit **
  23  norm          3.9819        1.5552        .20614E-07    .12131E-03
  24  Prefactor     .10000E-03    20.771        .21479E-06** at limit **
  25  norm          24.297        5.9586       -.62175E-07   -.79583E-04
  26  Prefactor     .10000E-03    3.7175        .37557E-08** at limit **
  27  Prefactor     1.2313        2.5103        .10072E-06   -.34538E-04
  28  Prefactor     .51798        2.0535        .31306E-06   -.12494E-03
  29  Normalizat    .74934        .17962        .36473E-06    .90558E-04
  30  Prefactor     1.0700        .20372       -.40074E-06    .88962E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 22.2708
  norm       = 2.13138
  Prefactor  = 0.0001
  Prefactor  = 2.04699
  Prefactor  = 2.81647
  norm       = 0.0001
  norm       = 14.9065
  Prefactor  = 0.0001
  Prefactor  = 52.0354
  Prefactor  = 29.1191
  norm       = 1.01228
  Prefactor  = 3.4624
  Prefactor  = 0.000104696
  Prefactor  = 84.9529
  norm       = 1.79978
  Prefactor  = 4.2708
  Prefactor  = 4.68013
  norm       = 5.35617
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.98189
  Prefactor  = 0.0001
  norm       = 24.2965
  Prefactor  = 0.0001
  Prefactor  = 1.23125
  Prefactor  = 0.517977
  Normalizat = 0.74934
  Prefactor  = 1.07004
 **********
 **   18 **HESSE 
 **********

 FCN=   6529.072     FROM HESSE     STATUS=OK           606 CALLS     4068 TOTAL
                     EDM=   .31E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    13.221        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    42.791        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     22.271        12.878        .84857E-04   -1.4764    
   4  norm          2.1314        .41920        .21061E-04   -1.5416    
   5  Prefactor     .10000E-03    3.7566        .21917E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     2.0470        20.527        .28922E-03   -1.5422    
   7  Prefactor     2.8165        18.192        .12098E-02   -1.5372    
   8  norm          .10000E-03    9.3491        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          14.906        12.858        .10372E-03   -1.4936    
  10  Prefactor     .10000E-03    .66226        .64026E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     52.035        38.906        .55621E-04   -1.4264    
  12  Prefactor     29.119        23.773        .74265E-04   -1.4628    
  13  norm          1.0123        2.0430        .16127E-02   -1.5507    
  14  Prefactor     3.4624        11.997        .21717E-03   -1.5336    
  15  Prefactor     .10470E-03    4.6845        .42684E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     84.953        40.972        .43584E-04   -1.3862    
  17  norm          1.7998        1.0606        .58932E-04   -1.5440    
  18  Prefactor     4.2708        20.489        .19489E-03   -1.5295    
  19  Prefactor     4.6801        2.6856        .93195E-04   -1.5275    
  20  norm          5.3562        6.8892        .17363E-03   -1.5245    
  21  Prefactor     .10000E-03    29.676        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    36.220        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          3.9819        1.5522        .59672E-04   -1.5309    
  24  Prefactor     .10000E-03    20.827        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          24.297        5.8491        .81263E-04   -1.4722    
  26  Prefactor     .10000E-03    3.7692        .15212E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     1.2313        2.4381        .16229E-03   -1.5486    
  28  Prefactor     .51798        3.2616        .20575E-02   -1.5564    
  29  Normalizat    .74934        .21172        .28784E-03   -1.0198    
  30  Prefactor     1.0700        .24258        .28947E-03   -.90430    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.1052e-08
Minuit parameter uncertainties:
  1  2.74671e-06
  2  5.72624e-06
  3  12.8795
  4  0.419196
  5  5.23359e-06
  6  12.9699
  7  14.322
  8  1.2331e-05
  9  12.8601
  10  2.45081e-07
  11  38.9254
  12  23.7805
  13  2.0431
  14  12.0053
  15  0.00938134
  16  40.9859
  17  1.06065
  18  18.719
  19  2.68562
  20  6.8902
  21  1.65111e-05
  22  1.84288e-05
  23  1.55223
  24  1.89956e-06
  25  5.84929
  26  4.7401e-07
  27  2.43828
  28  2.59953
  29  0.211949
  30  0.242828
Done.

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

Extracting fit parameters...

4FGL J1136.2+3407
   Spectrum: PowerLaw
306    Prefactor:  1.047e-04  9.381e-03  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.070e+00  2.428e-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.493e-01  2.119e-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.71e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.02e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/949869/likelihoodResults_454982401_455241601_4FGL_J1136.2+3407_daily_bin832.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) = 6529.07163012
delta logL = -9.49929108174e-06

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6528.93338396
delta logL = 0.138236661496

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.4397       1.0000         .10000E-03   10000.    
     2 'Index     '    1.7082       1.0000          .0000       10.000    
     3 'Normalizat'    .75523       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0572       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.

 FCN=   6528.933     FROM MIGRAD    STATUS=CONVERGED     63 CALLS      303 TOTAL
                     EDM=   .42E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.4435        3.7491         .0000        .40932E-03
   2  Index         1.7109        .82760         .0000       -.12821E-02
   3  Normalizat    .75512        .17005         .0000       -.47681E-04
   4  Prefactor     1.0574        .20257         .0000        .10258E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.44346
  Index      = 1.7109
  Normalizat = 0.755125
  Prefactor  = 1.05736
 **********
 **   18 **HESSE 
 **********

 FCN=   6528.933     FROM HESSE     STATUS=OK            39 CALLS      342 TOTAL
                     EDM=   .28E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.4435        4.3652        .21547E-03   -1.5468    
   2  Index         1.7109        .82438        .36747       -.71792    
   3  Normalizat    .75512        .20370        .28681E-03   -1.0176    
   4  Prefactor     1.0574        .24311        .29095E-03   -.90841    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.77071e-10
Minuit parameter uncertainties:
  1  4.3662
  2  0.83111
  3  0.203905
  4  0.24336
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/949869': 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) = 6528.93338067
delta logL = 0.138239950707

Extracting fit parameters...

4FGL J1136.2+3407
   Spectrum: PowerLaw
306    Prefactor:  1.443e+00  4.366e+00  1.000e-04  1.000e+04 ( 1.000e-12)
307        Index:  1.711e+00  8.311e-01  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.057e+00  2.434e-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.551e-01  2.039e-01  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/949869/cmap_HighResolution_454982401_455241601_4FGL_J1136.2+3407_daily_bin832.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.02e-03', job_status='DONE', photon_flux_upper_limit='7.71e-08', time_completed='2021-09-04 05:21:47.356989', job_id='949869', GAL2='1.06', fit_tolerance='1e-08', EG2='0.76', EG='0.75', time_epoch_completed='1630758107.36', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.07', dlogl='1.38e-01', ts2='0.28', photon_index_error='0.00', photon_index='2.55' WHERE bin_id='832' AND source_name='4FGL J1136.2+3407' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 05:21:47 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0073>
Subject: Job 949869: <4FGL_J1136.2+3407_daily_bin832> in cluster <slac> Done

Job <4FGL_J1136.2+3407_daily_bin832> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sat Sep  4 05:06:40 2021
Job was executed on host(s) <bullet0073>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 05:06:41 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:41 2021
Terminated at Sat Sep  4 05:21:48 2021
Results reported at Sat Sep  4 05:21:48 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1136.2+3407_daily_bin832 174.075 34.129 454982401 455241601 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 :                                   884.29 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             336.52 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   906 sec.
    Turnaround time :                            908 sec.

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

