/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 0 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 = 7393
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1136.4+6736_daily_bin164
RA = 174.118, Dec = 67.6127
tmin = 281836801, tmax = 282096001
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='954379', job_status='RUN', time_executed='2021-09-04 05:21:25.327849', time_epoch_executed='1630758085.33' WHERE source_name='4FGL J1136.4+6736' and cadence='daily' and bin_id='164'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/954379

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/954379/ft1_4FGL_J1136.4+6736_daily_bin164.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/954379/ft2_4FGL_J1136.4+6736_daily_bin164.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/954379/ft1_4FGL_J1136.4+6736_daily_bin164.fits outfile=/scratch/kocevski/954379/ft1_filteredMKT_4FGL_J1136.4+6736_daily_bin164.fits ra=174.118 dec=67.6127 rad=12.0 tmin=281836801.0 tmax=282096001.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 3.33
user 3.07
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/954379/ft2_4FGL_J1136.4+6736_daily_bin164.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/954379/ft1_filteredMKT_4FGL_J1136.4+6736_daily_bin164.fits evtable="EVENTS" outfile="/scratch/kocevski/954379/ft1_filtered_4FGL_J1136.4+6736_daily_bin164.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.43
user 0.28
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/954379/ft1_filtered_4FGL_J1136.4+6736_daily_bin164.fits" evtable="EVENTS" scfile=/scratch/kocevski/954379/ft2_4FGL_J1136.4+6736_daily_bin164.fits sctable="SC_DATA" outfile=/scratch/kocevski/954379/ltcube_281836801_282096001_4FGL_J1136.4+6736_daily_bin164.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/954379/ft2_4FGL_J1136.4+6736_daily_bin164.fits
.....................!
real 10.02
user 9.71
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/954379/ft1_filtered_4FGL_J1136.4+6736_daily_bin164.fits evtable="EVENTS" scfile=/scratch/kocevski/954379/ft2_4FGL_J1136.4+6736_daily_bin164.fits sctable="SC_DATA" expcube=/scratch/kocevski/954379/ltcube_281836801_282096001_4FGL_J1136.4+6736_daily_bin164.fits outfile=/scratch/kocevski/954379/expmap_281836801_282096001_4FGL_J1136.4+6736_daily_bin164.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/954379/ltcube_281836801_282096001_4FGL_J1136.4+6736_daily_bin164.fits
.....................!
real 155.89
user 151.49
sys 4.05

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/954379/ft1_filtered_4FGL_J1136.4+6736_daily_bin164.fits scfile=/scratch/kocevski/954379/ft2_4FGL_J1136.4+6736_daily_bin164.fits outfile=/scratch/kocevski/954379/cmap_281836801_282096001_4FGL_J1136.4+6736_daily_bin164.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.54
user 0.31
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/954379/ft1_filtered_4FGL_J1136.4+6736_daily_bin164.fits scfile=/scratch/kocevski/954379/ft2_4FGL_J1136.4+6736_daily_bin164.fits outfile=/scratch/kocevski/954379/cmap_HighResolution_281836801_282096001_4FGL_J1136.4+6736_daily_bin164.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 1.76
user 0.31
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10869E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    1.3129       1.0000         .10000E-03   10000.    
     3 'norm      '    .34743E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .38930E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    18.566       1.0000         .10000E-03   10000.    
     6 'Prefactor '    55.883       1.0000         .10000E-03   10000.    
     7 'norm      '    2.8489       1.0000         .10000E-03   10000.    
     8 'Prefactor '    22.145       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .60124E-02   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .82127       1.0000         .10000E-03   10000.    
    11 'norm      '    .10019E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10023E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .60154E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    1.6105       1.0000         .10000E-03   10000.    
    16 'Prefactor '    4.9803       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .97244E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10635E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .43517       1.0000         .10000E-03   10000.    
    20 'norm      '    8.3524       1.0000         .10000E-03   10000.    
    21 'norm      '    7.4123       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .11640E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .21085E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    24.439       1.0000         .10000E-03   10000.    
    25 'Prefactor '    65.345       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .24992E-02   1.0000         .10000E-03   10000.    
    27 'norm      '    .10026E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .25640E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    .36612E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    8.1553       1.0000         .10000E-03   10000.    
    31 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    32 'Normalizat'    .87053       1.0000         .10000E-01   10.000    
    33 'Prefactor '    .97750       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=   5944.948     FROM MIGRAD    STATUS=CONVERGED    992 CALLS     4052 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    14.019        .58412E-07** at limit **
   2  norm          1.3091        .92235        .52732E-07   -.58568E-04
   3  norm          .10000E-03    6.6626        .99691E-08** at limit **
   4  Prefactor     .10000E-03    7.3031       -.60827E-06** at limit **
   5  Prefactor     18.945        21.859        .67291E-06    .14730E-04
   6  Prefactor     55.545        30.170       -.12910E-06   -.14787E-04
   7  norm          2.8597        3.1283        .40073E-07   -.19720E-05
   8  Prefactor     19.605        60.098        .11530E-05   -.33583E-04
   9  Prefactor     .10000E-03    62.811       -.42453E-06** at limit **
  10  Prefactor     .93219        7.9337       -.10413E-05   -.76798E-03
  11  norm          .10000E-03    .46399        .14819E-06** at limit **
  12  norm          .10000E-03    1.0003        .50290E-07** at limit **
  13  norm          .10000E-03    1.0744        .55178E-07** at limit **
  14  Prefactor     .10000E-03    3.2242        .81717E-07** at limit **
  15  Prefactor     1.5798        20.699        .13519E-04   -.77181E-04
  16  Prefactor     4.9635        7.2597       -.80978E-06   -.16005E-04
  17  Prefactor     .10000E-03    12.840        .26885E-06** at limit **
  18  Prefactor     .10000E-03    5.4838       -.25663E-07** at limit **
  19  Prefactor     .42060        3.6633        .31473E-06   -.14609E-03
  20  norm          8.3140        9.1900        .22174E-07   -.34516E-06
  21  norm          7.4293        5.6949        .25013E-07    .46492E-05
  22  Prefactor     .10000E-03    8.5185       -.33511E-06** at limit **
  23  Prefactor     .10000E-03    18.748       -.48501E-06** at limit **
  24  Prefactor     20.824        63.102        .11847E-05   -.33460E-05
  25  Prefactor     65.223        27.672        .12923E-05   -.46308E-04
  26  Prefactor     .10000E-03    54.582       -.51166E-06** at limit **
  27  norm          .10000E-03    1.4613       -.67981E-08** at limit **
  28  Prefactor     .10000E-03    10.517       -.59135E-07** at limit **
  29  Prefactor     .10000E-03    14.893        .37105E-06** at limit **
  30  Prefactor     8.1556        18.926       -.21271E-05    .76520E-05
  31  Prefactor     .10000E-03    6.6755        .24710E-06** at limit **
  32  Normalizat    .87075        .16137        .27288E-06   -.64568E-04
  33  Prefactor     .97961        .16485       -.10577E-05   -.20446E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 1.30907
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 18.9449
  Prefactor  = 55.5455
  norm       = 2.85971
  Prefactor  = 19.605
  Prefactor  = 0.0001
  Prefactor  = 0.932185
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.5798
  Prefactor  = 4.96351
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.420601
  norm       = 8.31402
  norm       = 7.42935
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 20.8244
  Prefactor  = 65.2232
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 8.15561
  Prefactor  = 0.0001
  Normalizat = 0.870748
  Prefactor  = 0.979614
 **********
 **   18 **HESSE 
 **********

 FCN=   5944.948     FROM HESSE     STATUS=OK           693 CALLS     4745 TOTAL
                     EDM=   .37E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    14.173        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          1.3091        .90892        .58645E-04   -1.5479    
   3  norm          .10000E-03    6.6663        .19438E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    7.3604        .20276E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     18.945        21.750        .92954E-04   -1.4837    
   6  Prefactor     55.545        30.310        .53660E-04   -1.4216    
   7  norm          2.8597        3.1233        .11485E-03   -1.5370    
   8  Prefactor     19.605        53.470        .85116E-04   -1.4822    
   9  Prefactor     .10000E-03    62.812        .18937E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .93219        5.2775        .26184E-03   -1.5515    
  11  norm          .10000E-03    1.0855        .87552E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    1.0254        .15003E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    1.0757        .78050E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    3.3144        .26937E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     1.5798        20.651        .16689E-02   -1.5457    
  16  Prefactor     4.9635        7.2672        .18020E-03   -1.5262    
  17  Prefactor     .10000E-03    12.863        .20781E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    5.4846        .17634E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .42060        8.0942        .27894E-02   -1.5578    
  20  norm          8.3140        9.1900        .13871E-03   -1.5131    
  21  norm          7.4293        5.6826        .14731E-03   -1.5163    
  22  Prefactor     .10000E-03    8.6059        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    18.818        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     20.824        63.256        .81029E-04   -1.4795    
  25  Prefactor     65.223        27.615        .49647E-04   -1.4091    
  26  Prefactor     .10000E-03    54.710        .20018E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          .10000E-03    1.4655        .91007E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    10.519        .21455E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .10000E-03    14.898        .21304E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     8.1556        18.850        .14039E-03   -1.5137    
  31  Prefactor     .10000E-03    6.6924        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Normalizat    .87075        .18373        .23998E-03   -.97496    
  33  Prefactor     .97961        .18908        .23731E-03   -.93412    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.71371e-08
Minuit parameter uncertainties:
  1  1.28451e-05
  2  0.908926
  3  8.4223e-07
  4  8.67083e-05
  5  21.7587
  6  30.3182
  7  3.12347
  8  53.6008
  9  1.68944e-05
  10  4.43639
  11  2.08373e-05
  12  3.44091e-06
  13  1.77852e-06
  14  9.48339e-06
  15  11.428
  16  7.26844
  17  4.7973e-05
  18  3.09475e-06
  19  3.69034
  20  9.19155
  21  5.68297
  22  5.16929e-05
  23  0.000115471
  24  63.4608
  25  27.6202
  26  0.000249272
  27  5.81685e-07
  28  1.01452e-05
  29  1.18495e-05
  30  18.8634
  31  3.60976e-05
  32  0.183865
  33  0.189209
Done.

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

Extracting fit parameters...

4FGL J1136.4+6736
   Spectrum: PowerLaw
389    Prefactor:  1.000e-04  3.095e-06  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:  9.796e-01  1.892e-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.707e-01  1.839e-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: 2.44e-08 ph cm-2 s-1
Energy Flux Upper Limit: 1.79e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/954379/likelihoodResults_281836801_282096001_4FGL_J1136.4+6736_daily_bin164.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) = 5944.94846587
delta logL = -0.000853463920066

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5944.94761249
delta logL = -8.33733793115e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10362E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    1.7208       1.0000          .0000       10.000    
     3 'Normalizat'    .87073       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .97963       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=   5944.948     FROM MIGRAD    STATUS=CONVERGED     89 CALLS      237 TOTAL
                     EDM=   .27E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10548E-03    1.7341        .18111E-01** at limit **
   2  Index         1.5321        5.6476        .50000        .20048E-04
   3  Normalizat    .87075        .20395E-02    .23998E-03    .11962E-03
   4  Prefactor     .97961        .21390E-02    .23731E-03   -.70518E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000105475
  Index      = 1.53206
  Normalizat = 0.870749
  Prefactor  = 0.979614
 **********
 **   18 **HESSE 
 **********

 FCN=   5944.948     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      266 TOTAL
                     EDM=   .15E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10548E-03    97.725        .19400E-02   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.5321        7.0396        .50000       -.76646    
   3  Normalizat    .87075        .15567E-01    .95993E-05   -.97496    
   4  Prefactor     .97961        .16325E-01    .94925E-05   -.93412    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.5087e-07
Minuit parameter uncertainties:
  1  0.0463382
  2  562.577
  3  0.0155667
  4  0.016325
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/954379': 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) = 5944.94761124
delta logL = 1.17171566671e-06

Extracting fit parameters...

4FGL J1136.4+6736
   Spectrum: PowerLaw
389    Prefactor:  1.055e-04  4.634e-02  1.000e-04  1.000e+04 ( 1.000e-14)
390        Index:  1.532e+00  5.626e+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:  9.796e-01  1.633e-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.707e-01  1.557e-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/954379/cmap_HighResolution_281836801_282096001_4FGL_J1136.4+6736_daily_bin164.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.79e-03', job_status='DONE', photon_flux_upper_limit='2.44e-08', time_completed='2021-09-04 05:37:09.905893', job_id='954379', GAL2='0.98', fit_tolerance='1e-08', EG2='0.87', EG='0.87', time_epoch_completed='1630759029.91', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.98', dlogl='1.17e-06', ts2='-0.00', photon_index_error='0.00', photon_index='1.75' WHERE bin_id='164' AND source_name='4FGL J1136.4+6736' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 05:37:09 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0086>
Subject: Job 954379: <4FGL_J1136.4+6736_daily_bin164> in cluster <slac> Done

Job <4FGL_J1136.4+6736_daily_bin164> was submitted from host <rhel6-64a> by user <kocevski> in cluster <slac> at Sat Sep  4 05:21:16 2021
Job was executed on host(s) <bullet0086>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 05:21:17 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:21:17 2021
Terminated at Sat Sep  4 05:37:10 2021
Results reported at Sat Sep  4 05:37:10 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1136.4+6736_daily_bin164 174.118 67.6127 281836801 282096001 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 :                                   938.00 sec.
    Max Memory :                                 1258 MB
    Average Memory :                             326.17 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   953 sec.
    Turnaround time :                            954 sec.

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

