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


Performing analysis on: 4FGL_J1136.2+3407_daily_bin969
RA = 174.075, Dec = 34.129
tmin = 490492801, tmax = 490752001
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='950078', job_status='RUN', time_executed='2021-09-04 05:07:17.526702', time_epoch_executed='1630757237.53' WHERE source_name='4FGL J1136.2+3407' and cadence='daily' and bin_id='969'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/950078

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/950078/ft1_4FGL_J1136.2+3407_daily_bin969.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/950078/ft2_4FGL_J1136.2+3407_daily_bin969.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/950078/ft1_4FGL_J1136.2+3407_daily_bin969.fits outfile=/scratch/kocevski/950078/ft1_filteredMKT_4FGL_J1136.2+3407_daily_bin969.fits ra=174.075 dec=34.129 rad=12.0 tmin=490492801.0 tmax=490752001.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.55
sys 0.23

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/950078/ft1_filtered_4FGL_J1136.2+3407_daily_bin969.fits" evtable="EVENTS" scfile=/scratch/kocevski/950078/ft2_4FGL_J1136.2+3407_daily_bin969.fits sctable="SC_DATA" outfile=/scratch/kocevski/950078/ltcube_490492801_490752001_4FGL_J1136.2+3407_daily_bin969.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/950078/ft2_4FGL_J1136.2+3407_daily_bin969.fits
.....................!
real 11.97
user 11.55
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/950078/ft1_filtered_4FGL_J1136.2+3407_daily_bin969.fits evtable="EVENTS" scfile=/scratch/kocevski/950078/ft2_4FGL_J1136.2+3407_daily_bin969.fits sctable="SC_DATA" expcube=/scratch/kocevski/950078/ltcube_490492801_490752001_4FGL_J1136.2+3407_daily_bin969.fits outfile=/scratch/kocevski/950078/expmap_490492801_490752001_4FGL_J1136.2+3407_daily_bin969.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/950078/ltcube_490492801_490752001_4FGL_J1136.2+3407_daily_bin969.fits
.....................!
real 191.29
user 185.61
sys 4.17

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/950078/ft1_filtered_4FGL_J1136.2+3407_daily_bin969.fits scfile=/scratch/kocevski/950078/ft2_4FGL_J1136.2+3407_daily_bin969.fits outfile=/scratch/kocevski/950078/cmap_490492801_490752001_4FGL_J1136.2+3407_daily_bin969.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.54
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/950078/ft1_filtered_4FGL_J1136.2+3407_daily_bin969.fits scfile=/scratch/kocevski/950078/ft2_4FGL_J1136.2+3407_daily_bin969.fits outfile=/scratch/kocevski/950078/cmap_HighResolution_490492801_490752001_4FGL_J1136.2+3407_daily_bin969.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.58
user 0.38
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 'Prefactor '    119.54       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    1.0401       1.0000         .10000E-03   10000.    
     5 'Prefactor '    1.9278       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    24.178       1.0000         .10000E-03   10000.    
     8 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    2.0895       1.0000         .10000E-03   10000.    
    13 'norm      '    1.0155       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .12432E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    52.087       1.0000         .10000E-03   10000.    
    17 'norm      '    .10737E-03   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      '    .10019E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10158E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    4.0067       1.0000         .10000E-03   10000.    
    24 'Prefactor '    81.656       1.0000         .10000E-03   10000.    
    25 'norm      '    7.4328       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    1.7496       1.0000         .10000E-03   10000.    
    29 'Normalizat'    1.1501       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .99482       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=   5272.109     FROM MIGRAD    STATUS=CONVERGED    744 CALLS     3953 TOTAL
                     EDM=   .31E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    17.088        .27942E-06** at limit **
   2  Prefactor     119.56        181.13       -.74768E-06    .34193E-04
   3  Prefactor     .10000E-03    9.2151        .10906E-06** at limit **
   4  norm          1.0401        .33701       -.12746E-08    .60072E-04
   5  Prefactor     1.9282        2.3265        .79586E-07    .24776E-04
   6  Prefactor     .10000E-03    8.8228       -.76282E-08** at limit **
   7  Prefactor     24.178        16.893       -.74707E-07    .26031E-04
   8  norm          .10000E-03    5.2503        .17296E-07** at limit **
   9  norm          .10000E-03    3.9033        .12486E-07** at limit **
  10  Prefactor     .10000E-03    1.2572       -.12512E-06** at limit **
  11  Prefactor     .10000E-03    14.751        .20195E-06** at limit **
  12  Prefactor     2.0750        56.248        .21088E-05    .11837E-04
  13  norm          1.0185        1.7401        .13046E-05    .80416E-03
  14  Prefactor     .10000E-03    25.636       -.52971E-06** at limit **
  15  Prefactor     .10000E-03    3.9375        .11718E-06** at limit **
  16  Prefactor     51.994        56.182       -.13215E-05    .11109E-03
  17  norm          .10000E-03    .74914       -.15532E-05** at limit **
  18  Prefactor     .10000E-03    7.2049        .11806E-06** at limit **
  19  Prefactor     .10000E-03    .53769        .47210E-07** at limit **
  20  norm          .10000E-03    6.5048        .76016E-07** at limit **
  21  Prefactor     .10000E-03    20.262       -.21141E-06** at limit **
  22  Prefactor     .10000E-03    29.920        .18813E-06** at limit **
  23  norm          4.0067        1.7141        .31270E-07   -.54592E-05
  24  Prefactor     81.652        54.288        .18140E-07    .45027E-04
  25  norm          7.4331        4.1389        .48845E-07    .49614E-05
  26  Prefactor     .10000E-03    5.2437        .79723E-07** at limit **
  27  Prefactor     .10000E-03    1.2664        .30805E-07** at limit **
  28  Prefactor     1.7497        2.8913        .98277E-07    .95471E-04
  29  Normalizat    1.1500        .20541        .59617E-06    .50662E-03
  30  Prefactor     .99485        .22533       -.26831E-05    .36596E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 119.565
  Prefactor  = 0.0001
  norm       = 1.04013
  Prefactor  = 1.92819
  Prefactor  = 0.0001
  Prefactor  = 24.1785
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.07502
  norm       = 1.01854
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 51.9944
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 4.0067
  Prefactor  = 81.6516
  norm       = 7.43309
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.74969
  Normalizat = 1.14996
  Prefactor  = 0.994847
 **********
 **   18 **HESSE 
 **********

 FCN=   5272.109     FROM HESSE     STATUS=OK           580 CALLS     4533 TOTAL
                     EDM=   .60E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    17.113        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     119.56        181.41        .18403E-03   -1.3517    
   3  Prefactor     .10000E-03    9.2732        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          1.0401        .33810        .22695E-04   -1.5504    
   5  Prefactor     1.9282        2.3144        .11741E-03   -1.5430    
   6  Prefactor     .10000E-03    8.8561        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     24.178        16.922        .81465E-04   -1.4724    
   8  norm          .10000E-03    5.2592        .16248E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    3.9092        .14008E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    1.2863        .79457E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    14.736        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     2.0750        55.720        .28560E-03   -1.5420    
  13  norm          1.0185        1.7208        .14065E-02   -1.5506    
  14  Prefactor     .10000E-03    26.027        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    3.9951        .14060E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     51.994        56.194        .27786E-03   -1.4265    
  17  norm          .10000E-03    .76343        .97634E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    7.2136        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    .53950        .51995E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    6.5163        .18080E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    20.287        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    29.934        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          4.0067        1.7125        .59216E-04   -1.5308    
  24  Prefactor     81.652        54.469        .44448E-04   -1.3898    
  25  norm          7.4331        4.1174        .10230E-03   -1.5163    
  26  Prefactor     .10000E-03    5.2685        .16235E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    1.2732        .79645E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     1.7497        2.8555        .14791E-03   -1.5443    
  29  Normalizat    1.1500        .24198        .24946E-03   -.88163    
  30  Prefactor     .99485        .26251        .30338E-03   -.92901    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.04152e-10
Minuit parameter uncertainties:
  1  8.04063e-06
  2  182.26
  3  5.35208e-05
  4  0.338101
  5  2.31453
  6  4.80982e-05
  7  16.9256
  8  1.4534e-05
  9  1.6479e-05
  10  2.57966e-06
  11  0.000125352
  12  21.5271
  13  1.7209
  14  4.37537e-05
  15  7.85718e-06
  16  56.2509
  17  3.97413e-06
  18  4.8284e-06
  19  1.62123e-06
  20  3.15813e-05
  21  0.000135966
  22  0.000115737
  23  1.7125
  24  54.5027
  25  4.11759
  26  2.14808e-05
  27  1.90688e-06
  28  2.85571
  29  0.242213
  30  0.262843
Done.

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

Extracting fit parameters...

4FGL J1136.2+3407
   Spectrum: PowerLaw
306    Prefactor:  1.000e-04  7.857e-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.948e-01  2.628e-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:  1.150e+00  2.422e-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: 8.28e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.46e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/950078/likelihoodResults_490492801_490752001_4FGL_J1136.2+3407_daily_bin969.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) = 5272.1098422
delta logL = -0.0011919466433

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5272.10865021
delta logL = 4.92664185003e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10210E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5268       1.0000          .0000       10.000    
     3 'Normalizat'    1.1500       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .99485       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=   5272.109     FROM MIGRAD    STATUS=CONVERGED    103 CALLS      259 TOTAL
                     EDM=   .25E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    17.319        .14464E-01** at limit **
   2  Index         2.1110        6.2461        .50000        .72750E-06
   3  Normalizat    1.1500        .91611E-02    .24945E-03    .44202E-03
   4  Prefactor     .99485        .10493E-01    .30338E-03    .41383E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.11102
  Normalizat = 1.14996
  Prefactor  = 0.994849
 **********
 **   18 **HESSE 
 **********

 FCN=   5272.109     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      288 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    776.62        .32255E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1110        8.7632        .50000       -.61603    
   3  Normalizat    1.1500        .78097E-01    .49890E-04   -.88163    
   4  Prefactor     .99485        .89441E-01    .60677E-04   -.92901    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.0702e-08
Minuit parameter uncertainties:
  1  0.000988901
  2  1092.08
  3  0.0781048
  4  0.0894547
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/950078': 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) = 5272.10864708
delta logL = 3.17731428368e-06

Extracting fit parameters...

4FGL J1136.2+3407
   Spectrum: PowerLaw
306    Prefactor:  1.000e-04  9.889e-04  1.000e-04  1.000e+04 ( 1.000e-12)
307        Index:  2.111e+00  1.092e+03  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.948e-01  8.945e-02  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:  1.150e+00  7.810e-02  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/950078/cmap_HighResolution_490492801_490752001_4FGL_J1136.2+3407_daily_bin969.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.46e-03', job_status='DONE', photon_flux_upper_limit='8.28e-08', time_completed='2021-09-04 05:20:57.090615', job_id='950078', GAL2='0.99', fit_tolerance='1e-08', EG2='1.15', EG='1.15', time_epoch_completed='1630758057.09', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.99', dlogl='3.18e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.55' WHERE bin_id='969' AND source_name='4FGL J1136.2+3407' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 05:20:57 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0106>
Subject: Job 950078: <4FGL_J1136.2+3407_daily_bin969> in cluster <slac> Done

Job <4FGL_J1136.2+3407_daily_bin969> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sat Sep  4 05:06:57 2021
Job was executed on host(s) <bullet0106>, 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:20:57 2021
Results reported at Sat Sep  4 05:20:57 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1136.2+3407_daily_bin969 174.075 34.129 490492801 490752001 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 :                                   812.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             312.30 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   838 sec.
    Turnaround time :                            840 sec.

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

