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


Performing analysis on: 4FGL_J1136.2+3407_daily_bin656
RA = 174.075, Dec = 34.129
tmin = 409363201, tmax = 409622401
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='948089', job_status='RUN', time_executed='2021-09-04 05:01:33.617477', time_epoch_executed='1630756893.62' WHERE source_name='4FGL J1136.2+3407' and cadence='daily' and bin_id='656'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/948089

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/948089/ft1_4FGL_J1136.2+3407_daily_bin656.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/948089/ft2_4FGL_J1136.2+3407_daily_bin656.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/948089/ft1_4FGL_J1136.2+3407_daily_bin656.fits outfile=/scratch/kocevski/948089/ft1_filteredMKT_4FGL_J1136.2+3407_daily_bin656.fits ra=174.075 dec=34.129 rad=12.0 tmin=409363201.0 tmax=409622401.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.52
user 5.28
sys 0.24

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/948089/ft1_filtered_4FGL_J1136.2+3407_daily_bin656.fits" evtable="EVENTS" scfile=/scratch/kocevski/948089/ft2_4FGL_J1136.2+3407_daily_bin656.fits sctable="SC_DATA" outfile=/scratch/kocevski/948089/ltcube_409363201_409622401_4FGL_J1136.2+3407_daily_bin656.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/948089/ft2_4FGL_J1136.2+3407_daily_bin656.fits
.....................!
real 12.71
user 12.03
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/948089/ft1_filtered_4FGL_J1136.2+3407_daily_bin656.fits evtable="EVENTS" scfile=/scratch/kocevski/948089/ft2_4FGL_J1136.2+3407_daily_bin656.fits sctable="SC_DATA" expcube=/scratch/kocevski/948089/ltcube_409363201_409622401_4FGL_J1136.2+3407_daily_bin656.fits outfile=/scratch/kocevski/948089/expmap_409363201_409622401_4FGL_J1136.2+3407_daily_bin656.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/948089/ltcube_409363201_409622401_4FGL_J1136.2+3407_daily_bin656.fits
.....................!
real 190.93
user 185.45
sys 5.00

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/948089/ft1_filtered_4FGL_J1136.2+3407_daily_bin656.fits scfile=/scratch/kocevski/948089/ft2_4FGL_J1136.2+3407_daily_bin656.fits outfile=/scratch/kocevski/948089/cmap_409363201_409622401_4FGL_J1136.2+3407_daily_bin656.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=174.075 yref=34.129 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.54
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/948089/ft1_filtered_4FGL_J1136.2+3407_daily_bin656.fits scfile=/scratch/kocevski/948089/ft2_4FGL_J1136.2+3407_daily_bin656.fits outfile=/scratch/kocevski/948089/cmap_HighResolution_409363201_409622401_4FGL_J1136.2+3407_daily_bin656.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/948089/ft1_filtered_4FGL_J1136.2+3407_daily_bin656.fits evtable="EVENTS" scfile=/scratch/kocevski/948089/ft2_4FGL_J1136.2+3407_daily_bin656.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/948089/Model_4FGL_J1136.2+3407_daily_bin656.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/948089/ft1_filtered_4FGL_J1136.2+3407_daily_bin656.fits.....................!
real 49.03
user 47.71
sys 1.16

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    38.426       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10339E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    7.7803       1.0000         .10000E-03   10000.    
     4 'norm      '    .79545       1.0000         .10000E-03   10000.    
     5 'Prefactor '    4.1445       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10765E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    33.476       1.0000         .10000E-03   10000.    
     9 'norm      '    29.145       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .46268       1.0000         .10000E-03   10000.    
    11 'Prefactor '    16.052       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10638E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    3.9016       1.0000         .10000E-03   10000.    
    16 'Prefactor '    58.592       1.0000         .10000E-03   10000.    
    17 'norm      '    7.2363       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    7.4787       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10684E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    4.4301       1.0000         .10000E-03   10000.    
    23 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    20.578       1.0000         .10000E-03   10000.    
    25 'norm      '    11.062       1.0000         .10000E-03   10000.    
    26 'Prefactor '    11.230       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    2.4861       1.0000         .10000E-03   10000.    
    29 'Normalizat'    1.1999       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .67653       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=   5337.905     FROM MIGRAD    STATUS=CONVERGED    757 CALLS     3893 TOTAL
                     EDM=   .21E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     38.435        30.106       -.50240E-06    .22664E-05
   2  Prefactor     .10000E-03    49.937       -.60384E-06** at limit **
   3  Prefactor     7.7775        7.8041        .66451E-07   -.28705E-06
   4  norm          .79550        .28811        .96499E-08    .94363E-04
   5  Prefactor     4.1448        3.0240        .37727E-08   -.32396E-05
   6  Prefactor     .10000E-03    6.3827       -.11548E-06** at limit **
   7  Prefactor     .10000E-03    24.610       -.18266E-06** at limit **
   8  norm          33.465        15.370       -.34981E-08    .10260E-04
   9  norm          29.146        15.744        .72354E-07   -.34806E-05
  10  Prefactor     .46731        2.1711       -.52791E-06   -.15848E-03
  11  Prefactor     16.017        33.549        .39879E-05    .97890E-05
  12  Prefactor     .10000E-03    5.6823        .37222E-06** at limit **
  13  norm          .10000E-03    1.6795       -.98786E-07** at limit **
  14  Prefactor     .10000E-03    5.4643       -.16765E-06** at limit **
  15  Prefactor     3.8964        5.6787        .13611E-05   -.32230E-04
  16  Prefactor     58.631        52.677       -.30942E-05    .64650E-05
  17  norm          7.2351        1.9938        .63754E-07   -.71831E-04
  18  Prefactor     .10000E-03    9.1347       -.30832E-07** at limit **
  19  Prefactor     .10000E-03    1.5264       -.46572E-07** at limit **
  20  norm          7.4788        7.4086       -.20095E-06    .65621E-05
  21  Prefactor     .10000E-03    24.630        .31498E-06** at limit **
  22  Prefactor     4.4179        159.78        .41778E-05    .40526E-07
  23  norm          .10000E-03    .56233       -.35913E-07** at limit **
  24  Prefactor     20.559        32.844        .18508E-05   -.60375E-05
  25  norm          11.064        3.9625       -.29947E-07   -.49908E-05
  26  Prefactor     11.233        10.409       -.90200E-07   -.79654E-05
  27  Prefactor     .10000E-03    .99031       -.88791E-09** at limit **
  28  Prefactor     2.4863        2.2069        .62384E-07   -.11505E-04
  29  Normalizat    1.1997        .20107       -.91327E-06    .43934E-04
  30  Prefactor     .67664        .22397        .80280E-06   -.44408E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 38.4353
  Prefactor  = 0.0001
  Prefactor  = 7.77746
  norm       = 0.795497
  Prefactor  = 4.14479
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 33.4653
  norm       = 29.1459
  Prefactor  = 0.467314
  Prefactor  = 16.0166
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.89643
  Prefactor  = 58.6309
  norm       = 7.23509
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 7.47879
  Prefactor  = 0.0001
  Prefactor  = 4.4179
  norm       = 0.0001
  Prefactor  = 20.5594
  norm       = 11.064
  Prefactor  = 11.2331
  Prefactor  = 0.0001
  Prefactor  = 2.48634
  Normalizat = 1.19973
  Prefactor  = 0.67664
 **********
 **   18 **HESSE 
 **********

 FCN=   5337.905     FROM HESSE     STATUS=OK           594 CALLS     4487 TOTAL
                     EDM=   .17E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     38.435        30.114        .64657E-04   -1.4467    
   2  Prefactor     .10000E-03    49.948        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     7.7775        7.8028        .14376E-03   -1.5150    
   4  norm          .79550        .28805        .22786E-04   -1.5530    
   5  Prefactor     4.1448        3.0216        .10392E-03   -1.5301    
   6  Prefactor     .10000E-03    6.3949        .18022E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    25.017        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          33.465        15.361        .69258E-04   -1.4550    
   9  norm          29.146        15.764        .74213E-04   -1.4628    
  10  Prefactor     .46731        2.0450        .18744E-03   -1.5571    
  11  Prefactor     16.017        33.076        .99967E-04   -1.4907    
  12  Prefactor     .10000E-03    5.6932        .17008E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    1.7338        .18432E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    5.4848        .16679E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     3.8964        5.6804        .98688E-03   -1.5313    
  16  Prefactor     58.631        52.654        .52412E-04   -1.4175    
  17  norm          7.2351        1.9945        .45632E-04   -1.5170    
  18  Prefactor     .10000E-03    9.1504        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    1.5841        .17607E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          7.4788        7.4090        .73326E-03   -1.5161    
  21  Prefactor     .10000E-03    24.724        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     4.4179        159.66        .19133E-03   -1.5288    
  23  norm          .10000E-03    .58057        .10685E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     20.559        32.836        .88295E-04   -1.4801    
  25  norm          11.064        3.9605        .84091E-04   -1.5043    
  26  Prefactor     11.233        10.415        .11955E-03   -1.5038    
  27  Prefactor     .10000E-03    .99438        .70948E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     2.4863        2.2009        .49529E-03   -1.5393    
  29  Normalizat    1.1997        .23499        .23538E-03   -.86611    
  30  Prefactor     .67664        .25919        .35002E-03   -1.0445    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.73364e-10
Minuit parameter uncertainties:
  1  30.1254
  2  9.1032e-06
  3  7.80379
  4  0.28805
  5  3.02168
  6  1.92922e-06
  7  3.03035e-06
  8  15.363
  9  15.7662
  10  1.95508
  11  33.1133
  12  6.28333e-07
  13  4.81835e-06
  14  3.04669e-07
  15  5.68122
  16  52.6958
  17  1.99452
  18  6.5339e-07
  19  7.30648e-07
  20  7.40992
  21  3.38672e-05
  22  53.2707
  23  6.77574e-07
  24  32.8647
  25  3.96056
  26  10.4164
  27  2.31027e-08
  28  2.20097
  29  0.235196
  30  0.259652
Done.

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

Extracting fit parameters...

4FGL J1136.2+3407
   Spectrum: PowerLaw
306    Prefactor:  3.896e+00  5.681e+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

GAL_V02
   Spectrum: PowerLaw
623    Prefactor:  6.766e-01  2.597e-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.200e+00  2.352e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.59
Ra Dec: 174.075 34.129
Photon Flux Upper Limit: 1.14e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.92e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/948089/likelihoodResults_409363201_409622401_4FGL_J1136.2+3407_daily_bin656.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) = 5337.71822859
delta logL = 0.18627519235

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5337.71586656
delta logL = 0.18863721748

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.7526       1.0000         .10000E-03   10000.    
     2 'Index     '    3.1664       1.0000          .0000       10.000    
     3 'Normalizat'    1.1821       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .68875       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.

 FCN=   5337.716     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      269 TOTAL
                     EDM=   .13E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.7535        78.894        .61340E-02    .43287E-03
   2  Index         3.1661        6.5716        .21751        .60322E-04
   3  Normalizat    1.1819        .53170E-01    .53572E-01   -.48061E-04
   4  Prefactor     .68886        .61462E-01    .78397E-01    .15176E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.75347
  Index      = 3.16608
  Normalizat = 1.1819
  Prefactor  = 0.688863
 **********
 **   18 **HESSE 
 **********

 FCN=   5337.716     FROM HESSE     STATUS=OK            33 CALLS      302 TOTAL
                     EDM=   .45E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.7535        5.1024        .13038E-03   -1.5376    
   2  Index         3.1661        1.1817        .80575E-02   -.37555    
   3  Normalizat    1.1819        .22768        .23687E-03   -.87164    
   4  Prefactor     .68886        .25793        .34711E-03   -1.0397    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.5413e-09
Minuit parameter uncertainties:
  1  5.10318
  2  1.19484
  3  0.227875
  4  0.258382
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/948089': 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) = 5337.71586558
delta logL = 0.18863820135

Extracting fit parameters...

4FGL J1136.2+3407
   Spectrum: PowerLaw
306    Prefactor:  2.753e+00  5.103e+00  1.000e-04  1.000e+04 ( 1.000e-12)
307        Index:  3.166e+00  1.195e+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.889e-01  2.584e-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.182e+00  2.279e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.59
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/948089/cmap_HighResolution_409363201_409622401_4FGL_J1136.2+3407_daily_bin656.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.92e-03', job_status='DONE', photon_flux_upper_limit='1.14e-07', time_completed='2021-09-04 05:15:46.709896', job_id='948089', GAL2='0.69', fit_tolerance='1e-08', EG2='1.18', EG='1.20', time_epoch_completed='1630757746.71', return_code2='0', ts='0.59', comment='SUCCESS', return_code='0', GAL='0.68', dlogl='1.89e-01', ts2='0.98', photon_index_error='0.00', photon_index='2.55' WHERE bin_id='656' AND source_name='4FGL J1136.2+3407' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 05:15:46 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0211>
Subject: Job 948089: <4FGL_J1136.2+3407_daily_bin656> in cluster <slac> Done

Job <4FGL_J1136.2+3407_daily_bin656> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Sat Sep  4 05:01:18 2021
Job was executed on host(s) <bullet0211>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 05:01:19 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:19 2021
Terminated at Sat Sep  4 05:15:47 2021
Results reported at Sat Sep  4 05:15:47 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1136.2+3407_daily_bin656 174.075 34.129 409363201 409622401 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 :                                   847.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             337.92 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   867 sec.
    Turnaround time :                            869 sec.

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

