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


Performing analysis on: 4FGL_J1136.2+3407_daily_bin92
RA = 174.075, Dec = 34.129
tmin = 263174401, tmax = 263433601
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='945417', job_status='RUN', time_executed='2021-09-04 04:54:07.582585', time_epoch_executed='1630756447.58' WHERE source_name='4FGL J1136.2+3407' and cadence='daily' and bin_id='92'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/945417

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

Retrieving the FT1 file...

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

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

Retrieving 42 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/945417/ft1_4FGL_J1136.2+3407_daily_bin92.fits


Retrieving the FT1 file...

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

Retrieving 42 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/945417/ft2_4FGL_J1136.2+3407_daily_bin92.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/945417/ft1_4FGL_J1136.2+3407_daily_bin92.fits outfile=/scratch/kocevski/945417/ft1_filteredMKT_4FGL_J1136.2+3407_daily_bin92.fits ra=174.075 dec=34.129 rad=12.0 tmin=263174401.0 tmax=263433601.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.42
user 1.19
sys 0.19

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/945417/ft1_filtered_4FGL_J1136.2+3407_daily_bin92.fits evtable="EVENTS" scfile=/scratch/kocevski/945417/ft2_4FGL_J1136.2+3407_daily_bin92.fits sctable="SC_DATA" expcube=/scratch/kocevski/945417/ltcube_263174401_263433601_4FGL_J1136.2+3407_daily_bin92.fits outfile=/scratch/kocevski/945417/expmap_263174401_263433601_4FGL_J1136.2+3407_daily_bin92.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/945417/ltcube_263174401_263433601_4FGL_J1136.2+3407_daily_bin92.fits
.....................!
real 190.96
user 185.40
sys 4.88

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/945417/ft1_filtered_4FGL_J1136.2+3407_daily_bin92.fits scfile=/scratch/kocevski/945417/ft2_4FGL_J1136.2+3407_daily_bin92.fits outfile=/scratch/kocevski/945417/cmap_263174401_263433601_4FGL_J1136.2+3407_daily_bin92.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.15

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

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

This is gtbin version HEAD
real 0.54
user 0.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10351E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10647E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    1.2544       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    8.4144       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .16622E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10015E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    1.1511       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .21441E-01   1.0000         .10000E-03   10000.    
    12 'Prefactor '    22.227       1.0000         .10000E-03   10000.    
    13 'norm      '    .10522E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    4.1337       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10040E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10425E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    1.7397       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10081E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    4.7385       1.0000         .10000E-03   10000.    
    20 'norm      '    6.6588       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .12583E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    91.346       1.0000         .10000E-03   10000.    
    23 'norm      '    3.2063       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10511E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    3.7549       1.0000         .10000E-03   10000.    
    26 'Prefactor '    3.9435       1.0000         .10000E-03   10000.    
    27 'Prefactor '    2.3641       1.0000         .10000E-03   10000.    
    28 'Prefactor '    6.1879       1.0000         .10000E-03   10000.    
    29 'Normalizat'    .92151       1.0000         .10000E-01   10.000    
    30 'Prefactor '    1.0350       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=   4647.115     FROM MIGRAD    STATUS=CONVERGED    800 CALLS     4506 TOTAL
                     EDM=   .18E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    34.170        .38495E-06** at limit **
   2  Prefactor     .10000E-03    39.598       -.63884E-06** at limit **
   3  Prefactor     .10000E-03    5.8667        .80046E-08** at limit **
   4  norm          1.2543        .39728        .21085E-07    .12960E-03
   5  Prefactor     .10000E-03    .96883        .25423E-07** at limit **
   6  Prefactor     8.3992        13.694        .35609E-06    .88624E-05
   7  Prefactor     .10000E-03    43.737        .29103E-06** at limit **
   8  norm          .10000E-03    5.3775        .51692E-08** at limit **
   9  norm          .10000E-03    6.0080        .49469E-07** at limit **
  10  Prefactor     1.1510        2.3598        .49425E-06    .79507E-03
  11  Prefactor     .10500E-03    64.915       -.35988E-05** at limit **
  12  Prefactor     22.221        18.680        .12969E-06    .16235E-03
  13  norm          .10000E-03    1.4406       -.17936E-06** at limit **
  14  Prefactor     4.1399        10.240        .34916E-06   -.15409E-04
  15  Prefactor     .10000E-03    1.9502        .31591E-07** at limit **
  16  Prefactor     .10000E-03    16.030       -.75286E-07** at limit **
  17  norm          1.7411        1.3953        .64065E-06   -.11127E-03
  18  Prefactor     .10000E-03    4.5490        .79865E-08** at limit **
  19  Prefactor     4.7382        2.2732        .11797E-07   -.24599E-05
  20  norm          6.6598        7.8568        .87948E-08    .53993E-04
  21  Prefactor     .10000E-03    20.615        .37476E-07** at limit **
  22  Prefactor     91.383        79.003       -.17362E-05    .19619E-04
  23  norm          3.2059        1.5244        .11911E-07   -.27341E-05
  24  Prefactor     .10000E-03    20.512       -.14767E-06** at limit **
  25  norm          3.7553        4.2974        .14716E-06   -.17147E-04
  26  Prefactor     3.9342        8.3271        .28671E-06   -.49230E-04
  27  Prefactor     2.3645        2.5067       -.46887E-07    .17910E-05
  28  Prefactor     6.1879        3.3014       -.41810E-08   -.16072E-05
  29  Normalizat    .92168        .19840       -.46050E-06    .11020E-03
  30  Prefactor     1.0351        .23267        .36928E-07    .79326E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 1.25427
  Prefactor  = 0.0001
  Prefactor  = 8.39918
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 1.15095
  Prefactor  = 0.000105001
  Prefactor  = 22.2214
  norm       = 0.0001
  Prefactor  = 4.13988
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.74106
  Prefactor  = 0.0001
  Prefactor  = 4.73821
  norm       = 6.65982
  Prefactor  = 0.0001
  Prefactor  = 91.3825
  norm       = 3.20591
  Prefactor  = 0.0001
  norm       = 3.75526
  Prefactor  = 3.93422
  Prefactor  = 2.36453
  Prefactor  = 6.18785
  Normalizat = 0.92168
  Prefactor  = 1.0351
 **********
 **   18 **HESSE 
 **********

 FCN=   4647.115     FROM HESSE     STATUS=OK           596 CALLS     5102 TOTAL
                     EDM=   .35E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    34.397        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    39.650        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    5.8875        .16125E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          1.2543        .39827        .22689E-04   -1.5484    
   5  Prefactor     .10000E-03    .97563        .65505E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     8.3992        13.699        .13820E-03   -1.5128    
   7  Prefactor     .10000E-03    44.229        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    5.3887        .15437E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    6.0316        .16317E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     1.1510        2.3914        .12945E-03   -1.5493    
  11  Prefactor     .10500E-03    59.939        .12924       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     22.221        18.651        .84959E-04   -1.4765    
  13  norm          .10000E-03    2.1946        .15472E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     4.1399        10.197        .19826E-03   -1.5301    
  15  Prefactor     .10000E-03    1.9617        .92934E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    16.040        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          1.7411        1.3620        .31426E-03   -1.5444    
  18  Prefactor     .10000E-03    4.5507        .14200E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     4.7382        2.2731        .68880E-04   -1.5273    
  20  norm          6.6598        7.8563        .15551E-03   -1.5192    
  21  Prefactor     .10000E-03    20.732        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     91.383        78.815        .42045E-04   -1.3793    
  23  norm          3.2059        1.5219        .55550E-04   -1.5350    
  24  Prefactor     .10000E-03    20.543        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          3.7553        4.2701        .13360E-03   -1.5320    
  26  Prefactor     3.9342        8.3132        .20314E-03   -1.5311    
  27  Prefactor     2.3645        2.5020        .10172E-03   -1.5400    
  28  Prefactor     6.1879        3.2957        .84647E-04   -1.5210    
  29  Normalizat    .92168        .23221        .25118E-03   -.95702    
  30  Prefactor     1.0351        .27347        .28496E-03   -.91568    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.5131e-10
Minuit parameter uncertainties:
  1  0.000186385
  2  0.000396945
  3  5.80466e-07
  4  0.39827
  5  2.66507e-07
  6  13.7043
  7  0.000144577
  8  1.57219e-06
  9  1.61451e-06
  10  2.39161
  11  0.0346599
  12  18.6558
  13  5.05649e-06
  14  10.2011
  15  1.59014e-06
  16  9.52595e-06
  17  1.36202
  18  1.07637e-08
  19  2.27313
  20  7.85755
  21  9.56441e-06
  22  78.9056
  23  1.5219
  24  3.06065e-05
  25  4.27042
  26  8.31564
  27  2.50208
  28  3.29579
  29  0.232462
  30  0.273842
Done.

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

Extracting fit parameters...

4FGL J1136.2+3407
   Spectrum: PowerLaw
306    Prefactor:  1.000e-04  1.590e-06  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.035e+00  2.738e-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.217e-01  2.325e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/945417/likelihoodResults_263174401_263433601_4FGL_J1136.2+3407_daily_bin92.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) = 4647.11738977
delta logL = -0.00240060601936

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4647.11498917
delta logL = -7.47513695387e-09

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5482       1.0000          .0000       10.000    
     3 'Normalizat'    .92170       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0351       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=   4647.115     FROM MIGRAD    STATUS=CONVERGED     94 CALLS      229 TOTAL
                     EDM=   .13E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    2.9104        .93036E-03** at limit **
   2  Index         2.2710        8.7528        .93476E-01    .21466E-06
   3  Normalizat    .92168        .22628        .25118E-03    .83642E-04
   4  Prefactor     1.0351        .27159        .28496E-03    .81467E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.27097
  Normalizat = 0.92168
  Prefactor  = 1.0351
 **********
 **   18 **HESSE 
 **********

 FCN=   4647.115     FROM HESSE     STATUS=OK            23 CALLS      252 TOTAL
                     EDM=   .17E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    2.0249        .18607E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.2710        6.1246        .37391E-02   -.57735    
   3  Normalizat    .92168        .22651        .10047E-04   -.95702    
   4  Prefactor     1.0351        .27186        .11398E-04   -.91568    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.66772e-10
Minuit parameter uncertainties:
  1  2.26893e-05
  2  214.361
  3  0.226743
  4  0.27222
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/945417': 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) = 4647.11498837
delta logL = 7.91989805293e-07

Extracting fit parameters...

4FGL J1136.2+3407
   Spectrum: PowerLaw
306    Prefactor:  1.000e-04  2.269e-05  1.000e-04  1.000e+04 ( 1.000e-12)
307        Index:  2.271e+00  2.144e+02  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.035e+00  2.722e-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.217e-01  2.267e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
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/945417/cmap_HighResolution_263174401_263433601_4FGL_J1136.2+3407_daily_bin92.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.78e-03', job_status='DONE', photon_flux_upper_limit='6.13e-08', time_completed='2021-09-04 05:07:19.104089', job_id='945417', GAL2='1.04', fit_tolerance='1e-08', EG2='0.92', EG='0.92', time_epoch_completed='1630757239.1', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.04', dlogl='7.92e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.55' WHERE bin_id='92' AND source_name='4FGL J1136.2+3407' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 05:07:19 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0238>
Subject: Job 945417: <4FGL_J1136.2+3407_daily_bin92> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1136.2+3407_daily_bin92 174.075 34.129 263174401 263433601 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 :                                   785.10 sec.
    Max Memory :                                 1258 MB
    Average Memory :                             302.75 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   898 sec.
    Turnaround time :                            900 sec.

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

