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


Performing analysis on: 4FGL_J1136.2+3407_daily_bin758
RA = 174.075, Dec = 34.129
tmin = 435801601, tmax = 436060801
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='948238', job_status='RUN', time_executed='2021-09-04 05:03:38.718566', time_epoch_executed='1630757018.72' WHERE source_name='4FGL J1136.2+3407' and cadence='daily' and bin_id='758'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/948238

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/948238/ft1_4FGL_J1136.2+3407_daily_bin758.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/948238/ft2_4FGL_J1136.2+3407_daily_bin758.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/948238/ft1_4FGL_J1136.2+3407_daily_bin758.fits outfile=/scratch/kocevski/948238/ft1_filteredMKT_4FGL_J1136.2+3407_daily_bin758.fits ra=174.075 dec=34.129 rad=12.0 tmin=435801601.0 tmax=436060801.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.57
user 5.31
sys 0.23

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/948238/ft1_filtered_4FGL_J1136.2+3407_daily_bin758.fits evtable="EVENTS" scfile=/scratch/kocevski/948238/ft2_4FGL_J1136.2+3407_daily_bin758.fits sctable="SC_DATA" expcube=/scratch/kocevski/948238/ltcube_435801601_436060801_4FGL_J1136.2+3407_daily_bin758.fits outfile=/scratch/kocevski/948238/expmap_435801601_436060801_4FGL_J1136.2+3407_daily_bin758.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/948238/ltcube_435801601_436060801_4FGL_J1136.2+3407_daily_bin758.fits
.....................!
real 192.42
user 187.03
sys 5.06

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/948238/ft1_filtered_4FGL_J1136.2+3407_daily_bin758.fits scfile=/scratch/kocevski/948238/ft2_4FGL_J1136.2+3407_daily_bin758.fits outfile=/scratch/kocevski/948238/cmap_435801601_436060801_4FGL_J1136.2+3407_daily_bin758.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.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/948238/ft1_filtered_4FGL_J1136.2+3407_daily_bin758.fits scfile=/scratch/kocevski/948238/ft2_4FGL_J1136.2+3407_daily_bin758.fits outfile=/scratch/kocevski/948238/cmap_HighResolution_435801601_436060801_4FGL_J1136.2+3407_daily_bin758.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.39
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    35.568       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .19909E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .11581E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    2.1145       1.0000         .10000E-03   10000.    
     5 'Prefactor '    2.2000       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .17627E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    39.763       1.0000         .10000E-03   10000.    
     8 'norm      '    .12499E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    23.609       1.0000         .10000E-03   10000.    
    10 'Prefactor '    11.875       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .13777E-02   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10282E-02   1.0000         .10000E-03   10000.    
    13 'norm      '    4.7984       1.0000         .10000E-03   10000.    
    14 'Prefactor '    21.746       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10121E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .68979E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    17.665       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .55935E-02   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .96546       1.0000         .10000E-03   10000.    
    20 'norm      '    .26711E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    54.500       1.0000         .10000E-03   10000.    
    22 'Prefactor '    41.239       1.0000         .10000E-03   10000.    
    23 'norm      '    .73940       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .68428E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    3.0566       1.0000         .10000E-03   10000.    
    26 'Prefactor '    4.3811       1.0000         .10000E-03   10000.    
    27 'Prefactor '    5.0193       1.0000         .10000E-03   10000.    
    28 'Prefactor '    1.7275       1.0000         .10000E-03   10000.    
    29 'Normalizat'    .96777       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .85682       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=   5702.861     FROM MIGRAD    STATUS=CONVERGED    813 CALLS     3438 TOTAL
                     EDM=   .35E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     36.267        34.400       -.68473E-06   -.12809E-03
   2  Prefactor     .10000E-03    47.298       -.13805E-05** at limit **
   3  Prefactor     .10000E-03    5.9818        .51764E-09** at limit **
   4  norm          2.1142        .49883       -.63228E-07    .94556E-03
   5  Prefactor     2.2021        3.0784        .24371E-06   -.42733E-04
   6  Prefactor     .10000E-03    22.626        .63706E-06** at limit **
   7  Prefactor     39.896        26.238        .18887E-05    .41729E-03
   8  norm          .10000E-03    12.591        .31771E-06** at limit **
   9  norm          23.739        15.892       -.67238E-06   -.34977E-03
  10  Prefactor     11.913        4.6547       -.18426E-07    .40163E-04
  11  Prefactor     .10000E-03    30.146       -.32154E-07** at limit **
  12  Prefactor     .10000E-03    60.018       -.15840E-05** at limit **
  13  norm          4.7764        4.2189        .13112E-06    .16716E-04
  14  Prefactor     21.855        21.257       -.36636E-06   -.83721E-04
  15  Prefactor     .10000E-03    3.1728        .41924E-07** at limit **
  16  Prefactor     .10000E-03    60.172       -.77973E-06** at limit **
  17  norm          17.672        2.7234       -.20192E-07   -.68638E-04
  18  Prefactor     .10000E-03    44.540        .46567E-06** at limit **
  19  Prefactor     .97227        2.5697        .74317E-06   -.13434E-03
  20  norm          .10000E-03    6.2034        .53570E-08** at limit **
  21  Prefactor     55.047        42.352        .72902E-06    .11270E-03
  22  Prefactor     41.267        42.622        .36408E-06    .34200E-04
  23  norm          .73912        1.1282        .14207E-06    .12073E-03
  24  Prefactor     .10000E-03    30.985       -.21435E-06** at limit **
  25  norm          3.0625        2.8114       -.35621E-07   -.86579E-04
  26  Prefactor     4.3981        5.8179        .24338E-05   -.49878E-03
  27  Prefactor     5.0144        3.1087       -.33120E-07   -.83204E-04
  28  Prefactor     1.7300        2.3089        .16524E-07   -.10355E-03
  29  Normalizat    .96563        .22453       -.53689E-06   -.32160E-04
  30  Prefactor     .85723        .22806       -.31451E-06   -.22266E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 36.2674
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 2.11417
  Prefactor  = 2.20213
  Prefactor  = 0.0001
  Prefactor  = 39.896
  norm       = 0.0001
  norm       = 23.7395
  Prefactor  = 11.9132
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 4.77643
  Prefactor  = 21.8553
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 17.672
  Prefactor  = 0.0001
  Prefactor  = 0.972268
  norm       = 0.0001
  Prefactor  = 55.0473
  Prefactor  = 41.2674
  norm       = 0.739122
  Prefactor  = 0.0001
  norm       = 3.06253
  Prefactor  = 4.39805
  Prefactor  = 5.01438
  Prefactor  = 1.72999
  Normalizat = 0.965632
  Prefactor  = 0.857232
 **********
 **   18 **HESSE 
 **********

 FCN=   5702.861     FROM HESSE     STATUS=OK           582 CALLS     4020 TOTAL
                     EDM=   .80E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     36.267        34.682        .67197E-04   -1.4503    
   2  Prefactor     .10000E-03    47.553        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    5.9952        .18033E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          2.1142        .50433        .23586E-04   -1.5417    
   5  Prefactor     2.2021        3.0614        .14857E-03   -1.5411    
   6  Prefactor     .10000E-03    22.770        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     39.896        27.342        .63565E-04   -1.4444    
   8  norm          .10000E-03    12.639        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          23.739        16.172        .82438E-04   -1.4733    
  10  Prefactor     11.913        4.6530        .92556E-04   -1.5018    
  11  Prefactor     .10000E-03    30.160        .20536E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    60.393        .20744E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          4.7764        4.2030        .13200E-03   -1.5271    
  14  Prefactor     21.855        21.276        .85894E-04   -1.4773    
  15  Prefactor     .10000E-03    3.1826        .13128E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    60.380        .20988E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          17.672        2.7259        .45848E-04   -1.4867    
  18  Prefactor     .10000E-03    45.220        .19044E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .97227        2.5616        .18183E-03   -1.5511    
  20  norm          .10000E-03    6.2370        .18369E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     55.047        42.657        .54333E-04   -1.4223    
  22  Prefactor     41.267        42.652        .62421E-04   -1.4422    
  23  norm          .73912        .97368        .93966E-03   -1.5536    
  24  Prefactor     .10000E-03    31.147        .20992E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          3.0625        2.8203        .11243E-03   -1.5358    
  26  Prefactor     4.3981        5.9618        .96210E-03   -1.5289    
  27  Prefactor     5.0144        3.1201        .96930E-04   -1.5260    
  28  Prefactor     1.7300        2.2884        .12695E-03   -1.5445    
  29  Normalizat    .96563        .26881        .29398E-03   -.94191    
  30  Prefactor     .85723        .27051        .34373E-03   -.97652    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.96768e-10
Minuit parameter uncertainties:
  1  34.7012
  2  0.000461805
  3  2.38681e-06
  4  0.504334
  5  3.06159
  6  0.000109898
  7  27.3508
  8  1.59493e-05
  9  16.1752
  10  4.65313
  11  2.83796e-05
  12  5.0151e-05
  13  4.20329
  14  21.2833
  15  9.22524e-07
  16  0.000298158
  17  2.72589
  18  0.000146775
  19  2.5619
  20  1.98138e-06
  21  42.6807
  22  42.6836
  23  0.973697
  24  0.000148377
  25  2.82039
  26  5.96264
  27  3.12019
  28  2.2885
  29  0.269183
  30  0.270932
Done.

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

Extracting fit parameters...

4FGL J1136.2+3407
   Spectrum: PowerLaw
306    Prefactor:  1.000e-04  9.225e-07  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:  8.572e-01  2.709e-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:  9.656e-01  2.692e-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.40e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.34e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/948238/likelihoodResults_435801601_436060801_4FGL_J1136.2+3407_daily_bin758.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): 0
logL (Free Index) = 5702.8624345
delta logL = -0.00149041937948

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5702.86094507
delta logL = -9.9277622212e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10613E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5569       1.0000          .0000       10.000    
     3 'Normalizat'    .96561       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .85729       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=   5702.861     FROM MIGRAD    STATUS=CONVERGED     98 CALLS      253 TOTAL
                     EDM=   .33E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    7.0635        .13135E-02** at limit **
   2  Index         2.8279        8.2454        .20000       -.41177E-06
   3  Normalizat    .96563        .24010        .29398E-03   -.10055E-03
   4  Prefactor     .85723        .26720        .34373E-03   -.96048E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.8279
  Normalizat = 0.965632
  Prefactor  = 0.857232
 **********
 **   18 **HESSE 
 **********

 FCN=   5702.861     FROM HESSE     STATUS=OK            23 CALLS      276 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    3.2505        .26269E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.8279        6.1598        .80000E-02   -.44939    
   3  Normalizat    .96563        .24032        .11759E-04   -.94191    
   4  Prefactor     .85723        .26746        .13749E-04   -.97652    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.21627e-09
Minuit parameter uncertainties:
  1  3.84823e-05
  2  380.114
  3  0.240593
  4  0.267868
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/948238': 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) = 5702.86094375
delta logL = 3.27070665662e-07

Extracting fit parameters...

4FGL J1136.2+3407
   Spectrum: PowerLaw
306    Prefactor:  1.000e-04  3.848e-05  1.000e-04  1.000e+04 ( 1.000e-12)
307        Index:  2.828e+00  3.801e+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:  8.572e-01  2.679e-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:  9.656e-01  2.406e-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/948238/cmap_HighResolution_435801601_436060801_4FGL_J1136.2+3407_daily_bin758.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.34e-03', job_status='DONE', photon_flux_upper_limit='9.40e-08', time_completed='2021-09-04 05:17:20.712193', job_id='948238', GAL2='0.86', fit_tolerance='1e-08', EG2='0.97', EG='0.97', time_epoch_completed='1630757840.71', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.86', dlogl='3.27e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.55' WHERE bin_id='758' AND source_name='4FGL J1136.2+3407' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 05:17:20 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0253>
Subject: Job 948238: <4FGL_J1136.2+3407_daily_bin758> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1136.2+3407_daily_bin758 174.075 34.129 435801601 436060801 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 :                                   818.22 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             293.37 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   950 sec.
    Turnaround time :                            952 sec.

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

