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


Performing analysis on: 4FGL_J1136.2+3407_daily_bin934
RA = 174.075, Dec = 34.129
tmin = 481420801, tmax = 481680001
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='950024', job_status='RUN', time_executed='2021-09-04 05:09:16.179533', time_epoch_executed='1630757356.18' WHERE source_name='4FGL J1136.2+3407' and cadence='daily' and bin_id='934'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/950024

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/950024/ft1_4FGL_J1136.2+3407_daily_bin934.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/950024/ft2_4FGL_J1136.2+3407_daily_bin934.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/950024/ft1_4FGL_J1136.2+3407_daily_bin934.fits outfile=/scratch/kocevski/950024/ft1_filteredMKT_4FGL_J1136.2+3407_daily_bin934.fits ra=174.075 dec=34.129 rad=12.0 tmin=481420801.0 tmax=481680001.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.69
user 3.47
sys 0.20

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/950024/ft1_filtered_4FGL_J1136.2+3407_daily_bin934.fits evtable="EVENTS" scfile=/scratch/kocevski/950024/ft2_4FGL_J1136.2+3407_daily_bin934.fits sctable="SC_DATA" expcube=/scratch/kocevski/950024/ltcube_481420801_481680001_4FGL_J1136.2+3407_daily_bin934.fits outfile=/scratch/kocevski/950024/expmap_481420801_481680001_4FGL_J1136.2+3407_daily_bin934.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/950024/ltcube_481420801_481680001_4FGL_J1136.2+3407_daily_bin934.fits
.....................!
real 189.84
user 185.58
sys 3.86

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/950024/ft1_filtered_4FGL_J1136.2+3407_daily_bin934.fits scfile=/scratch/kocevski/950024/ft2_4FGL_J1136.2+3407_daily_bin934.fits outfile=/scratch/kocevski/950024/cmap_481420801_481680001_4FGL_J1136.2+3407_daily_bin934.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.52
user 0.38
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/950024/ft1_filtered_4FGL_J1136.2+3407_daily_bin934.fits scfile=/scratch/kocevski/950024/ft2_4FGL_J1136.2+3407_daily_bin934.fits outfile=/scratch/kocevski/950024/cmap_HighResolution_481420801_481680001_4FGL_J1136.2+3407_daily_bin934.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.53
user 0.39
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .99401       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    39.345       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10907E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10597E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    1.2102       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .13297E-01   1.0000         .10000E-03   10000.    
    13 'norm      '    .89366       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    3.1571       1.0000         .10000E-03   10000.    
    18 'Prefactor '    10.668       1.0000         .10000E-03   10000.    
    19 'Prefactor '    1.9062       1.0000         .10000E-03   10000.    
    20 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .64056E-02   1.0000         .10000E-03   10000.    
    22 'Prefactor '    7.5423       1.0000         .10000E-03   10000.    
    23 'norm      '    2.8259       1.0000         .10000E-03   10000.    
    24 'Prefactor '    2.2613       1.0000         .10000E-03   10000.    
    25 'norm      '    14.870       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    1.9009       1.0000         .10000E-03   10000.    
    28 'Prefactor '    1.9631       1.0000         .10000E-03   10000.    
    29 'Normalizat'    1.3964       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .43740       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=   5991.162     FROM MIGRAD    STATUS=CONVERGED    791 CALLS     3377 TOTAL
                     EDM=   .77E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    9.4796       -.18913E-07** at limit **
   2  Prefactor     .10000E-03    64.815        .14151E-07** at limit **
   3  Prefactor     .10000E-03    3.3264       -.11440E-07** at limit **
   4  norm          .99402        .30587        .15639E-08    .36492E-04
   5  Prefactor     .10000E-03    .99011       -.20000E-07** at limit **
   6  Prefactor     39.340        19.495       -.22359E-06   -.47653E-04
   7  Prefactor     .10000E-03    22.822       -.19024E-06** at limit **
   8  norm          .10000E-03    11.107       -.17087E-06** at limit **
   9  norm          .10000E-03    6.0476       -.39283E-07** at limit **
  10  Prefactor     1.2100        1.3345       -.14573E-06    .10383E-03
  11  Prefactor     .10000E-03    11.514       -.10802E-06** at limit **
  12  Prefactor     .10000E-03    198.00       -.13723E-04** at limit **
  13  norm          .89268        1.3635        .11173E-05    .70213E-04
  14  Prefactor     .10000E-03    5.0311       -.60593E-07** at limit **
  15  Prefactor     .10000E-03    2.1797       -.14302E-06** at limit **
  16  Prefactor     .10000E-03    16.820       -.10965E-06** at limit **
  17  norm          3.1568        1.4178       -.10147E-06    .53129E-04
  18  Prefactor     10.666        17.829       -.12277E-07   -.74280E-05
  19  Prefactor     1.9058        1.8986       -.49515E-07   -.43393E-04
  20  norm          .10000E-03    2.5512        .10827E-07** at limit **
  21  Prefactor     .10000E-03    94.455       -.49403E-05** at limit **
  22  Prefactor     7.5377        121.78        .89150E-06    .54656E-05
  23  norm          2.8261        1.3874       -.78151E-07    .17772E-03
  24  Prefactor     2.2736        77.416       -.53038E-05    .21375E-04
  25  norm          14.869        4.8408        .11351E-06    .68290E-04
  26  Prefactor     .10000E-03    2.3435       -.16819E-07** at limit **
  27  Prefactor     1.9010        2.7386       -.21495E-06    .83978E-04
  28  Prefactor     1.9629        2.8327       -.25148E-06    .24738E-04
  29  Normalizat    1.3968        .18760       -.86000E-06   -.14317E-03
  30  Prefactor     .43702        .19806       -.26010E-06   -.65372E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  norm       = 0.994023
  Prefactor  = 0.0001
  Prefactor  = 39.3397
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 1.21001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.892678
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.15676
  Prefactor  = 10.6661
  Prefactor  = 1.90583
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.53768
  norm       = 2.82607
  Prefactor  = 2.27357
  norm       = 14.8694
  Prefactor  = 0.0001
  Prefactor  = 1.90096
  Prefactor  = 1.96288
  Normalizat = 1.39685
  Prefactor  = 0.437019
 **********
 **   18 **HESSE 
 **********

 FCN=   5991.162     FROM HESSE     STATUS=OK           596 CALLS     3973 TOTAL
                     EDM=   .13E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    9.4846        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    65.204        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    3.3300        .13787E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .99402        .30677        .22597E-04   -1.5509    
   5  Prefactor     .10000E-03    .99687        .75197E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     39.340        19.566        .63901E-04   -1.4453    
   7  Prefactor     .10000E-03    23.026        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    11.153        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    6.0726        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     1.2100        1.3345        .91024E-04   -1.5488    
  11  Prefactor     .10000E-03    11.533        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    18.923        .86053E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .89268        1.3653        .13305E-02   -1.5519    
  14  Prefactor     .10000E-03    5.0366        .16950E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    2.1940        .11151E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    16.831        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          3.1568        1.4299        .52719E-04   -1.5353    
  18  Prefactor     10.666        17.779        .12267E-03   -1.5055    
  19  Prefactor     1.9058        1.8787        .10047E-03   -1.5432    
  20  norm          .10000E-03    2.5514        .12074E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    94.658        .37680E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     7.5377        123.40        .14603E-03   -1.5159    
  23  norm          2.8261        1.3822        .60619E-04   -1.5372    
  24  Prefactor     2.2736        76.669        .27317E-03   -1.5406    
  25  norm          14.869        4.8417        .83888E-04   -1.4937    
  26  Prefactor     .10000E-03    2.3475        .11574E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     1.9010        2.7113        .13506E-03   -1.5432    
  28  Prefactor     1.9629        2.8055        .14617E-03   -1.5428    
  29  Normalizat    1.3968        .21334        .21639E-03   -.80720    
  30  Prefactor     .43702        .21963        .39710E-03   -1.1496    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.27264e-10
Minuit parameter uncertainties:
  1  1.65751e-05
  2  0.000660262
  3  5.11999e-06
  4  0.30677
  5  4.27224e-06
  6  19.569
  7  8.79639e-05
  8  4.01835e-06
  9  1.83946e-05
  10  1.33456
  11  6.48336e-05
  12  0.000115547
  13  1.36535
  14  1.07028e-05
  15  1.31459e-05
  16  3.71768e-05
  17  1.42989
  18  17.7877
  19  1.87871
  20  1.9152e-06
  21  2.07035e-05
  22  61.146
  23  1.38224
  24  26.4419
  25  4.84178
  26  1.15741e-05
  27  2.71146
  28  2.80572
  29  0.213478
  30  0.220056
Done.

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

Extracting fit parameters...

4FGL J1136.2+3407
   Spectrum: PowerLaw
306    Prefactor:  1.000e-04  1.315e-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.370e-01  2.201e-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.397e+00  2.135e-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: 6.35e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.95e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/950024/likelihoodResults_481420801_481680001_4FGL_J1136.2+3407_daily_bin934.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) = 5991.16371009
delta logL = -0.00214707254236

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5991.16156304
delta logL = -1.89165803022e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5474       1.0000          .0000       10.000    
     3 'Normalizat'    1.3969       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .43703       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=   5991.162     FROM MIGRAD    STATUS=CONVERGED    100 CALLS      255 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    311.04        .11168E-02** at limit **
   2  Index         2.2906        5.4077        .50000       -.10336E-06
   3  Normalizat    1.3968        .64785E-01    .21639E-03    .70065E-04
   4  Prefactor     .43702        .70130E-01    .39710E-03    .44862E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.29059
  Normalizat = 1.39685
  Prefactor  = 0.437019
 **********
 **   18 **HESSE 
 **********

 FCN=   5991.162     FROM HESSE     STATUS=OK            29 CALLS      284 TOTAL
                     EDM=   .18E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    3.0908        .22336E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.2906        8.0029        .50000       -.57267    
   3  Normalizat    1.3968        .20154        .43277E-04   -.80720    
   4  Prefactor     .43702        .21791        .15884E-04   -1.1496    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.81262e-11
Minuit parameter uncertainties:
  1  3.37458e-06
  2  126.587
  3  0.201659
  4  0.218328
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/950024': 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) = 5991.16156226
delta logL = 7.62263880461e-07

Extracting fit parameters...

4FGL J1136.2+3407
   Spectrum: PowerLaw
306    Prefactor:  1.000e-04  3.375e-06  1.000e-04  1.000e+04 ( 1.000e-12)
307        Index:  2.291e+00  1.266e+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:  4.370e-01  2.183e-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.397e+00  2.017e-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/950024/cmap_HighResolution_481420801_481680001_4FGL_J1136.2+3407_daily_bin934.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.95e-03', job_status='DONE', photon_flux_upper_limit='6.35e-08', time_completed='2021-09-04 05:23:06.833959', job_id='950024', GAL2='0.44', fit_tolerance='1e-08', EG2='1.40', EG='1.40', time_epoch_completed='1630758186.83', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.44', dlogl='7.62e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.55' WHERE bin_id='934' AND source_name='4FGL J1136.2+3407' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 05:23:06 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0187>
Subject: Job 950024: <4FGL_J1136.2+3407_daily_bin934> in cluster <slac> Done

Job <4FGL_J1136.2+3407_daily_bin934> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sat Sep  4 05:06:53 2021
Job was executed on host(s) <bullet0187>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 05:06:54 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:54 2021
Terminated at Sat Sep  4 05:23:07 2021
Results reported at Sat Sep  4 05:23:07 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1136.2+3407_daily_bin934 174.075 34.129 481420801 481680001 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 :                                   828.16 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             321.52 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   973 sec.
    Turnaround time :                            974 sec.

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

