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


Performing analysis on: 4FGL_J1136.2+3407_daily_bin720
RA = 174.075, Dec = 34.129
tmin = 425952001, tmax = 426211201
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='948183', job_status='RUN', time_executed='2021-09-04 05:01:44.323963', time_epoch_executed='1630756904.32' WHERE source_name='4FGL J1136.2+3407' and cadence='daily' and bin_id='720'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/948183

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/948183/ft1_4FGL_J1136.2+3407_daily_bin720.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/948183/ft2_4FGL_J1136.2+3407_daily_bin720.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/948183/ft1_4FGL_J1136.2+3407_daily_bin720.fits outfile=/scratch/kocevski/948183/ft1_filteredMKT_4FGL_J1136.2+3407_daily_bin720.fits ra=174.075 dec=34.129 rad=12.0 tmin=425952001.0 tmax=426211201.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 4.10
user 3.43
sys 0.19

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/948183/ft1_filtered_4FGL_J1136.2+3407_daily_bin720.fits evtable="EVENTS" scfile=/scratch/kocevski/948183/ft2_4FGL_J1136.2+3407_daily_bin720.fits sctable="SC_DATA" expcube=/scratch/kocevski/948183/ltcube_425952001_426211201_4FGL_J1136.2+3407_daily_bin720.fits outfile=/scratch/kocevski/948183/expmap_425952001_426211201_4FGL_J1136.2+3407_daily_bin720.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/948183/ltcube_425952001_426211201_4FGL_J1136.2+3407_daily_bin720.fits
.....................!
real 190.53
user 184.69
sys 4.28

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/948183/ft1_filtered_4FGL_J1136.2+3407_daily_bin720.fits scfile=/scratch/kocevski/948183/ft2_4FGL_J1136.2+3407_daily_bin720.fits outfile=/scratch/kocevski/948183/cmap_425952001_426211201_4FGL_J1136.2+3407_daily_bin720.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.54
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/948183/ft1_filtered_4FGL_J1136.2+3407_daily_bin720.fits scfile=/scratch/kocevski/948183/ft2_4FGL_J1136.2+3407_daily_bin720.fits outfile=/scratch/kocevski/948183/cmap_HighResolution_425952001_426211201_4FGL_J1136.2+3407_daily_bin720.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.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    36.820       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    1.0305       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    32.551       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10123E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    2.0462       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    4.4091       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10066E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    3.9296       1.0000         .10000E-03   10000.    
    18 'Prefactor '    12.389       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .86499       1.0000         .10000E-03   10000.    
    20 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    4.8666       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .24396E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    3.9325       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .48596E-02   1.0000         .10000E-03   10000.    
    25 'norm      '    6.9169       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    29 'Normalizat'    1.2968       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .88955       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=   6648.266     FROM MIGRAD    STATUS=CONVERGED    784 CALLS     3936 TOTAL
                     EDM=   .55E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    11.648       -.34527E-06** at limit **
   2  Prefactor     36.825        89.383        .42826E-05    .84991E-05
   3  Prefactor     .10000E-03    3.1562        .39672E-06** at limit **
   4  norm          1.0305        .31491       -.31350E-07    .25700E-03
   5  Prefactor     .10000E-03    .75821       -.13969E-06** at limit **
   6  Prefactor     32.553        18.158        .32090E-05    .15998E-03
   7  Prefactor     .10000E-03    6.0021        .53123E-06** at limit **
   8  norm          .10000E-03    3.3054        .86197E-08** at limit **
   9  norm          .10000E-03    4.9441        .41030E-06** at limit **
  10  Prefactor     .10000E-03    .79002       -.13233E-06** at limit **
  11  Prefactor     .10000E-03    14.906        .46472E-06** at limit **
  12  Prefactor     .10000E-03    4.2435        .46854E-06** at limit **
  13  norm          2.0464        1.9951        .13059E-06   -.57979E-04
  14  Prefactor     .10000E-03    4.7274        .26829E-06** at limit **
  15  Prefactor     4.4087        2.7367        .51578E-06   -.23523E-02
  16  Prefactor     .10000E-03    39.979       -.13697E-06** at limit **
  17  norm          3.9298        1.3282       -.35463E-07    .64095E-04
  18  Prefactor     12.392        19.504        .47390E-05    .98945E-04
  19  Prefactor     .86315        1.6956       -.34191E-06   -.88687E-03
  20  norm          .10000E-03    3.8328       -.28371E-06** at limit **
  21  Prefactor     4.8495        36.305       -.35482E-05   -.23589E-04
  22  Prefactor     .10000E-03    334.94       -.92171E-05** at limit **
  23  norm          3.9325        1.4460       -.27967E-08   -.32735E-04
  24  Prefactor     .10000E-03    168.40        .10839E-05** at limit **
  25  norm          6.9165        3.0405       -.20292E-07   -.10940E-03
  26  Prefactor     .10000E-03    4.2363       -.16428E-06** at limit **
  27  Prefactor     .10000E-03    .86643        .21528E-06** at limit **
  28  Prefactor     .10000E-03    1.5453        .28540E-06** at limit **
  29  Normalizat    1.2968        .18591       -.66889E-06    .18819E-04
  30  Prefactor     .88952        .20176       -.90425E-06   -.35196E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 36.825
  Prefactor  = 0.0001
  norm       = 1.0305
  Prefactor  = 0.0001
  Prefactor  = 32.5535
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.04642
  Prefactor  = 0.0001
  Prefactor  = 4.40872
  Prefactor  = 0.0001
  norm       = 3.9298
  Prefactor  = 12.3925
  Prefactor  = 0.86315
  norm       = 0.0001
  Prefactor  = 4.84949
  Prefactor  = 0.0001
  norm       = 3.93249
  Prefactor  = 0.000100002
  norm       = 6.91654
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.29682
  Prefactor  = 0.889524
 **********
 **   18 **HESSE 
 **********

 FCN=   6648.266     FROM HESSE     STATUS=OK           582 CALLS     4518 TOTAL
                     EDM=   .48E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    11.671        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     36.825        89.401        .66048E-04   -1.4494    
   3  Prefactor     .10000E-03    3.1602        .14148E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          1.0305        .31592        .23705E-04   -1.5505    
   5  Prefactor     .10000E-03    .76221        .69315E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     32.553        18.130        .70232E-04   -1.4566    
   7  Prefactor     .10000E-03    5.9910        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    3.3069        .14476E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    4.9651        .17705E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    .80387        .70748E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    14.923        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    4.2456        .16403E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          2.0464        1.9799        .10929E-03   -1.5422    
  14  Prefactor     .10000E-03    4.7385        .17313E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     4.4087        6.0589        .95896E-03   -1.5288    
  16  Prefactor     .10000E-03    40.103        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          3.9298        1.3268        .51870E-04   -1.5311    
  18  Prefactor     12.392        19.472        .11380E-03   -1.5004    
  19  Prefactor     .86315        1.5362        .14079E-02   -1.5522    
  20  norm          .10000E-03    3.8354        .15588E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     4.8495        37.095        .18234E-03   -1.5268    
  22  Prefactor     .10000E-03    344.14        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          3.9325        1.4446        .56721E-04   -1.5311    
  24  Prefactor     .10000E-03    174.89        .38483E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          6.9165        3.0367        .91318E-04   -1.5182    
  26  Prefactor     .10000E-03    4.2508        .16385E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    .87162        .74030E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    1.5752        .98917E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    1.2968        .22413        .24218E-03   -.83661    
  30  Prefactor     .88952        .24036        .32517E-03   -.96508    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.75137e-09
Minuit parameter uncertainties:
  1  7.94026e-06
  2  89.7289
  3  4.77302e-06
  4  0.315919
  5  1.78167e-07
  6  18.1326
  7  2.41281e-05
  8  8.77181e-06
  9  5.14666e-06
  10  1.38291e-06
  11  7.41126e-06
  12  4.92062e-06
  13  1.98
  14  3.17596e-06
  15  6.0597
  16  3.2047e-05
  17  1.32679
  18  19.4816
  19  1.53623
  20  2.37707e-07
  21  26.8475
  22  0.000726792
  23  1.44457
  24  0.00104451
  25  3.03677
  26  4.6342e-06
  27  1.88489e-06
  28  3.71551e-06
  29  0.224301
  30  0.240647
Done.

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

Extracting fit parameters...

4FGL J1136.2+3407
   Spectrum: PowerLaw
306    Prefactor:  4.409e+00  6.060e+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.895e-01  2.406e-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.297e+00  2.243e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/948183/likelihoodResults_425952001_426211201_4FGL_J1136.2+3407_daily_bin720.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) = 6648.16802006
delta logL = 0.0981425561367

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6648.14775258
delta logL = 0.118410040425

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.3022       1.0000         .10000E-03   10000.    
     2 'Index     '    3.0573       1.0000          .0000       10.000    
     3 'Normalizat'    1.2803       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .90218       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=   6648.148     FROM MIGRAD    STATUS=CONVERGED     85 CALLS      255 TOTAL
                     EDM=   .17E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.3018        6.4732        .16073E-03   -.19960E-03
   2  Index         3.0575        1.3225        .93280E-02   -.19136E-04
   3  Normalizat    1.2803        .21443        .24348E-03   -.42506E-03
   4  Prefactor     .90220        .24058        .32312E-03   -.30434E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.3018
  Index      = 3.05749
  Normalizat = 1.2803
  Prefactor  = 0.902204
 **********
 **   18 **HESSE 
 **********

 FCN=   6648.148     FROM HESSE     STATUS=OK            25 CALLS      280 TOTAL
                     EDM=   .18E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.3018        5.5813        .64293E-05   -1.5345    
   2  Index         3.0575        1.1432        .37312E-03   -.39900    
   3  Normalizat    1.2803        .21454        .48696E-04   -.84156    
   4  Prefactor     .90220        .24036        .12925E-04   -.96064    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.82027e-10
Minuit parameter uncertainties:
  1  5.58214
  2  1.15524
  3  0.21469
  4  0.240646
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/948183': 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) = 6648.14775256
delta logL = 0.118410059992

Extracting fit parameters...

4FGL J1136.2+3407
   Spectrum: PowerLaw
306    Prefactor:  3.302e+00  5.582e+00  1.000e-04  1.000e+04 ( 1.000e-12)
307        Index:  3.057e+00  1.155e+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:  9.022e-01  2.406e-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.280e+00  2.147e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.64
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/948183/cmap_HighResolution_425952001_426211201_4FGL_J1136.2+3407_daily_bin720.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.20e-03', job_status='DONE', photon_flux_upper_limit='1.18e-07', time_completed='2021-09-04 05:17:40.961936', job_id='948183', GAL2='0.90', fit_tolerance='1e-08', EG2='1.28', EG='1.30', time_epoch_completed='1630757860.96', return_code2='0', ts='0.64', comment='SUCCESS', return_code='0', GAL='0.89', dlogl='1.18e-01', ts2='0.88', photon_index_error='0.00', photon_index='2.55' WHERE bin_id='720' AND source_name='4FGL J1136.2+3407' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 05:17:40 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0112>
Subject: Job 948183: <4FGL_J1136.2+3407_daily_bin720> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1136.2+3407_daily_bin720 174.075 34.129 425952001 426211201 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 :                                   946.29 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             357.52 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   975 sec.
    Turnaround time :                            976 sec.

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

