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


Performing analysis on: 4FGL_J1136.2+3407_daily_bin301
RA = 174.075, Dec = 34.129
tmin = 317347201, tmax = 317606401
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='945749', job_status='RUN', time_executed='2021-09-04 04:53:03.627185', time_epoch_executed='1630756383.63' WHERE source_name='4FGL J1136.2+3407' and cadence='daily' and bin_id='301'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/945749

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/945749/ft1_4FGL_J1136.2+3407_daily_bin301.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/945749/ft2_4FGL_J1136.2+3407_daily_bin301.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/945749/ft1_4FGL_J1136.2+3407_daily_bin301.fits outfile=/scratch/kocevski/945749/ft1_filteredMKT_4FGL_J1136.2+3407_daily_bin301.fits ra=174.075 dec=34.129 rad=12.0 tmin=317347201.0 tmax=317606401.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.83
user 3.62
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/945749/ft1_filtered_4FGL_J1136.2+3407_daily_bin301.fits" evtable="EVENTS" scfile=/scratch/kocevski/945749/ft2_4FGL_J1136.2+3407_daily_bin301.fits sctable="SC_DATA" outfile=/scratch/kocevski/945749/ltcube_317347201_317606401_4FGL_J1136.2+3407_daily_bin301.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/945749/ft2_4FGL_J1136.2+3407_daily_bin301.fits
.....................!
real 11.86
user 11.53
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/945749/ft1_filtered_4FGL_J1136.2+3407_daily_bin301.fits evtable="EVENTS" scfile=/scratch/kocevski/945749/ft2_4FGL_J1136.2+3407_daily_bin301.fits sctable="SC_DATA" expcube=/scratch/kocevski/945749/ltcube_317347201_317606401_4FGL_J1136.2+3407_daily_bin301.fits outfile=/scratch/kocevski/945749/expmap_317347201_317606401_4FGL_J1136.2+3407_daily_bin301.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/945749/ltcube_317347201_317606401_4FGL_J1136.2+3407_daily_bin301.fits
.....................!
real 190.18
user 185.41
sys 4.38

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/945749/ft1_filtered_4FGL_J1136.2+3407_daily_bin301.fits scfile=/scratch/kocevski/945749/ft2_4FGL_J1136.2+3407_daily_bin301.fits outfile=/scratch/kocevski/945749/cmap_317347201_317606401_4FGL_J1136.2+3407_daily_bin301.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.40
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/945749/ft1_filtered_4FGL_J1136.2+3407_daily_bin301.fits scfile=/scratch/kocevski/945749/ft2_4FGL_J1136.2+3407_daily_bin301.fits outfile=/scratch/kocevski/945749/cmap_HighResolution_317347201_317606401_4FGL_J1136.2+3407_daily_bin301.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.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10043E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .14216E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    2.3172       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10038E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10081E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    13.132       1.0000         .10000E-03   10000.    
     9 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .96711E-01   1.0000         .10000E-03   10000.    
    11 'Prefactor '    59.108       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .81039       1.0000         .10000E-03   10000.    
    13 'norm      '    2.3803       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10126E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10451E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .17527E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10227E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    2.1094       1.0000         .10000E-03   10000.    
    19 'Prefactor '    1.2729       1.0000         .10000E-03   10000.    
    20 'norm      '    11.901       1.0000         .10000E-03   10000.    
    21 'Prefactor '    17.100       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .42045E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    2.7546       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10042E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    .41874       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    1.5361       1.0000         .10000E-03   10000.    
    28 'Prefactor '    9.6228       1.0000         .10000E-03   10000.    
    29 'Normalizat'    1.3321       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .67733       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=   6621.459     FROM MIGRAD    STATUS=CONVERGED    813 CALLS     3991 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    12.234       -.26465E-06** at limit **
   2  Prefactor     .10000E-03    27.755        .24847E-05** at limit **
   3  Prefactor     .10017E-03    7.6935        .47964E-05** at limit **
   4  norm          2.3173        .39580        .27853E-08    .96070E-04
   5  Prefactor     .10000E-03    1.3610        .10926E-06** at limit **
   6  Prefactor     .10000E-03    3.8899        .31066E-07** at limit **
   7  Prefactor     .10000E-03    5.1335        .39067E-07** at limit **
   8  norm          13.127        9.8406       -.13810E-06    .42770E-04
   9  norm          .10000E-03    3.2805        .42229E-07** at limit **
  10  Prefactor     .12483        1.5268        .43512E-06   -.59576E-03
  11  Prefactor     58.805        49.618        .95793E-06    .13825E-03
  12  Prefactor     .80922        9.3334       -.21108E-06   -.84260E-04
  13  norm          2.3786        2.8329        .14964E-06    .36634E-03
  14  Prefactor     .10000E-03    10.355       -.42912E-06** at limit **
  15  Prefactor     .10000E-03    4.5985       -.84162E-06** at limit **
  16  Prefactor     .10000E-03    82.894        .36272E-06** at limit **
  17  norm          .10000E-03    .57777        .63235E-08** at limit **
  18  Prefactor     2.1113        15.657        .10107E-04    .23288E-03
  19  Prefactor     1.2731        1.1353       -.86898E-07   -.34774E-04
  20  norm          11.913        10.962        .10288E-05    .28949E-03
  21  Prefactor     17.122        31.683        .42536E-05    .43855E-04
  22  Prefactor     .10000E-03    551.52       -.11034E-04** at limit **
  23  norm          2.7550        1.4846       -.20772E-06   -.19156E-03
  24  Prefactor     .10000E-03    18.272       -.61105E-06** at limit **
  25  norm          .41840        1.8952        .48787E-06    .75578E-04
  26  Prefactor     .10000E-03    2.4752       -.45264E-07** at limit **
  27  Prefactor     1.5362        1.5127       -.68446E-07   -.16927E-04
  28  Prefactor     9.6228        3.2096       -.41355E-07   -.40952E-05
  29  Normalizat    1.3317        .17777        .17163E-05    .50358E-03
  30  Prefactor     .67755        .19547       -.30223E-05    .11851E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100167
  norm       = 2.31726
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 13.1274
  norm       = 0.0001
  Prefactor  = 0.124826
  Prefactor  = 58.8052
  Prefactor  = 0.809217
  norm       = 2.37857
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 2.11134
  Prefactor  = 1.27306
  norm       = 11.9133
  Prefactor  = 17.1219
  Prefactor  = 0.000100001
  norm       = 2.755
  Prefactor  = 0.0001
  norm       = 0.418403
  Prefactor  = 0.0001
  Prefactor  = 1.53617
  Prefactor  = 9.62282
  Normalizat = 1.33173
  Prefactor  = 0.677548
 **********
 **   18 **HESSE 
 **********

 FCN=   6621.459     FROM HESSE     STATUS=OK           594 CALLS     4585 TOTAL
                     EDM=   .99E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    12.250        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    27.693        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10017E-03    26.807        .34063E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          2.3173        .39638        .20448E-04   -1.5404    
   5  Prefactor     .10000E-03    1.3842        .92557E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    3.8950        .15672E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    5.1427        .18005E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          13.127        9.8352        .11054E-03   -1.4983    
   9  norm          .10000E-03    3.2885        .14393E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .12483        17.374        .16272E-02   -1.5637    
  11  Prefactor     58.805        56.459        .52184E-04   -1.4173    
  12  Prefactor     .80922        59.300        .46957E-02   -1.5528    
  13  norm          2.3786        2.7695        .12930E-03   -1.5400    
  14  Prefactor     .10000E-03    10.406        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    4.7421        .34126E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    83.684        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    1.0901        .11722E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     2.1113        17.243        .14203E-02   -1.5417    
  19  Prefactor     1.2731        1.1532        .79438E-04   -1.5482    
  20  norm          11.913        10.960        .11612E-03   -1.5018    
  21  Prefactor     17.122        31.801        .96855E-04   -1.4880    
  22  Prefactor     .10000E-03    568.15        .42481E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          2.7550        1.4824        .68361E-04   -1.5376    
  24  Prefactor     .10000E-03    18.330        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          .41840        1.8402        .20598E-03   -1.5579    
  26  Prefactor     .10000E-03    2.4856        .12502E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     1.5362        1.5199        .92639E-04   -1.5460    
  28  Prefactor     9.6228        3.1960        .80205E-04   -1.5087    
  29  Normalizat    1.3317        .20877        .22272E-03   -.82624    
  30  Prefactor     .67755        .22680        .34540E-03   -1.0441    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.94532e-09
Minuit parameter uncertainties:
  1  1.31164e-05
  2  2.17865e-05
  3  0.0042384
  4  0.396377
  5  1.62293e-06
  6  2.01833e-06
  7  2.29899e-07
  8  9.83645
  9  1.65529e-06
  10  2.94505
  11  56.5105
  12  13.8679
  13  2.76966
  14  4.44025e-05
  15  0.000113423
  16  0.00013299
  17  1.35049e-05
  18  12.072
  19  1.15318
  20  10.9622
  21  31.832
  22  0.00141622
  23  1.48246
  24  0.000176886
  25  1.75481
  26  3.48013e-06
  27  1.51999
  28  3.19607
  29  0.208899
  30  0.227109
Done.

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

Extracting fit parameters...

4FGL J1136.2+3407
   Spectrum: PowerLaw
306    Prefactor:  1.000e-04  1.134e-04  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:  6.775e-01  2.271e-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.332e+00  2.089e-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.73e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.03e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/945749/likelihoodResults_317347201_317606401_4FGL_J1136.2+3407_daily_bin301.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) = 6621.45992866
delta logL = -0.00100618627948

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6621.45892453
delta logL = -2.05531068787e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11099E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5715       1.0000          .0000       10.000    
     3 'Normalizat'    1.3315       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .67788       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=   6621.450     FROM MIGRAD    STATUS=CONVERGED    164 CALLS      324 TOTAL
                     EDM=   .38E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .38491E-01    1.7929        .17139E-01    .13787E-02
   2  Index         4.8228        2.3774        .50000       -.49663E-04
   3  Normalizat    1.3234        .15422E-01    .22272E-03   -.89017E-03
   4  Prefactor     .68335        .17685E-01    .34540E-03   -.38948E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0384912
  Index      = 4.82285
  Normalizat = 1.32335
  Prefactor  = 0.683353
 **********
 **   18 **HESSE 
 **********

 FCN=   6621.450     FROM HESSE     STATUS=OK            31 CALLS      355 TOTAL
                     EDM=   .25E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .38491E-01    .99976        .59411E-03   -1.5747    
   2  Index         4.8228        7.1659        .11000E-01   -.35438E-01
   3  Normalizat    1.3234        .20440        .44543E-04   -.82872    
   4  Prefactor     .68335        .22766        .13816E-04   -1.0418    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.45677e-09
Minuit parameter uncertainties:
  1  0.391834
  2  5.4389
  3  0.204524
  4  0.227973
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/945749': 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) = 6621.4504559
delta logL = 0.00846657585589

Extracting fit parameters...

4FGL J1136.2+3407
   Spectrum: PowerLaw
306    Prefactor:  3.849e-02  3.918e-01  1.000e-04  1.000e+04 ( 1.000e-12)
307        Index:  4.823e+00  5.439e+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:  6.834e-01  2.280e-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.323e+00  2.045e-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 -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/945749/cmap_HighResolution_317347201_317606401_4FGL_J1136.2+3407_daily_bin301.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.03e-03', job_status='DONE', photon_flux_upper_limit='7.73e-08', time_completed='2021-09-04 05:09:11.759353', job_id='945749', GAL2='0.68', fit_tolerance='1e-08', EG2='1.32', EG='1.33', time_epoch_completed='1630757351.76', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.68', dlogl='8.47e-03', ts2='0.02', photon_index_error='0.00', photon_index='2.55' WHERE bin_id='301' AND source_name='4FGL J1136.2+3407' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 05:09:11 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0148>
Subject: Job 945749: <4FGL_J1136.2+3407_daily_bin301> in cluster <slac> Done

Job <4FGL_J1136.2+3407_daily_bin301> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Sat Sep  4 04:52:46 2021
Job was executed on host(s) <bullet0148>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 04:52:48 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Sep  4 04:52:48 2021
Terminated at Sat Sep  4 05:09:14 2021
Results reported at Sat Sep  4 05:09:14 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1136.2+3407_daily_bin301 174.075 34.129 317347201 317606401 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 :                                   959.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             352.41 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   984 sec.
    Turnaround time :                            988 sec.

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

