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


Performing analysis on: 4FGL_J1136.2+3407_daily_bin675
RA = 174.075, Dec = 34.129
tmin = 414288001, tmax = 414547201
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='948117', job_status='RUN', time_executed='2021-09-04 05:05:16.974303', time_epoch_executed='1630757116.97' WHERE source_name='4FGL J1136.2+3407' and cadence='daily' and bin_id='675'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/948117

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/948117/ft1_4FGL_J1136.2+3407_daily_bin675.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/948117/ft2_4FGL_J1136.2+3407_daily_bin675.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/948117/ft1_4FGL_J1136.2+3407_daily_bin675.fits outfile=/scratch/kocevski/948117/ft1_filteredMKT_4FGL_J1136.2+3407_daily_bin675.fits ra=174.075 dec=34.129 rad=12.0 tmin=414288001.0 tmax=414547201.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.52
user 5.21
sys 0.23

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/948117/ft1_filtered_4FGL_J1136.2+3407_daily_bin675.fits" evtable="EVENTS" scfile=/scratch/kocevski/948117/ft2_4FGL_J1136.2+3407_daily_bin675.fits sctable="SC_DATA" outfile=/scratch/kocevski/948117/ltcube_414288001_414547201_4FGL_J1136.2+3407_daily_bin675.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/948117/ft2_4FGL_J1136.2+3407_daily_bin675.fits
.....................!
real 12.09
user 11.77
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/948117/ft1_filtered_4FGL_J1136.2+3407_daily_bin675.fits evtable="EVENTS" scfile=/scratch/kocevski/948117/ft2_4FGL_J1136.2+3407_daily_bin675.fits sctable="SC_DATA" expcube=/scratch/kocevski/948117/ltcube_414288001_414547201_4FGL_J1136.2+3407_daily_bin675.fits outfile=/scratch/kocevski/948117/expmap_414288001_414547201_4FGL_J1136.2+3407_daily_bin675.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/948117/ltcube_414288001_414547201_4FGL_J1136.2+3407_daily_bin675.fits
.....................!
real 190.61
user 185.22
sys 4.98

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/948117/ft1_filtered_4FGL_J1136.2+3407_daily_bin675.fits scfile=/scratch/kocevski/948117/ft2_4FGL_J1136.2+3407_daily_bin675.fits outfile=/scratch/kocevski/948117/cmap_414288001_414547201_4FGL_J1136.2+3407_daily_bin675.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.78
user 0.38
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/948117/ft1_filtered_4FGL_J1136.2+3407_daily_bin675.fits scfile=/scratch/kocevski/948117/ft2_4FGL_J1136.2+3407_daily_bin675.fits outfile=/scratch/kocevski/948117/cmap_HighResolution_414288001_414547201_4FGL_J1136.2+3407_daily_bin675.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 1.28
user 0.39
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    12.088       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .48423E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10580E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    1.5181       1.0000         .10000E-03   10000.    
     5 'Prefactor '    4.6066       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .12450E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .11252E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .13314E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    5.4552       1.0000         .10000E-03   10000.    
    10 'Prefactor '    1.4488       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .18596E-01   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .41897E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .15155E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .27624E-01   1.0000         .10000E-03   10000.    
    17 'norm      '    6.4928       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10045E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    3.9512       1.0000         .10000E-03   10000.    
    20 'norm      '    9.5030       1.0000         .10000E-03   10000.    
    21 'Prefactor '    39.635       1.0000         .10000E-03   10000.    
    22 'Prefactor '    47.923       1.0000         .10000E-03   10000.    
    23 'norm      '    1.7894       1.0000         .10000E-03   10000.    
    24 'Prefactor '    53.200       1.0000         .10000E-03   10000.    
    25 'norm      '    6.5694       1.0000         .10000E-03   10000.    
    26 'Prefactor '    1.0255       1.0000         .10000E-03   10000.    
    27 'Prefactor '    2.1213       1.0000         .10000E-03   10000.    
    28 'Prefactor '    3.4345       1.0000         .10000E-03   10000.    
    29 'Normalizat'    1.0802       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .71126       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6260E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5173.650     FROM MIGRAD    STATUS=CONVERGED    177 CALLS     2815 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  9.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     12.226        11.333        .48185E-04    .63546E-02
   2  Prefactor     .10016E-03    31.583        .17541E-03** at limit **
   3  Prefactor     .10000E-03    9.1570       -.37383E-05** at limit **
   4  norm          1.5182        .35212        .31797E-06   -.37256E-02
   5  Prefactor     4.6157        3.5914        .20642E-05    .26895E-03
   6  Prefactor     .10003E-03    17.433        .46496E-05** at limit **
   7  Prefactor     .10009E-03    15.723       -.36851E-04** at limit **
   8  norm          .10000E-03    6.8121       -.59746E-06** at limit **
   9  norm          5.4033        10.260       -.44095E-04    .16807E-02
  10  Prefactor     1.4528        2.1800       -.23515E-05   -.29820E-03
  11  Prefactor     .10000E-03    56.307       -.11167E-03** at limit **
  12  Prefactor     .10000E-03    12.971       -.38959E-04** at limit **
  13  norm          .10000E-03    1.2104       -.83239E-06** at limit **
  14  Prefactor     .10000E-03    6.9875        .18458E-05** at limit **
  15  Prefactor     .10000E-03    1.1745        .30061E-06** at limit **
  16  Prefactor     .10002E-03    73.014        .16295E-03** at limit **
  17  norm          6.4765        1.7375       -.35010E-05   -.14052E-02
  18  Prefactor     .10000E-03    9.6027        .70352E-05** at limit **
  19  Prefactor     3.9529        2.1995        .53140E-06    .31414E-03
  20  norm          9.5417        3.5314       -.22294E-04   -.12804E-01
  21  Prefactor     39.447        26.919        .78730E-04   -.57029E-02
  22  Prefactor     49.768        65.204        .97162E-04   -.88506E-03
  23  norm          1.7879        1.0454       -.79452E-06    .46381E-03
  24  Prefactor     54.437        37.981       -.37082E-04   -.16170E-02
  25  norm          6.5618        3.8485       -.53883E-06    .98938E-04
  26  Prefactor     1.0073        10.193       -.18740E-05    .45423E-04
  27  Prefactor     2.1216        2.7773       -.11386E-05    .30125E-04
  28  Prefactor     3.4338        2.9839        .69705E-06    .37829E-04
  29  Normalizat    1.0792        .22397       -.15535E-04   -.10694E-03
  30  Prefactor     .71162        .24627        .64468E-05   -.10013E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 12.2256
  Prefactor  = 0.000100159
  Prefactor  = 0.0001
  norm       = 1.51819
  Prefactor  = 4.61568
  Prefactor  = 0.000100033
  Prefactor  = 0.000100089
  norm       = 0.0001
  norm       = 5.40331
  Prefactor  = 1.45284
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100023
  norm       = 6.47648
  Prefactor  = 0.0001
  Prefactor  = 3.95286
  norm       = 9.54174
  Prefactor  = 39.4475
  Prefactor  = 49.768
  norm       = 1.7879
  Prefactor  = 54.4372
  norm       = 6.56184
  Prefactor  = 1.00725
  Prefactor  = 2.12155
  Prefactor  = 3.43376
  Normalizat = 1.07918
  Prefactor  = 0.71162
 **********
 **   18 **HESSE 
 **********

 FCN=   5173.650     FROM HESSE     STATUS=OK           648 CALLS     3463 TOTAL
                     EDM=   .42E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     12.226        23.995        .28804E-02   -1.5009    
   2  Prefactor     .10016E-03    32.986        .10587E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    9.1132        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          1.5182        .35194        .44953E-02   -1.5462    
   5  Prefactor     4.6157        3.5968        .46883E-02   -1.5278    
   6  Prefactor     .10003E-03    17.422        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10009E-03    16.141        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    6.8019        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          5.4033        10.428        .43010E-02   -1.5243    
  10  Prefactor     1.4528        2.2150        .89505E-02   -1.5467    
  11  Prefactor     .10000E-03    56.213        .91157E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    12.865        .10621E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    1.1969        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    6.9552        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    1.1728        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10002E-03    72.751        .91603E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          6.4765        1.7372        .39376E-02   -1.5199    
  18  Prefactor     .10000E-03    9.5757        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     3.9529        2.2007        .50733E-02   -1.5310    
  20  norm          9.5417        9.0269        .32500E-02   -1.5090    
  21  Prefactor     39.447        29.453        .15917E-02   -1.4451    
  22  Prefactor     49.768        64.861        .14481E-02   -1.4296    
  23  norm          1.7879        1.0464        .78176E-03   -1.5441    
  24  Prefactor     54.437        38.037        .13748E-02   -1.4231    
  25  norm          6.5618        3.8523        .39143E-02   -1.5196    
  26  Prefactor     1.0073        10.081        .12639E-01   -1.5507    
  27  Prefactor     2.1216        2.7953        .70790E-02   -1.5417    
  28  Prefactor     3.4338        2.9941        .54564E-02   -1.5337    
  29  Normalizat    1.0792        .19447        .38868E-01   -.90423    
  30  Prefactor     .71162        .21555        .73774E-01   -1.0307    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.18305e-07
Minuit parameter uncertainties:
  1  24.014
  2  0.00458814
  3  5.15069e-06
  4  0.351944
  5  3.59702
  6  0.0015067
  7  0.00239776
  8  3.49513e-06
  9  10.4312
  10  2.21511
  11  0.000246559
  12  0.000326627
  13  4.92631e-06
  14  5.54362e-05
  15  2.03135e-06
  16  0.00260236
  17  1.73724
  18  0.000118724
  19  2.20073
  20  9.02823
  21  29.4636
  22  64.9531
  23  1.04642
  24  38.0535
  25  3.85247
  26  6.37419
  27  2.79551
  28  2.9942
  29  0.194602
  30  0.215801
Done.

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

Extracting fit parameters...

4FGL J1136.2+3407
   Spectrum: PowerLaw
306    Prefactor:  1.000e-04  2.031e-06  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:  7.116e-01  2.158e-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.079e+00  1.946e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 174.075 34.129
Photon Flux Upper Limit: 4.54e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.54e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/948117/likelihoodResults_414288001_414547201_4FGL_J1136.2+3407_daily_bin675.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5173.6537054
delta logL = -0.00369223252255

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5173.65001296
delta logL = 2.01569491765e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5430       1.0000          .0000       10.000    
     3 'Normalizat'    1.0792       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .71163       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=   5173.650     FROM MIGRAD    STATUS=CONVERGED     98 CALLS      247 TOTAL
                     EDM=   .42E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    27.762        .76442E-02** at limit **
   2  Index         2.0072        5.9819        .50000       -.20725E-06
   3  Normalizat    1.0792        .21157E-01    .23298E-03   -.91836E-03
   4  Prefactor     .71162        .24641E-01    .32655E-03   -.67816E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.00723
  Normalizat = 1.07918
  Prefactor  = 0.711616
 **********
 **   18 **HESSE 
 **********

 FCN=   5173.650     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      276 TOTAL
                     EDM=   .32E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    208.28        .81818E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.0072        8.9748        .50000       -.64169    
   3  Normalizat    1.0792        .74279E-01    .46596E-04   -.90423    
   4  Prefactor     .71162        .86499E-01    .65309E-04   -1.0307    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.17127e-09
Minuit parameter uncertainties:
  1  9.63539e-06
  2  1048.67
  3  0.0742864
  4  0.0865151
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/948117': 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): 102
logL (Free Index) = 5173.65000743
delta logL = 5.73491070099e-06

Extracting fit parameters...

4FGL J1136.2+3407
   Spectrum: PowerLaw
306    Prefactor:  1.000e-04  9.635e-06  1.000e-04  1.000e+04 ( 1.000e-12)
307        Index:  2.007e+00  1.049e+03  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.116e-01  8.652e-02  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.079e+00  7.429e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 174.075 34.129

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

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.54e-03', job_status='DONE', photon_flux_upper_limit='4.54e-08', time_completed='2021-09-04 05:17:56.550279', job_id='948117', GAL2='0.71', fit_tolerance='1e-08', EG2='1.08', EG='1.08', time_epoch_completed='1630757876.55', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.71', dlogl='5.73e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.55' WHERE bin_id='675' AND source_name='4FGL J1136.2+3407' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 05:17:56 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0106>
Subject: Job 948117: <4FGL_J1136.2+3407_daily_bin675> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1136.2+3407_daily_bin675 174.075 34.129 414288001 414547201 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 :                                   754.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             257.23 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.

