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


Performing analysis on: 4FGL_J1136.2+3407_daily_bin61
RA = 174.075, Dec = 34.129
tmin = 255139201, tmax = 255398401
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='945370', job_status='RUN', time_executed='2021-09-04 04:56:22.828648', time_epoch_executed='1630756582.83' WHERE source_name='4FGL J1136.2+3407' and cadence='daily' and bin_id='61'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/945370

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/945370/ft1_4FGL_J1136.2+3407_daily_bin61.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/945370/ft2_4FGL_J1136.2+3407_daily_bin61.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/945370/ft1_4FGL_J1136.2+3407_daily_bin61.fits outfile=/scratch/kocevski/945370/ft1_filteredMKT_4FGL_J1136.2+3407_daily_bin61.fits ra=174.075 dec=34.129 rad=12.0 tmin=255139201.0 tmax=255398401.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.78
user 7.38
sys 0.24

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/945370/ft1_filtered_4FGL_J1136.2+3407_daily_bin61.fits" evtable="EVENTS" scfile=/scratch/kocevski/945370/ft2_4FGL_J1136.2+3407_daily_bin61.fits sctable="SC_DATA" outfile=/scratch/kocevski/945370/ltcube_255139201_255398401_4FGL_J1136.2+3407_daily_bin61.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/945370/ft2_4FGL_J1136.2+3407_daily_bin61.fits
.....................!
real 14.03
user 13.44
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/945370/ft1_filtered_4FGL_J1136.2+3407_daily_bin61.fits evtable="EVENTS" scfile=/scratch/kocevski/945370/ft2_4FGL_J1136.2+3407_daily_bin61.fits sctable="SC_DATA" expcube=/scratch/kocevski/945370/ltcube_255139201_255398401_4FGL_J1136.2+3407_daily_bin61.fits outfile=/scratch/kocevski/945370/expmap_255139201_255398401_4FGL_J1136.2+3407_daily_bin61.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/945370/ltcube_255139201_255398401_4FGL_J1136.2+3407_daily_bin61.fits
.....................!
real 191.36
user 186.06
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/945370/ft1_filtered_4FGL_J1136.2+3407_daily_bin61.fits scfile=/scratch/kocevski/945370/ft2_4FGL_J1136.2+3407_daily_bin61.fits outfile=/scratch/kocevski/945370/cmap_255139201_255398401_4FGL_J1136.2+3407_daily_bin61.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.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/945370/ft1_filtered_4FGL_J1136.2+3407_daily_bin61.fits scfile=/scratch/kocevski/945370/ft2_4FGL_J1136.2+3407_daily_bin61.fits outfile=/scratch/kocevski/945370/cmap_HighResolution_255139201_255398401_4FGL_J1136.2+3407_daily_bin61.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.56
user 0.40
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    23.911       1.0000         .10000E-03   10000.    
     2 'Prefactor '    78.793       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    1.3652       1.0000         .10000E-03   10000.    
     5 'Prefactor '    3.2512       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10970E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    1.7599       1.0000         .10000E-03   10000.    
     8 'norm      '    12.884       1.0000         .10000E-03   10000.    
     9 'norm      '    .10013E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .20293E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    8.0563       1.0000         .10000E-03   10000.    
    15 'Prefactor '    1.2213       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .13239       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10035E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .63559       1.0000         .10000E-03   10000.    
    20 'norm      '    .12904E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    33.464       1.0000         .10000E-03   10000.    
    22 'Prefactor '    14.974       1.0000         .10000E-03   10000.    
    23 'norm      '    1.6812       1.0000         .10000E-03   10000.    
    24 'Prefactor '    32.303       1.0000         .10000E-03   10000.    
    25 'norm      '    5.2381       1.0000         .10000E-03   10000.    
    26 'Prefactor '    14.182       1.0000         .10000E-03   10000.    
    27 'Prefactor '    1.3440       1.0000         .10000E-03   10000.    
    28 'Prefactor '    8.6215       1.0000         .10000E-03   10000.    
    29 'Normalizat'    .68010       1.0000         .10000E-01   10.000    
    30 'Prefactor '    1.0223       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=   4113.324     FROM MIGRAD    STATUS=CONVERGED    787 CALLS     4011 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     23.905        38.110        .18751E-05   -.37528E-04
   2  Prefactor     78.906        80.876        .77801E-04    .51527E-06
   3  Prefactor     .10000E-03    4.8472       -.70962E-07** at limit **
   4  norm          1.3653        .44996       -.72980E-07   -.23957E-02
   5  Prefactor     3.2510        2.7781        .92194E-07   -.56225E-04
   6  Prefactor     .10000E-03    23.124        .20714E-04** at limit **
   7  Prefactor     1.7568        53.572        .22422E-05   -.20916E-03
   8  norm          12.886        14.092       -.16521E-05   -.22640E-03
   9  norm          .10000E-03    5.6946        .37229E-06** at limit **
  10  Prefactor     .10000E-03    1.6391       -.24492E-07** at limit **
  11  Prefactor     .10000E-03    33.965        .16535E-04** at limit **
  12  Prefactor     .10000E-03    6.4714       -.42563E-06** at limit **
  13  norm          .10000E-03    1.3272       -.12686E-07** at limit **
  14  Prefactor     8.0565        8.8795        .29158E-06    .84337E-05
  15  Prefactor     1.2273        4.9670       -.55864E-06   -.68939E-03
  16  Prefactor     .10000E-03    27.925       -.32778E-04** at limit **
  17  norm          .13057        .51059       -.96081E-06   -.12567E-02
  18  Prefactor     .10000E-03    16.252       -.40409E-05** at limit **
  19  Prefactor     .63435        1.4442        .19445E-06   -.41321E-03
  20  norm          .10000E-03    12.367        .87922E-06** at limit **
  21  Prefactor     33.485        34.391       -.10437E-05    .31164E-04
  22  Prefactor     14.920        42.876        .21438E-04    .73910E-04
  23  norm          1.6812        1.2133        .78616E-07    .28126E-04
  24  Prefactor     32.275        44.428       -.58258E-05    .16450E-04
  25  norm          5.2379        3.0529        .92426E-07    .35799E-04
  26  Prefactor     14.182        10.678        .51283E-06   -.12111E-04
  27  Prefactor     1.3441        1.3952       -.50750E-07    .23388E-03
  28  Prefactor     8.6217        3.7462        .12147E-06   -.36986E-04
  29  Normalizat    .67969        .20517       -.97141E-06    .51230E-04
  30  Prefactor     1.0230        .22487       -.10151E-05    .17104E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 23.9048
  Prefactor  = 78.9064
  Prefactor  = 0.0001
  norm       = 1.36525
  Prefactor  = 3.25099
  Prefactor  = 0.0001
  Prefactor  = 1.75682
  norm       = 12.8857
  norm       = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 8.0565
  Prefactor  = 1.22729
  Prefactor  = 0.0001
  norm       = 0.130566
  Prefactor  = 0.0001
  Prefactor  = 0.634354
  norm       = 0.0001
  Prefactor  = 33.4855
  Prefactor  = 14.9204
  norm       = 1.68122
  Prefactor  = 32.2746
  norm       = 5.23793
  Prefactor  = 14.1817
  Prefactor  = 1.34408
  Prefactor  = 8.62175
  Normalizat = 0.679693
  Prefactor  = 1.02301
 **********
 **   18 **HESSE 
 **********

 FCN=   4113.324     FROM HESSE     STATUS=OK           600 CALLS     4611 TOTAL
                     EDM=   .25E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     23.905        38.104        .81918E-04   -1.4730    
   2  Prefactor     78.906        80.718        .22621E-03   -1.3929    
   3  Prefactor     .10000E-03    4.8535        .13788E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          1.3653        .45118        .21709E-04   -1.5474    
   5  Prefactor     3.2510        2.7799        .94894E-04   -1.5347    
   6  Prefactor     .10000E-03    23.293        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     1.7568        53.750        .31587E-03   -1.5443    
   8  norm          12.886        14.055        .11160E-03   -1.4990    
   9  norm          .10000E-03    5.7359        .14945E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    5.4292        .15161E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    34.022        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    6.4807        .15933E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    1.3580        .14393E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     8.0565        8.8773        .14126E-03   -1.5140    
  15  Prefactor     1.2273        4.7620        .25998E-03   -1.5486    
  16  Prefactor     .10000E-03    27.990        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .13057        .59126        .84352E-03   -1.5636    
  18  Prefactor     .10000E-03    16.339        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .63435        1.2418        .11155E-02   -1.5549    
  20  norm          .10000E-03    12.646        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     33.485        34.366        .69270E-04   -1.4550    
  22  Prefactor     14.920        42.377        .10351E-03   -1.4935    
  23  norm          1.6812        1.2064        .57334E-04   -1.5449    
  24  Prefactor     32.275        44.394        .70500E-04   -1.4571    
  25  norm          5.2379        3.0516        .81375E-04   -1.5250    
  26  Prefactor     14.182        10.671        .10636E-03   -1.4955    
  27  Prefactor     1.3441        1.4117        .74461E-04   -1.5476    
  28  Prefactor     8.6217        3.7438        .77379E-04   -1.5121    
  29  Normalizat    .67969        .22986        .25870E-03   -1.0470    
  30  Prefactor     1.0230        .25653        .25326E-03   -.91967    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.45652e-09
Minuit parameter uncertainties:
  1  38.143
  2  80.8307
  3  1.47719e-06
  4  0.451182
  5  2.77998
  6  0.000124344
  7  19.4536
  8  14.0589
  9  7.87202e-06
  10  0.000157205
  11  2.53427e-05
  12  7.58281e-06
  13  1.52018e-06
  14  8.87872
  15  4.76344
  16  8.31959e-05
  17  0.555489
  18  4.08979e-05
  19  1.24189
  20  0.000115517
  21  34.3865
  22  42.4625
  23  1.20642
  24  44.4399
  25  3.05166
  26  10.6726
  27  1.41175
  28  3.74391
  29  0.230181
  30  0.256838
Done.

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

Extracting fit parameters...

4FGL J1136.2+3407
   Spectrum: PowerLaw
306    Prefactor:  1.227e+00  4.763e+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.023e+00  2.568e-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:  6.797e-01  2.302e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/945370/likelihoodResults_255139201_255398401_4FGL_J1136.2+3407_daily_bin61.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) = 4113.31724825
delta logL = 0.00709830176947

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4113.31684134
delta logL = 0.00750521427199

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.1252       1.0000         .10000E-03   10000.    
     2 'Index     '    2.7862       1.0000          .0000       10.000    
     3 'Normalizat'    .67745       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0245       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=   4113.317     FROM MIGRAD    STATUS=CONVERGED     58 CALLS      216 TOTAL
                     EDM=   .19E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.1214        95.192        .11041E-01    .70781E-03
   2  Index         2.7955        3.6060        .42699        .19361E-07
   3  Normalizat    .67734        .25758E-01    .41989E-01   -.82974E-05
   4  Prefactor     1.0246        .30671E-01    .41722E-01   -.42764E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.1214
  Index      = 2.79551
  Normalizat = 0.677342
  Prefactor  = 1.02458
 **********
 **   18 **HESSE 
 **********

 FCN=   4113.317     FROM HESSE     STATUS=OK            33 CALLS      249 TOTAL
                     EDM=   .21E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.1214        4.7709        .22630E-03   -1.5496    
   2  Index         2.7955        2.0693        .10804E-01   -.45660    
   3  Normalizat    .67734        .21538        .25912E-03   -1.0479    
   4  Prefactor     1.0246        .25354        .25309E-03   -.91915    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.05593e-11
Minuit parameter uncertainties:
  1  4.62645
  2  2.15065
  3  0.215648
  4  0.253839
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/945370': 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) = 4113.31682992
delta logL = 0.00751663417759

Extracting fit parameters...

4FGL J1136.2+3407
   Spectrum: PowerLaw
306    Prefactor:  1.121e+00  4.626e+00  1.000e-04  1.000e+04 ( 1.000e-12)
307        Index:  2.796e+00  2.151e+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:  1.025e+00  2.538e-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:  6.773e-01  2.156e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.08
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/945370/cmap_HighResolution_255139201_255398401_4FGL_J1136.2+3407_daily_bin61.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.42e-03', job_status='DONE', photon_flux_upper_limit='9.50e-08', time_completed='2021-09-04 05:08:46.112216', job_id='945370', GAL2='1.02', fit_tolerance='1e-08', EG2='0.68', EG='0.68', time_epoch_completed='1630757326.11', return_code2='0', ts='0.08', comment='SUCCESS', return_code='0', GAL='1.02', dlogl='7.52e-03', ts2='0.09', photon_index_error='0.00', photon_index='2.55' WHERE bin_id='61' AND source_name='4FGL J1136.2+3407' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 05:08:46 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0224>
Subject: Job 945370: <4FGL_J1136.2+3407_daily_bin61> in cluster <slac> Done

Job <4FGL_J1136.2+3407_daily_bin61> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Sat Sep  4 04:52:15 2021
Job was executed on host(s) <bullet0224>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 04:52:17 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:52:17 2021
Terminated at Sat Sep  4 05:08:48 2021
Results reported at Sat Sep  4 05:08:48 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1136.2+3407_daily_bin61 174.075 34.129 255139201 255398401 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 :                                   738.37 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             228.56 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   989 sec.
    Turnaround time :                            993 sec.

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

