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


Performing analysis on: 4FGL_J1136.2+3407_daily_bin727
RA = 174.075, Dec = 34.129
tmin = 427766401, tmax = 428025601
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='948193', job_status='RUN', time_executed='2021-09-04 05:04:50.176878', time_epoch_executed='1630757090.18' WHERE source_name='4FGL J1136.2+3407' and cadence='daily' and bin_id='727'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/948193

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/948193/ft1_4FGL_J1136.2+3407_daily_bin727.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/948193/ft2_4FGL_J1136.2+3407_daily_bin727.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/948193/ft1_4FGL_J1136.2+3407_daily_bin727.fits outfile=/scratch/kocevski/948193/ft1_filteredMKT_4FGL_J1136.2+3407_daily_bin727.fits ra=174.075 dec=34.129 rad=12.0 tmin=427766401.0 tmax=428025601.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.40
user 5.12
sys 0.23

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/948193/ft2_4FGL_J1136.2+3407_daily_bin727.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/948193/ft1_filteredMKT_4FGL_J1136.2+3407_daily_bin727.fits evtable="EVENTS" outfile="/scratch/kocevski/948193/ft1_filtered_4FGL_J1136.2+3407_daily_bin727.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.34
sys 0.14

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/948193/ft1_filtered_4FGL_J1136.2+3407_daily_bin727.fits evtable="EVENTS" scfile=/scratch/kocevski/948193/ft2_4FGL_J1136.2+3407_daily_bin727.fits sctable="SC_DATA" expcube=/scratch/kocevski/948193/ltcube_427766401_428025601_4FGL_J1136.2+3407_daily_bin727.fits outfile=/scratch/kocevski/948193/expmap_427766401_428025601_4FGL_J1136.2+3407_daily_bin727.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/948193/ltcube_427766401_428025601_4FGL_J1136.2+3407_daily_bin727.fits
.....................!
real 190.72
user 185.71
sys 4.61

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/948193/ft1_filtered_4FGL_J1136.2+3407_daily_bin727.fits scfile=/scratch/kocevski/948193/ft2_4FGL_J1136.2+3407_daily_bin727.fits outfile=/scratch/kocevski/948193/cmap_427766401_428025601_4FGL_J1136.2+3407_daily_bin727.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.59
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/948193/ft1_filtered_4FGL_J1136.2+3407_daily_bin727.fits scfile=/scratch/kocevski/948193/ft2_4FGL_J1136.2+3407_daily_bin727.fits outfile=/scratch/kocevski/948193/cmap_HighResolution_427766401_428025601_4FGL_J1136.2+3407_daily_bin727.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.63
user 0.37
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    53.608       1.0000         .10000E-03   10000.    
     3 'Prefactor '    1.1404       1.0000         .10000E-03   10000.    
     4 'norm      '    1.5408       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    5.9786       1.0000         .10000E-03   10000.    
     9 'norm      '    .10209E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    2.7153       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .12423E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    16.663       1.0000         .10000E-03   10000.    
    13 'norm      '    2.0954       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10207E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    11.780       1.0000         .10000E-03   10000.    
    17 'norm      '    5.8635       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    5.5751       1.0000         .10000E-03   10000.    
    21 'Prefactor '    14.407       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    3.8035       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10066E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    8.9354       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    2.2510       1.0000         .10000E-03   10000.    
    28 'Prefactor '    2.2099       1.0000         .10000E-03   10000.    
    29 'Normalizat'    1.0924       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .64097       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=   3916.841     FROM MIGRAD    STATUS=CONVERGED    772 CALLS     3877 TOTAL
                     EDM=   .33E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    11.893        .11232E-05** at limit **
   2  Prefactor     53.501        125.54        .15326E-04   -.25875E-04
   3  Prefactor     1.1392        33.261        .29878E-04   -.24001E-06
   4  norm          1.5408        .42939        .46887E-08   -.31546E-03
   5  Prefactor     .10000E-03    1.9636        .60540E-06** at limit **
   6  Prefactor     .10000E-03    6.8228        .15659E-07** at limit **
   7  Prefactor     .10000E-03    5.6634       -.32561E-07** at limit **
   8  norm          5.9768        12.092        .35082E-06   -.73795E-05
   9  norm          .10000E-03    29.034        .17055E-05** at limit **
  10  Prefactor     2.7145        2.3620        .85194E-07   -.47873E-04
  11  Prefactor     .10000E-03    78.803        .41636E-06** at limit **
  12  Prefactor     16.669        23.038        .74951E-06   -.47542E-05
  13  norm          2.0951        3.1469       -.10537E-05   -.63777E-03
  14  Prefactor     .10000E-03    11.052       -.57724E-06** at limit **
  15  Prefactor     .10000E-03    2.3782        .47984E-07** at limit **
  16  Prefactor     11.685        96.867        .23284E-04   -.35351E-04
  17  norm          5.8640        2.1031       -.38399E-06    .45307E-03
  18  Prefactor     .10000E-03    14.762       -.19195E-06** at limit **
  19  Prefactor     .10000E-03    .83543        .86117E-07** at limit **
  20  norm          5.5755        9.6257        .82178E-06   -.37963E-04
  21  Prefactor     14.405        22.619        .50217E-06   -.52868E-05
  22  Prefactor     .10000E-03    39.007       -.35868E-06** at limit **
  23  norm          3.8038        1.7793        .11938E-06   -.36255E-04
  24  Prefactor     .10000E-03    25.706       -.20518E-06** at limit **
  25  norm          8.9354        4.1967        .18568E-06   -.28068E-04
  26  Prefactor     .10000E-03    3.8150        .77915E-07** at limit **
  27  Prefactor     2.2510        2.1773        .80775E-08    .49812E-05
  28  Prefactor     2.2098        2.1920        .76923E-07   -.84560E-05
  29  Normalizat    1.0925        .21915       -.15887E-06   -.55140E-05
  30  Prefactor     .64103        .24086       -.46097E-05   -.17512E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 53.5011
  Prefactor  = 1.1392
  norm       = 1.54079
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 5.97685
  norm       = 0.0001
  Prefactor  = 2.71449
  Prefactor  = 0.000100001
  Prefactor  = 16.6692
  norm       = 2.09506
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 11.685
  norm       = 5.86398
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 5.57546
  Prefactor  = 14.4047
  Prefactor  = 0.0001
  norm       = 3.80381
  Prefactor  = 0.0001
  norm       = 8.93538
  Prefactor  = 0.0001
  Prefactor  = 2.251
  Prefactor  = 2.2098
  Normalizat = 1.09245
  Prefactor  = 0.641026
 **********
 **   18 **HESSE 
 **********

 FCN=   3916.841     FROM HESSE     STATUS=OK           586 CALLS     4463 TOTAL
                     EDM=   .19E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    11.900        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     53.501        125.64        .27391E-03   -1.4244    
   3  Prefactor     1.1392        33.631        .21770E-02   -1.5495    
   4  norm          1.5408        .43011        .20909E-04   -1.5460    
   5  Prefactor     .10000E-03    1.9908        .85690E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    6.8313        .15963E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    5.6649        .14546E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          5.9768        12.080        .16422E-03   -1.5219    
   9  norm          .10000E-03    29.553        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     2.7145        2.3575        .85482E-04   -1.5378    
  11  Prefactor     .10000E-03    79.338        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     16.669        23.045        .98118E-04   -1.4891    
  13  norm          2.0951        3.1127        .12342E-03   -1.5418    
  14  Prefactor     .10000E-03    11.075        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    2.3888        .94224E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     11.685        97.512        .11672E-03   -1.5024    
  17  norm          5.8640        2.1092        .44397E-04   -1.5224    
  18  Prefactor     .10000E-03    14.836        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    .84865        .55848E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          5.5755        9.6224        .85074E-03   -1.5236    
  21  Prefactor     14.405        22.672        .10553E-03   -1.4949    
  22  Prefactor     .10000E-03    39.032        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          3.8038        1.7797        .54219E-04   -1.5318    
  24  Prefactor     .10000E-03    25.772        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          8.9354        4.1917        .83050E-04   -1.5110    
  26  Prefactor     .10000E-03    3.8295        .11938E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     2.2510        2.1841        .86748E-04   -1.5408    
  28  Prefactor     2.2098        2.1804        .88995E-04   -1.5411    
  29  Normalizat    1.0925        .25454        .22350E-03   -.89995    
  30  Prefactor     .64103        .27642        .32703E-03   -1.0589    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.91625e-09
Minuit parameter uncertainties:
  1  5.66737e-06
  2  126.272
  3  12.3866
  4  0.430116
  5  5.23677e-06
  6  1.48726e-06
  7  2.1344e-06
  8  12.0844
  9  0.000125032
  10  2.35761
  11  0.000650386
  12  23.0569
  13  3.11297
  14  2.80298e-05
  15  3.36341e-06
  16  67.6605
  17  2.10921
  18  4.96539e-05
  19  3.84267e-06
  20  9.62511
  21  22.6855
  22  2.17527e-06
  23  1.77976
  24  5.28603e-05
  25  4.19179
  26  8.26956e-06
  27  2.18413
  28  2.18048
  29  0.254822
  30  0.277008
Done.

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

Extracting fit parameters...

4FGL J1136.2+3407
   Spectrum: PowerLaw
306    Prefactor:  1.000e-04  3.363e-06  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.410e-01  2.770e-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.092e+00  2.548e-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: 7.43e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.80e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/948193/likelihoodResults_427766401_428025601_4FGL_J1136.2+3407_daily_bin727.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) = 3916.84276333
delta logL = -0.0019642633365

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 3916.84079902
delta logL = 4.33469722338e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5416       1.0000          .0000       10.000    
     3 'Normalizat'    1.0925       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .64104       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=   3916.841     FROM MIGRAD    STATUS=CONVERGED     98 CALLS      249 TOTAL
                     EDM=   .40E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    14.015        .94749E-02** at limit **
   2  Index         2.2051        5.6302        .50000        .57186E-06
   3  Normalizat    1.0924        .11846E-01    .22349E-03   -.24177E-03
   4  Prefactor     .64103        .13645E-01    .32704E-03   -.16201E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.20511
  Normalizat = 1.09245
  Prefactor  = 0.64103
 **********
 **   18 **HESSE 
 **********

 FCN=   3916.841     FROM HESSE     STATUS=NOT POSDEF    27 CALLS      276 TOTAL
                     EDM=   .38E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    131.33        .98526E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.2051        8.7007        .50000       -.59315    
   3  Normalizat    1.0924        .38241E-01    .44699E-04   -.89995    
   4  Prefactor     .64103        .44050E-01    .13081E-04   -1.0589    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.77575e-09
Minuit parameter uncertainties:
  1  0.000159949
  2  666.661
  3  0.0382423
  4  0.0440524
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/948193': 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) = 3916.84079732
delta logL = 1.74335173142e-06

Extracting fit parameters...

4FGL J1136.2+3407
   Spectrum: PowerLaw
306    Prefactor:  1.000e-04  1.599e-04  1.000e-04  1.000e+04 ( 1.000e-12)
307        Index:  2.205e+00  6.667e+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.410e-01  4.405e-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.092e+00  3.824e-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/948193/cmap_HighResolution_427766401_428025601_4FGL_J1136.2+3407_daily_bin727.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.80e-03', job_status='DONE', photon_flux_upper_limit='7.43e-08', time_completed='2021-09-04 05:16:34.958653', job_id='948193', GAL2='0.64', fit_tolerance='1e-08', EG2='1.09', EG='1.09', time_epoch_completed='1630757794.96', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.64', dlogl='1.74e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.55' WHERE bin_id='727' AND source_name='4FGL J1136.2+3407' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 05:16:34 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0221>
Subject: Job 948193: <4FGL_J1136.2+3407_daily_bin727> in cluster <slac> Done

Job <4FGL_J1136.2+3407_daily_bin727> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Sat Sep  4 05:01:26 2021
Job was executed on host(s) <bullet0221>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 05:01:28 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:28 2021
Terminated at Sat Sep  4 05:16:35 2021
Results reported at Sat Sep  4 05:16:35 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1136.2+3407_daily_bin727 174.075 34.129 427766401 428025601 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 :                                   701.29 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             237.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   907 sec.
    Turnaround time :                            909 sec.

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

