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


Performing analysis on: 4FGL_J1136.2+3407_daily_bin767
RA = 174.075, Dec = 34.129
tmin = 438134401, tmax = 438393601
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='948252', job_status='RUN', time_executed='2021-09-04 05:03:47.023162', time_epoch_executed='1630757027.02' WHERE source_name='4FGL J1136.2+3407' and cadence='daily' and bin_id='767'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/948252

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/948252/ft1_4FGL_J1136.2+3407_daily_bin767.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/948252/ft2_4FGL_J1136.2+3407_daily_bin767.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/948252/ft1_4FGL_J1136.2+3407_daily_bin767.fits outfile=/scratch/kocevski/948252/ft1_filteredMKT_4FGL_J1136.2+3407_daily_bin767.fits ra=174.075 dec=34.129 rad=12.0 tmin=438134401.0 tmax=438393601.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.30
user 6.01
sys 0.24

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/948252/ft2_4FGL_J1136.2+3407_daily_bin767.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/948252/ft1_filteredMKT_4FGL_J1136.2+3407_daily_bin767.fits evtable="EVENTS" outfile="/scratch/kocevski/948252/ft1_filtered_4FGL_J1136.2+3407_daily_bin767.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.50
user 0.32
sys 0.15

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/948252/ft1_filtered_4FGL_J1136.2+3407_daily_bin767.fits evtable="EVENTS" scfile=/scratch/kocevski/948252/ft2_4FGL_J1136.2+3407_daily_bin767.fits sctable="SC_DATA" expcube=/scratch/kocevski/948252/ltcube_438134401_438393601_4FGL_J1136.2+3407_daily_bin767.fits outfile=/scratch/kocevski/948252/expmap_438134401_438393601_4FGL_J1136.2+3407_daily_bin767.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/948252/ltcube_438134401_438393601_4FGL_J1136.2+3407_daily_bin767.fits
.....................!
real 192.15
user 186.93
sys 4.55

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/948252/ft1_filtered_4FGL_J1136.2+3407_daily_bin767.fits scfile=/scratch/kocevski/948252/ft2_4FGL_J1136.2+3407_daily_bin767.fits outfile=/scratch/kocevski/948252/cmap_438134401_438393601_4FGL_J1136.2+3407_daily_bin767.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/948252/ft1_filtered_4FGL_J1136.2+3407_daily_bin767.fits scfile=/scratch/kocevski/948252/ft2_4FGL_J1136.2+3407_daily_bin767.fits outfile=/scratch/kocevski/948252/cmap_HighResolution_438134401_438393601_4FGL_J1136.2+3407_daily_bin767.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.58
user 0.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    38.997       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10063E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10372E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    3.5891       1.0000         .10000E-03   10000.    
     5 'Prefactor '    3.0789       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10160E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    36.168       1.0000         .10000E-03   10000.    
     9 'norm      '    14.258       1.0000         .10000E-03   10000.    
    10 'Prefactor '    6.1224       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .94193E-02   1.0000         .10000E-03   10000.    
    13 'norm      '    1.8087       1.0000         .10000E-03   10000.    
    14 'Prefactor '    14.286       1.0000         .10000E-03   10000.    
    15 'Prefactor '    1.5919       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    12.863       1.0000         .10000E-03   10000.    
    18 'Prefactor '    54.268       1.0000         .10000E-03   10000.    
    19 'Prefactor '    2.6104       1.0000         .10000E-03   10000.    
    20 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10186E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    1.5590       1.0000         .10000E-03   10000.    
    24 'Prefactor '    46.920       1.0000         .10000E-03   10000.    
    25 'norm      '    9.4425       1.0000         .10000E-03   10000.    
    26 'Prefactor '    4.3157       1.0000         .10000E-03   10000.    
    27 'Prefactor '    1.6235       1.0000         .10000E-03   10000.    
    28 'Prefactor '    17.083       1.0000         .10000E-03   10000.    
    29 'Normalizat'    .64827       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .80779       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=   3978.585     FROM MIGRAD    STATUS=CONVERGED    793 CALLS     4014 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     38.994        25.674        .31299E-07    .18380E-04
   2  Prefactor     .10000E-03    79.278        .51781E-06** at limit **
   3  Prefactor     .10000E-03    18.655       -.43032E-08** at limit **
   4  norm          3.5890        .61019       -.10055E-07    .36638E-04
   5  Prefactor     3.0765        3.3918       -.30820E-07   -.11827E-03
   6  Prefactor     .10000E-03    16.909        .76689E-07** at limit **
   7  Prefactor     .10000E-03    7.2159       -.37069E-08** at limit **
   8  norm          36.161        21.104        .54546E-07   -.69604E-05
   9  norm          14.252        13.525        .10115E-06   -.14634E-04
  10  Prefactor     6.1220        3.4534        .38637E-07    .15778E-04
  11  Prefactor     .10000E-03    24.638       -.48394E-06** at limit **
  12  Prefactor     .10000E-03    27.091        .11779E-05** at limit **
  13  norm          1.8093        2.5621        .28197E-07   -.10372E-03
  14  Prefactor     14.257        18.448       -.11371E-05   -.43538E-03
  15  Prefactor     1.5913        5.0540       -.30995E-06   -.39114E-03
  16  Prefactor     .10000E-03    40.600        .20623E-06** at limit **
  17  norm          12.863        2.5509       -.12253E-07   -.13703E-04
  18  Prefactor     54.257        29.698        .73957E-07   -.32657E-04
  19  Prefactor     2.6102        2.2461       -.98436E-08   -.48085E-04
  20  norm          .10000E-03    4.6383        .32110E-08** at limit **
  21  Prefactor     .10000E-03    10.019       -.46057E-07** at limit **
  22  Prefactor     .10000E-03    24.934        .52658E-06** at limit **
  23  norm          1.5586        1.3055        .54455E-07    .15044E-04
  24  Prefactor     46.884        45.135       -.71577E-05   -.47589E-03
  25  norm          9.4424        4.4156       -.11114E-06   -.14746E-03
  26  Prefactor     4.3122        9.2692        .42031E-05   -.92828E-03
  27  Prefactor     1.6234        1.7369       -.26733E-07    .37164E-04
  28  Prefactor     17.082        5.2981        .28895E-06    .55059E-03
  29  Normalizat    .64888        .23933        .14926E-05   -.12263E-03
  30  Prefactor     .80710        .25042       -.84048E-06   -.39577E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 38.9943
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.58897
  Prefactor  = 3.07653
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 36.1614
  norm       = 14.2521
  Prefactor  = 6.12204
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 1.8093
  Prefactor  = 14.257
  Prefactor  = 1.59133
  Prefactor  = 0.0001
  norm       = 12.8626
  Prefactor  = 54.2568
  Prefactor  = 2.61023
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.55857
  Prefactor  = 46.8837
  norm       = 9.44236
  Prefactor  = 4.3122
  Prefactor  = 1.62343
  Prefactor  = 17.0824
  Normalizat = 0.648882
  Prefactor  = 0.807096
 **********
 **   18 **HESSE 
 **********

 FCN=   3978.585     FROM HESSE     STATUS=OK           594 CALLS     4608 TOTAL
                     EDM=   .36E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     38.994        25.684        .64185E-04   -1.4458    
   2  Prefactor     .10000E-03    79.302        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    18.872        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          3.5890        .61183        .19426E-04   -1.5329    
   5  Prefactor     3.0765        3.4075        .11442E-03   -1.5357    
   6  Prefactor     .10000E-03    17.016        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    7.2178        .16548E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          36.161        21.111        .66639E-04   -1.4505    
   9  norm          14.252        13.560        .10607E-03   -1.4953    
  10  Prefactor     6.1220        3.4431        .82686E-04   -1.5213    
  11  Prefactor     .10000E-03    24.652        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    201.97        .56396E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          1.8093        2.5349        .11465E-03   -1.5439    
  14  Prefactor     14.257        17.271        .10597E-03   -1.4953    
  15  Prefactor     1.5913        5.0745        .24216E-03   -1.5456    
  16  Prefactor     .10000E-03    40.644        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          12.863        2.5558        .42654E-04   -1.4991    
  18  Prefactor     54.257        29.767        .54449E-04   -1.4233    
  19  Prefactor     2.6102        2.2374        .83223E-04   -1.5385    
  20  norm          .10000E-03    4.6386        .13268E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    10.024        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    24.945        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          1.5586        1.3049        .63444E-04   -1.5458    
  24  Prefactor     46.884        46.907        .58537E-04   -1.4337    
  25  norm          9.4424        4.4158        .86724E-04   -1.5093    
  26  Prefactor     4.3122        10.884        .96957E-03   -1.5293    
  27  Prefactor     1.6234        1.7467        .83494E-04   -1.5453    
  28  Prefactor     17.082        5.3183        .77593E-04   -1.4881    
  29  Normalizat    .64888        .28272        .30566E-03   -1.0595    
  30  Prefactor     .80710        .29479        .31623E-03   -.99467    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.64857e-09
Minuit parameter uncertainties:
  1  25.6916
  2  0.000117662
  3  3.7817e-05
  4  0.611827
  5  3.40771
  6  5.91601e-06
  7  2.30675e-06
  8  21.1154
  9  13.5629
  10  3.44318
  11  8.41537e-05
  12  0.000822228
  13  2.53508
  14  17.2769
  15  5.07588
  16  2.79771e-05
  17  2.55586
  18  29.7753
  19  2.23747
  20  3.10489e-07
  21  3.12839e-05
  22  8.75027e-05
  23  1.30489
  24  46.9438
  25  4.41599
  26  10.8888
  27  1.74678
  28  5.31848
  29  0.283357
  30  0.295372
Done.

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

Extracting fit parameters...

4FGL J1136.2+3407
   Spectrum: PowerLaw
306    Prefactor:  1.591e+00  5.076e+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:  8.071e-01  2.954e-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.489e-01  2.834e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/948252/likelihoodResults_438134401_438393601_4FGL_J1136.2+3407_daily_bin767.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) = 3978.47445129
delta logL = 0.110344479903

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3978.43884287
delta logL = 0.145952900997

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   3978.439     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      217 TOTAL
                     EDM=   .28E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.0148        8.9191        .58424E-02    .20814E-03
   2  Index         1.8470        1.1850        .26750       -.22883E-04
   3  Normalizat    .66028        .21691        .68487E-01    .15995E-04
   4  Prefactor     .79122        .25181        .72062E-01    .10391E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.01475
  Index      = 1.84701
  Normalizat = 0.660281
  Prefactor  = 0.791224
 **********
 **   18 **HESSE 
 **********

 FCN=   3978.439     FROM HESSE     STATUS=OK            33 CALLS      250 TOTAL
                     EDM=   .61E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.0148        5.8038        .20253E-03   -1.5361    
   2  Index         1.8470        .99724        .12288E-01   -.68232    
   3  Normalizat    .66028        .25144        .30310E-03   -1.0548    
   4  Prefactor     .79122        .29056        .31888E-03   -1.0005    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.08217e-10
Minuit parameter uncertainties:
  1  5.80489
  2  1.00855
  3  0.251879
  4  0.291129
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/948252': 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) = 3978.4388428
delta logL = 0.145952972985

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
623    Prefactor:  7.912e-01  2.911e-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.603e-01  2.519e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.12
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/948252/cmap_HighResolution_438134401_438393601_4FGL_J1136.2+3407_daily_bin767.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.85e-03', job_status='DONE', photon_flux_upper_limit='1.13e-07', time_completed='2021-09-04 05:16:13.240551', job_id='948252', GAL2='0.79', fit_tolerance='1e-08', EG2='0.66', EG='0.65', time_epoch_completed='1630757773.24', return_code2='0', ts='0.12', comment='SUCCESS', return_code='0', GAL='0.81', dlogl='1.46e-01', ts2='0.42', photon_index_error='0.00', photon_index='2.55' WHERE bin_id='767' AND source_name='4FGL J1136.2+3407' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 05:16:13 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0085>
Subject: Job 948252: <4FGL_J1136.2+3407_daily_bin767> in cluster <slac> Done

Job <4FGL_J1136.2+3407_daily_bin767> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Sat Sep  4 05:01:30 2021
Job was executed on host(s) <bullet0085>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 05:01:31 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:31 2021
Terminated at Sat Sep  4 05:16:14 2021
Results reported at Sat Sep  4 05:16:14 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1136.2+3407_daily_bin767 174.075 34.129 438134401 438393601 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 :                                   741.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             311.55 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   882 sec.
    Turnaround time :                            884 sec.

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

