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


Performing analysis on: 4FGL_J1136.2+3407_daily_bin385
RA = 174.075, Dec = 34.129
tmin = 339120001, tmax = 339379201
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='946682', job_status='RUN', time_executed='2021-09-04 04:56:34.096693', time_epoch_executed='1630756594.1' WHERE source_name='4FGL J1136.2+3407' and cadence='daily' and bin_id='385'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/946682

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

Retrieving the FT1 file...

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

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

Retrieving 52 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/946682/ft1_4FGL_J1136.2+3407_daily_bin385.fits


Retrieving the FT1 file...

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

Retrieving 52 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/946682/ft2_4FGL_J1136.2+3407_daily_bin385.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/946682/ft1_4FGL_J1136.2+3407_daily_bin385.fits outfile=/scratch/kocevski/946682/ft1_filteredMKT_4FGL_J1136.2+3407_daily_bin385.fits ra=174.075 dec=34.129 rad=12.0 tmin=339120001.0 tmax=339379201.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.26
user 4.96
sys 0.27

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/946682/ft1_filtered_4FGL_J1136.2+3407_daily_bin385.fits" evtable="EVENTS" scfile=/scratch/kocevski/946682/ft2_4FGL_J1136.2+3407_daily_bin385.fits sctable="SC_DATA" outfile=/scratch/kocevski/946682/ltcube_339120001_339379201_4FGL_J1136.2+3407_daily_bin385.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/946682/ft2_4FGL_J1136.2+3407_daily_bin385.fits
.....................!
real 9.80
user 9.46
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/946682/ft1_filtered_4FGL_J1136.2+3407_daily_bin385.fits evtable="EVENTS" scfile=/scratch/kocevski/946682/ft2_4FGL_J1136.2+3407_daily_bin385.fits sctable="SC_DATA" expcube=/scratch/kocevski/946682/ltcube_339120001_339379201_4FGL_J1136.2+3407_daily_bin385.fits outfile=/scratch/kocevski/946682/expmap_339120001_339379201_4FGL_J1136.2+3407_daily_bin385.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/946682/ltcube_339120001_339379201_4FGL_J1136.2+3407_daily_bin385.fits
.....................!
real 155.88
user 151.21
sys 4.34

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/946682/ft1_filtered_4FGL_J1136.2+3407_daily_bin385.fits scfile=/scratch/kocevski/946682/ft2_4FGL_J1136.2+3407_daily_bin385.fits outfile=/scratch/kocevski/946682/cmap_339120001_339379201_4FGL_J1136.2+3407_daily_bin385.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.46
user 0.31
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/946682/ft1_filtered_4FGL_J1136.2+3407_daily_bin385.fits scfile=/scratch/kocevski/946682/ft2_4FGL_J1136.2+3407_daily_bin385.fits outfile=/scratch/kocevski/946682/cmap_HighResolution_339120001_339379201_4FGL_J1136.2+3407_daily_bin385.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.48
user 0.33
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    261.93       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .24818E-02   1.0000         .10000E-03   10000.    
     4 'norm      '    1.5415       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    4.1897       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    4.8533       1.0000         .10000E-03   10000.    
    10 'Prefactor '    6.9276       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    42.563       1.0000         .10000E-03   10000.    
    13 'norm      '    .85747       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .42252E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    7.2943       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    3.4589       1.0000         .10000E-03   10000.    
    18 'Prefactor '    2.0050       1.0000         .10000E-03   10000.    
    19 'Prefactor '    2.9691       1.0000         .10000E-03   10000.    
    20 'norm      '    .19922E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    13.140       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .58083E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    12.309       1.0000         .10000E-03   10000.    
    24 'Prefactor '    24.487       1.0000         .10000E-03   10000.    
    25 'norm      '    3.8167       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .25681E-02   1.0000         .10000E-03   10000.    
    27 'Prefactor '    2.4445       1.0000         .10000E-03   10000.    
    28 'Prefactor '    4.1977       1.0000         .10000E-03   10000.    
    29 'Normalizat'    1.0114       1.0000         .10000E-01   10.000    
    30 'Prefactor '    1.1257       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=   6821.035     FROM MIGRAD    STATUS=CONVERGED    774 CALLS     4049 TOTAL
                     EDM=   .19E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    7.0411       -.11394E-07** at limit **
   2  Prefactor     262.01        166.89        .29404E-05    .20235E-03
   3  Prefactor     .10034E-03    8.1676        .18654E-05** at limit **
   4  norm          1.5416        .36966       -.60419E-07   -.28693E-03
   5  Prefactor     .10000E-03    2.3379       -.45436E-07** at limit **
   6  Prefactor     4.1910        10.861        .87260E-05    .39296E-04
   7  Prefactor     .10000E-03    5.9177       -.12436E-06** at limit **
   8  norm          .10000E-03    6.2510       -.22649E-06** at limit **
   9  norm          4.8549        9.4968        .47315E-06   -.31209E-04
  10  Prefactor     6.9284        3.1511       -.89107E-07   -.26578E-03
  11  Prefactor     .10000E-03    19.192        .22190E-06** at limit **
  12  Prefactor     42.561        27.059        .15590E-06   -.78608E-04
  13  norm          .85690        1.8225        .48086E-06    .81068E-03
  14  Prefactor     .10000E-03    36.830       -.75998E-06** at limit **
  15  Prefactor     7.2976        6.9403        .15658E-06   -.41472E-04
  16  Prefactor     .10000E-03    32.062       -.48261E-06** at limit **
  17  norm          3.4573        1.3811       -.95386E-07   -.32071E-03
  18  Prefactor     2.0108        34.969        .17614E-05   -.56865E-05
  19  Prefactor     2.9691        2.3679        .96457E-07   -.55055E-04
  20  norm          .10000E-03    15.210       -.52598E-06** at limit **
  21  Prefactor     13.123        38.269       -.45181E-06   -.14954E-03
  22  Prefactor     .10007E-03    202.97       -.70420E-05** at limit **
  23  norm          12.310        2.4207        .27086E-07   -.36773E-03
  24  Prefactor     24.515        33.509        .12736E-05    .13737E-03
  25  norm          3.8171        3.0218        .51596E-07   -.13736E-03
  26  Prefactor     .10124E-03    5.7629        .23482E-05** at limit **
  27  Prefactor     2.4445        2.1997        .67153E-08   -.10960E-03
  28  Prefactor     4.1983        3.1090        .11373E-06   -.10663E-03
  29  Normalizat    1.0108        .20750       -.27019E-05   -.37649E-03
  30  Prefactor     1.1263        .22032        .69485E-06   -.44553E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 262.013
  Prefactor  = 0.000100337
  norm       = 1.54155
  Prefactor  = 0.0001
  Prefactor  = 4.19102
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 4.85486
  Prefactor  = 6.92838
  Prefactor  = 0.0001
  Prefactor  = 42.5613
  norm       = 0.856902
  Prefactor  = 0.0001
  Prefactor  = 7.29757
  Prefactor  = 0.0001
  norm       = 3.45734
  Prefactor  = 2.01084
  Prefactor  = 2.96914
  norm       = 0.0001
  Prefactor  = 13.1228
  Prefactor  = 0.000100068
  norm       = 12.3099
  Prefactor  = 24.5153
  norm       = 3.81706
  Prefactor  = 0.000101239
  Prefactor  = 2.44454
  Prefactor  = 4.19826
  Normalizat = 1.01076
  Prefactor  = 1.1263
 **********
 **   18 **HESSE 
 **********

 FCN=   6821.035     FROM HESSE     STATUS=OK           590 CALLS     4639 TOTAL
                     EDM=   .25E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    7.0427        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     262.01        167.51        .12523E-03   -1.2456    
   3  Prefactor     .10034E-03    73.992        .44106E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          1.5416        .37030        .23484E-04   -1.5460    
   5  Prefactor     .10000E-03    2.3920        .24593E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     4.1910        10.807        .98445E-03   -1.5299    
   7  Prefactor     .10000E-03    5.9365        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    6.2632        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          4.8549        9.4830        .18260E-03   -1.5267    
  10  Prefactor     6.9284        3.1223        .92208E-04   -1.5181    
  11  Prefactor     .10000E-03    19.204        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     42.561        26.959        .61447E-04   -1.4402    
  13  norm          .85690        1.4389        .15560E-02   -1.5523    
  14  Prefactor     .10000E-03    37.257        .21238E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     7.2976        6.9166        .14851E-03   -1.5168    
  16  Prefactor     .10000E-03    32.188        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          3.4573        1.3769        .58096E-04   -1.5336    
  18  Prefactor     2.0108        34.558        .29244E-03   -1.5424    
  19  Prefactor     2.9691        2.3508        .10663E-03   -1.5363    
  20  norm          .10000E-03    15.615        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     13.123        38.273        .11050E-03   -1.4983    
  22  Prefactor     .10007E-03    205.35        .21081E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          12.310        2.4170        .53405E-04   -1.5006    
  24  Prefactor     24.515        33.375        .80949E-04   -1.4717    
  25  norm          3.8171        3.0215        .11869E-03   -1.5317    
  26  Prefactor     .10124E-03    62.081        .35532E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     2.4445        2.2011        .10882E-03   -1.5395    
  28  Prefactor     4.1983        3.1008        .11962E-03   -1.5298    
  29  Normalizat    1.0108        .24480        .29703E-03   -.92671    
  30  Prefactor     1.1263        .26085        .32178E-03   -.88630    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.48755e-08
Minuit parameter uncertainties:
  1  2.32191e-06
  2  167.82
  3  0.00999412
  4  0.370299
  5  9.71438e-07
  6  10.8118
  7  1.54179e-05
  8  2.67552e-05
  9  9.48593
  10  3.12234
  11  0.000104873
  12  26.967
  13  1.43896
  14  8.98867e-05
  15  6.91735
  16  0.000236714
  17  1.37687
  18  16.6831
  19  2.35084
  20  7.3832e-06
  21  38.3446
  22  0.00752541
  23  2.41697
  24  33.4008
  25  3.02163
  26  0.0175561
  27  2.20119
  28  3.10092
  29  0.245074
  30  0.261151
Done.

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

Extracting fit parameters...

4FGL J1136.2+3407
   Spectrum: PowerLaw
306    Prefactor:  7.298e+00  6.917e+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.126e+00  2.612e-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.011e+00  2.451e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.90
Ra Dec: 174.075 34.129
Photon Index (Fixed Index): 2.55 +/- 0.00
Photon Flux (Fixed Index): 5.05e-08 +/- 4.78e-08
Energy Flux (Fixed Index): 1.39e-05 +/- 1.31e-05

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

Saving results to:
/scratch/kocevski/946682/likelihoodResults_339120001_339379201_4FGL_J1136.2+3407_daily_bin385.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) = 6821.03168811
delta logL = 0.00339501112649

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6821.03124192
delta logL = 0.00384120629496

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    7.4650       1.0000         .10000E-03   10000.    
     2 'Index     '    2.4804       1.0000          .0000       10.000    
     3 'Normalizat'    1.0141       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1238       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=   6821.031     FROM MIGRAD    STATUS=CONVERGED     87 CALLS      243 TOTAL
                     EDM=   .32E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.4652        7.1756        .14679E-03   -.46950E-03
   2  Index         2.4805        .82533        .10833E-01   -.79839E-04
   3  Normalizat    1.0144        .23115        .29659E-03    .80495E-04
   4  Prefactor     1.1235        .26041        .32212E-03    .92679E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.46523
  Index      = 2.48048
  Normalizat = 1.01435
  Prefactor  = 1.12352
 **********
 **   18 **HESSE 
 **********

 FCN=   6821.031     FROM HESSE     STATUS=OK            23 CALLS      266 TOTAL
                     EDM=   .35E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.4652        7.0868        .58715E-05   -1.5161    
   2  Index         2.4805        .81449        .43333E-03   -.52811    
   3  Normalizat    1.0144        .23123        .11864E-04   -.92551    
   4  Prefactor     1.1235        .26050        .12885E-04   -.88718    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.5061e-10
Minuit parameter uncertainties:
  1  7.08763
  2  0.819401
  3  0.231458
  4  0.260793
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/946682': 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) = 6821.03124104
delta logL = 0.00384208376181

Extracting fit parameters...

4FGL J1136.2+3407
   Spectrum: PowerLaw
306    Prefactor:  7.465e+00  7.088e+00  1.000e-04  1.000e+04 ( 1.000e-12)
307        Index:  2.480e+00  8.194e-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.124e+00  2.608e-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.014e+00  2.315e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.91
Ra Dec: 174.075 34.129
Photon Index (Free Index): 2.48 +/- 0.82
Photon Flux (Free Index): 4.74e-08 +/- 5.65e-08
Energy Flux (Free Index): 1.41e-05 +/- 1.33e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/946682/cmap_HighResolution_339120001_339379201_4FGL_J1136.2+3407_daily_bin385.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.19e-02', comment='SUCCESS', photon_flux='5.05e-08', energy_flux2='1.41e-05', photon_flux_error='4.78e-08', dlogl='3.84e-03', energy_flux='1.39e-05', photon_flux2='4.74e-08', job_status='DONE', time_completed='2021-09-04 05:10:06.150058', photon_index_error2='0.82', photon_index2='2.48', ts='1.90', fit_tolerance='1e-08', GAL='1.13', photon_index_error='0.00', photon_flux_upper_limit='1.53e-07', energy_flux_error2='1.33e-05', EG='1.01', time_epoch_completed='1630757406.15', return_code='0', job_id='946682', GAL2='1.12', EG2='1.01', return_code2='0', energy_flux_error='1.31e-05', photon_flux_error2='5.65e-08', ts2='1.91', photon_index='2.55' WHERE bin_id='385' AND source_name='4FGL J1136.2+3407' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 05:10:06 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0086>
Subject: Job 946682: <4FGL_J1136.2+3407_daily_bin385> in cluster <slac> Done

Job <4FGL_J1136.2+3407_daily_bin385> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Sat Sep  4 04:56:22 2021
Job was executed on host(s) <bullet0086>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 04:56: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 04:56:24 2021
Terminated at Sat Sep  4 05:10:06 2021
Results reported at Sat Sep  4 05:10:06 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1136.2+3407_daily_bin385 174.075 34.129 339120001 339379201 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 :                                   804.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             334.62 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   822 sec.
    Turnaround time :                            824 sec.

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

