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


Performing analysis on: 4FGL_J1136.2+3407_daily_bin876
RA = 174.075, Dec = 34.129
tmin = 466387201, tmax = 466646401
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='949935', job_status='RUN', time_executed='2021-09-04 05:06:57.244754', time_epoch_executed='1630757217.24' WHERE source_name='4FGL J1136.2+3407' and cadence='daily' and bin_id='876'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/949935

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/949935/ft1_4FGL_J1136.2+3407_daily_bin876.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/949935/ft2_4FGL_J1136.2+3407_daily_bin876.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/949935/ft1_4FGL_J1136.2+3407_daily_bin876.fits outfile=/scratch/kocevski/949935/ft1_filteredMKT_4FGL_J1136.2+3407_daily_bin876.fits ra=174.075 dec=34.129 rad=12.0 tmin=466387201.0 tmax=466646401.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.63
user 3.40
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/949935/ft1_filtered_4FGL_J1136.2+3407_daily_bin876.fits" evtable="EVENTS" scfile=/scratch/kocevski/949935/ft2_4FGL_J1136.2+3407_daily_bin876.fits sctable="SC_DATA" outfile=/scratch/kocevski/949935/ltcube_466387201_466646401_4FGL_J1136.2+3407_daily_bin876.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/949935/ft2_4FGL_J1136.2+3407_daily_bin876.fits
.....................!
real 11.89
user 11.46
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/949935/ft1_filtered_4FGL_J1136.2+3407_daily_bin876.fits evtable="EVENTS" scfile=/scratch/kocevski/949935/ft2_4FGL_J1136.2+3407_daily_bin876.fits sctable="SC_DATA" expcube=/scratch/kocevski/949935/ltcube_466387201_466646401_4FGL_J1136.2+3407_daily_bin876.fits outfile=/scratch/kocevski/949935/expmap_466387201_466646401_4FGL_J1136.2+3407_daily_bin876.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/949935/ltcube_466387201_466646401_4FGL_J1136.2+3407_daily_bin876.fits
.....................!
real 191.58
user 186.89
sys 4.29

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/949935/ft1_filtered_4FGL_J1136.2+3407_daily_bin876.fits scfile=/scratch/kocevski/949935/ft2_4FGL_J1136.2+3407_daily_bin876.fits outfile=/scratch/kocevski/949935/cmap_466387201_466646401_4FGL_J1136.2+3407_daily_bin876.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.38
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/949935/ft1_filtered_4FGL_J1136.2+3407_daily_bin876.fits scfile=/scratch/kocevski/949935/ft2_4FGL_J1136.2+3407_daily_bin876.fits outfile=/scratch/kocevski/949935/cmap_HighResolution_466387201_466646401_4FGL_J1136.2+3407_daily_bin876.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.39
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    152.99       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    1.4217       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10402E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    17.897       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .33893E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    2.1243       1.0000         .10000E-03   10000.    
    13 'norm      '    5.5628       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10052E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    5.4155       1.0000         .10000E-03   10000.    
    16 'Prefactor '    46.466       1.0000         .10000E-03   10000.    
    17 'norm      '    .10092E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    2.8244       1.0000         .10000E-03   10000.    
    19 'Prefactor '    3.2025       1.0000         .10000E-03   10000.    
    20 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10252E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    3.2144       1.0000         .10000E-03   10000.    
    24 'Prefactor '    11.203       1.0000         .10000E-03   10000.    
    25 'norm      '    4.8891       1.0000         .10000E-03   10000.    
    26 'Prefactor '    6.3924       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    8.5668       1.0000         .10000E-03   10000.    
    29 'Normalizat'    .97239       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .78138       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=   5964.776     FROM MIGRAD    STATUS=CONVERGED    763 CALLS     3920 TOTAL
                     EDM=   .58E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    17.974        .10303E-06** at limit **
   2  Prefactor     152.99        101.78        .10120E-06    .10503E-04
   3  Prefactor     .10000E-03    3.2062        .93669E-08** at limit **
   4  norm          1.4217        .32282       -.79153E-08    .20888E-04
   5  Prefactor     .10000E-03    1.1208        .23159E-07** at limit **
   6  Prefactor     .10000E-03    5.1728       -.63552E-07** at limit **
   7  Prefactor     .10000E-03    5.0022        .18063E-06** at limit **
   8  norm          .10000E-03    4.9227       -.66746E-07** at limit **
   9  norm          17.899        11.071        .14123E-06   -.41707E-04
  10  Prefactor     .10004E-03    .99580        .37364E-09** at limit **
  11  Prefactor     .10000E-03    43.288       -.15606E-05** at limit **
  12  Prefactor     2.1257        20.592       -.22874E-07   -.26381E-04
  13  norm          5.5634        2.7231        .20968E-06    .34674E-03
  14  Prefactor     .10000E-03    8.6175       -.17402E-06** at limit **
  15  Prefactor     5.4169        4.1476        .14120E-05   -.43276E-03
  16  Prefactor     46.446        33.408       -.29303E-05   -.25623E-03
  17  norm          .10000E-03    .36405       -.33451E-06** at limit **
  18  Prefactor     2.8225        12.896        .38801E-06   -.16333E-04
  19  Prefactor     3.2025        2.0948       -.32562E-07   -.26568E-04
  20  norm          .10000E-03    2.7524       -.15249E-07** at limit **
  21  Prefactor     .10000E-03    35.973        .22562E-05** at limit **
  22  Prefactor     .10000E-03    27.612       -.95871E-06** at limit **
  23  norm          3.2144        1.2573       -.86128E-08   -.20967E-04
  24  Prefactor     11.198        24.443       -.12411E-05   -.61139E-04
  25  norm          4.8891        2.6005       -.23169E-06   -.48673E-03
  26  Prefactor     6.3927        9.1057        .11904E-06   -.68227E-05
  27  Prefactor     .10000E-03    .95813       -.78726E-07** at limit **
  28  Prefactor     8.5668        3.1154       -.12288E-06   -.34928E-03
  29  Normalizat    .97230        .17061        .93322E-06    .60081E-04
  30  Prefactor     .78154        .19324       -.70591E-06    .10542E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 152.995
  Prefactor  = 0.0001
  norm       = 1.42169
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 17.8987
  Prefactor  = 0.000100035
  Prefactor  = 0.000100001
  Prefactor  = 2.12574
  norm       = 5.56341
  Prefactor  = 0.0001
  Prefactor  = 5.41685
  Prefactor  = 46.4461
  norm       = 0.0001
  Prefactor  = 2.82249
  Prefactor  = 3.20251
  norm       = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 3.21443
  Prefactor  = 11.1978
  norm       = 4.88908
  Prefactor  = 6.3927
  Prefactor  = 0.0001
  Prefactor  = 8.56678
  Normalizat = 0.972298
  Prefactor  = 0.781543
 **********
 **   18 **HESSE 
 **********

 FCN=   5964.776     FROM HESSE     STATUS=OK           588 CALLS     4508 TOTAL
                     EDM=   .39E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    18.047        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     152.99        101.85        .32589E-04   -1.3228    
   3  Prefactor     .10000E-03    3.2102        .13505E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          1.4217        .32340        .20214E-04   -1.5469    
   5  Prefactor     .10000E-03    2.0687        .15869E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    5.1895        .17153E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    5.0125        .16870E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    4.9420        .16736E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          17.899        11.094        .47336E-03   -1.4862    
  10  Prefactor     .10004E-03    12.646        .14421E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    43.597        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     2.1257        20.522        .28293E-03   -1.5416    
  13  norm          5.5634        2.6782        .82455E-04   -1.5236    
  14  Prefactor     .10000E-03    8.7117        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     5.4169        4.4219        .69863E-03   -1.5242    
  16  Prefactor     46.446        34.965        .58820E-04   -1.4344    
  17  norm          .10000E-03    .50724        .86878E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     2.8225        12.803        .24200E-03   -1.5372    
  19  Prefactor     3.2025        2.0888        .85523E-04   -1.5350    
  20  norm          .10000E-03    2.7534        .12513E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    36.658        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    27.666        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          3.2144        1.2561        .51934E-04   -1.5349    
  24  Prefactor     11.198        24.582        .11969E-03   -1.5039    
  25  norm          4.8891        2.6061        .87465E-04   -1.5266    
  26  Prefactor     6.3927        9.0997        .15875E-03   -1.5202    
  27  Prefactor     .10000E-03    .97010        .73607E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     8.5668        3.1198        .78850E-04   -1.5123    
  29  Normalizat    .97230        .20163        .22993E-03   -.93964    
  30  Prefactor     .78154        .22750        .30010E-03   -1.0041    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.91451e-09
Minuit parameter uncertainties:
  1  7.84896e-06
  2  101.966
  3  1.97987e-06
  4  0.323398
  5  1.62931e-05
  6  9.02134e-06
  7  9.08264e-06
  8  9.64894e-06
  9  11.0953
  10  0.00133944
  11  0.000378206
  12  13.2154
  13  2.67825
  14  2.41293e-05
  15  4.4222
  16  34.9804
  17  2.69478e-05
  18  12.0267
  19  2.08886
  20  2.37324e-06
  21  0.000286127
  22  8.7163e-05
  23  1.25614
  24  24.604
  25  2.6062
  26  9.10167
  27  3.66385e-06
  28  3.11981
  29  0.201784
  30  0.227769
Done.

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

Extracting fit parameters...

4FGL J1136.2+3407
   Spectrum: PowerLaw
306    Prefactor:  5.417e+00  4.422e+00  1.000e-04  1.000e+04 ( 1.000e-12)
307        Index:  2.553e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
308        Scale:  6.244e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
623    Prefactor:  7.815e-01  2.278e-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:  9.723e-01  2.018e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.60
Ra Dec: 174.075 34.129
Photon Index (Fixed Index): 2.55 +/- 0.00
Photon Flux (Fixed Index): 3.75e-08 +/- 3.06e-08
Energy Flux (Fixed Index): 1.03e-05 +/- 8.40e-06

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

Saving results to:
/scratch/kocevski/949935/likelihoodResults_466387201_466646401_4FGL_J1136.2+3407_daily_bin876.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) = 5964.63140433
delta logL = 0.14439580907

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5964.62780659
delta logL = 0.147993548358

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.0848       1.0000         .10000E-03   10000.    
     2 'Index     '    3.0057       1.0000          .0000       10.000    
     3 'Normalizat'    .95513       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .79480       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=   5964.628     FROM MIGRAD    STATUS=CONVERGED     87 CALLS      297 TOTAL
                     EDM=   .66E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.0846        4.8614        .10976E-03    .32139E-03
   2  Index         3.0057        .95674        .79305E-02    .46624E-04
   3  Normalizat    .95481        .19538        .23174E-03   -.85261E-04
   4  Prefactor     .79515        .22803        .29776E-03   -.11443E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.08463
  Index      = 3.00565
  Normalizat = 0.954806
  Prefactor  = 0.795153
 **********
 **   18 **HESSE 
 **********

 FCN=   5964.628     FROM HESSE     STATUS=OK            25 CALLS      322 TOTAL
                     EDM=   .55E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.0846        4.4198        .43905E-05   -1.5304    
   2  Index         3.0057        .87007        .31722E-03   -.41028    
   3  Normalizat    .95481        .19534        .92698E-05   -.94560    
   4  Prefactor     .79515        .22801        .11910E-04   -.99907    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.47349e-11
Minuit parameter uncertainties:
  1  4.42018
  2  0.875375
  3  0.195487
  4  0.228284
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/949935': 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) = 5964.62780502
delta logL = 0.147995121871

Extracting fit parameters...

4FGL J1136.2+3407
   Spectrum: PowerLaw
306    Prefactor:  4.085e+00  4.420e+00  1.000e-04  1.000e+04 ( 1.000e-12)
307        Index:  3.006e+00  8.754e-01  0.000e+00  1.000e+01 (-1.000e+00)
308        Scale:  6.244e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
623    Prefactor:  7.952e-01  2.283e-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:  9.548e-01  1.955e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.89
Ra Dec: 174.075 34.129
Photon Index (Free Index): 3.01 +/- 0.88
Photon Flux (Free Index): 5.02e-08 +/- 4.16e-08
Energy Flux (Free Index): 9.98e-06 +/- 7.40e-06

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/949935/cmap_HighResolution_466387201_466646401_4FGL_J1136.2+3407_daily_bin876.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.25e-03', comment='SUCCESS', photon_flux='3.75e-08', energy_flux2='9.98e-06', photon_flux_error='3.06e-08', dlogl='1.48e-01', energy_flux='1.03e-05', photon_flux2='5.02e-08', job_status='DONE', time_completed='2021-09-04 05:21:54.827770', photon_index_error2='0.88', photon_index2='3.01', ts='2.60', fit_tolerance='1e-08', GAL='0.78', photon_index_error='0.00', photon_flux_upper_limit='1.06e-07', energy_flux_error2='7.40e-06', EG='0.97', time_epoch_completed='1630758114.83', return_code='0', job_id='949935', GAL2='0.80', EG2='0.95', return_code2='0', energy_flux_error='8.40e-06', photon_flux_error2='4.16e-08', ts2='2.89', photon_index='2.55' WHERE bin_id='876' AND source_name='4FGL J1136.2+3407' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 05:21:54 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0232>
Subject: Job 949935: <4FGL_J1136.2+3407_daily_bin876> in cluster <slac> Done

Job <4FGL_J1136.2+3407_daily_bin876> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sat Sep  4 05:06:46 2021
Job was executed on host(s) <bullet0232>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 05:06:47 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:47 2021
Terminated at Sat Sep  4 05:21:55 2021
Results reported at Sat Sep  4 05:21:55 2021

Your job looked like:

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

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

