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


Performing analysis on: 4FGL_J1136.2+3407_daily_bin728
RA = 174.075, Dec = 34.129
tmin = 428025601, tmax = 428284801
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='948194', job_status='RUN', time_executed='2021-09-04 05:03:45.802804', time_epoch_executed='1630757025.8' WHERE source_name='4FGL J1136.2+3407' and cadence='daily' and bin_id='728'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/948194

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/948194/ft1_4FGL_J1136.2+3407_daily_bin728.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/948194/ft2_4FGL_J1136.2+3407_daily_bin728.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/948194/ft1_4FGL_J1136.2+3407_daily_bin728.fits outfile=/scratch/kocevski/948194/ft1_filteredMKT_4FGL_J1136.2+3407_daily_bin728.fits ra=174.075 dec=34.129 rad=12.0 tmin=428025601.0 tmax=428284801.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.66
user 5.29
sys 0.25

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/948194/ft2_4FGL_J1136.2+3407_daily_bin728.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/948194/ft1_filteredMKT_4FGL_J1136.2+3407_daily_bin728.fits evtable="EVENTS" outfile="/scratch/kocevski/948194/ft1_filtered_4FGL_J1136.2+3407_daily_bin728.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.51
user 0.34
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/948194/ft1_filtered_4FGL_J1136.2+3407_daily_bin728.fits" evtable="EVENTS" scfile=/scratch/kocevski/948194/ft2_4FGL_J1136.2+3407_daily_bin728.fits sctable="SC_DATA" outfile=/scratch/kocevski/948194/ltcube_428025601_428284801_4FGL_J1136.2+3407_daily_bin728.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/948194/ft2_4FGL_J1136.2+3407_daily_bin728.fits
.....................!
real 12.02
user 11.61
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/948194/ft1_filtered_4FGL_J1136.2+3407_daily_bin728.fits evtable="EVENTS" scfile=/scratch/kocevski/948194/ft2_4FGL_J1136.2+3407_daily_bin728.fits sctable="SC_DATA" expcube=/scratch/kocevski/948194/ltcube_428025601_428284801_4FGL_J1136.2+3407_daily_bin728.fits outfile=/scratch/kocevski/948194/expmap_428025601_428284801_4FGL_J1136.2+3407_daily_bin728.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/948194/ltcube_428025601_428284801_4FGL_J1136.2+3407_daily_bin728.fits
.....................!
real 191.85
user 186.91
sys 4.49

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/948194/ft1_filtered_4FGL_J1136.2+3407_daily_bin728.fits scfile=/scratch/kocevski/948194/ft2_4FGL_J1136.2+3407_daily_bin728.fits outfile=/scratch/kocevski/948194/cmap_428025601_428284801_4FGL_J1136.2+3407_daily_bin728.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.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/948194/ft1_filtered_4FGL_J1136.2+3407_daily_bin728.fits scfile=/scratch/kocevski/948194/ft2_4FGL_J1136.2+3407_daily_bin728.fits outfile=/scratch/kocevski/948194/cmap_HighResolution_428025601_428284801_4FGL_J1136.2+3407_daily_bin728.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.59
user 0.40
sys 0.18

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10157E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    93.672       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .95435E-02   1.0000         .10000E-03   10000.    
     4 'norm      '    1.7194       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .13878E-02   1.0000         .10000E-03   10000.    
     6 'Prefactor '    11.199       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10302E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    1.9502       1.0000         .10000E-03   10000.    
     9 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    6.2695       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10034E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .18217E-01   1.0000         .10000E-03   10000.    
    13 'norm      '    .96057       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10033E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    5.6029       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    6.7910       1.0000         .10000E-03   10000.    
    18 'Prefactor '    2.8821       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .29166       1.0000         .10000E-03   10000.    
    20 'norm      '    15.515       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10491E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10034E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .21073       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    14.892       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    1.4729       1.0000         .10000E-03   10000.    
    28 'Prefactor '    4.7564       1.0000         .10000E-03   10000.    
    29 'Normalizat'    1.4349       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .55465       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=   5160.712     FROM MIGRAD    STATUS=CONVERGED    818 CALLS     4106 TOTAL
                     EDM=   .10E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    11.144       -.24531E-10** at limit **
   2  Prefactor     93.789        103.53        .12426E-04    .31859E-03
   3  Prefactor     .10003E-03    14.289       -.43825E-06** at limit **
   4  norm          1.7194        .42768       -.26975E-08   -.45208E-03
   5  Prefactor     .10003E-03    1.8618        .22047E-06** at limit **
   6  Prefactor     11.193        13.159        .11529E-06   -.34152E-04
   7  Prefactor     .10000E-03    24.113        .92752E-07** at limit **
   8  norm          1.9497        9.9489        .10748E-05   -.62496E-04
   9  norm          .10000E-03    7.0148       -.81693E-07** at limit **
  10  Prefactor     6.2698        3.2089       -.78895E-08   -.21069E-03
  11  Prefactor     .10000E-03    17.393        .16217E-06** at limit **
  12  Prefactor     .10008E-03    16.294        .52901E-06** at limit **
  13  norm          .96134        2.5233        .58486E-06   -.15692E-03
  14  Prefactor     .10000E-03    6.9616       -.66256E-07** at limit **
  15  Prefactor     5.6016        5.2134        .13715E-06   -.11689E-03
  16  Prefactor     .10000E-03    20.523        .19020E-06** at limit **
  17  norm          6.7912        1.6463        .19615E-07   -.23092E-03
  18  Prefactor     2.8932        27.061        .18206E-04   -.20864E-03
  19  Prefactor     .29203        1.5296       -.10275E-05   -.49460E-03
  20  norm          15.516        11.755        .21774E-07   -.87297E-05
  21  Prefactor     .10000E-03    43.519       -.13530E-06** at limit **
  22  Prefactor     .10000E-03    17.142       -.21649E-06** at limit **
  23  norm          .21119        1.2922       -.33306E-06   -.45468E-03
  24  Prefactor     .10000E-03    22.199       -.38333E-06** at limit **
  25  norm          14.893        5.1353        .10089E-06   -.10493E-04
  26  Prefactor     .10000E-03    2.0878       -.11741E-07** at limit **
  27  Prefactor     1.4728        1.6005       -.22600E-07    .39220E-04
  28  Prefactor     4.7567        3.0550        .42948E-07    .19870E-04
  29  Normalizat    1.4349        .21888       -.26276E-05    .10053E-03
  30  Prefactor     .55435        .24079        .24742E-05   -.10787E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 93.7892
  Prefactor  = 0.00010003
  norm       = 1.71935
  Prefactor  = 0.000100032
  Prefactor  = 11.1926
  Prefactor  = 0.0001
  norm       = 1.94965
  norm       = 0.0001
  Prefactor  = 6.26978
  Prefactor  = 0.0001
  Prefactor  = 0.000100085
  norm       = 0.961335
  Prefactor  = 0.0001
  Prefactor  = 5.60165
  Prefactor  = 0.0001
  norm       = 6.79123
  Prefactor  = 2.89323
  Prefactor  = 0.292027
  norm       = 15.5163
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.211195
  Prefactor  = 0.0001
  norm       = 14.8935
  Prefactor  = 0.0001
  Prefactor  = 1.47282
  Prefactor  = 4.75672
  Normalizat = 1.43491
  Prefactor  = 0.55435
 **********
 **   18 **HESSE 
 **********

 FCN=   5160.712     FROM HESSE     STATUS=OK           602 CALLS     4708 TOTAL
                     EDM=   .30E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    11.151        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     93.789        109.63        .20762E-03   -1.3768    
   3  Prefactor     .10003E-03    74.589        .49034E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          1.7194        .42803        .22311E-04   -1.5446    
   5  Prefactor     .10003E-03    4.3674        .31761E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     11.193        13.159        .11972E-03   -1.5039    
   7  Prefactor     .10000E-03    24.333        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          1.9497        9.8486        .29717E-03   -1.5429    
   9  norm          .10000E-03    7.0570        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     6.2698        3.1876        .85599E-04   -1.5207    
  11  Prefactor     .10000E-03    17.395        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10008E-03    189.94        .55009E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .96134        2.4757        .17201E-03   -1.5512    
  14  Prefactor     .10000E-03    6.9776        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     5.6016        5.2052        .15028E-03   -1.5235    
  16  Prefactor     .10000E-03    20.543        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          6.7912        1.6447        .43171E-04   -1.5187    
  18  Prefactor     2.8932        28.512        .11970E-02   -1.5368    
  19  Prefactor     .29203        2.4997        .16370E-02   -1.5600    
  20  norm          15.516        11.754        .10168E-03   -1.4920    
  21  Prefactor     .10000E-03    44.122        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    17.146        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .21119        2.4560        .14801E-02   -1.5616    
  24  Prefactor     .10000E-03    22.248        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          14.893        5.1243        .44958E-03   -1.4936    
  26  Prefactor     .10000E-03    2.0891        .10137E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     1.4728        1.6075        .91418E-04   -1.5465    
  28  Prefactor     4.7567        3.0524        .96143E-04   -1.5272    
  29  Normalizat    1.4349        .24797        .22495E-03   -.79624    
  30  Prefactor     .55435        .27270        .39478E-03   -1.0954    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.98728e-09
Minuit parameter uncertainties:
  1  6.14095e-06
  2  109.872
  3  0.00300072
  4  0.428031
  5  0.000749521
  6  13.1628
  7  1.14899e-05
  8  8.76593
  9  1.98382e-06
  10  3.18766
  11  2.31486e-05
  12  0.00804104
  13  2.47597
  14  6.43477e-06
  15  5.20565
  16  3.00685e-05
  17  1.64475
  18  18.1759
  19  1.70857
  20  11.7558
  21  7.06213e-05
  22  2.76625e-05
  23  1.44013
  24  3.25723e-05
  25  5.12447
  26  1.10935e-06
  27  1.60759
  28  3.05246
  29  0.24818
  30  0.27335
Done.

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

Extracting fit parameters...

4FGL J1136.2+3407
   Spectrum: PowerLaw
306    Prefactor:  5.602e+00  5.206e+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:  5.543e-01  2.734e-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.435e+00  2.482e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.48
Ra Dec: 174.075 34.129
Photon Index (Fixed Index): 2.55 +/- 0.00
Photon Flux (Fixed Index): 3.88e-08 +/- 3.60e-08
Energy Flux (Fixed Index): 1.06e-05 +/- 9.88e-06

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

Saving results to:
/scratch/kocevski/948194/likelihoodResults_428025601_428284801_4FGL_J1136.2+3407_daily_bin728.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) = 5160.64705283
delta logL = 0.0646327977493

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5160.64498779
delta logL = 0.066697836186

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.8586       1.0000         .10000E-03   10000.    
     2 'Index     '    2.2106       1.0000          .0000       10.000    
     3 'Normalizat'    1.4490       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .54428       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=   5160.645     FROM MIGRAD    STATUS=CONVERGED     90 CALLS      251 TOTAL
                     EDM=   .49E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.8596        5.7408        .16387E-03   -.20535E-04
   2  Index         2.2109        .90494        .11264E-01    .34711E-05
   3  Normalizat    1.4490        .23857        .22409E-03    .60038E-04
   4  Prefactor     .54425        .27014        .39815E-03   -.26469E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.85961
  Index      = 2.2109
  Normalizat = 1.44899
  Prefactor  = 0.544249
 **********
 **   18 **HESSE 
 **********

 FCN=   5160.645     FROM HESSE     STATUS=OK            25 CALLS      276 TOTAL
                     EDM=   .49E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.8596        5.7717        .65548E-05   -1.5224    
   2  Index         2.2109        .90956        .45054E-03   -.59176    
   3  Normalizat    1.4490        .23868        .44817E-04   -.79222    
   4  Prefactor     .54425        .27025        .15926E-04   -1.0999    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.91331e-11
Minuit parameter uncertainties:
  1  5.77224
  2  0.917008
  3  0.238865
  4  0.270896
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/948194': 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) = 5160.64498773
delta logL = 0.0666978964891

Extracting fit parameters...

4FGL J1136.2+3407
   Spectrum: PowerLaw
306    Prefactor:  5.860e+00  5.772e+00  1.000e-04  1.000e+04 ( 1.000e-12)
307        Index:  2.211e+00  9.170e-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:  5.442e-01  2.709e-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.449e+00  2.389e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.61
Ra Dec: 174.075 34.129
Photon Index (Free Index): 2.21 +/- 0.92
Photon Flux (Free Index): 2.78e-08 +/- 4.03e-08
Energy Flux (Free Index): 1.22e-05 +/- 1.39e-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/948194/cmap_HighResolution_428025601_428284801_4FGL_J1136.2+3407_daily_bin728.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.84e-03', comment='SUCCESS', photon_flux='3.88e-08', energy_flux2='1.22e-05', photon_flux_error='3.60e-08', dlogl='6.67e-02', energy_flux='1.06e-05', photon_flux2='2.78e-08', job_status='DONE', time_completed='2021-09-04 05:18:02.794549', photon_index_error2='0.92', photon_index2='2.21', ts='2.48', fit_tolerance='1e-08', GAL='0.55', photon_index_error='0.00', photon_flux_upper_limit='1.26e-07', energy_flux_error2='1.39e-05', EG='1.43', time_epoch_completed='1630757882.79', return_code='0', job_id='948194', GAL2='0.54', EG2='1.45', return_code2='0', energy_flux_error='9.88e-06', photon_flux_error2='4.03e-08', ts2='2.61', photon_index='2.55' WHERE bin_id='728' AND source_name='4FGL J1136.2+3407' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 05:18:02 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0078>
Subject: Job 948194: <4FGL_J1136.2+3407_daily_bin728> in cluster <slac> Done

Job <4FGL_J1136.2+3407_daily_bin728> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Sat Sep  4 05:01:26 2021
Job was executed on host(s) <bullet0078>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 05:01:28 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:28 2021
Terminated at Sat Sep  4 05:18:03 2021
Results reported at Sat Sep  4 05:18:03 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1136.2+3407_daily_bin728 174.075 34.129 428025601 428284801 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 :                                   851.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             297.71 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   995 sec.
    Turnaround time :                            997 sec.

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

