/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 51 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 = 7496
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1136.2+3407_daily_bin20
RA = 174.075, Dec = 34.129
tmin = 244512001, tmax = 244771201
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='944072', job_status='RUN', time_executed='2021-09-04 04:48:49.682540', time_epoch_executed='1630756129.68' WHERE source_name='4FGL J1136.2+3407' and cadence='daily' and bin_id='20'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/944072

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/944072/ft1_4FGL_J1136.2+3407_daily_bin20.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/944072/ft2_4FGL_J1136.2+3407_daily_bin20.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/944072/ft1_4FGL_J1136.2+3407_daily_bin20.fits outfile=/scratch/kocevski/944072/ft1_filteredMKT_4FGL_J1136.2+3407_daily_bin20.fits ra=174.075 dec=34.129 rad=12.0 tmin=244512001.0 tmax=244771201.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 1.43
user 1.23
sys 0.18

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/944072/ft1_filtered_4FGL_J1136.2+3407_daily_bin20.fits" evtable="EVENTS" scfile=/scratch/kocevski/944072/ft2_4FGL_J1136.2+3407_daily_bin20.fits sctable="SC_DATA" outfile=/scratch/kocevski/944072/ltcube_244512001_244771201_4FGL_J1136.2+3407_daily_bin20.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/944072/ft2_4FGL_J1136.2+3407_daily_bin20.fits
.....................!
real 12.37
user 11.96
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/944072/ft1_filtered_4FGL_J1136.2+3407_daily_bin20.fits evtable="EVENTS" scfile=/scratch/kocevski/944072/ft2_4FGL_J1136.2+3407_daily_bin20.fits sctable="SC_DATA" expcube=/scratch/kocevski/944072/ltcube_244512001_244771201_4FGL_J1136.2+3407_daily_bin20.fits outfile=/scratch/kocevski/944072/expmap_244512001_244771201_4FGL_J1136.2+3407_daily_bin20.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/944072/ltcube_244512001_244771201_4FGL_J1136.2+3407_daily_bin20.fits
.....................!
real 193.47
user 186.60
sys 4.79

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

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

This is gtbin version HEAD
real 0.53
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/944072/ft1_filtered_4FGL_J1136.2+3407_daily_bin20.fits scfile=/scratch/kocevski/944072/ft2_4FGL_J1136.2+3407_daily_bin20.fits outfile=/scratch/kocevski/944072/cmap_HighResolution_244512001_244771201_4FGL_J1136.2+3407_daily_bin20.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=174.075 yref=34.129 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.54
user 0.38
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    74.680       1.0000         .10000E-03   10000.    
     3 'Prefactor '    4.0143       1.0000         .10000E-03   10000.    
     4 'norm      '    1.4131       1.0000         .10000E-03   10000.    
     5 'Prefactor '    6.3998       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    25.605       1.0000         .10000E-03   10000.    
     9 'norm      '    .10275E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10089E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .85656       1.0000         .10000E-03   10000.    
    14 'Prefactor '    11.366       1.0000         .10000E-03   10000.    
    15 'Prefactor '    2.0694       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    1.3731       1.0000         .10000E-03   10000.    
    18 'Prefactor '    12.572       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    1.6561       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .24185E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    6.3346       1.0000         .10000E-03   10000.    
    26 'Prefactor '    12.365       1.0000         .10000E-03   10000.    
    27 'Prefactor '    2.2613       1.0000         .10000E-03   10000.    
    28 'Prefactor '    5.8007       1.0000         .10000E-03   10000.    
    29 'Normalizat'    1.0045       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .90156       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=   5035.062     FROM MIGRAD    STATUS=CONVERGED    781 CALLS     3900 TOTAL
                     EDM=   .68E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    13.384        .22862E-06** at limit **
   2  Prefactor     74.659        90.594       -.33778E-06   -.44914E-04
   3  Prefactor     4.0134        13.861       -.13177E-05   -.24496E-04
   4  norm          1.4131        .35526        .14503E-07   -.14282E-03
   5  Prefactor     6.4004        4.0924        .94451E-06   -.20029E-03
   6  Prefactor     .10000E-03    5.9336        .88542E-07** at limit **
   7  Prefactor     .10000E-03    25.037        .48053E-06** at limit **
   8  norm          25.604        14.338        .14273E-07   -.13747E-04
   9  norm          .10000E-03    18.200        .25156E-06** at limit **
  10  Prefactor     .10000E-03    1.5480       -.30117E-07** at limit **
  11  Prefactor     .10000E-03    28.734       -.54987E-06** at limit **
  12  Prefactor     .10000E-03    7.1758        .72342E-08** at limit **
  13  norm          .85651        2.0570        .33695E-06   -.31060E-05
  14  Prefactor     11.366        9.7296       -.60300E-08   -.98305E-05
  15  Prefactor     2.0683        5.2408        .85530E-06    .21024E-04
  16  Prefactor     .10000E-03    14.736       -.36684E-06** at limit **
  17  norm          1.3731        .98179       -.13802E-07   -.51686E-04
  18  Prefactor     12.574        19.593        .25855E-06   -.11177E-04
  19  Prefactor     .10000E-03    .74641       -.14990E-08** at limit **
  20  norm          .10000E-03    5.7827       -.47340E-07** at limit **
  21  Prefactor     .10000E-03    64.904        .10833E-05** at limit **
  22  Prefactor     .10000E-03    26.464        .87677E-07** at limit **
  23  norm          1.6557        1.1743        .37521E-07   -.49089E-04
  24  Prefactor     .10000E-03    118.20       -.80482E-06** at limit **
  25  norm          6.3328        4.3241        .63198E-07   -.14961E-04
  26  Prefactor     12.357        8.9038       -.11787E-08   -.10239E-04
  27  Prefactor     2.2612        2.2358       -.34823E-07    .10673E-04
  28  Prefactor     5.8004        3.1515        .89444E-08    .16003E-06
  29  Normalizat    1.0046        .19451       -.48215E-06   -.15667E-04
  30  Prefactor     .90139        .21581       -.19085E-06   -.22908E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 74.6591
  Prefactor  = 4.0134
  norm       = 1.41313
  Prefactor  = 6.40042
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 25.6039
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 0.856514
  Prefactor  = 11.3657
  Prefactor  = 2.06828
  Prefactor  = 0.0001
  norm       = 1.37307
  Prefactor  = 12.5735
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.65574
  Prefactor  = 0.000100001
  norm       = 6.33285
  Prefactor  = 12.3571
  Prefactor  = 2.26122
  Prefactor  = 5.8004
  Normalizat = 1.0046
  Prefactor  = 0.901387
 **********
 **   18 **HESSE 
 **********

 FCN=   5035.062     FROM HESSE     STATUS=OK           590 CALLS     4490 TOTAL
                     EDM=   .15E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    13.455        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     74.659        91.026        .23231E-03   -1.3978    
   3  Prefactor     4.0134        13.807        .20128E-03   -1.5307    
   4  norm          1.4131        .35550        .20471E-04   -1.5470    
   5  Prefactor     6.4004        4.0834        .49288E-03   -1.5202    
   6  Prefactor     .10000E-03    5.9484        .16882E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    25.572        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          25.604        14.326        .79166E-04   -1.4696    
   9  norm          .10000E-03    18.468        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    2.7519        .16711E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    29.048        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    7.1851        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .85651        1.9821        .14869E-03   -1.5523    
  14  Prefactor     11.366        9.7274        .11883E-03   -1.5034    
  15  Prefactor     2.0683        5.1841        .24192E-03   -1.5420    
  16  Prefactor     .10000E-03    14.863        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          1.3731        .97798        .56811E-04   -1.5474    
  18  Prefactor     12.574        19.617        .11297E-03   -1.4999    
  19  Prefactor     .10000E-03    .75524        .59757E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    5.7992        .16667E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    66.476        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    26.481        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          1.6557        1.1617        .62080E-04   -1.5451    
  24  Prefactor     .10000E-03    121.20        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          6.3328        4.3073        .10962E-03   -1.5205    
  26  Prefactor     12.357        8.9112        .11392E-03   -1.5005    
  27  Prefactor     2.2612        2.2388        .97907E-04   -1.5407    
  28  Prefactor     5.8004        3.1497        .87414E-04   -1.5226    
  29  Normalizat    1.0046        .22813        .24130E-03   -.92876    
  30  Prefactor     .90139        .25282        .29682E-03   -.96093    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.54863e-10
Minuit parameter uncertainties:
  1  7.40324e-05
  2  91.197
  3  13.8177
  4  0.355504
  5  4.08358
  6  1.4548e-05
  7  0.000116397
  8  14.3275
  9  6.33094e-05
  10  3.6443e-05
  11  0.000300507
  12  6.65899e-06
  13  1.98221
  14  9.72878
  15  5.18524
  16  0.000138278
  17  0.977989
  18  19.6268
  19  5.31948e-09
  20  1.13589e-05
  21  0.000290763
  22  4.15987e-05
  23  1.16172
  24  0.000557801
  25  4.30748
  26  8.91213
  27  2.23892
  28  3.1498
  29  0.228349
  30  0.253154
Done.

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

Extracting fit parameters...

4FGL J1136.2+3407
   Spectrum: PowerLaw
306    Prefactor:  2.068e+00  5.185e+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:  9.014e-01  2.532e-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.005e+00  2.283e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/944072/likelihoodResults_244512001_244771201_4FGL_J1136.2+3407_daily_bin20.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) = 5035.06146309
delta logL = 0.000671407284244

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5035.06107984
delta logL = 0.00105465826982

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.9061       1.0000         .10000E-03   10000.    
     2 'Index     '    2.6705       1.0000          .0000       10.000    
     3 'Normalizat'    1.0033       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .90267       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=   5035.061     FROM MIGRAD    STATUS=CONVERGED     61 CALLS      225 TOTAL
                     EDM=   .13E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.9081        76.351        .75293E-02    .68291E-03
   2  Index         2.6722        2.4910        .48306        .86032E-05
   3  Normalizat    1.0027        .25358E-01    .46208E-01    .72814E-05
   4  Prefactor     .90323        .29940E-01    .67041E-01    .44412E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.90814
  Index      = 2.67219
  Normalizat = 1.00269
  Prefactor  = 0.903229
 **********
 **   18 **HESSE 
 **********

 FCN=   5035.061     FROM HESSE     STATUS=OK            33 CALLS      258 TOTAL
                     EDM=   .11E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.9081        6.7175        .22949E-03   -1.5432    
   2  Index         2.6722        2.7047        .78404E-02   -.48427    
   3  Normalizat    1.0027        .22016        .24151E-03   -.92940    
   4  Prefactor     .90323        .25576        .29655E-03   -.96028    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.12446e-11
Minuit parameter uncertainties:
  1  6.72011
  2  2.90993
  3  0.220362
  4  0.2561
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/944072': 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) = 5035.06107614
delta logL = 0.00105835799241

Extracting fit parameters...

4FGL J1136.2+3407
   Spectrum: PowerLaw
306    Prefactor:  1.908e+00  6.720e+00  1.000e-04  1.000e+04 ( 1.000e-12)
307        Index:  2.672e+00  2.910e+00  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:  9.032e-01  2.561e-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.003e+00  2.204e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.19
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/944072/cmap_HighResolution_244512001_244771201_4FGL_J1136.2+3407_daily_bin20.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.85e-03', job_status='DONE', photon_flux_upper_limit='1.01e-07', time_completed='2021-09-04 05:01:52.721450', job_id='944072', GAL2='0.90', fit_tolerance='1e-08', EG2='1.00', EG='1.00', time_epoch_completed='1630756912.72', return_code2='0', ts='0.19', comment='SUCCESS', return_code='0', GAL='0.90', dlogl='1.06e-03', ts2='0.19', photon_index_error='0.00', photon_index='2.55' WHERE bin_id='20' AND source_name='4FGL J1136.2+3407' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 05:01:52 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0272>
Subject: Job 944072: <4FGL_J1136.2+3407_daily_bin20> in cluster <slac> Done

Job <4FGL_J1136.2+3407_daily_bin20> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Sat Sep  4 04:47:34 2021
Job was executed on host(s) <bullet0272>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 04:47:36 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Sep  4 04:47:36 2021
Terminated at Sat Sep  4 05:01:53 2021
Results reported at Sat Sep  4 05:01:53 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1136.2+3407_daily_bin20 174.075 34.129 244512001 244771201 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 :                                   779.16 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             279.77 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   856 sec.
    Turnaround time :                            859 sec.

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

