aklog: Couldn't determine realm of user:aklog: unknown RPC error (-1765328189)  while getting realm
/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 9 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 = 17189
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1136.2+3407_weekly_bin524
RA = 174.075, Dec = 34.129
tmin = 555897601, tmax = 556502401
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='928926', job_status='RUN', time_executed='2021-07-18 07:06:43.343826', time_epoch_executed='1626617203.34' WHERE source_name='4FGL J1136.2+3407' and cadence='weekly' and bin_id='524'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/928926

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

Retrieving the FT1 file...

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

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

Retrieving 108 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/928926/ft1_4FGL_J1136.2+3407_weekly_bin524.fits


Retrieving the FT1 file...

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

Retrieving 108 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/928926/ft2_4FGL_J1136.2+3407_weekly_bin524.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/928926/ft1_4FGL_J1136.2+3407_weekly_bin524.fits outfile=/scratch/kocevski/928926/ft1_filteredMKT_4FGL_J1136.2+3407_weekly_bin524.fits ra=174.075 dec=34.129 rad=12.0 tmin=555897601.0 tmax=556502401.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 7.94
user 7.62
sys 0.28

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/928926/ft2_4FGL_J1136.2+3407_weekly_bin524.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/928926/ft1_filteredMKT_4FGL_J1136.2+3407_weekly_bin524.fits evtable="EVENTS" outfile="/scratch/kocevski/928926/ft1_filtered_4FGL_J1136.2+3407_weekly_bin524.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.56
user 0.37
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/928926/ft1_filtered_4FGL_J1136.2+3407_weekly_bin524.fits" evtable="EVENTS" scfile=/scratch/kocevski/928926/ft2_4FGL_J1136.2+3407_weekly_bin524.fits sctable="SC_DATA" outfile=/scratch/kocevski/928926/ltcube_555897601_556502401_4FGL_J1136.2+3407_weekly_bin524.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/928926/ft2_4FGL_J1136.2+3407_weekly_bin524.fits
.....................!
real 32.28
user 31.80
sys 0.37

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/928926/ft1_filtered_4FGL_J1136.2+3407_weekly_bin524.fits evtable="EVENTS" scfile=/scratch/kocevski/928926/ft2_4FGL_J1136.2+3407_weekly_bin524.fits sctable="SC_DATA" expcube=/scratch/kocevski/928926/ltcube_555897601_556502401_4FGL_J1136.2+3407_weekly_bin524.fits outfile=/scratch/kocevski/928926/expmap_555897601_556502401_4FGL_J1136.2+3407_weekly_bin524.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/928926/ltcube_555897601_556502401_4FGL_J1136.2+3407_weekly_bin524.fits
.....................!
real 192.08
user 187.34
sys 4.36

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/928926/ft1_filtered_4FGL_J1136.2+3407_weekly_bin524.fits scfile=/scratch/kocevski/928926/ft2_4FGL_J1136.2+3407_weekly_bin524.fits outfile=/scratch/kocevski/928926/cmap_555897601_556502401_4FGL_J1136.2+3407_weekly_bin524.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 1.88
user 0.44
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/928926/ft1_filtered_4FGL_J1136.2+3407_weekly_bin524.fits scfile=/scratch/kocevski/928926/ft2_4FGL_J1136.2+3407_weekly_bin524.fits outfile=/scratch/kocevski/928926/cmap_HighResolution_555897601_556502401_4FGL_J1136.2+3407_weekly_bin524.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.61
user 0.43
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .20836E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .50440E-02   1.0000         .10000E-03   10000.    
     3 'Prefactor '    28.704       1.0000         .10000E-03   10000.    
     4 'norm      '    .95589       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .18983E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .79599E-01   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .11304E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    10.134       1.0000         .10000E-03   10000.    
     9 'norm      '    12.044       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    15.197       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .73026E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    3.0045       1.0000         .10000E-03   10000.    
    14 'Prefactor '    14.235       1.0000         .10000E-03   10000.    
    15 'Prefactor '    3.0408       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .52117       1.0000         .10000E-03   10000.    
    17 'norm      '    3.5178       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .11932       1.0000         .10000E-03   10000.    
    19 'Prefactor '    3.5562       1.0000         .10000E-03   10000.    
    20 'norm      '    4.7868       1.0000         .10000E-03   10000.    
    21 'Prefactor '    9.4776       1.0000         .10000E-03   10000.    
    22 'Prefactor '    52.982       1.0000         .10000E-03   10000.    
    23 'norm      '    2.3391       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .42977E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    4.9997       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    1.3550       1.0000         .10000E-03   10000.    
    28 'Prefactor '    2.4734       1.0000         .10000E-03   10000.    
    29 'Normalizat'    1.0201       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .77415       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=   6845.313     FROM MIGRAD    STATUS=CONVERGED    163 CALLS     2190 TOTAL
                     EDM=   .98E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    10.351       -.97858E-05** at limit **
   2  Prefactor     .10010E-03    47.509        .92258E-05** at limit **
   3  Prefactor     28.725        1.2274       -.34157E-07    .78848E-03
   4  norm          .95683        .28327        .73978E-07   -.34240E-03
   5  Prefactor     .10000E-03    13.656       -.11107E-04** at limit **
   6  Prefactor     .10904E-03    90.454       -.74417E-05** at limit **
   7  Prefactor     .10000E-03    3.8365       -.32228E-05** at limit **
   8  norm          10.163        9.2169        .32110E-05    .58204E-03
   9  norm          11.862        10.571        .81001E-06    .15892E-02
  10  Prefactor     .10000E-03    .87958       -.10133E-05** at limit **
  11  Prefactor     15.819        22.227        .17083E-05    .67004E-02
  12  Prefactor     .10000E-03    9.3178       -.44100E-05** at limit **
  13  norm          2.9836        2.6427       -.37617E-06   -.18532E-04
  14  Prefactor     14.091        11.025        .14890E-06   -.25923E-02
  15  Prefactor     3.0372        3.7185        .40103E-06   -.65821E-04
  16  Prefactor     .11561E-03    126.99       -.24593E-04** at limit **
  17  norm          3.5168        1.2527       -.73744E-06    .59781E-03
  18  Prefactor     .11799E-03    43.456       -.11375E-04** at limit **
  19  Prefactor     3.5656        2.0923       -.71514E-06    .24254E-03
  20  norm          4.8082        4.9717        .17366E-05   -.11118E-03
  21  Prefactor     9.5827        5.8549        .17009E-06    .72372E-02
  22  Prefactor     54.216        45.239        .25903E-05   -.31546E-02
  23  norm          2.3399        1.2381        .21222E-06   -.91863E-04
  24  Prefactor     .10000E-03    10.117       -.20483E-05** at limit **
  25  norm          4.9997        2.6902       -.42951E-07   -.46074E-05
  26  Prefactor     .10000E-03    1.4982       -.11471E-05** at limit **
  27  Prefactor     1.3541        1.4809        .66364E-06   -.12179E-03
  28  Prefactor     2.4729        1.8628       -.57078E-06    .16675E-03
  29  Normalizat    1.0208        .18315       -.14794E-05    .39127E-04
  30  Prefactor     .77394        .20696        .33972E-06    .23012E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.000100097
  Prefactor  = 28.7253
  norm       = 0.956826
  Prefactor  = 0.0001
  Prefactor  = 0.000109045
  Prefactor  = 0.0001
  norm       = 10.1634
  norm       = 11.862
  Prefactor  = 0.0001
  Prefactor  = 15.8195
  Prefactor  = 0.0001
  norm       = 2.98357
  Prefactor  = 14.0906
  Prefactor  = 3.03722
  Prefactor  = 0.000115611
  norm       = 3.51683
  Prefactor  = 0.000117985
  Prefactor  = 3.56557
  norm       = 4.80819
  Prefactor  = 9.58269
  Prefactor  = 54.2162
  norm       = 2.33987
  Prefactor  = 0.0001
  norm       = 4.99968
  Prefactor  = 0.0001
  Prefactor  = 1.35415
  Prefactor  = 2.47286
  Normalizat = 1.02075
  Prefactor  = 0.773941
 **********
 **   18 **HESSE 
 **********

 FCN=   6845.313     FROM HESSE     STATUS=OK           676 CALLS     2866 TOTAL
                     EDM=   .65E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    10.340        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10010E-03    47.608        .95951E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     28.725        15.120        .18695E-02   -1.4636    
   4  norm          .95683        .29214        .52133E-02   -1.5512    
   5  Prefactor     .10000E-03    1.3955        .55150E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10904E-03    8.9794        .94135E-01   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    3.8378        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          10.163        9.3012        .31467E-02   -1.5070    
   9  norm          11.862        10.616        .28857E-02   -1.5019    
  10  Prefactor     .10000E-03    .86616        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     15.819        33.269        .25685E-02   -1.4912    
  12  Prefactor     .10000E-03    9.2775        .10478E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          2.9836        2.8595        .58541E-02   -1.5362    
  14  Prefactor     14.091        11.139        .26540E-02   -1.4957    
  15  Prefactor     3.0372        3.7485        .58171E-02   -1.5359    
  16  Prefactor     .11561E-03    31.761        .13934       -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          3.5168        1.3540        .53885E-02   -1.5333    
  18  Prefactor     .11799E-03    15.135        .96030E-01   -1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     3.5656        2.1782        .53582E-02   -1.5330    
  20  norm          4.8082        4.9676        .45972E-02   -1.5269    
  21  Prefactor     9.5827        21.012        .32544E-02   -1.5089    
  22  Prefactor     54.216        46.087        .13776E-02   -1.4234    
  23  norm          2.3399        1.2519        .67022E-02   -1.5402    
  24  Prefactor     .10000E-03    10.101        .10615E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          4.9997        2.6858        .44962E-02   -1.5261    
  26  Prefactor     .10000E-03    1.4980        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     1.3541        1.4836        .93887E-02   -1.5475    
  28  Prefactor     2.4729        1.8651        .64996E-02   -1.5393    
  29  Normalizat    1.0208        .16402        .43334E-01   -.92338    
  30  Prefactor     .77394        .18090        .69759E-01   -1.0070    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.46826e-07
Minuit parameter uncertainties:
  1  0.000110412
  2  0.00430307
  3  15.1217
  4  0.292141
  5  5.01742e-05
  6  0.0180266
  7  2.41106e-05
  8  9.30256
  9  10.618
  10  2.82811e-06
  11  33.308
  12  4.32685e-05
  13  2.85965
  14  11.141
  15  3.74881
  16  0.0445573
  17  1.35397
  18  0.0330056
  19  2.17826
  20  4.968
  21  21.0284
  22  46.1171
  23  1.2519
  24  2.12897e-05
  25  2.68586
  26  4.31233e-06
  27  1.48367
  28  1.8651
  29  0.164103
  30  0.181043
Done.

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

Extracting fit parameters...

4FGL J1136.2+3407
   Spectrum: PowerLaw
306    Prefactor:  3.037e+00  3.749e+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.739e-01  1.810e-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.021e+00  1.641e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.96
Ra Dec: 174.075 34.129
Photon Flux Upper Limit: 8.38e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.54e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/928926/likelihoodResults_555897601_556502401_4FGL_J1136.2+3407_weekly_bin524.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) = 6845.20861104
delta logL = 0.103965307087

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6845.20853766
delta logL = 0.104038689801

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.8657       1.0000         .10000E-03   10000.    
     2 'Index     '    2.1764       1.0000          .0000       10.000    
     3 'Normalizat'    1.0271       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .76734       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=   6845.209     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      266 TOTAL
                     EDM=   .84E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.8637        232.10        .51310E-02    .32323E-03
   2  Index         2.1760        5.1061        .24864        .33658E-05
   3  Normalizat    1.0270        .90141E-01    .42467E-01    .58005E-05
   4  Prefactor     .76741        .11676        .70017E-01    .14740E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.86367
  Index      = 2.17598
  Normalizat = 1.02705
  Prefactor  = 0.767407
 **********
 **   18 **HESSE 
 **********

 FCN=   6845.209     FROM HESSE     STATUS=OK            33 CALLS      299 TOTAL
                     EDM=   .28E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.8637        4.5012        .18025E-03   -1.5315    
   2  Index         2.1760        .75534        .11741E-01   -.60020    
   3  Normalizat    1.0270        .17694        .23355E-03   -.92130    
   4  Prefactor     .76741        .20632        .30982E-03   -1.0094    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.80031e-13
Minuit parameter uncertainties:
  1  4.50156
  2  0.759621
  3  0.177037
  4  0.206531
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/928926': 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) = 6845.2085373
delta logL = 0.10403905448

Extracting fit parameters...

4FGL J1136.2+3407
   Spectrum: PowerLaw
306    Prefactor:  3.864e+00  4.502e+00  1.000e-04  1.000e+04 ( 1.000e-12)
307        Index:  2.176e+00  7.596e-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.674e-01  2.065e-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.027e+00  1.770e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.16
Ra Dec: 174.075 34.129
Photon Index (Free Index): 2.18 +/- 0.76
Photon Flux (Free Index): 1.77e-08 +/- 2.23e-08
Energy Flux (Free Index): 8.31e-06 +/- 1.22e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/928926/cmap_HighResolution_555897601_556502401_4FGL_J1136.2+3407_weekly_bin524.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.54e-03', comment='SUCCESS', energy_flux2='8.31e-06', dlogl='1.04e-01', photon_flux2='1.77e-08', job_status='DONE', time_completed='2021-07-18 07:21:38.315006', photon_index_error2='0.76', photon_index2='2.18', ts='0.96', fit_tolerance='1e-08', GAL='0.77', photon_index_error='0.00', photon_flux_upper_limit='8.38e-08', energy_flux_error2='1.22e-05', EG='1.02', time_epoch_completed='1626618098.32', return_code='0', job_id='928926', GAL2='0.77', EG2='1.03', return_code2='0', photon_flux_error2='2.23e-08', ts2='1.16', photon_index='2.55' WHERE bin_id='524' AND source_name='4FGL J1136.2+3407' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Sun Jul 18 07:21:38 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0251>
Subject: Job 928926: <4FGL_J1136.2+3407_weekly_bin524> in cluster <slac> Done

Job <4FGL_J1136.2+3407_weekly_bin524> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Sun Jul 18 07:06:08 2021
Job was executed on host(s) <bullet0251>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Jul 18 07:06:25 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Jul 18 07:06:25 2021
Terminated at Sun Jul 18 07:21:39 2021
Results reported at Sun Jul 18 07:21:39 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1136.2+3407_weekly_bin524 174.075 34.129 555897601 556502401 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 :                                   879.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             346.97 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   914 sec.
    Turnaround time :                            931 sec.

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

