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


Performing analysis on: 4FGL_J1136.4+6736_daily_bin653
RA = 174.118, Dec = 67.6127
tmin = 408585601, tmax = 408844801
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='957297', job_status='RUN', time_executed='2021-09-04 05:31:23.626690', time_epoch_executed='1630758683.63' WHERE source_name='4FGL J1136.4+6736' and cadence='daily' and bin_id='653'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/957297

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/957297/ft1_4FGL_J1136.4+6736_daily_bin653.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/957297/ft2_4FGL_J1136.4+6736_daily_bin653.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/957297/ft1_4FGL_J1136.4+6736_daily_bin653.fits outfile=/scratch/kocevski/957297/ft1_filteredMKT_4FGL_J1136.4+6736_daily_bin653.fits ra=174.118 dec=67.6127 rad=12.0 tmin=408585601.0 tmax=408844801.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.42
user 4.17
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/957297/ft2_4FGL_J1136.4+6736_daily_bin653.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/957297/ft1_filteredMKT_4FGL_J1136.4+6736_daily_bin653.fits evtable="EVENTS" outfile="/scratch/kocevski/957297/ft1_filtered_4FGL_J1136.4+6736_daily_bin653.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.49
user 0.33
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/957297/ft1_filtered_4FGL_J1136.4+6736_daily_bin653.fits" evtable="EVENTS" scfile=/scratch/kocevski/957297/ft2_4FGL_J1136.4+6736_daily_bin653.fits sctable="SC_DATA" outfile=/scratch/kocevski/957297/ltcube_408585601_408844801_4FGL_J1136.4+6736_daily_bin653.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/957297/ft2_4FGL_J1136.4+6736_daily_bin653.fits
.....................!
real 11.77
user 11.41
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/957297/ft1_filtered_4FGL_J1136.4+6736_daily_bin653.fits evtable="EVENTS" scfile=/scratch/kocevski/957297/ft2_4FGL_J1136.4+6736_daily_bin653.fits sctable="SC_DATA" expcube=/scratch/kocevski/957297/ltcube_408585601_408844801_4FGL_J1136.4+6736_daily_bin653.fits outfile=/scratch/kocevski/957297/expmap_408585601_408844801_4FGL_J1136.4+6736_daily_bin653.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/957297/ltcube_408585601_408844801_4FGL_J1136.4+6736_daily_bin653.fits
.....................!
real 191.62
user 187.25
sys 4.01

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/957297/ft1_filtered_4FGL_J1136.4+6736_daily_bin653.fits scfile=/scratch/kocevski/957297/ft2_4FGL_J1136.4+6736_daily_bin653.fits outfile=/scratch/kocevski/957297/cmap_408585601_408844801_4FGL_J1136.4+6736_daily_bin653.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.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/957297/ft1_filtered_4FGL_J1136.4+6736_daily_bin653.fits scfile=/scratch/kocevski/957297/ft2_4FGL_J1136.4+6736_daily_bin653.fits outfile=/scratch/kocevski/957297/cmap_HighResolution_408585601_408844801_4FGL_J1136.4+6736_daily_bin653.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.37
sys 0.16

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/957297/ft1_filtered_4FGL_J1136.4+6736_daily_bin653.fits', '/scratch/kocevski/957297/ft2_4FGL_J1136.4+6736_daily_bin653.fits', expMap='/scratch/kocevski/957297/expmap_408585601_408844801_4FGL_J1136.4+6736_daily_bin653.fits', expCube='/scratch/kocevski/957297/ltcube_408585601_408844801_4FGL_J1136.4+6736_daily_bin653.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/957297/Model_4FGL_J1136.4+6736_daily_bin653.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/957297/ft1_filtered_4FGL_J1136.4+6736_daily_bin653.fits
Spacecraft file(s): /scratch/kocevski/957297/ft2_4FGL_J1136.4+6736_daily_bin653.fits
Exposure map: /scratch/kocevski/957297/expmap_408585601_408844801_4FGL_J1136.4+6736_daily_bin653.fits
Exposure cube: /scratch/kocevski/957297/ltcube_408585601_408844801_4FGL_J1136.4+6736_daily_bin653.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/957297/Model_4FGL_J1136.4+6736_daily_bin653.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) = 1899.28779736

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    24.730       1.0000         .10000E-03   10000.    
     7 'norm      '    2.9562       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10086E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    9.7409       1.0000         .10000E-03   10000.    
    11 'norm      '    8.8852       1.0000         .10000E-03   10000.    
    12 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10030E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10051E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    29.087       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    4.5378       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10047E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    195.32       1.0000         .10000E-03   10000.    
    27 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    95.358       1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    31 'Prefactor '    79.946       1.0000         .10000E-03   10000.    
    32 'Normalizat'    1.2347       1.0000         .10000E-01   10.000    
    33 'Prefactor '    .59571       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=   1899.267     FROM MIGRAD    STATUS=CONVERGED    884 CALLS     4593 TOTAL
                     EDM=   .80E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    12.776       -.10933E-06** at limit **
   2  norm          .10000E-03    .48885        .29777E-08** at limit **
   3  norm          .10000E-03    17.917       -.33824E-06** at limit **
   4  Prefactor     .10000E-03    11.754       -.28064E-07** at limit **
   5  Prefactor     .10000E-03    23.670       -.60490E-06** at limit **
   6  Prefactor     24.711        70.870       -.21546E-04   -.19451E-04
   7  norm          2.9585        8.7515        .99611E-05   -.26446E-03
   8  Prefactor     .10031E-03    686.70       -.14850E-04** at limit **
   9  Prefactor     .10006E-03    186.75        .48344E-05** at limit **
  10  Prefactor     9.7463        16.232       -.24266E-05    .12514E-03
  11  norm          8.8850        2.8566        .25807E-07    .27195E-03
  12  norm          .10000E-03    1.8319        .33684E-07** at limit **
  13  norm          .10000E-03    16.139       -.73615E-06** at limit **
  14  Prefactor     .10000E-03    4.7436        .45145E-07** at limit **
  15  Prefactor     .10000E-03    65.524        .89062E-06** at limit **
  16  Prefactor     .10000E-03    4.9817       -.22985E-07** at limit **
  17  Prefactor     29.087        45.569       -.58890E-06   -.93234E-05
  18  Prefactor     .10000E-03    15.690        .39440E-07** at limit **
  19  Prefactor     .10000E-03    3.2440        .21202E-09** at limit **
  20  norm          .10000E-03    15.289        .15846E-06** at limit **
  21  norm          4.5375        8.8975        .50213E-05   -.20263E-03
  22  Prefactor     .10000E-03    9.0007       -.36435E-06** at limit **
  23  Prefactor     .10000E-03    21.297        .65235E-06** at limit **
  24  Prefactor     .10000E-03    125.49       -.32728E-06** at limit **
  25  Prefactor     .10001E-03    92.681       -.30224E-05** at limit **
  26  Prefactor     195.32        160.49       -.12573E-05   -.74759E-05
  27  norm          .10000E-03    4.7821        .44448E-07** at limit **
  28  Prefactor     .10000E-03    43.507        .52329E-07** at limit **
  29  Prefactor     95.510        203.71        .51640E-05    .88960E-04
  30  Prefactor     .10000E-03    43.494        .13302E-06** at limit **
  31  Prefactor     79.926        61.499       -.29576E-06   -.18347E-04
  32  Normalizat    1.2349        .31891       -.12990E-05   -.19958E-05
  33  Prefactor     .59551        .30161       -.14665E-05    .39555E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 24.7112
  norm       = 2.95847
  Prefactor  = 0.000100306
  Prefactor  = 0.000100059
  Prefactor  = 9.74627
  norm       = 8.88499
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100004
  Prefactor  = 0.0001
  Prefactor  = 29.0868
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 4.53751
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.000100011
  Prefactor  = 195.315
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 95.5104
  Prefactor  = 0.0001
  Prefactor  = 79.9263
  Normalizat = 1.23486
  Prefactor  = 0.595505
 **********
 **   18 **HESSE 
 **********

 FCN=   1899.267     FROM HESSE     STATUS=OK           675 CALLS     5268 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    12.788        .15217E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    .49636        .29739E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    17.922        .18023E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    11.763        .14593E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    23.677        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     24.711        72.079        .80551E-04   -1.4713    
   7  norm          2.9585        8.8205        .63534E-03   -1.5364    
   8  Prefactor     .10031E-03    691.70        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10006E-03    187.27        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     9.7463        16.418        .12840E-03   -1.5083    
  11  norm          8.8850        2.9058        .31798E-04   -1.5112    
  12  norm          .10000E-03    1.8413        .57569E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    16.762        .34167E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    4.7560        .92672E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    65.849        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    4.9842        .95007E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     29.087        45.600        .74286E-04   -1.4629    
  18  Prefactor     .10000E-03    15.691        .16864E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    3.2503        .76665E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    15.293        .16647E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          4.5375        8.9105        .86830E-03   -1.5282    
  22  Prefactor     .10000E-03    9.0095        .12770E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    21.311        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    125.57        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10001E-03    93.632        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     195.32        160.80        .14453E-03   -1.2904    
  27  norm          .10000E-03    4.7973        .93079E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    43.510        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     95.510        204.66        .20580E-03   -1.3750    
  30  Prefactor     .10000E-03    43.494        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Prefactor     79.926        61.602        .44917E-04   -1.3918    
  32  Normalizat    1.2349        .37352        .23056E-03   -.85532    
  33  Prefactor     .59551        .34777        .31882E-03   -1.0778    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.6631e-09
Minuit parameter uncertainties:
  1  2.73764e-05
  2  2.70249e-06
  3  0.000106079
  4  5.32254e-05
  5  0.000233085
  6  72.3344
  7  8.82441
  8  0.0294454
  9  0.00667559
  10  16.4257
  11  2.90581
  12  7.89107e-06
  13  5.28128e-05
  14  1.68242e-05
  15  0.000998818
  16  1.51363e-06
  17  45.6546
  18  2.15904e-05
  19  3.16677e-06
  20  0.000103761
  21  8.91309
  22  4.77682e-05
  23  0.000344558
  24  0.000267438
  25  0.00206048
  26  161.162
  27  5.79152e-06
  28  4.70953e-06
  29  206.204
  30  6.41661e-06
  31  61.6509
  32  0.374334
  33  0.349035
Done.

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

Extracting fit parameters...

4FGL J1136.4+6736
   Spectrum: PowerLaw
389    Prefactor:  1.000e-04  2.159e-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:  5.955e-01  3.490e-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:  1.235e+00  3.743e-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: 7.00e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.13e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/957297/likelihoodResults_408585601_408844801_4FGL_J1136.4+6736_daily_bin653.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) = 1899.26769243
delta logL = -0.000257772246187

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 1899.26743614
delta logL = -1.48701610669e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10754E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    1.9349       1.0000          .0000       10.000    
     3 'Normalizat'    1.2347       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .59565       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=   1899.267     FROM MIGRAD    STATUS=CONVERGED     86 CALLS      273 TOTAL
                     EDM=   .57E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10177E-03    73.395        .15101E-02** at limit **
   2  Index         1.8712        5.9224        .50000        .24262E-04
   3  Normalizat    1.2348        .18932E-01    .23056E-03   -.44765E-03
   4  Prefactor     .59551        .18875E-01    .31882E-03   -.21144E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000101773
  Index      = 1.87123
  Normalizat = 1.23485
  Prefactor  = 0.595508
 **********
 **   18 **HESSE 
 **********

 FCN=   1899.267     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      302 TOTAL
                     EDM=   .25E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10177E-03    316.89        .30203E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.8712        7.2222        .50000       -.67610    
   3  Normalizat    1.2348        .40316E-01    .46112E-04   -.85533    
   4  Prefactor     .59551        .40192E-01    .63764E-04   -1.0778    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.49494e-08
Minuit parameter uncertainties:
  1  0.0476615
  2  314.89
  3  0.0403167
  4  0.0401936
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/957297': 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) = 1899.26743537
delta logL = -7.16953991287e-07

Extracting fit parameters...

4FGL J1136.4+6736
   Spectrum: PowerLaw
389    Prefactor:  1.018e-04  4.766e-02  1.000e-04  1.000e+04 ( 1.000e-14)
390        Index:  1.871e+00  3.149e+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:  5.955e-01  4.019e-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:  1.235e+00  4.032e-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/957297/cmap_HighResolution_408585601_408844801_4FGL_J1136.4+6736_daily_bin653.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.13e-03', job_status='DONE', photon_flux_upper_limit='7.00e-08', time_completed='2021-09-04 05:41:26.312328', job_id='957297', GAL2='0.60', fit_tolerance='1e-08', EG2='1.23', EG='1.23', time_epoch_completed='1630759286.31', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.60', dlogl='-7.17e-07', ts2='-0.00', photon_index_error='0.00', photon_index='1.75' WHERE bin_id='653' AND source_name='4FGL J1136.4+6736' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 05:41:26 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0107>
Subject: Job 957297: <4FGL_J1136.4+6736_daily_bin653> in cluster <slac> Done

Job <4FGL_J1136.4+6736_daily_bin653> was submitted from host <rhel6-64o> by user <kocevski> in cluster <slac> at Sat Sep  4 05:31:09 2021
Job was executed on host(s) <bullet0107>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 05:31:11 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:11 2021
Terminated at Sat Sep  4 05:41:26 2021
Results reported at Sat Sep  4 05:41:26 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1136.4+6736_daily_bin653 174.118 67.6127 408585601 408844801 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 :                                   601.00 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             320.95 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   615 sec.
    Turnaround time :                            617 sec.

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

