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


Performing analysis on: 4FGL_J1136.2+3407_daily_bin451
RA = 174.075, Dec = 34.129
tmin = 356227201, tmax = 356486401
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='946797', job_status='RUN', time_executed='2021-09-04 04:59:44.107197', time_epoch_executed='1630756784.11' WHERE source_name='4FGL J1136.2+3407' and cadence='daily' and bin_id='451'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/946797

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

Retrieving the FT1 file...

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

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

Retrieving 41 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/946797/ft1_4FGL_J1136.2+3407_daily_bin451.fits


Retrieving the FT1 file...

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

Retrieving 45 files...
Done.


Merging files...
fmerge4.1 : Error, missing column list names, file /scratch/kocevski/946797/ft2_filtered_0009.fits
fmerge4.1 : Fatal error!
FCCMPL: not found in table: RA_SUN
FCCMPL: not found in table: DEC_SUN

Merged file saved to:
/scratch/kocevski/946797/ft2_4FGL_J1136.2+3407_daily_bin451.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/946797/ft1_4FGL_J1136.2+3407_daily_bin451.fits outfile=/scratch/kocevski/946797/ft1_filteredMKT_4FGL_J1136.2+3407_daily_bin451.fits ra=174.075 dec=34.129 rad=12.0 tmin=356227201.0 tmax=356486401.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.08
user 2.87
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/946797/ft1_filtered_4FGL_J1136.2+3407_daily_bin451.fits" evtable="EVENTS" scfile=/scratch/kocevski/946797/ft2_4FGL_J1136.2+3407_daily_bin451.fits sctable="SC_DATA" outfile=/scratch/kocevski/946797/ltcube_356227201_356486401_4FGL_J1136.2+3407_daily_bin451.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/946797/ft2_4FGL_J1136.2+3407_daily_bin451.fits
.....................!
real 3.26
user 2.94
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/946797/ft1_filtered_4FGL_J1136.2+3407_daily_bin451.fits evtable="EVENTS" scfile=/scratch/kocevski/946797/ft2_4FGL_J1136.2+3407_daily_bin451.fits sctable="SC_DATA" expcube=/scratch/kocevski/946797/ltcube_356227201_356486401_4FGL_J1136.2+3407_daily_bin451.fits outfile=/scratch/kocevski/946797/expmap_356227201_356486401_4FGL_J1136.2+3407_daily_bin451.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/946797/ltcube_356227201_356486401_4FGL_J1136.2+3407_daily_bin451.fits
.....................!
real 190.24
user 185.40
sys 4.47

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/946797/ft1_filtered_4FGL_J1136.2+3407_daily_bin451.fits scfile=/scratch/kocevski/946797/ft2_4FGL_J1136.2+3407_daily_bin451.fits outfile=/scratch/kocevski/946797/cmap_356227201_356486401_4FGL_J1136.2+3407_daily_bin451.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
gtbin: WARNING: Spacecraft data ceases before end of last GTI.
gtbin: WARNING: EXPOSURE keyword calculation may not be accurate.
real 0.55
user 0.39
sys 0.12

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/946797/ft1_filtered_4FGL_J1136.2+3407_daily_bin451.fits scfile=/scratch/kocevski/946797/ft2_4FGL_J1136.2+3407_daily_bin451.fits outfile=/scratch/kocevski/946797/cmap_HighResolution_356227201_356486401_4FGL_J1136.2+3407_daily_bin451.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
gtbin: WARNING: Spacecraft data ceases before end of last GTI.
gtbin: WARNING: EXPOSURE keyword calculation may not be accurate.
real 0.55
user 0.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    24.756       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    12.920       1.0000         .10000E-03   10000.    
     4 'norm      '    1.7724       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10046E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10153E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    24.867       1.0000         .10000E-03   10000.    
     9 'norm      '    14.347       1.0000         .10000E-03   10000.    
    10 'Prefactor '    3.5384       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    16.203       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10052E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    2.2202       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10040E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    98.731       1.0000         .10000E-03   10000.    
    22 'Prefactor '    66.827       1.0000         .10000E-03   10000.    
    23 'norm      '    8.5408       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    29 'Normalizat'    1.2487       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .45214       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=   1330.752     FROM MIGRAD    STATUS=CONVERGED    754 CALLS     3874 TOTAL
                     EDM=   .16E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     24.756        43.200        .77583E-06   -.53714E-05
   2  Prefactor     .10000E-03    130.31       -.27901E-04** at limit **
   3  Prefactor     12.923        27.524       -.81954E-06   -.21573E-03
   4  norm          1.7721        .77324        .28440E-08   -.17813E-03
   5  Prefactor     .10000E-03    3.2583        .85870E-07** at limit **
   6  Prefactor     .10000E-03    30.445        .56285E-05** at limit **
   7  Prefactor     .10000E-03    32.281       -.41514E-06** at limit **
   8  norm          24.862        32.868       -.18583E-05   -.30662E-04
   9  norm          14.348        21.887       -.11209E-06   -.15059E-04
  10  Prefactor     3.5375        5.6630        .40303E-05    .22526E-04
  11  Prefactor     .10000E-03    45.529       -.24000E-04** at limit **
  12  Prefactor     .10000E-03    27.324        .90880E-05** at limit **
  13  norm          .10000E-03    1.9737       -.67974E-07** at limit **
  14  Prefactor     .10000E-03    10.599       -.23127E-05** at limit **
  15  Prefactor     16.201        18.374        .12007E-05   -.50796E-04
  16  Prefactor     .10000E-03    67.387        .36204E-04** at limit **
  17  norm          2.2192        3.0834       -.90429E-06   -.31031E-03
  18  Prefactor     .10000E-03    24.248       -.51375E-05** at limit **
  19  Prefactor     .10000E-03    4.6405        .16093E-06** at limit **
  20  norm          .10000E-03    12.160       -.50678E-05** at limit **
  21  Prefactor     98.724        78.809       -.53386E-05   -.12061E-04
  22  Prefactor     66.840        186.96        .15475E-04   -.15508E-04
  23  norm          8.5409        3.8044        .14326E-06   -.10026E-04
  24  Prefactor     .10000E-03    33.280       -.37018E-05** at limit **
  25  norm          .10000E-03    3.5687        .68853E-07** at limit **
  26  Prefactor     .10000E-03    11.484        .71414E-05** at limit **
  27  Prefactor     .10000E-03    4.8916       -.95693E-07** at limit **
  28  Prefactor     .10000E-03    2.4714        .57224E-07** at limit **
  29  Normalizat    1.2488        .39281       -.10925E-05   -.52735E-04
  30  Prefactor     .45191        .41192       -.83470E-06   -.37158E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 24.7565
  Prefactor  = 0.0001
  Prefactor  = 12.9228
  norm       = 1.77206
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 24.8623
  norm       = 14.3482
  Prefactor  = 3.53752
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 16.2011
  Prefactor  = 0.0001
  norm       = 2.21921
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 98.7242
  Prefactor  = 66.8401
  norm       = 8.5409
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.24875
  Prefactor  = 0.45191
 **********
 **   18 **HESSE 
 **********

 FCN=   1330.752     FROM HESSE     STATUS=OK           576 CALLS     4450 TOTAL
                     EDM=   .32E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     24.756        43.185        .80510E-04   -1.4712    
   2  Prefactor     .10000E-03    130.22        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     12.923        27.590        .55719E-03   -1.4989    
   4  norm          1.7721        .77521        .20434E-04   -1.5442    
   5  Prefactor     .10000E-03    3.2675        .64284E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    30.495        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    32.360        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          24.862        32.903        .80330E-04   -1.4710    
   9  norm          14.348        21.917        .10574E-03   -1.4950    
  10  Prefactor     3.5375        5.6364        .99868E-04   -1.5332    
  11  Prefactor     .10000E-03    45.682        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    27.417        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    1.9777        .50041E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    10.604        .11602E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     16.201        18.401        .99500E-04   -1.4903    
  16  Prefactor     .10000E-03    67.256        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          2.2192        3.1053        .60263E-04   -1.5410    
  18  Prefactor     .10000E-03    24.292        .17548E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    4.7672        .15336E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    12.167        .12429E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     98.724        79.023        .40457E-04   -1.3717    
  22  Prefactor     66.840        189.66        .49097E-04   -1.4071    
  23  norm          8.5409        3.8077        .45550E-04   -1.5123    
  24  Prefactor     .10000E-03    33.285        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          .10000E-03    3.5780        .67302E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    11.519        .12073E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    4.9364        .78780E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    2.4763        .56011E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    1.2488        .44941        .22227E-03   -.85109    
  30  Prefactor     .45191        .45838        .39379E-03   -1.1424    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.21523e-10
Minuit parameter uncertainties:
  1  43.2391
  2  1.2477e-05
  3  27.6175
  4  0.775212
  5  4.15589e-06
  6  1.4145e-05
  7  1.45646e-05
  8  32.9274
  9  21.9289
  10  5.63724
  11  0.000194364
  12  1.97159e-05
  13  6.61851e-06
  14  8.61871e-07
  15  18.4078
  16  2.74294e-05
  17  3.10554
  18  1.66056e-05
  19  1.13525e-05
  20  2.05597e-05
  21  79.107
  22  191.418
  23  3.80782
  24  3.10718e-05
  25  3.85589e-06
  26  2.19299e-06
  27  7.26102e-06
  28  1.93717e-06
  29  0.450812
  30  0.462187
Done.

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

Extracting fit parameters...

4FGL J1136.2+3407
   Spectrum: PowerLaw
306    Prefactor:  1.620e+01  1.841e+01  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:  4.519e-01  4.622e-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.249e+00  4.508e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.21
Ra Dec: 174.075 34.129
Photon Index (Fixed Index): 2.55 +/- 0.00
Photon Flux (Fixed Index): 1.12e-07 +/- 1.27e-07
Energy Flux (Fixed Index): 3.08e-05 +/- 3.49e-05

TS (Fixed Index): 1.21
Ra Dec: 174.075 34.129
Photon Flux Upper Limit: 3.70e-07 ph cm-2 s-1
Energy Flux Upper Limit: 2.89e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/946797/likelihoodResults_356227201_356486401_4FGL_J1136.2+3407_daily_bin451.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) = 1330.21108672
delta logL = 0.541011997421

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 1330.20608231
delta logL = 0.546016412204

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.1111       1.0000         .10000E-03   10000.    
     2 'Index     '    3.6189       1.0000          .0000       10.000    
     3 'Normalizat'    1.1884       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .49507       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=   1330.206     FROM MIGRAD    STATUS=CONVERGED     88 CALLS      303 TOTAL
                     EDM=   .12E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.1096        13.730        .68417E-04    .33906E-03
   2  Index         3.6187        1.4322        .35767E-02    .63910E-04
   3  Normalizat    1.1887        .42059        .22608E-03   -.79374E-04
   4  Prefactor     .49494        .45819        .37716E-03   -.22336E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.10964
  Index      = 3.6187
  Normalizat = 1.18867
  Prefactor  = 0.49494
 **********
 **   18 **HESSE 
 **********

 FCN=   1330.206     FROM HESSE     STATUS=OK            25 CALLS      328 TOTAL
                     EDM=   .12E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.1096        11.594        .27367E-05   -1.5214    
   2  Index         3.6187        1.2140        .14307E-03   -.27990    
   3  Normalizat    1.1887        .42090        .45216E-04   -.86954    
   4  Prefactor     .49494        .45842        .15086E-04   -1.1221    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.19524e-10
Minuit parameter uncertainties:
  1  11.5985
  2  1.22734
  3  0.422105
  4  0.461907
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/946797': 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) = 1330.20608193
delta logL = 0.546016793883

Extracting fit parameters...

4FGL J1136.2+3407
   Spectrum: PowerLaw
306    Prefactor:  6.110e+00  1.160e+01  1.000e-04  1.000e+04 ( 1.000e-12)
307        Index:  3.619e+00  1.227e+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:  4.949e-01  4.619e-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.189e+00  4.221e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.39
Ra Dec: 174.075 34.129
Photon Index (Free Index): 3.62 +/- 1.23
Photon Flux (Free Index): 1.77e-07 +/- 1.44e-07
Energy Flux (Free Index): 2.86e-05 +/- 2.41e-05

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/946797/cmap_HighResolution_356227201_356486401_4FGL_J1136.2+3407_daily_bin451.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.89e-02', comment='SUCCESS', photon_flux='1.12e-07', energy_flux2='2.86e-05', photon_flux_error='1.27e-07', dlogl='5.46e-01', energy_flux='3.08e-05', photon_flux2='1.77e-07', job_status='DONE', time_completed='2021-09-04 05:07:10.250505', photon_index_error2='1.23', photon_index2='3.62', ts='1.21', fit_tolerance='1e-08', GAL='0.45', photon_index_error='0.00', photon_flux_upper_limit='3.70e-07', energy_flux_error2='2.41e-05', EG='1.25', time_epoch_completed='1630757230.25', return_code='0', job_id='946797', GAL2='0.49', EG2='1.19', return_code2='0', energy_flux_error='3.49e-05', photon_flux_error2='1.44e-07', ts2='2.39', photon_index='2.55' WHERE bin_id='451' AND source_name='4FGL J1136.2+3407' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 05:07:10 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0065>
Subject: Job 946797: <4FGL_J1136.2+3407_daily_bin451> in cluster <slac> Done

Job <4FGL_J1136.2+3407_daily_bin451> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Sat Sep  4 04:56:33 2021
Job was executed on host(s) <bullet0065>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 04:56:35 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:56:35 2021
Terminated at Sat Sep  4 05:07:11 2021
Results reported at Sat Sep  4 05:07:11 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1136.2+3407_daily_bin451 174.075 34.129 356227201 356486401 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 :                                   444.41 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             247.67 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   635 sec.
    Turnaround time :                            638 sec.

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

