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


Performing analysis on: 4FGL_J1136.2+3407_daily_bin688
RA = 174.075, Dec = 34.129
tmin = 417657601, tmax = 417916801
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='948135', job_status='RUN', time_executed='2021-09-04 05:04:53.739917', time_epoch_executed='1630757093.74' WHERE source_name='4FGL J1136.2+3407' and cadence='daily' and bin_id='688'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/948135

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/948135/ft1_4FGL_J1136.2+3407_daily_bin688.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/948135/ft2_4FGL_J1136.2+3407_daily_bin688.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/948135/ft1_4FGL_J1136.2+3407_daily_bin688.fits outfile=/scratch/kocevski/948135/ft1_filteredMKT_4FGL_J1136.2+3407_daily_bin688.fits ra=174.075 dec=34.129 rad=12.0 tmin=417657601.0 tmax=417916801.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 6.01
user 5.74
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/948135/ft1_filtered_4FGL_J1136.2+3407_daily_bin688.fits" evtable="EVENTS" scfile=/scratch/kocevski/948135/ft2_4FGL_J1136.2+3407_daily_bin688.fits sctable="SC_DATA" outfile=/scratch/kocevski/948135/ltcube_417657601_417916801_4FGL_J1136.2+3407_daily_bin688.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/948135/ft2_4FGL_J1136.2+3407_daily_bin688.fits
.....................!
real 12.20
user 11.78
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/948135/ft1_filtered_4FGL_J1136.2+3407_daily_bin688.fits evtable="EVENTS" scfile=/scratch/kocevski/948135/ft2_4FGL_J1136.2+3407_daily_bin688.fits sctable="SC_DATA" expcube=/scratch/kocevski/948135/ltcube_417657601_417916801_4FGL_J1136.2+3407_daily_bin688.fits outfile=/scratch/kocevski/948135/expmap_417657601_417916801_4FGL_J1136.2+3407_daily_bin688.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/948135/ltcube_417657601_417916801_4FGL_J1136.2+3407_daily_bin688.fits
.....................!
real 191.02
user 185.66
sys 4.99

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/948135/ft1_filtered_4FGL_J1136.2+3407_daily_bin688.fits scfile=/scratch/kocevski/948135/ft2_4FGL_J1136.2+3407_daily_bin688.fits outfile=/scratch/kocevski/948135/cmap_417657601_417916801_4FGL_J1136.2+3407_daily_bin688.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.92
user 0.38
sys 0.18

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/948135/ft1_filtered_4FGL_J1136.2+3407_daily_bin688.fits scfile=/scratch/kocevski/948135/ft2_4FGL_J1136.2+3407_daily_bin688.fits outfile=/scratch/kocevski/948135/cmap_HighResolution_417657601_417916801_4FGL_J1136.2+3407_daily_bin688.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.98
user 0.39
sys 0.18

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    57.376       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .27030E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10201E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    1.9632       1.0000         .10000E-03   10000.    
     5 'Prefactor '    1.8686       1.0000         .10000E-03   10000.    
     6 'Prefactor '    16.003       1.0000         .10000E-03   10000.    
     7 'Prefactor '    4.4302       1.0000         .10000E-03   10000.    
     8 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    7.5876       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10221E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    28.642       1.0000         .10000E-03   10000.    
    13 'norm      '    3.0435       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10046E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    5.9408       1.0000         .10000E-03   10000.    
    18 'Prefactor '    22.848       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .17199E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    6.5314       1.0000         .10000E-03   10000.    
    21 'Prefactor '    16.833       1.0000         .10000E-03   10000.    
    22 'Prefactor '    52.482       1.0000         .10000E-03   10000.    
    23 'norm      '    3.6439       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .11013E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    10.111       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10518E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    29 'Normalizat'    1.1287       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .42513       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=   3811.433     FROM MIGRAD    STATUS=CONVERGED    772 CALLS     3948 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     57.369        39.419       -.19723E-06   -.11141E-03
   2  Prefactor     .10010E-03    828.96       -.78150E-05** at limit **
   3  Prefactor     .10000E-03    25.134       -.15314E-05** at limit **
   4  norm          1.9631        .52915       -.21999E-07   -.12467E-02
   5  Prefactor     1.8679        4.0268        .88779E-06    .39782E-03
   6  Prefactor     16.000        24.613       -.11962E-06   -.31588E-04
   7  Prefactor     4.4415        26.520        .12242E-05    .41526E-04
   8  norm          .10000E-03    5.6147       -.41500E-07** at limit **
   9  norm          .10000E-03    9.8273       -.13338E-06** at limit **
  10  Prefactor     7.5871        4.1816        .37757E-06    .72899E-03
  11  Prefactor     .10000E-03    49.686        .10530E-05** at limit **
  12  Prefactor     28.644        23.741        .46108E-06    .60042E-04
  13  norm          3.0433        3.0709        .11301E-06    .18630E-03
  14  Prefactor     .10000E-03    14.292        .47258E-06** at limit **
  15  Prefactor     .10000E-03    3.1521       -.12389E-06** at limit **
  16  Prefactor     .10000E-03    71.164       -.84023E-06** at limit **
  17  norm          5.9422        2.2819       -.59819E-07   -.88073E-03
  18  Prefactor     22.839        27.177        .48289E-07    .25071E-04
  19  Prefactor     .10001E-03    2.5375       -.16113E-05** at limit **
  20  norm          6.5302        21.690        .77594E-06   -.25590E-04
  21  Prefactor     16.823        35.708        .10852E-06   -.63262E-04
  22  Prefactor     52.469        91.709       -.75249E-06   -.67804E-04
  23  norm          3.6440        1.8408        .40202E-07   -.31620E-03
  24  Prefactor     .10000E-03    25.822       -.41976E-06** at limit **
  25  norm          10.118        5.3390        .11123E-06   -.14745E-02
  26  Prefactor     .10000E-03    3.0024        .53444E-07** at limit **
  27  Prefactor     .10001E-03    5.8564        .36727E-05** at limit **
  28  Prefactor     .10000E-03    2.7058        .29772E-06** at limit **
  29  Normalizat    1.1287        .24912        .11850E-05   -.46929E-03
  30  Prefactor     .42503        .24550       -.54912E-05   -.39564E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 57.3691
  Prefactor  = 0.000100099
  Prefactor  = 0.000100002
  norm       = 1.96312
  Prefactor  = 1.86787
  Prefactor  = 15.9999
  Prefactor  = 4.44153
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 7.58706
  Prefactor  = 0.000100003
  Prefactor  = 28.6438
  norm       = 3.04333
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  norm       = 5.94217
  Prefactor  = 22.8389
  Prefactor  = 0.000100007
  norm       = 6.53021
  Prefactor  = 16.8232
  Prefactor  = 52.469
  norm       = 3.64401
  Prefactor  = 0.0001
  norm       = 10.1184
  Prefactor  = 0.0001
  Prefactor  = 0.000100005
  Prefactor  = 0.0001
  Normalizat = 1.12874
  Prefactor  = 0.425034
 **********
 **   18 **HESSE 
 **********

 FCN=   3811.433     FROM HESSE     STATUS=OK           584 CALLS     4532 TOTAL
                     EDM=   .38E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     57.369        39.488        .52962E-04   -1.4192    
   2  Prefactor     .10010E-03    849.46        .21433E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    25.678        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          1.9631        .53304        .21034E-04   -1.5428    
   5  Prefactor     1.8679        4.1138        .17168E-03   -1.5435    
   6  Prefactor     16.000        24.581        .10012E-03   -1.4908    
   7  Prefactor     4.4415        26.406        .19132E-03   -1.5286    
   8  norm          .10000E-03    5.6168        .14287E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    9.8953        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     7.5871        4.2250        .87660E-04   -1.5157    
  11  Prefactor     .10000E-03    50.028        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     28.644        23.784        .74860E-04   -1.4637    
  13  norm          3.0433        3.0628        .10195E-03   -1.5359    
  14  Prefactor     .10000E-03    14.439        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    3.1635        .10701E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    71.569        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          5.9422        2.2942        .49525E-04   -1.5220    
  18  Prefactor     22.839        26.832        .83799E-04   -1.4752    
  19  Prefactor     .10001E-03    6.6546        .15184E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          6.5302        21.615        .15703E-03   -1.5197    
  21  Prefactor     16.823        35.806        .97620E-04   -1.4887    
  22  Prefactor     52.469        91.961        .55363E-04   -1.4258    
  23  norm          3.6440        1.8380        .56109E-04   -1.5326    
  24  Prefactor     .10000E-03    25.881        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          10.118        4.7771        .89075E-04   -1.5072    
  26  Prefactor     .10000E-03    3.0053        .10448E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10001E-03    7.7196        .18644E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    2.7700        .19815E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    1.1287        .27497        .23139E-03   -.88834    
  30  Prefactor     .42503        .26919        .39048E-03   -1.1555    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.81851e-09
Minuit parameter uncertainties:
  1  39.5063
  2  0.018606
  3  0.000469547
  4  0.533037
  5  4.11447
  6  24.5967
  7  21.6735
  8  3.09132e-06
  9  4.20755e-05
  10  4.22512
  11  0.000755845
  12  23.7914
  13  3.06294
  14  0.000139322
  15  1.24535e-05
  16  0.000787647
  17  2.29425
  18  26.8465
  19  0.000430166
  20  21.6404
  21  35.8522
  22  92.2114
  23  1.83801
  24  0.00016381
  25  4.77725
  26  4.36966e-06
  27  0.000409787
  28  1.50198e-05
  29  0.275322
  30  0.269993
Done.

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

Extracting fit parameters...

4FGL J1136.2+3407
   Spectrum: PowerLaw
306    Prefactor:  1.000e-04  1.245e-05  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:  4.250e-01  2.700e-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.129e+00  2.753e-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.53e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.44e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/948135/likelihoodResults_417657601_417916801_4FGL_J1136.2+3407_daily_bin688.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) = 3811.43492811
delta logL = -0.00147980699285

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 3811.43344832
delta logL = -1.78638401849e-08

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 'Index     '    2.5540       1.0000          .0000       10.000    
     3 'Normalizat'    1.1288       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .42503       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=   3811.433     FROM MIGRAD    STATUS=CONVERGED     86 CALLS      237 TOTAL
                     EDM=   .34E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10001E-03    145.81        .10701E-02** at limit **
   2  Index         2.5622        6.1991        .50000       -.19555E-05
   3  Normalizat    1.1287        .38725E-01    .23138E-03   -.17246E-04
   4  Prefactor     .42504        .41707E-01    .39048E-03   -.88654E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.00010001
  Index      = 2.56219
  Normalizat = 1.12873
  Prefactor  = 0.425039
 **********
 **   18 **HESSE 
 **********

 FCN=   3811.433     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      266 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10001E-03    531.78        .21402E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.5622        5.0768        .50000       -.50929    
   3  Normalizat    1.1287        .97645E-01    .92553E-05   -.88835    
   4  Prefactor     .42504        .10510        .15619E-04   -1.1555    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.71348e-09
Minuit parameter uncertainties:
  1  0.00471006
  2  1645.58
  3  0.0976607
  4  0.105148
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/948135': 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) = 3811.43344829
delta logL = 3.36922312272e-09

Extracting fit parameters...

4FGL J1136.2+3407
   Spectrum: PowerLaw
306    Prefactor:  1.000e-04  4.710e-03  1.000e-04  1.000e+04 ( 1.000e-12)
307        Index:  2.562e+00  1.646e+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:  4.250e-01  1.051e-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.129e+00  9.766e-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/948135/cmap_HighResolution_417657601_417916801_4FGL_J1136.2+3407_daily_bin688.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.44e-03', job_status='DONE', photon_flux_upper_limit='9.53e-08', time_completed='2021-09-04 05:16:27.420746', job_id='948135', GAL2='0.43', fit_tolerance='1e-08', EG2='1.13', EG='1.13', time_epoch_completed='1630757787.42', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.43', dlogl='3.37e-09', ts2='-0.00', photon_index_error='0.00', photon_index='2.55' WHERE bin_id='688' AND source_name='4FGL J1136.2+3407' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 05:16:27 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0244>
Subject: Job 948135: <4FGL_J1136.2+3407_daily_bin688> in cluster <slac> Done

Job <4FGL_J1136.2+3407_daily_bin688> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Sat Sep  4 05:01:21 2021
Job was executed on host(s) <bullet0244>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 05:01:23 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:23 2021
Terminated at Sat Sep  4 05:16:28 2021
Results reported at Sat Sep  4 05:16:28 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1136.2+3407_daily_bin688 174.075 34.129 417657601 417916801 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 :                                   690.08 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             261.13 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   904 sec.
    Turnaround time :                            907 sec.

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

