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


Performing analysis on: 4FGL_J1136.2+3407_daily_bin671
RA = 174.075, Dec = 34.129
tmin = 413251201, tmax = 413510401
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='948111', job_status='RUN', time_executed='2021-09-04 05:03:47.679620', time_epoch_executed='1630757027.68' WHERE source_name='4FGL J1136.2+3407' and cadence='daily' and bin_id='671'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/948111

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/948111/ft1_4FGL_J1136.2+3407_daily_bin671.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/948111/ft2_4FGL_J1136.2+3407_daily_bin671.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/948111/ft1_4FGL_J1136.2+3407_daily_bin671.fits outfile=/scratch/kocevski/948111/ft1_filteredMKT_4FGL_J1136.2+3407_daily_bin671.fits ra=174.075 dec=34.129 rad=12.0 tmin=413251201.0 tmax=413510401.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Done.
real 5.81
user 5.47
sys 0.26

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/948111/ft2_4FGL_J1136.2+3407_daily_bin671.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/948111/ft1_filteredMKT_4FGL_J1136.2+3407_daily_bin671.fits evtable="EVENTS" outfile="/scratch/kocevski/948111/ft1_filtered_4FGL_J1136.2+3407_daily_bin671.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.59
user 0.36
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/948111/ft1_filtered_4FGL_J1136.2+3407_daily_bin671.fits" evtable="EVENTS" scfile=/scratch/kocevski/948111/ft2_4FGL_J1136.2+3407_daily_bin671.fits sctable="SC_DATA" outfile=/scratch/kocevski/948111/ltcube_413251201_413510401_4FGL_J1136.2+3407_daily_bin671.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/948111/ft2_4FGL_J1136.2+3407_daily_bin671.fits
.....................!
real 15.02
user 14.32
sys 0.42

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/948111/ft1_filtered_4FGL_J1136.2+3407_daily_bin671.fits evtable="EVENTS" scfile=/scratch/kocevski/948111/ft2_4FGL_J1136.2+3407_daily_bin671.fits sctable="SC_DATA" expcube=/scratch/kocevski/948111/ltcube_413251201_413510401_4FGL_J1136.2+3407_daily_bin671.fits outfile=/scratch/kocevski/948111/expmap_413251201_413510401_4FGL_J1136.2+3407_daily_bin671.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/948111/ltcube_413251201_413510401_4FGL_J1136.2+3407_daily_bin671.fits
.....................!
real 191.41
user 184.80
sys 5.79

Generating the xml model:
radLim = 0.001
maxRad = 12
normsOnly = True
freeVariableSources = True
Fixing all sources to their catalog values, except variable sources
Creating file and adding sources from 4FGL
Added 198 point sources and 0 extended sources

Setting source of interest to:
4FGL J1136.2+3407 @ 174.075 34.129

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/948111/ft1_filtered_4FGL_J1136.2+3407_daily_bin671.fits scfile=/scratch/kocevski/948111/ft2_4FGL_J1136.2+3407_daily_bin671.fits outfile=/scratch/kocevski/948111/cmap_413251201_413510401_4FGL_J1136.2+3407_daily_bin671.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=174.075 yref=34.129 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.57
user 0.38
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/948111/ft1_filtered_4FGL_J1136.2+3407_daily_bin671.fits scfile=/scratch/kocevski/948111/ft2_4FGL_J1136.2+3407_daily_bin671.fits outfile=/scratch/kocevski/948111/cmap_HighResolution_413251201_413510401_4FGL_J1136.2+3407_daily_bin671.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=174.075 yref=34.129 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.56
user 0.40
sys 0.14

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/948111/ft1_filtered_4FGL_J1136.2+3407_daily_bin671.fits', '/scratch/kocevski/948111/ft2_4FGL_J1136.2+3407_daily_bin671.fits', expMap='/scratch/kocevski/948111/expmap_413251201_413510401_4FGL_J1136.2+3407_daily_bin671.fits', expCube='/scratch/kocevski/948111/ltcube_413251201_413510401_4FGL_J1136.2+3407_daily_bin671.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/948111/Model_4FGL_J1136.2+3407_daily_bin671.xml', optimizer='MINUIT')

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

4FGL J1136.2+3407
   Spectrum: PowerLaw
306    Prefactor:  1.848e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
307        Index:  2.553e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
308        Scale:  6.244e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/948111/ft1_filtered_4FGL_J1136.2+3407_daily_bin671.fits
Spacecraft file(s): /scratch/kocevski/948111/ft2_4FGL_J1136.2+3407_daily_bin671.fits
Exposure map: /scratch/kocevski/948111/expmap_413251201_413510401_4FGL_J1136.2+3407_daily_bin671.fits
Exposure cube: /scratch/kocevski/948111/ltcube_413251201_413510401_4FGL_J1136.2+3407_daily_bin671.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/948111/Model_4FGL_J1136.2+3407_daily_bin671.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) = 5368.4353316

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10091E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    1.8506       1.0000         .10000E-03   10000.    
     5 'Prefactor '    2.7012       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .89519       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    17.593       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10073E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    10.762       1.0000         .10000E-03   10000.    
    12 'Prefactor '    3.0403       1.0000         .10000E-03   10000.    
    13 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .11073E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    12.640       1.0000         .10000E-03   10000.    
    17 'norm      '    7.6184       1.0000         .10000E-03   10000.    
    18 'Prefactor '    21.572       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    15.637       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10011E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    37.733       1.0000         .10000E-03   10000.    
    25 'norm      '    46.271       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    1.1315       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .40785E-03   1.0000         .10000E-03   10000.    
    29 'Normalizat'    .99889       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .98998       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6260E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5368.420     FROM MIGRAD    STATUS=CONVERGED    773 CALLS     3963 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    59.123       -.24868E-05** at limit **
   2  Prefactor     .10000E-03    70.764        .36867E-05** at limit **
   3  Prefactor     .10000E-03    3.6825        .11324E-06** at limit **
   4  norm          1.8508        .45654       -.48390E-08   -.55999E-03
   5  Prefactor     2.7014        3.0515        .10735E-05    .16528E-02
   6  Prefactor     .86508        17.463        .39828E-05   -.18808E-03
   7  Prefactor     .10000E-03    15.583       -.10143E-05** at limit **
   8  norm          .10000E-03    6.8151       -.10194E-06** at limit **
   9  norm          17.595        17.197        .10040E-06   -.29830E-05
  10  Prefactor     .10000E-03    2.1350       -.21948E-05** at limit **
  11  Prefactor     10.739        32.959        .23555E-05    .19423E-03
  12  Prefactor     3.0372        38.758       -.88966E-06   -.42570E-04
  13  norm          .10000E-03    .84239       -.14418E-06** at limit **
  14  Prefactor     .10000E-03    21.337        .16445E-05** at limit **
  15  Prefactor     .10000E-03    4.4388       -.73465E-07** at limit **
  16  Prefactor     12.610        47.277        .54634E-05    .61808E-04
  17  norm          7.6186        2.0836       -.89983E-07    .48460E-03
  18  Prefactor     21.579        26.388       -.16203E-06   -.34456E-04
  19  Prefactor     .10000E-03    1.0185        .46541E-07** at limit **
  20  norm          15.637        14.295        .50829E-07    .17291E-05
  21  Prefactor     .10000E-03    12.326        .27686E-06** at limit **
  22  Prefactor     .10000E-03    29.574       -.10739E-05** at limit **
  23  norm          .10000E-03    .68635        .26435E-06** at limit **
  24  Prefactor     37.739        39.537       -.31691E-06   -.76138E-05
  25  norm          46.276        9.6036        .52626E-07    .83131E-03
  26  Prefactor     .10000E-03    2.7518       -.31681E-08** at limit **
  27  Prefactor     1.1313        5.3049        .50189E-07    .22733E-03
  28  Prefactor     .10006E-03    4.0444       -.30550E-05** at limit **
  29  Normalizat    .99877        .22206       -.93764E-08    .97227E-04
  30  Prefactor     .99018        .23479       -.10649E-05    .83417E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 1.85078
  Prefactor  = 2.70138
  Prefactor  = 0.865079
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 17.5952
  Prefactor  = 0.000100001
  Prefactor  = 10.7395
  Prefactor  = 3.03715
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 12.6096
  norm       = 7.61855
  Prefactor  = 21.5793
  Prefactor  = 0.0001
  norm       = 15.637
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 37.739
  norm       = 46.2763
  Prefactor  = 0.0001
  Prefactor  = 1.13131
  Prefactor  = 0.000100059
  Normalizat = 0.998772
  Prefactor  = 0.990185
 **********
 **   18 **HESSE 
 **********

 FCN=   5368.420     FROM HESSE     STATUS=OK           590 CALLS     4553 TOTAL
                     EDM=   .87E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    59.661        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    70.951        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    3.6859        .13733E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          1.8508        .45776        .22572E-04   -1.5436    
   5  Prefactor     2.7014        3.2230        .68645E-03   -1.5379    
   6  Prefactor     .86508        94.131        .47779E-02   -1.5522    
   7  Prefactor     .10000E-03    15.632        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    6.8224        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          17.595        17.201        .95487E-04   -1.4869    
  10  Prefactor     .10000E-03    3.0415        .17780E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     10.739        32.233        .12213E-03   -1.5052    
  12  Prefactor     3.0372        38.500        .23270E-03   -1.5359    
  13  norm          .10000E-03    .84610        .65659E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    21.534        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    4.4921        .15058E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     12.610        47.616        .11267E-03   -1.4998    
  17  norm          7.6186        2.0914        .48469E-04   -1.5156    
  18  Prefactor     21.579        26.278        .86239E-04   -1.4779    
  19  Prefactor     .10000E-03    1.0256        .72094E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          15.637        14.301        .10129E-03   -1.4917    
  21  Prefactor     .10000E-03    12.338        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    29.594        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    1.1068        .11559E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     37.739        39.542        .65246E-04   -1.4479    
  25  norm          46.276        9.0782        .58944E-04   -1.4346    
  26  Prefactor     .10000E-03    2.7537        .11870E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     1.1313        4.8969        .26875E-03   -1.5495    
  28  Prefactor     .10006E-03    10.322        .18307E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    .99877        .26051        .27581E-03   -.93072    
  30  Prefactor     .99018        .27735        .31553E-03   -.93057    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.7036e-09
Minuit parameter uncertainties:
  1  0.000212946
  2  0.000557519
  3  1.09161e-05
  4  0.457762
  5  3.22318
  6  18.076
  7  9.25448e-05
  8  7.57573e-06
  9  17.2062
  10  0.00012439
  11  32.2849
  12  21.6438
  13  8.57565e-06
  14  0.00011723
  15  2.73772e-06
  16  47.7598
  17  2.09141
  18  26.2917
  19  3.60006e-06
  20  14.3045
  21  2.75859e-05
  22  0.000102129
  23  1.83094e-05
  24  39.5697
  25  9.07843
  26  1.7371e-06
  27  4.70787
  28  0.00155562
  29  0.260844
  30  0.277749
Done.

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

Extracting fit parameters...

4FGL J1136.2+3407
   Spectrum: PowerLaw
306    Prefactor:  1.000e-04  2.738e-06  1.000e-04  1.000e+04 ( 1.000e-12)
307        Index:  2.553e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
308        Scale:  6.244e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
623    Prefactor:  9.902e-01  2.777e-01  0.000e+00  1.000e+01 ( 1.000e+00)
624        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
625        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
622   Normalization:  9.988e-01  2.608e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/948111/likelihoodResults_413251201_413510401_4FGL_J1136.2+3407_daily_bin671.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) = 5368.42127346
delta logL = -0.00106076271095

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5368.42021434
delta logL = -1.63859658642e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10750E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5735       1.0000          .0000       10.000    
     3 'Normalizat'    .99847       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .99058       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6260E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5368.420     FROM MIGRAD    STATUS=CONVERGED     89 CALLS      241 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10001E-03    995.91        .15309E-02** at limit **
   2  Index         2.5943        5.4432        .50000       -.42740E-04
   3  Normalizat    .99877        .14325        .27580E-03    .10763E-03
   4  Prefactor     .99019        .16347        .31553E-03    .67557E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100009
  Index      = 2.5943
  Normalizat = 0.998771
  Prefactor  = 0.990186
 **********
 **   18 **HESSE 
 **********

 FCN=   5368.420     FROM HESSE     STATUS=OK            29 CALLS      270 TOTAL
                     EDM=   .30E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10001E-03    4.9771        .30617E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.5943        6.2957        .50000       -.50195    
   3  Normalizat    .99877        .23912        .11032E-04   -.93072    
   4  Prefactor     .99019        .27348        .12621E-04   -.93057    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.95277e-09
Minuit parameter uncertainties:
  1  0.000416054
  2  4.53659
  3  0.239381
  4  0.273864
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/948111': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5368.42021231
delta logL = 3.84771738027e-07

Extracting fit parameters...

4FGL J1136.2+3407
   Spectrum: PowerLaw
306    Prefactor:  1.000e-04  4.161e-04  1.000e-04  1.000e+04 ( 1.000e-12)
307        Index:  2.594e+00  4.537e+00  0.000e+00  1.000e+01 (-1.000e+00)
308        Scale:  6.244e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
623    Prefactor:  9.902e-01  2.739e-01  0.000e+00  1.000e+01 ( 1.000e+00)
624        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
625        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
622   Normalization:  9.988e-01  2.394e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

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

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.19e-03', job_status='DONE', photon_flux_upper_limit='9.22e-08', time_completed='2021-09-04 05:17:52.332345', job_id='948111', GAL2='0.99', fit_tolerance='1e-08', EG2='1.00', EG='1.00', time_epoch_completed='1630757872.33', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.99', dlogl='3.85e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.55' WHERE bin_id='671' AND source_name='4FGL J1136.2+3407' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 05:17:52 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0042>
Subject: Job 948111: <4FGL_J1136.2+3407_daily_bin671> in cluster <slac> Done

Job <4FGL_J1136.2+3407_daily_bin671> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Sat Sep  4 05:01:19 2021
Job was executed on host(s) <bullet0042>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 05:01:21 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Sep  4 05:01:21 2021
Terminated at Sat Sep  4 05:17:53 2021
Results reported at Sat Sep  4 05:17:53 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1136.2+3407_daily_bin671 174.075 34.129 413251201 413510401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1136.2+3407 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   840.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             282.71 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   991 sec.
    Turnaround time :                            994 sec.

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

