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


Performing analysis on: 4FGL_J1136.2+3407_daily_bin693
RA = 174.075, Dec = 34.129
tmin = 418953601, tmax = 419212801
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='948143', job_status='RUN', time_executed='2021-09-04 05:03:47.545164', time_epoch_executed='1630757027.55' WHERE source_name='4FGL J1136.2+3407' and cadence='daily' and bin_id='693'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/948143

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/948143/ft1_4FGL_J1136.2+3407_daily_bin693.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/948143/ft2_4FGL_J1136.2+3407_daily_bin693.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/948143/ft1_4FGL_J1136.2+3407_daily_bin693.fits outfile=/scratch/kocevski/948143/ft1_filteredMKT_4FGL_J1136.2+3407_daily_bin693.fits ra=174.075 dec=34.129 rad=12.0 tmin=418953601.0 tmax=419212801.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.82
user 5.27
sys 0.41

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/948143/ft1_filtered_4FGL_J1136.2+3407_daily_bin693.fits" evtable="EVENTS" scfile=/scratch/kocevski/948143/ft2_4FGL_J1136.2+3407_daily_bin693.fits sctable="SC_DATA" outfile=/scratch/kocevski/948143/ltcube_418953601_419212801_4FGL_J1136.2+3407_daily_bin693.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/948143/ft2_4FGL_J1136.2+3407_daily_bin693.fits
.....................!
real 12.64
user 12.10
sys 0.44

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/948143/ft1_filtered_4FGL_J1136.2+3407_daily_bin693.fits evtable="EVENTS" scfile=/scratch/kocevski/948143/ft2_4FGL_J1136.2+3407_daily_bin693.fits sctable="SC_DATA" expcube=/scratch/kocevski/948143/ltcube_418953601_419212801_4FGL_J1136.2+3407_daily_bin693.fits outfile=/scratch/kocevski/948143/expmap_418953601_419212801_4FGL_J1136.2+3407_daily_bin693.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/948143/ltcube_418953601_419212801_4FGL_J1136.2+3407_daily_bin693.fits
.....................!
real 190.97
user 185.69
sys 4.57

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/948143/ft1_filtered_4FGL_J1136.2+3407_daily_bin693.fits scfile=/scratch/kocevski/948143/ft2_4FGL_J1136.2+3407_daily_bin693.fits outfile=/scratch/kocevski/948143/cmap_418953601_419212801_4FGL_J1136.2+3407_daily_bin693.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.55
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/948143/ft1_filtered_4FGL_J1136.2+3407_daily_bin693.fits scfile=/scratch/kocevski/948143/ft2_4FGL_J1136.2+3407_daily_bin693.fits outfile=/scratch/kocevski/948143/cmap_HighResolution_418953601_419212801_4FGL_J1136.2+3407_daily_bin693.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/948143/ft1_filtered_4FGL_J1136.2+3407_daily_bin693.fits evtable="EVENTS" scfile=/scratch/kocevski/948143/ft2_4FGL_J1136.2+3407_daily_bin693.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/948143/Model_4FGL_J1136.2+3407_daily_bin693.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/948143/ft1_filtered_4FGL_J1136.2+3407_daily_bin693.fits....................!
real 54.50
user 53.05
sys 1.17

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10699E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .98878E-01   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10327E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    2.8808       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    29.857       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10080E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    4.5333       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .82799E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .74196       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .12093E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .22849E-02   1.0000         .10000E-03   10000.    
    17 'norm      '    6.1743       1.0000         .10000E-03   10000.    
    18 'Prefactor '    5.8638       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .36291       1.0000         .10000E-03   10000.    
    20 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    384.70       1.0000         .10000E-03   10000.    
    23 'norm      '    .42675       1.0000         .10000E-03   10000.    
    24 'Prefactor '    12.221       1.0000         .10000E-03   10000.    
    25 'norm      '    9.1510       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    1.1848       1.0000         .10000E-03   10000.    
    29 'Normalizat'    1.3900       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .68666       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=   6027.137     FROM MIGRAD    STATUS=CONVERGED    191 CALLS     2351 TOTAL
                     EDM=   .30E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    8.3271        .51789E-05** at limit **
   2  Prefactor     .10000E-03    52.355       -.11266E-04** at limit **
   3  Prefactor     .10000E-03    10.824        .28417E-05** at limit **
   4  norm          2.8808        .50169        .13763E-05    .10039E-02
   5  Prefactor     .10000E-03    .70892        .16062E-06** at limit **
   6  Prefactor     30.076        18.342       -.57204E-04   -.11366E-04
   7  Prefactor     .10000E-03    9.7263        .26206E-05** at limit **
   8  norm          .10000E-03    5.3316       -.31056E-06** at limit **
   9  norm          4.3326        12.238       -.29645E-05    .79078E-04
  10  Prefactor     .10000E-03    .87490       -.75040E-06** at limit **
  11  Prefactor     .10000E-03    13.774        .11697E-05** at limit **
  12  Prefactor     .10000E-03    31.807       -.34738E-04** at limit **
  13  norm          .74589        1.8299        .44964E-06    .12509E-03
  14  Prefactor     .10000E-03    9.3733        .31535E-05** at limit **
  15  Prefactor     .10000E-03    1.8345       -.18005E-05** at limit **
  16  Prefactor     .10000E-03    24.723        .36072E-05** at limit **
  17  norm          6.1691        1.7176       -.12406E-05   -.21020E-03
  18  Prefactor     6.8791        23.053        .20778E-04    .11447E-03
  19  Prefactor     .34171        3.5184       -.11536E-04    .76977E-04
  20  norm          .10000E-03    4.3841       -.27391E-05** at limit **
  21  Prefactor     .10000E-03    7.7052        .35075E-05** at limit **
  22  Prefactor     386.45        99.580        .11038E-04    .38408E-04
  23  norm          .42395        .79605       -.71790E-06    .65787E-04
  24  Prefactor     14.004        37.002        .19130E-05   -.48645E-04
  25  norm          9.1406        3.5801       -.15352E-05    .14985E-04
  26  Prefactor     .10000E-03    3.3965       -.11654E-05** at limit **
  27  Prefactor     .10000E-03    .65341       -.91125E-06** at limit **
  28  Prefactor     1.1841        1.2393        .36196E-06   -.24655E-03
  29  Normalizat    1.3864        .23343        .13111E-04   -.19816E-03
  30  Prefactor     .68797        .25290       -.78571E-05   -.12004E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  norm       = 2.88082
  Prefactor  = 0.0001
  Prefactor  = 30.0762
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 4.33264
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 0.745886
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 6.16911
  Prefactor  = 6.87914
  Prefactor  = 0.341711
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 386.448
  norm       = 0.423949
  Prefactor  = 14.0038
  norm       = 9.14057
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.1841
  Normalizat = 1.3864
  Prefactor  = 0.687975
 **********
 **   18 **HESSE 
 **********

 FCN=   6027.137     FROM HESSE     STATUS=OK           654 CALLS     3005 TOTAL
                     EDM=   .31E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    8.3209        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    52.368        .95059E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    10.335        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          2.8808        .49961        .48325E-02   -1.5368    
   5  Prefactor     .10000E-03    .70734        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     30.076        18.245        .18331E-02   -1.4611    
   7  Prefactor     .10000E-03    9.7160        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    5.3224        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          4.3326        12.238        .47270E-02   -1.5292    
  10  Prefactor     .10000E-03    .86189        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    13.746        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    30.273        .10441E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .74589        1.9086        .36832E-01   -1.5535    
  14  Prefactor     .10000E-03    9.2879        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    1.8224        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    24.658        .10053E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          6.1691        1.7204        .40391E-02   -1.5211    
  18  Prefactor     6.8791        24.119        .41461E-02   -1.5183    
  19  Prefactor     .34171        2.0742        .34186E-01   -1.5591    
  20  norm          .10000E-03    4.3744        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    7.6772        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     386.45        99.393        .51995E-03   -1.1751    
  23  norm          .42395        .92324        .22028E-01   -1.5578    
  24  Prefactor     14.004        36.952        .28647E-02   -1.4959    
  25  norm          9.1406        3.5827        .33122E-02   -1.5103    
  26  Prefactor     .10000E-03    3.3826        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    .65229        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     1.1841        1.2194        .10484E-01   -1.5490    
  29  Normalizat    1.3864        .19781        .53581E-01   -.81023    
  30  Prefactor     .68797        .21688        .83676E-01   -1.0400    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.07295e-09
Minuit parameter uncertainties:
  1  7.49328e-05
  2  0.000677903
  3  0.000129913
  4  0.499614
  5  2.43198e-06
  6  18.2481
  7  9.91739e-05
  8  2.51674e-05
  9  12.2453
  10  9.55212e-08
  11  2.53942e-05
  12  0.000376652
  13  1.90876
  14  4.70761e-05
  15  2.07428e-05
  16  9.86677e-05
  17  1.72043
  18  24.1531
  19  1.68363
  20  1.83753e-05
  21  4.39297e-05
  22  99.4366
  23  0.923269
  24  37.012
  25  3.58281
  26  3.59574e-05
  27  2.93455e-06
  28  1.21944
  29  0.197924
  30  0.217145
Done.

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

Extracting fit parameters...

4FGL J1136.2+3407
   Spectrum: PowerLaw
306    Prefactor:  1.000e-04  2.074e-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:  6.880e-01  2.171e-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.386e+00  1.979e-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: 5.58e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.35e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/948143/likelihoodResults_418953601_419212801_4FGL_J1136.2+3407_daily_bin693.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) = 6027.14000023
delta logL = -0.00253407511264

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6027.13746608
delta logL = 8.42437657411e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5403       1.0000          .0000       10.000    
     3 'Normalizat'    1.3864       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .68798       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=   6027.137     FROM MIGRAD    STATUS=CONVERGED    102 CALLS      257 TOTAL
                     EDM=   .62E-11    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    12.141        .10307E-01** at limit **
   2  Index         2.0910        6.0132        .50000        .54501E-07
   3  Normalizat    1.3864        .11652E-01    .23690E-03   -.37049E-03
   4  Prefactor     .68797        .13369E-01    .37061E-03   -.23126E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.09104
  Normalizat = 1.3864
  Prefactor  = 0.687974
 **********
 **   18 **HESSE 
 **********

 FCN=   6027.137     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      286 TOTAL
                     EDM=   .63E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    122.46        .10960E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.0910        8.7328        .50000       -.62093    
   3  Normalizat    1.3864        .39398E-01    .47380E-04   -.81023    
   4  Prefactor     .68797        .45202E-01    .14825E-04   -1.0400    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 6.28215e-11
Minuit parameter uncertainties:
  1  1.45458e-05
  2  679.258
  3  0.0393984
  4  0.0452047
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/948143': 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): 102
logL (Free Index) = 6027.13746276
delta logL = 3.40253336617e-06

Extracting fit parameters...

4FGL J1136.2+3407
   Spectrum: PowerLaw
306    Prefactor:  1.000e-04  1.455e-05  1.000e-04  1.000e+04 ( 1.000e-12)
307        Index:  2.091e+00  6.793e+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:  6.880e-01  4.520e-02  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.386e+00  3.940e-02  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/948143/cmap_HighResolution_418953601_419212801_4FGL_J1136.2+3407_daily_bin693.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.35e-03', job_status='DONE', photon_flux_upper_limit='5.58e-08', time_completed='2021-09-04 05:17:22.341620', job_id='948143', GAL2='0.69', fit_tolerance='1e-08', EG2='1.39', EG='1.39', time_epoch_completed='1630757842.34', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.69', dlogl='3.40e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.55' WHERE bin_id='693' AND source_name='4FGL J1136.2+3407' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 05:17:22 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0216>
Subject: Job 948143: <4FGL_J1136.2+3407_daily_bin693> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1136.2+3407_daily_bin693 174.075 34.129 418953601 419212801 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 :                                   809.04 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             280.96 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   958 sec.
    Turnaround time :                            961 sec.

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

