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


Performing analysis on: 4FGL_J1136.2+3407_daily_bin928
RA = 174.075, Dec = 34.129
tmin = 479865601, tmax = 480124801
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='950014', job_status='RUN', time_executed='2021-09-04 05:09:11.772286', time_epoch_executed='1630757351.77' WHERE source_name='4FGL J1136.2+3407' and cadence='daily' and bin_id='928'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/950014

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/950014/ft1_4FGL_J1136.2+3407_daily_bin928.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/950014/ft2_4FGL_J1136.2+3407_daily_bin928.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/950014/ft1_4FGL_J1136.2+3407_daily_bin928.fits outfile=/scratch/kocevski/950014/ft1_filteredMKT_4FGL_J1136.2+3407_daily_bin928.fits ra=174.075 dec=34.129 rad=12.0 tmin=479865601.0 tmax=480124801.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.45
user 3.22
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/950014/ft1_filtered_4FGL_J1136.2+3407_daily_bin928.fits" evtable="EVENTS" scfile=/scratch/kocevski/950014/ft2_4FGL_J1136.2+3407_daily_bin928.fits sctable="SC_DATA" outfile=/scratch/kocevski/950014/ltcube_479865601_480124801_4FGL_J1136.2+3407_daily_bin928.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/950014/ft2_4FGL_J1136.2+3407_daily_bin928.fits
.....................!
real 15.11
user 14.76
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/950014/ft1_filtered_4FGL_J1136.2+3407_daily_bin928.fits evtable="EVENTS" scfile=/scratch/kocevski/950014/ft2_4FGL_J1136.2+3407_daily_bin928.fits sctable="SC_DATA" expcube=/scratch/kocevski/950014/ltcube_479865601_480124801_4FGL_J1136.2+3407_daily_bin928.fits outfile=/scratch/kocevski/950014/expmap_479865601_480124801_4FGL_J1136.2+3407_daily_bin928.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/950014/ltcube_479865601_480124801_4FGL_J1136.2+3407_daily_bin928.fits
.....................!
real 190.64
user 185.39
sys 4.89

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

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

This is gtbin version HEAD
real 0.54
user 0.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/950014/ft1_filtered_4FGL_J1136.2+3407_daily_bin928.fits scfile=/scratch/kocevski/950014/ft2_4FGL_J1136.2+3407_daily_bin928.fits outfile=/scratch/kocevski/950014/cmap_HighResolution_479865601_480124801_4FGL_J1136.2+3407_daily_bin928.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.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    1.0579       1.0000         .10000E-03   10000.    
     5 'Prefactor '    1.5995       1.0000         .10000E-03   10000.    
     6 'Prefactor '    36.879       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    5.3837       1.0000         .10000E-03   10000.    
    10 'Prefactor '    2.8986       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10077E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    2.6113       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    1.6669       1.0000         .10000E-03   10000.    
    16 'Prefactor '    3.0376       1.0000         .10000E-03   10000.    
    17 'norm      '    3.1714       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .41653       1.0000         .10000E-03   10000.    
    19 'Prefactor '    5.8359       1.0000         .10000E-03   10000.    
    20 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    21.901       1.0000         .10000E-03   10000.    
    23 'norm      '    4.1095       1.0000         .10000E-03   10000.    
    24 'Prefactor '    2.1633       1.0000         .10000E-03   10000.    
    25 'norm      '    11.749       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .24487       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    29 'Normalizat'    .79363       1.0000         .10000E-01   10.000    
    30 'Prefactor '    1.0020       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=   5910.803     FROM MIGRAD    STATUS=CONVERGED    781 CALLS     3414 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    45.512       -.17271E-04** at limit **
   2  Prefactor     .10000E-03    71.751        .33389E-04** at limit **
   3  Prefactor     .10000E-03    4.9807       -.76342E-07** at limit **
   4  norm          1.0580        .31441        .68935E-08   -.26932E-03
   5  Prefactor     1.5993        1.8723        .86441E-07   -.29690E-03
   6  Prefactor     36.887        16.292        .66493E-06   -.29788E-04
   7  Prefactor     .10000E-03    10.362        .16308E-06** at limit **
   8  norm          .10000E-03    2.5445       -.54766E-07** at limit **
   9  norm          5.3834        10.863        .55059E-06   -.21105E-03
  10  Prefactor     2.8994        2.1511        .39274E-07   -.36208E-03
  11  Prefactor     .10000E-03    18.323       -.10656E-05** at limit **
  12  Prefactor     .10000E-03    27.459        .47297E-05** at limit **
  13  norm          2.6116        2.2279       -.98530E-06   -.10705E-02
  14  Prefactor     .10000E-03    4.5382        .67958E-07** at limit **
  15  Prefactor     1.6677        5.5173       -.10248E-05   -.10401E-02
  16  Prefactor     3.0607        188.66        .94084E-04    .33103E-05
  17  norm          3.1715        1.3946       -.14614E-05   -.96245E-03
  18  Prefactor     .61940        15.056        .27015E-05   -.49790E-03
  19  Prefactor     5.8323        2.4348        .56071E-07   -.95383E-03
  20  norm          .10000E-03    5.5587        .17415E-06** at limit **
  21  Prefactor     .10000E-03    7.5453       -.17719E-06** at limit **
  22  Prefactor     21.906        36.654        .73488E-05   -.87300E-04
  23  norm          4.1083        1.4998        .45553E-07   -.10670E-02
  24  Prefactor     2.1652        61.660        .13628E-04   -.55198E-04
  25  norm          11.750        4.4167        .88937E-07    .20522E-03
  26  Prefactor     .10000E-03    2.5104       -.25781E-07** at limit **
  27  Prefactor     .24394        1.9624       -.32160E-06   -.26315E-03
  28  Prefactor     .10000E-03    .85902        .10761E-08** at limit **
  29  Normalizat    .79332        .18518       -.41727E-05   -.35532E-03
  30  Prefactor     1.0021        .20266        .11167E-05   -.43604E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.05804
  Prefactor  = 1.59931
  Prefactor  = 36.8866
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 5.38341
  Prefactor  = 2.89942
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.61162
  Prefactor  = 0.0001
  Prefactor  = 1.66774
  Prefactor  = 3.06068
  norm       = 3.17149
  Prefactor  = 0.619399
  Prefactor  = 5.83228
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 21.9057
  norm       = 4.10834
  Prefactor  = 2.16519
  norm       = 11.7504
  Prefactor  = 0.0001
  Prefactor  = 0.243944
  Prefactor  = 0.0001
  Normalizat = 0.793315
  Prefactor  = 1.00215
 **********
 **   18 **HESSE 
 **********

 FCN=   5910.803     FROM HESSE     STATUS=OK           588 CALLS     4002 TOTAL
                     EDM=   .13E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    45.807        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    71.437        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    5.0162        .16752E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          1.0580        .31531        .22130E-04   -1.5502    
   5  Prefactor     1.5993        1.8539        .10957E-03   -1.5455    
   6  Prefactor     36.887        16.342        .65996E-04   -1.4493    
   7  Prefactor     .10000E-03    10.392        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    2.5451        .11976E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          5.3834        10.872        .17320E-03   -1.5244    
  10  Prefactor     2.8994        2.1338        .90156E-04   -1.5367    
  11  Prefactor     .10000E-03    18.335        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    28.408        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          2.6116        2.2129        .98032E-04   -1.5385    
  14  Prefactor     .10000E-03    4.5525        .15993E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     1.6677        5.5186        .30058E-03   -1.5450    
  16  Prefactor     3.0607        183.00        .23281E-03   -1.5358    
  17  norm          3.1715        1.3913        .48676E-04   -1.5352    
  18  Prefactor     .61940        127.02        .53157E-02   -1.5551    
  19  Prefactor     5.8323        2.4266        .72141E-04   -1.5225    
  20  norm          .10000E-03    5.6056        .17701E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    7.5558        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     21.906        36.606        .85590E-04   -1.4772    
  23  norm          4.1083        1.4960        .53502E-04   -1.5303    
  24  Prefactor     2.1652        61.234        .28004E-03   -1.5414    
  25  norm          11.750        4.5362        .81041E-04   -1.5022    
  26  Prefactor     .10000E-03    2.5167        .11895E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .24394        8.1608        .17660E-02   -1.5609    
  28  Prefactor     .10000E-03    .87859        .69515E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    .79332        .21262        .25398E-03   -1.0032    
  30  Prefactor     1.0021        .23466        .27386E-03   -.92658    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.28305e-08
Minuit parameter uncertainties:
  1  0.000346352
  2  1.17967e-05
  3  1.12822e-05
  4  0.315308
  5  1.85394
  6  16.3441
  7  5.00158e-06
  8  8.33614e-07
  9  10.8759
  10  2.13384
  11  8.27969e-06
  12  0.000101836
  13  2.21297
  14  6.33464e-06
  15  5.52025
  16  47.4846
  17  1.39126
  18  17.7769
  19  2.42663
  20  1.90031e-05
  21  3.64354e-07
  22  36.6431
  23  1.49599
  24  23.0544
  25  4.53633
  26  3.90423e-07
  27  2.82174
  28  2.0013e-06
  29  0.212838
  30  0.2349
Done.

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

Extracting fit parameters...

4FGL J1136.2+3407
   Spectrum: PowerLaw
306    Prefactor:  1.668e+00  5.520e+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:  1.002e+00  2.349e-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:  7.933e-01  2.128e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/950014/likelihoodResults_479865601_480124801_4FGL_J1136.2+3407_daily_bin928.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) = 5910.74508158
delta logL = 0.0577661529442

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5910.54129078
delta logL = 0.26155695895

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .17317E-01   1.0000         .10000E-03   10000.    
     2 'Index     '    6.3134       1.0000          .0000       10.000    
     3 'Normalizat'    .75247       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0404       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=   5910.541     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      264 TOTAL
                     EDM=   .67E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .16849E-01    .30376        .28817E-02    .78830E-02
   2  Index         6.3286        3.1316        .20915        .86716E-04
   3  Normalizat    .75299        .26972E-01    .42987E-01    .12446E-04
   4  Prefactor     1.0401        .32557E-01    .60966E-01   -.26211E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0168493
  Index      = 6.32861
  Normalizat = 0.752992
  Prefactor  = 1.04006
 **********
 **   18 **HESSE 
 **********

 FCN=   5910.541     FROM HESSE     STATUS=NOT POSDEF    35 CALLS      299 TOTAL
                     EDM=   .47E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .16849E-01    1.4454        .13038E-03   -1.5682    
   2  Index         6.3286        7.9356        .83651E-02    .26895    
   3  Normalizat    .75299        .12646        .26004E-03   -1.0184    
   4  Prefactor     1.0401        .14991        .26961E-03   -.91406    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.652e-09
Minuit parameter uncertainties:
  1  0.311191
  2  10.9459
  3  0.126509
  4  0.149974
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/950014': 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) = 5910.54128245
delta logL = 0.26156528686

Extracting fit parameters...

4FGL J1136.2+3407
   Spectrum: PowerLaw
306    Prefactor:  1.685e-02  3.112e-01  1.000e-04  1.000e+04 ( 1.000e-12)
307        Index:  6.329e+00  1.095e+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:  1.040e+00  1.500e-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:  7.530e-01  1.265e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.11
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/950014/cmap_HighResolution_479865601_480124801_4FGL_J1136.2+3407_daily_bin928.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.44e-03', job_status='DONE', photon_flux_upper_limit='9.53e-08', time_completed='2021-09-04 05:23:21.948926', job_id='950014', GAL2='1.04', fit_tolerance='1e-08', EG2='0.75', EG='0.79', time_epoch_completed='1630758201.95', return_code2='102', ts='0.11', comment='SUCCESS', return_code='0', GAL='1.00', dlogl='2.62e-01', ts2='0.68', photon_index_error='0.00', photon_index='2.55' WHERE bin_id='928' AND source_name='4FGL J1136.2+3407' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 05:23:21 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0254>
Subject: Job 950014: <4FGL_J1136.2+3407_daily_bin928> in cluster <slac> Done

Job <4FGL_J1136.2+3407_daily_bin928> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sat Sep  4 05:06:53 2021
Job was executed on host(s) <bullet0254>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 05:06:54 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:06:54 2021
Terminated at Sat Sep  4 05:23:22 2021
Results reported at Sat Sep  4 05:23:22 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1136.2+3407_daily_bin928 174.075 34.129 479865601 480124801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1136.2+3407 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   847.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             298.57 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   988 sec.
    Turnaround time :                            989 sec.

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

