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


Performing analysis on: 4FGL_J1136.4+6736_daily_bin770
RA = 174.118, Dec = 67.6127
tmin = 438912001, tmax = 439171201
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='957471', job_status='RUN', time_executed='2021-09-04 05:31:38.881684', time_epoch_executed='1630758698.88' WHERE source_name='4FGL J1136.4+6736' and cadence='daily' and bin_id='770'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/957471

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/957471/ft1_4FGL_J1136.4+6736_daily_bin770.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/957471/ft2_4FGL_J1136.4+6736_daily_bin770.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/957471/ft1_4FGL_J1136.4+6736_daily_bin770.fits outfile=/scratch/kocevski/957471/ft1_filteredMKT_4FGL_J1136.4+6736_daily_bin770.fits ra=174.118 dec=67.6127 rad=12.0 tmin=438912001.0 tmax=439171201.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.26
user 5.89
sys 0.22

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/957471/ft2_4FGL_J1136.4+6736_daily_bin770.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/957471/ft2_4FGL_J1136.4+6736_daily_bin770.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/957471/ft1_filteredMKT_4FGL_J1136.4+6736_daily_bin770.fits evtable="EVENTS" outfile="/scratch/kocevski/957471/ft1_filtered_4FGL_J1136.4+6736_daily_bin770.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.34
sys 0.13

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/957471/ft1_filtered_4FGL_J1136.4+6736_daily_bin770.fits" evtable="EVENTS" scfile=/scratch/kocevski/957471/ft2_4FGL_J1136.4+6736_daily_bin770.fits sctable="SC_DATA" outfile=/scratch/kocevski/957471/ltcube_438912001_439171201_4FGL_J1136.4+6736_daily_bin770.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/957471/ft2_4FGL_J1136.4+6736_daily_bin770.fits
.....................!
real 12.45
user 12.10
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/957471/ft1_filtered_4FGL_J1136.4+6736_daily_bin770.fits evtable="EVENTS" scfile=/scratch/kocevski/957471/ft2_4FGL_J1136.4+6736_daily_bin770.fits sctable="SC_DATA" expcube=/scratch/kocevski/957471/ltcube_438912001_439171201_4FGL_J1136.4+6736_daily_bin770.fits outfile=/scratch/kocevski/957471/expmap_438912001_439171201_4FGL_J1136.4+6736_daily_bin770.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/957471/ltcube_438912001_439171201_4FGL_J1136.4+6736_daily_bin770.fits
.....................!
real 189.34
user 184.98
sys 3.99

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 237 point sources and 0 extended sources

Setting source of interest to:
4FGL J1136.4+6736 @ 174.118 67.6127

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/957471/ft1_filtered_4FGL_J1136.4+6736_daily_bin770.fits scfile=/scratch/kocevski/957471/ft2_4FGL_J1136.4+6736_daily_bin770.fits outfile=/scratch/kocevski/957471/cmap_438912001_439171201_4FGL_J1136.4+6736_daily_bin770.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.118 yref=67.6127 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.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/957471/ft1_filtered_4FGL_J1136.4+6736_daily_bin770.fits scfile=/scratch/kocevski/957471/ft2_4FGL_J1136.4+6736_daily_bin770.fits outfile=/scratch/kocevski/957471/cmap_HighResolution_438912001_439171201_4FGL_J1136.4+6736_daily_bin770.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.118 yref=67.6127 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.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/957471/ft1_filtered_4FGL_J1136.4+6736_daily_bin770.fits evtable="EVENTS" scfile=/scratch/kocevski/957471/ft2_4FGL_J1136.4+6736_daily_bin770.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/957471/Model_4FGL_J1136.4+6736_daily_bin770.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/957471/ft1_filtered_4FGL_J1136.4+6736_daily_bin770.fits.....................!
real 52.98
user 51.70
sys 1.12

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/957471/ft1_filtered_4FGL_J1136.4+6736_daily_bin770.fits', '/scratch/kocevski/957471/ft2_4FGL_J1136.4+6736_daily_bin770.fits', expMap='/scratch/kocevski/957471/expmap_438912001_439171201_4FGL_J1136.4+6736_daily_bin770.fits', expCube='/scratch/kocevski/957471/ltcube_438912001_439171201_4FGL_J1136.4+6736_daily_bin770.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/957471/Model_4FGL_J1136.4+6736_daily_bin770.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1136.4+6736'

4FGL J1136.4+6736
   Spectrum: PowerLaw
389    Prefactor:  3.601e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-14)
390        Index:  1.747e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
391        Scale:  3.823e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/957471/ft1_filtered_4FGL_J1136.4+6736_daily_bin770.fits
Spacecraft file(s): /scratch/kocevski/957471/ft2_4FGL_J1136.4+6736_daily_bin770.fits
Exposure map: /scratch/kocevski/957471/expmap_438912001_439171201_4FGL_J1136.4+6736_daily_bin770.fits
Exposure cube: /scratch/kocevski/957471/ltcube_438912001_439171201_4FGL_J1136.4+6736_daily_bin770.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/957471/Model_4FGL_J1136.4+6736_daily_bin770.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) = 4425.2256521

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    1.2802       1.0000         .10000E-03   10000.    
     3 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10031E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    12.755       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    114.06       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .60844E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .71544E-01   1.0000         .10000E-03   10000.    
    12 'norm      '    .10022E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .11831E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    18.315       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10088E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    4.5420       1.0000         .10000E-03   10000.    
    20 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    8.4638       1.0000         .10000E-03   10000.    
    26 'Prefactor '    16.588       1.0000         .10000E-03   10000.    
    27 'norm      '    28.910       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    15.748       1.0000         .10000E-03   10000.    
    31 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    32 'Normalizat'    .88577       1.0000         .10000E-01   10.000    
    33 'Prefactor '    1.2617       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7610E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   4425.205     FROM MIGRAD    STATUS=CONVERGED    892 CALLS     5299 TOTAL
                     EDM=   .68E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    82.772        .89838E-06** at limit **
   2  norm          1.2801        1.7421        .23463E-06    .38337E-03
   3  norm          .10000E-03    22.257       -.21602E-06** at limit **
   4  Prefactor     .10000E-03    33.447        .34103E-06** at limit **
   5  Prefactor     .10000E-03    136.50        .76390E-06** at limit **
   6  Prefactor     .10000E-03    41.273       -.32101E-06** at limit **
   7  norm          12.755        5.4360       -.13339E-06    .22836E-04
   8  Prefactor     .10000E-03    178.27       -.10876E-05** at limit **
   9  Prefactor     113.90        385.56        .17134E-04    .58922E-04
  10  Prefactor     .10455E-03    17.024       -.20965E-05** at limit **
  11  norm          .72271E-01    1.3926        .78594E-06    .50730E-03
  12  norm          .10000E-03    6.5445       -.34898E-05** at limit **
  13  norm          .10000E-03    1.8500       -.48265E-07** at limit **
  14  Prefactor     .10000E-03    34.296       -.15967E-05** at limit **
  15  Prefactor     18.304        34.477       -.68104E-06   -.57579E-05
  16  Prefactor     .10000E-03    6.4230       -.55877E-07** at limit **
  17  Prefactor     .10000E-03    52.890       -.49307E-06** at limit **
  18  Prefactor     .10000E-03    13.151        .61316E-07** at limit **
  19  Prefactor     4.5419        4.7782        .23479E-06    .31788E-03
  20  norm          .10000E-03    6.8246        .61428E-07** at limit **
  21  norm          .10000E-03    9.2226        .30767E-06** at limit **
  22  Prefactor     .10000E-03    4.2442        .56728E-07** at limit **
  23  Prefactor     .10000E-03    11.013       -.70203E-07** at limit **
  24  Prefactor     .10000E-03    60.478       -.73315E-07** at limit **
  25  Prefactor     8.4588        30.654       -.26882E-06    .26096E-04
  26  Prefactor     16.586        38.424       -.21593E-06    .21632E-05
  27  norm          28.910        9.9853        .98753E-10    .19947E-03
  28  Prefactor     .10000E-03    11.862       -.16303E-08** at limit **
  29  Prefactor     .10000E-03    24.816        .12130E-06** at limit **
  30  Prefactor     15.747        30.143       -.17452E-06    .11844E-05
  31  Prefactor     .10000E-03    6.9229       -.13500E-07** at limit **
  32  Normalizat    .88576        .21676        .11308E-05    .42632E-03
  33  Prefactor     1.2617        .22543       -.18921E-06    .47703E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  norm       = 1.28007
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 12.7547
  Prefactor  = 0.000100003
  Prefactor  = 113.899
  Prefactor  = 0.000104554
  norm       = 0.0722709
  norm       = 0.000100003
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 18.3045
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.54186
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 8.45884
  Prefactor  = 16.5864
  norm       = 28.9097
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 15.7473
  Prefactor  = 0.0001
  Normalizat = 0.885764
  Prefactor  = 1.26167
 **********
 **   18 **HESSE 
 **********

 FCN=   4425.205     FROM HESSE     STATUS=OK           691 CALLS     5990 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    82.691        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          1.2801        1.7146        .98017E-04   -1.5482    
   3  norm          .10000E-03    22.269        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    33.522        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    136.68        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    41.343        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          12.755        5.4359        .97658E-04   -1.4994    
   8  Prefactor     .10000E-03    177.86        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     113.90        408.32        .18835E-03   -1.3569    
  10  Prefactor     .10455E-03    29.612        .56438E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .72271E-01    12.219        .11094E-02   -1.5654    
  12  norm          .10000E-03    8.3540        .25910E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    1.8507        .88306E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    34.921        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     18.304        34.651        .93587E-04   -1.4852    
  16  Prefactor     .10000E-03    6.4686        .16458E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    53.013        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    13.162        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     4.5419        4.7824        .14505E-03   -1.5282    
  20  norm          .10000E-03    6.8303        .16972E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    9.6088        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    4.2660        .13379E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    11.017        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    60.518        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     8.4588        30.882        .13779E-03   -1.5126    
  26  Prefactor     16.586        38.428        .98339E-04   -1.4893    
  27  norm          28.910        9.9894        .74513E-04   -1.4632    
  28  Prefactor     .10000E-03    11.865        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .10000E-03    24.818        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     15.747        30.184        .10093E-03   -1.4914    
  31  Prefactor     .10000E-03    6.9323        .17093E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Normalizat    .88576        .25090        .27580E-03   -.96962    
  33  Prefactor     1.2617        .26116        .25574E-03   -.84454    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.66825e-09
Minuit parameter uncertainties:
  1  0.000670029
  2  1.71464
  3  8.68235e-05
  4  0.000151866
  5  0.000753926
  6  0.000145702
  7  5.43615
  8  0.0014157
  9  419.131
  10  0.0232377
  11  1.87856
  12  0.000339824
  13  5.36618e-07
  14  0.000196848
  15  34.6886
  16  6.20415e-06
  17  0.000313485
  18  2.64376e-05
  19  4.78283
  20  1.08082e-05
  21  7.29814e-06
  22  1.50786e-06
  23  2.90182e-05
  24  0.000118217
  25  30.9401
  26  38.485
  27  9.99001
  28  8.74896e-06
  29  4.12801e-05
  30  30.213
  31  1.0988e-05
  32  0.251227
  33  0.261429
Done.

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

Extracting fit parameters...

4FGL J1136.4+6736
   Spectrum: PowerLaw
389    Prefactor:  1.000e-04  2.644e-05  1.000e-04  1.000e+04 ( 1.000e-14)
390        Index:  1.747e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
391        Scale:  3.823e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
758    Prefactor:  1.262e+00  2.614e-01  0.000e+00  1.000e+01 ( 1.000e+00)
759        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
760        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
757   Normalization:  8.858e-01  2.512e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 174.118 67.613
Photon Flux Upper Limit: 4.67e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.43e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/957471/likelihoodResults_438912001_439171201_4FGL_J1136.4+6736_daily_bin770.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) = 4425.20514632
delta logL = -0.000361290178262

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4425.20478524
delta logL = -2.11260157812e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10934E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    1.7105       1.0000          .0000       10.000    
     3 'Normalizat'    .88585       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2616       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7610E+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=   4425.205     FROM MIGRAD    STATUS=CONVERGED     92 CALLS      242 TOTAL
                     EDM=   .39E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10932E-03    8.2807        .18142E-01** at limit **
   2  Index         1.5073        5.3370        .50000        .11472E-04
   3  Normalizat    .88576        .36525E-02    .27580E-03   -.14052E-03
   4  Prefactor     1.2617        .39803E-02    .25574E-03   -.30540E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000109316
  Index      = 1.50726
  Normalizat = 0.885761
  Prefactor  = 1.26167
 **********
 **   18 **HESSE 
 **********

 FCN=   4425.205     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      271 TOTAL
                     EDM=   .91E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10932E-03    182.49        .27427E-02   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.5073        5.2723        .50000       -.77337    
   3  Normalizat    .88576        .17313E-01    .11032E-04   -.96962    
   4  Prefactor     1.2617        .18867E-01    .10230E-04   -.84454    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 9.06671e-08
Minuit parameter uncertainties:
  1  0.0827176
  2  630.038
  3  0.0173133
  4  0.0188671
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/957471': 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) = 4425.20478428
delta logL = 7.50824256102e-07

Extracting fit parameters...

4FGL J1136.4+6736
   Spectrum: PowerLaw
389    Prefactor:  1.093e-04  8.272e-02  1.000e-04  1.000e+04 ( 1.000e-14)
390        Index:  1.507e+00  6.300e+02  0.000e+00  1.000e+01 (-1.000e+00)
391        Scale:  3.823e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
758    Prefactor:  1.262e+00  1.887e-02  0.000e+00  1.000e+01 ( 1.000e+00)
759        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
760        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
757   Normalization:  8.858e-01  1.731e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 174.118 67.613

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/957471/cmap_HighResolution_438912001_439171201_4FGL_J1136.4+6736_daily_bin770.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.43e-03', job_status='DONE', photon_flux_upper_limit='4.67e-08', time_completed='2021-09-04 05:47:25.477542', job_id='957471', GAL2='1.26', fit_tolerance='1e-08', EG2='0.89', EG='0.89', time_epoch_completed='1630759645.48', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.26', dlogl='7.51e-07', ts2='-0.00', photon_index_error='0.00', photon_index='1.75' WHERE bin_id='770' AND source_name='4FGL J1136.4+6736' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 05:47:25 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0163>
Subject: Job 957471: <4FGL_J1136.4+6736_daily_bin770> in cluster <slac> Done

Job <4FGL_J1136.4+6736_daily_bin770> was submitted from host <rhel6-64o> by user <kocevski> in cluster <slac> at Sat Sep  4 05:31:22 2021
Job was executed on host(s) <bullet0163>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 05:31:24 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Sep  4 05:31:24 2021
Terminated at Sat Sep  4 05:47:26 2021
Results reported at Sat Sep  4 05:47:26 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1136.4+6736_daily_bin770 174.118 67.6127 438912001 439171201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1136.4+6736 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   940.29 sec.
    Max Memory :                                 1258 MB
    Average Memory :                             323.62 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   961 sec.
    Turnaround time :                            964 sec.

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

