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


Performing analysis on: 4FGL_J1136.2+3407_daily_bin227
RA = 174.075, Dec = 34.129
tmin = 298166401, tmax = 298425601
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='945632', job_status='RUN', time_executed='2021-09-04 04:52:48.551596', time_epoch_executed='1630756368.55' WHERE source_name='4FGL J1136.2+3407' and cadence='daily' and bin_id='227'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/945632

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/945632/ft1_4FGL_J1136.2+3407_daily_bin227.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/945632/ft2_4FGL_J1136.2+3407_daily_bin227.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/945632/ft1_4FGL_J1136.2+3407_daily_bin227.fits outfile=/scratch/kocevski/945632/ft1_filteredMKT_4FGL_J1136.2+3407_daily_bin227.fits ra=174.075 dec=34.129 rad=12.0 tmin=298166401.0 tmax=298425601.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.53
user 3.32
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/945632/ft2_4FGL_J1136.2+3407_daily_bin227.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/945632/ft1_filteredMKT_4FGL_J1136.2+3407_daily_bin227.fits evtable="EVENTS" outfile="/scratch/kocevski/945632/ft1_filtered_4FGL_J1136.2+3407_daily_bin227.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/945632/ft1_filtered_4FGL_J1136.2+3407_daily_bin227.fits" evtable="EVENTS" scfile=/scratch/kocevski/945632/ft2_4FGL_J1136.2+3407_daily_bin227.fits sctable="SC_DATA" outfile=/scratch/kocevski/945632/ltcube_298166401_298425601_4FGL_J1136.2+3407_daily_bin227.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/945632/ft2_4FGL_J1136.2+3407_daily_bin227.fits
.....................!
real 11.79
user 11.41
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/945632/ft1_filtered_4FGL_J1136.2+3407_daily_bin227.fits evtable="EVENTS" scfile=/scratch/kocevski/945632/ft2_4FGL_J1136.2+3407_daily_bin227.fits sctable="SC_DATA" expcube=/scratch/kocevski/945632/ltcube_298166401_298425601_4FGL_J1136.2+3407_daily_bin227.fits outfile=/scratch/kocevski/945632/expmap_298166401_298425601_4FGL_J1136.2+3407_daily_bin227.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/945632/ltcube_298166401_298425601_4FGL_J1136.2+3407_daily_bin227.fits
.....................!
real 191.30
user 185.61
sys 5.10

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/945632/ft1_filtered_4FGL_J1136.2+3407_daily_bin227.fits scfile=/scratch/kocevski/945632/ft2_4FGL_J1136.2+3407_daily_bin227.fits outfile=/scratch/kocevski/945632/cmap_298166401_298425601_4FGL_J1136.2+3407_daily_bin227.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.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/945632/ft1_filtered_4FGL_J1136.2+3407_daily_bin227.fits scfile=/scratch/kocevski/945632/ft2_4FGL_J1136.2+3407_daily_bin227.fits outfile=/scratch/kocevski/945632/cmap_HighResolution_298166401_298425601_4FGL_J1136.2+3407_daily_bin227.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.54
user 0.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    1.2818       1.0000         .10000E-03   10000.    
     5 'Prefactor '    1.7694       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    12.706       1.0000         .10000E-03   10000.    
     8 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    11.347       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    5.6875       1.0000         .10000E-03   10000.    
    13 'norm      '    2.1666       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    5.9561       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    2.0905       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .84874E-01   1.0000         .10000E-03   10000.    
    19 'Prefactor '    1.8306       1.0000         .10000E-03   10000.    
    20 'norm      '    1.2410       1.0000         .10000E-03   10000.    
    21 'Prefactor '    3.0147       1.0000         .10000E-03   10000.    
    22 'Prefactor '    68.522       1.0000         .10000E-03   10000.    
    23 'norm      '    14.623       1.0000         .10000E-03   10000.    
    24 'Prefactor '    29.690       1.0000         .10000E-03   10000.    
    25 'norm      '    6.4417       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .91841E-02   1.0000         .10000E-03   10000.    
    27 'Prefactor '    4.1691       1.0000         .10000E-03   10000.    
    28 'Prefactor '    4.2075       1.0000         .10000E-03   10000.    
    29 'Normalizat'    1.2492       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .77273       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6260E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   7462.858     FROM MIGRAD    STATUS=CONVERGED    128 CALLS     3306 TOTAL
                     EDM=   .17E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    11.555       -.15595E-05** at limit **
   2  Prefactor     .10000E-03    82.392        .12179E-05** at limit **
   3  Prefactor     .10000E-03    7.1361       -.28690E-05** at limit **
   4  norm          1.2818        .33356       -.99055E-08   -.34217E-03
   5  Prefactor     1.7694        3.0185        .12200E-06   -.18705E-03
   6  Prefactor     .10000E-03    4.7107        .30492E-06** at limit **
   7  Prefactor     12.706        1.4567        .64748E-06   -.24839E-02
   8  norm          .10000E-03    7.5360        .22024E-05** at limit **
   9  norm          11.346        1.3965       -.62886E-06    .19180E-02
  10  Prefactor     .10000E-03    1.3114        .13064E-06** at limit **
  11  Prefactor     .10000E-03    18.294       -.11725E-05** at limit **
  12  Prefactor     5.6871        1.0560        .31009E-06   -.40247E-03
  13  norm          2.1668        2.3752       -.84463E-07    .92625E-04
  14  Prefactor     .10000E-03    5.7283        .45247E-06** at limit **
  15  Prefactor     5.9559        2.8990        .27046E-05    .46128E-03
  16  Prefactor     .10000E-03    13.431        .14850E-05** at limit **
  17  norm          2.0906        1.0385        .85784E-07    .39006E-03
  18  Prefactor     .10161E-03    274.25        .63629E-06** at limit **
  19  Prefactor     1.8298        2.1154       -.39468E-06    .49229E-04
  20  norm          1.2378        4.5662       -.96428E-05   -.22197E-03
  21  Prefactor     3.0154        1.0603        .31108E-06   -.21411E-03
  22  Prefactor     68.527        1.0462       -.86230E-08   -.40044E-03
  23  norm          14.623        2.2857       -.62579E-07    .17543E-03
  24  Prefactor     29.684        1.0549        .44083E-07   -.42814E-03
  25  norm          6.4418        3.5732        .64224E-07    .10041E-03
  26  Prefactor     .12214E-03    28.512       -.16959E-05** at limit **
  27  Prefactor     4.1689        2.6702       -.35441E-07   -.82488E-04
  28  Prefactor     4.2076        2.4805        .29041E-07    .58980E-04
  29  Normalizat    1.2491        .20991       -.20171E-05    .14169E-04
  30  Prefactor     .77274        .23344        .18410E-05    .32330E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 1.28181
  Prefactor  = 1.76943
  Prefactor  = 0.0001
  Prefactor  = 12.7061
  norm       = 0.0001
  norm       = 11.3461
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.68714
  norm       = 2.16679
  Prefactor  = 0.0001
  Prefactor  = 5.95588
  Prefactor  = 0.0001
  norm       = 2.09061
  Prefactor  = 0.000101605
  Prefactor  = 1.82982
  norm       = 1.23782
  Prefactor  = 3.01539
  Prefactor  = 68.5268
  norm       = 14.6226
  Prefactor  = 29.6843
  norm       = 6.44182
  Prefactor  = 0.000122138
  Prefactor  = 4.1689
  Prefactor  = 4.20759
  Normalizat = 1.24913
  Prefactor  = 0.772738
 **********
 **   18 **HESSE 
 **********

 FCN=   7462.858     FROM HESSE     STATUS=OK           666 CALLS     3972 TOTAL
                     EDM=   .19E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    11.543        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    82.418        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    7.1300        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          1.2818        .34233        .55468E-02   -1.5482    
   5  Prefactor     1.7694        3.0544        .78710E-02   -1.5442    
   6  Prefactor     .10000E-03    4.7044        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     12.706        12.826        .28094E-02   -1.4995    
   8  norm          .10000E-03    7.4356        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          11.346        11.288        .29732E-02   -1.5034    
  10  Prefactor     .10000E-03    1.2840        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    18.294        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     5.6871        13.934        .42108E-02   -1.5231    
  13  norm          2.1668        2.4015        .69949E-02   -1.5414    
  14  Prefactor     .10000E-03    5.7187        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     5.9559        5.0114        .41134E-02   -1.5220    
  16  Prefactor     .10000E-03    13.461        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          2.0906        1.0621        .71380E-03   -1.5419    
  18  Prefactor     .10161E-03    18.448        .11339       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     1.8298        2.2582        .77115E-02   -1.5437    
  20  norm          1.2378        6.6086        .10062E-01   -1.5485    
  21  Prefactor     3.0154        29.600        .58437E-02   -1.5361    
  22  Prefactor     68.527        53.159        .12122E-02   -1.4050    
  23  norm          14.623        2.3243        .26185E-02   -1.4943    
  24  Prefactor     29.684        31.868        .18382E-02   -1.4618    
  25  norm          6.4418        3.5612        .39533E-02   -1.5200    
  26  Prefactor     .12214E-03    4.0951        .91158E-01   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     4.1689        2.6598        .49348E-02   -1.5300    
  28  Prefactor     4.2076        2.4863        .49115E-02   -1.5298    
  29  Normalizat    1.2491        .18268        .57461E-01   -.85098    
  30  Prefactor     .77274        .20104        .80167E-01   -1.0074    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.85857e-06
Minuit parameter uncertainties:
  1  4.56124e-05
  2  0.000229537
  3  0.000139912
  4  0.342326
  5  3.05467
  6  1.37168e-06
  7  12.8284
  8  0.000101918
  9  11.2901
  10  1.89453e-06
  11  0.000145991
  12  13.9417
  13  2.40159
  14  1.99166e-05
  15  5.01174
  16  0.000132701
  17  1.06215
  18  0.0108871
  19  2.25828
  20  5.721
  21  18.9068
  22  53.1954
  23  2.32429
  24  31.8867
  25  3.56134
  26  0.019044
  27  2.65983
  28  2.48639
  29  0.18277
  30  0.201231
Done.

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

Extracting fit parameters...

4FGL J1136.2+3407
   Spectrum: PowerLaw
306    Prefactor:  5.956e+00  5.012e+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:  7.727e-01  2.012e-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.249e+00  1.828e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.31
Ra Dec: 174.075 34.129
Photon Index (Fixed Index): 2.55 +/- 0.00
Photon Flux (Fixed Index): 4.12e-08 +/- 3.46e-08
Energy Flux (Fixed Index): 1.13e-05 +/- 9.52e-06

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

Saving results to:
/scratch/kocevski/945632/likelihoodResults_298166401_298425601_4FGL_J1136.2+3407_daily_bin227.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) = 7462.32902125
delta logL = 0.529303306797

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7462.30471447
delta logL = 0.553610083709

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    7.0483       1.0000         .10000E-03   10000.    
     2 'Index     '    1.9084       1.0000          .0000       10.000    
     3 'Normalizat'    1.2742       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .75048       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=   7462.305     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      213 TOTAL
                     EDM=   .24E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.0499        6.8200        .37776E-02    .16444E-03
   2  Index         1.9088        .49625        .24835       -.98701E-04
   3  Normalizat    1.2741        .17564        .56969E-01    .54333E-04
   4  Prefactor     .75051        .19893        .81176E-01    .32158E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.04988
  Index      = 1.90878
  Normalizat = 1.27415
  Prefactor  = 0.750511
 **********
 **   18 **HESSE 
 **********

 FCN=   7462.305     FROM HESSE     STATUS=OK            33 CALLS      246 TOTAL
                     EDM=   .69E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.0499        5.8674        .15110E-03   -1.5177    
   2  Index         1.9088        .53675        .87209E-02   -.66651    
   3  Normalizat    1.2741        .20583        .25192E-03   -.84341    
   4  Prefactor     .75051        .23212        .35944E-03   -1.0158    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.88156e-11
Minuit parameter uncertainties:
  1  5.86783
  2  0.53843
  3  0.205966
  4  0.232417
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/945632': 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) = 7462.30471424
delta logL = 0.553610320873

Extracting fit parameters...

4FGL J1136.2+3407
   Spectrum: PowerLaw
306    Prefactor:  7.050e+00  5.868e+00  1.000e-04  1.000e+04 ( 1.000e-12)
307        Index:  1.909e+00  5.384e-01  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:  7.505e-01  2.324e-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.274e+00  2.060e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.42
Ra Dec: 174.075 34.129
Photon Index (Free Index): 1.91 +/- 0.54
Photon Flux (Free Index): 2.55e-08 +/- 2.62e-08
Energy Flux (Free Index): 2.24e-05 +/- 2.56e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/945632/cmap_HighResolution_298166401_298425601_4FGL_J1136.2+3407_daily_bin227.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.21e-03', comment='SUCCESS', photon_flux='4.12e-08', energy_flux2='2.24e-05', photon_flux_error='3.46e-08', dlogl='5.54e-01', energy_flux='1.13e-05', photon_flux2='2.55e-08', job_status='DONE', time_completed='2021-09-04 05:09:07.193978', photon_index_error2='0.54', photon_index2='1.91', ts='2.31', fit_tolerance='1e-08', GAL='0.77', photon_index_error='0.00', photon_flux_upper_limit='1.18e-07', energy_flux_error2='2.56e-05', EG='1.25', time_epoch_completed='1630757347.19', return_code='0', job_id='945632', GAL2='0.75', EG2='1.27', return_code2='0', energy_flux_error='9.52e-06', photon_flux_error2='2.62e-08', ts2='3.42', photon_index='2.55' WHERE bin_id='227' AND source_name='4FGL J1136.2+3407' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 05:09:07 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0024>
Subject: Job 945632: <4FGL_J1136.2+3407_daily_bin227> in cluster <slac> Done

Job <4FGL_J1136.2+3407_daily_bin227> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Sat Sep  4 04:52:36 2021
Job was executed on host(s) <bullet0024>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 04:52:38 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:38 2021
Terminated at Sat Sep  4 05:09:08 2021
Results reported at Sat Sep  4 05:09:08 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1136.2+3407_daily_bin227 174.075 34.129 298166401 298425601 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 :                                   974.13 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             360.69 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   989 sec.
    Turnaround time :                            992 sec.

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

