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


Performing analysis on: 4FGL_J1136.2+3407_daily_bin973
RA = 174.075, Dec = 34.129
tmin = 491529601, tmax = 491788801
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='950083', job_status='RUN', time_executed='2021-09-04 05:07:17.047225', time_epoch_executed='1630757237.05' WHERE source_name='4FGL J1136.2+3407' and cadence='daily' and bin_id='973'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/950083

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/950083/ft1_4FGL_J1136.2+3407_daily_bin973.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/950083/ft2_4FGL_J1136.2+3407_daily_bin973.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/950083/ft1_4FGL_J1136.2+3407_daily_bin973.fits outfile=/scratch/kocevski/950083/ft1_filteredMKT_4FGL_J1136.2+3407_daily_bin973.fits ra=174.075 dec=34.129 rad=12.0 tmin=491529601.0 tmax=491788801.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.47
user 3.26
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/950083/ft2_4FGL_J1136.2+3407_daily_bin973.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/950083/ft1_filteredMKT_4FGL_J1136.2+3407_daily_bin973.fits evtable="EVENTS" outfile="/scratch/kocevski/950083/ft1_filtered_4FGL_J1136.2+3407_daily_bin973.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.34
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/950083/ft1_filtered_4FGL_J1136.2+3407_daily_bin973.fits" evtable="EVENTS" scfile=/scratch/kocevski/950083/ft2_4FGL_J1136.2+3407_daily_bin973.fits sctable="SC_DATA" outfile=/scratch/kocevski/950083/ltcube_491529601_491788801_4FGL_J1136.2+3407_daily_bin973.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/950083/ft2_4FGL_J1136.2+3407_daily_bin973.fits
.....................!
real 11.70
user 11.33
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/950083/ft1_filtered_4FGL_J1136.2+3407_daily_bin973.fits evtable="EVENTS" scfile=/scratch/kocevski/950083/ft2_4FGL_J1136.2+3407_daily_bin973.fits sctable="SC_DATA" expcube=/scratch/kocevski/950083/ltcube_491529601_491788801_4FGL_J1136.2+3407_daily_bin973.fits outfile=/scratch/kocevski/950083/expmap_491529601_491788801_4FGL_J1136.2+3407_daily_bin973.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/950083/ltcube_491529601_491788801_4FGL_J1136.2+3407_daily_bin973.fits
.....................!
real 189.88
user 184.90
sys 4.25

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/950083/ft1_filtered_4FGL_J1136.2+3407_daily_bin973.fits scfile=/scratch/kocevski/950083/ft2_4FGL_J1136.2+3407_daily_bin973.fits outfile=/scratch/kocevski/950083/cmap_491529601_491788801_4FGL_J1136.2+3407_daily_bin973.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.53
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/950083/ft1_filtered_4FGL_J1136.2+3407_daily_bin973.fits scfile=/scratch/kocevski/950083/ft2_4FGL_J1136.2+3407_daily_bin973.fits outfile=/scratch/kocevski/950083/cmap_HighResolution_491529601_491788801_4FGL_J1136.2+3407_daily_bin973.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.55
user 0.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    32.490       1.0000         .10000E-03   10000.    
     3 'Prefactor '    1.1728       1.0000         .10000E-03   10000.    
     4 'norm      '    1.6156       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .14346E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    11.646       1.0000         .10000E-03   10000.    
    10 'Prefactor '    5.7423       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    25.742       1.0000         .10000E-03   10000.    
    17 'norm      '    .38020       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    1.0608       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10632E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    3.3263       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    8.6821       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .15993       1.0000         .10000E-03   10000.    
    29 'Normalizat'    .71721       1.0000         .10000E-01   10.000    
    30 'Prefactor '    1.3366       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=   5771.142     FROM MIGRAD    STATUS=CONVERGED    775 CALLS     4073 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    22.372       -.97107E-05** at limit **
   2  Prefactor     32.524        95.443        .52154E-04   -.32595E-06
   3  Prefactor     1.1502        38.265       -.53819E-05   -.33280E-03
   4  norm          1.6156        .38277       -.26708E-07   -.38511E-03
   5  Prefactor     .10000E-03    2.1007        .56979E-06** at limit **
   6  Prefactor     .10000E-03    9.3097        .17992E-05** at limit **
   7  Prefactor     .10000E-03    4.6214       -.57123E-07** at limit **
   8  norm          .10000E-03    7.7113        .45921E-06** at limit **
   9  norm          11.641        14.878        .15295E-05   -.56239E-04
  10  Prefactor     5.7422        2.9311        .19419E-07   -.35097E-03
  11  Prefactor     .10000E-03    19.434        .87094E-05** at limit **
  12  Prefactor     .10000E-03    11.045       -.25277E-05** at limit **
  13  norm          .10000E-03    .80593        .27893E-07** at limit **
  14  Prefactor     .10000E-03    5.9893        .73299E-07** at limit **
  15  Prefactor     .10000E-03    2.9843        .68680E-07** at limit **
  16  Prefactor     25.739        26.798       -.66005E-06    .11114E-04
  17  norm          .38128        .73381       -.14404E-06   -.14035E-02
  18  Prefactor     .10000E-03    7.6358       -.10518E-05** at limit **
  19  Prefactor     .10000E-03    .59889       -.12601E-08** at limit **
  20  norm          1.0560        9.4140       -.87437E-06   -.15659E-03
  21  Prefactor     .10000E-03    28.350       -.85342E-05** at limit **
  22  Prefactor     .10000E-03    113.21       -.31885E-05** at limit **
  23  norm          3.3264        1.4194        .45120E-07   -.10180E-03
  24  Prefactor     .10000E-03    31.465        .11577E-04** at limit **
  25  norm          8.6825        3.0856        .65117E-07    .15851E-03
  26  Prefactor     .10000E-03    1.7951        .19849E-07** at limit **
  27  Prefactor     .10000E-03    .74039        .38953E-07** at limit **
  28  Prefactor     .15753        1.1958       -.39453E-06   -.86539E-05
  29  Normalizat    .71704        .17530       -.11144E-05    .39831E-04
  30  Prefactor     1.3367        .20444       -.36396E-06    .68036E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 32.5235
  Prefactor  = 1.15021
  norm       = 1.61563
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 11.6406
  Prefactor  = 5.74218
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 25.7388
  norm       = 0.381276
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.05598
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.32636
  Prefactor  = 0.0001
  norm       = 8.68247
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.157529
  Normalizat = 0.717036
  Prefactor  = 1.33669
 **********
 **   18 **HESSE 
 **********

 FCN=   5771.142     FROM HESSE     STATUS=OK           584 CALLS     4657 TOTAL
                     EDM=   .20E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    22.379        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     32.524        94.007        .70298E-04   -1.4567    
   3  Prefactor     1.1502        35.766        .42339E-03   -1.5493    
   4  norm          1.6156        .38298        .21973E-04   -1.5454    
   5  Prefactor     .10000E-03    3.6761        .19941E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    9.3443        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    4.6227        .15949E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    7.7543        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          11.641        14.902        .11739E-03   -1.5025    
  10  Prefactor     5.7422        2.9281        .88017E-04   -1.5229    
  11  Prefactor     .10000E-03    19.405        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    11.120        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    .81266        .66513E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    6.0309        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    3.0154        .12803E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     25.739        26.553        .78955E-04   -1.4693    
  17  norm          .38128        .61601        .84096E-03   -1.5584    
  18  Prefactor     .10000E-03    7.6527        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    .60446        .57397E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          1.0560        29.347        .44182E-02   -1.5502    
  21  Prefactor     .10000E-03    28.503        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    114.05        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          3.3264        1.4163        .56537E-04   -1.5343    
  24  Prefactor     .10000E-03    31.572        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          8.6825        3.0894        .76779E-04   -1.5119    
  26  Prefactor     .10000E-03    1.7963        .99402E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    .75451        .63768E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .15753        5.2400        .15962E-02   -1.5629    
  29  Normalizat    .71704        .20615        .27907E-03   -1.0322    
  30  Prefactor     1.3367        .24399        .25306E-03   -.82223    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.98278e-08
Minuit parameter uncertainties:
  1  4.26085e-05
  2  94.4393
  3  12.8357
  4  0.382976
  5  0.000100151
  6  5.23468e-07
  7  1.27039e-06
  8  5.28767e-06
  9  14.9064
  10  2.92821
  11  3.0617e-06
  12  1.4157e-05
  13  8.3537e-07
  14  5.00306e-06
  15  6.20684e-06
  16  26.5648
  17  0.616022
  18  3.34946e-06
  19  5.91256e-07
  20  11.1393
  21  7.26623e-05
  22  0.000426221
  23  1.41632
  24  2.04296e-05
  25  3.08945
  26  9.04778e-07
  27  5.90765e-07
  28  1.81668
  29  0.206369
  30  0.244202
Done.

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

Extracting fit parameters...

4FGL J1136.2+3407
   Spectrum: PowerLaw
306    Prefactor:  1.000e-04  6.207e-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:  1.337e+00  2.442e-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:  7.170e-01  2.064e-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: 7.18e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.60e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/950083/likelihoodResults_491529601_491788801_4FGL_J1136.2+3407_daily_bin973.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) = 5771.1436446
delta logL = -0.00157653519545

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5771.14206815
delta logL = -7.92933860794e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10107E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5382       1.0000          .0000       10.000    
     3 'Normalizat'    .71707       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3367       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=   5771.142     FROM MIGRAD    STATUS=CONVERGED    114 CALLS      269 TOTAL
                     EDM=   .52E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    6.6959        .51659E-01** at limit **
   2  Index         1.7216        5.1084        .50000       -.41621E-06
   3  Normalizat    .71704        .65829E-02    .27907E-03    .23494E-03
   4  Prefactor     1.3367        .79379E-02    .25306E-03    .36026E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.72163
  Normalizat = 0.717036
  Prefactor  = 1.33669
 **********
 **   18 **HESSE 
 **********

 FCN=   5771.142     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      300 TOTAL
                     EDM=   .64E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1026.6        .25133E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.7216        7.5833        .50000       -.71508    
   3  Normalizat    .71704        .10947        .11163E-04   -1.0322    
   4  Prefactor     1.3367        .13232        .50612E-04   -.82223    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 6.36189e-08
Minuit parameter uncertainties:
  1  0.0014576
  2  968.375
  3  0.109506
  4  0.132352
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/950083': 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) = 5771.14206152
delta logL = 6.54197356198e-06

Extracting fit parameters...

4FGL J1136.2+3407
   Spectrum: PowerLaw
306    Prefactor:  1.000e-04  1.458e-03  1.000e-04  1.000e+04 ( 1.000e-12)
307        Index:  1.722e+00  9.684e+02  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:  1.337e+00  1.324e-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:  7.170e-01  1.095e-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/950083/cmap_HighResolution_491529601_491788801_4FGL_J1136.2+3407_daily_bin973.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.60e-03', job_status='DONE', photon_flux_upper_limit='7.18e-08', time_completed='2021-09-04 05:21:39.107299', job_id='950083', GAL2='1.34', fit_tolerance='1e-08', EG2='0.72', EG='0.72', time_epoch_completed='1630758099.11', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.34', dlogl='6.54e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.55' WHERE bin_id='973' AND source_name='4FGL J1136.2+3407' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 05:21:39 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0295>
Subject: Job 950083: <4FGL_J1136.2+3407_daily_bin973> in cluster <slac> Done

Job <4FGL_J1136.2+3407_daily_bin973> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sat Sep  4 05:06:58 2021
Job was executed on host(s) <bullet0295>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 05:06:59 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:06:59 2021
Terminated at Sat Sep  4 05:21:39 2021
Results reported at Sat Sep  4 05:21:39 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1136.2+3407_daily_bin973 174.075 34.129 491529601 491788801 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 :                                   858.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             302.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   880 sec.
    Turnaround time :                            881 sec.

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

