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


Performing analysis on: 4FGL_J1136.2+3407_daily_bin76
RA = 174.075, Dec = 34.129
tmin = 259027201, tmax = 259286401
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='945393', job_status='RUN', time_executed='2021-09-04 04:52:36.681947', time_epoch_executed='1630756356.68' WHERE source_name='4FGL J1136.2+3407' and cadence='daily' and bin_id='76'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/945393

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/945393/ft1_4FGL_J1136.2+3407_daily_bin76.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/945393/ft2_4FGL_J1136.2+3407_daily_bin76.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/945393/ft1_4FGL_J1136.2+3407_daily_bin76.fits outfile=/scratch/kocevski/945393/ft1_filteredMKT_4FGL_J1136.2+3407_daily_bin76.fits ra=174.075 dec=34.129 rad=12.0 tmin=259027201.0 tmax=259286401.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 1.43
user 1.25
sys 0.17

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/945393/ft2_4FGL_J1136.2+3407_daily_bin76.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/945393/ft1_filteredMKT_4FGL_J1136.2+3407_daily_bin76.fits evtable="EVENTS" outfile="/scratch/kocevski/945393/ft1_filtered_4FGL_J1136.2+3407_daily_bin76.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.48
user 0.33
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/945393/ft1_filtered_4FGL_J1136.2+3407_daily_bin76.fits" evtable="EVENTS" scfile=/scratch/kocevski/945393/ft2_4FGL_J1136.2+3407_daily_bin76.fits sctable="SC_DATA" outfile=/scratch/kocevski/945393/ltcube_259027201_259286401_4FGL_J1136.2+3407_daily_bin76.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/945393/ft2_4FGL_J1136.2+3407_daily_bin76.fits
.....................!
real 13.32
user 12.93
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/945393/ft1_filtered_4FGL_J1136.2+3407_daily_bin76.fits evtable="EVENTS" scfile=/scratch/kocevski/945393/ft2_4FGL_J1136.2+3407_daily_bin76.fits sctable="SC_DATA" expcube=/scratch/kocevski/945393/ltcube_259027201_259286401_4FGL_J1136.2+3407_daily_bin76.fits outfile=/scratch/kocevski/945393/expmap_259027201_259286401_4FGL_J1136.2+3407_daily_bin76.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/945393/ltcube_259027201_259286401_4FGL_J1136.2+3407_daily_bin76.fits
.....................!
real 190.61
user 185.29
sys 4.90

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/945393/ft1_filtered_4FGL_J1136.2+3407_daily_bin76.fits scfile=/scratch/kocevski/945393/ft2_4FGL_J1136.2+3407_daily_bin76.fits outfile=/scratch/kocevski/945393/cmap_259027201_259286401_4FGL_J1136.2+3407_daily_bin76.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.14

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

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

This is gtbin version HEAD
real 0.54
user 0.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10036E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    14.789       1.0000         .10000E-03   10000.    
     4 'norm      '    .62258       1.0000         .10000E-03   10000.    
     5 'Prefactor '    2.7602       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    23.493       1.0000         .10000E-03   10000.    
     8 'norm      '    .12020E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10649E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    14.857       1.0000         .10000E-03   10000.    
    13 'norm      '    .10016E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10895E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    14.457       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .14613E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    1.3649       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    4.8713       1.0000         .10000E-03   10000.    
    20 'norm      '    4.6963       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    3.9037       1.0000         .10000E-03   10000.    
    24 'Prefactor '    1.2158       1.0000         .10000E-03   10000.    
    25 'norm      '    .12018E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    3.2885       1.0000         .10000E-03   10000.    
    27 'Prefactor '    2.0930       1.0000         .10000E-03   10000.    
    28 'Prefactor '    7.7120       1.0000         .10000E-03   10000.    
    29 'Normalizat'    .95949       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .96056       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=   5423.088     FROM MIGRAD    STATUS=CONVERGED    773 CALLS     3934 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    40.516        .10199E-04** at limit **
   2  Prefactor     .10001E-03    143.35       -.29328E-04** at limit **
   3  Prefactor     14.792        10.993        .62626E-07   -.12582E-04
   4  norm          .62259        .25221        .10862E-07    .74401E-05
   5  Prefactor     2.7606        2.1952       -.14952E-07   -.23514E-04
   6  Prefactor     .10000E-03    3.8931       -.36415E-07** at limit **
   7  Prefactor     23.494        14.580        .45861E-07   -.12983E-04
   8  norm          .10000E-03    10.969        .81337E-06** at limit **
   9  norm          .10000E-03    22.526        .17108E-05** at limit **
  10  Prefactor     .10000E-03    .75127        .40981E-07** at limit **
  11  Prefactor     .10000E-03    10.611       -.98528E-08** at limit **
  12  Prefactor     14.840        19.548        .38417E-05    .28631E-03
  13  norm          .10000E-03    .80956        .53987E-09** at limit **
  14  Prefactor     .10000E-03    35.785       -.11612E-04** at limit **
  15  Prefactor     14.456        6.5812       -.74769E-07    .92184E-04
  16  Prefactor     .10000E-03    129.19        .25804E-04** at limit **
  17  norm          1.3606        1.0327       -.16068E-07   -.89045E-03
  18  Prefactor     .10000E-03    10.524       -.40757E-06** at limit **
  19  Prefactor     4.8724        2.2649        .19338E-07    .30649E-04
  20  norm          4.6959        8.5156        .12819E-06   -.63546E-03
  21  Prefactor     .10000E-03    15.204       -.90898E-06** at limit **
  22  Prefactor     .10000E-03    23.866        .31338E-07** at limit **
  23  norm          3.9038        1.3058       -.50844E-08    .13994E-03
  24  Prefactor     1.2077        24.613        .51591E-05   -.49527E-03
  25  norm          .10000E-03    2.3427        .40506E-07** at limit **
  26  Prefactor     3.2894        6.3655       -.73700E-06   -.10690E-03
  27  Prefactor     2.0919        1.9983        .51573E-08   -.22175E-05
  28  Prefactor     7.7107        3.1222        .15308E-07   -.38289E-04
  29  Normalizat    .95930        .18532       -.88953E-06   -.18456E-04
  30  Prefactor     .96049        .21092        .51630E-07   -.61125E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Prefactor  = 0.000100005
  Prefactor  = 14.7918
  norm       = 0.622592
  Prefactor  = 2.76061
  Prefactor  = 0.0001
  Prefactor  = 23.4938
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 14.8396
  norm       = 0.0001
  Prefactor  = 0.000100004
  Prefactor  = 14.4565
  Prefactor  = 0.000100004
  norm       = 1.36062
  Prefactor  = 0.0001
  Prefactor  = 4.87241
  norm       = 4.69595
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.90381
  Prefactor  = 1.20772
  norm       = 0.0001
  Prefactor  = 3.2894
  Prefactor  = 2.09191
  Prefactor  = 7.71074
  Normalizat = 0.959298
  Prefactor  = 0.960487
 **********
 **   18 **HESSE 
 **********

 FCN=   5423.088     FROM HESSE     STATUS=OK           592 CALLS     4526 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    40.779        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10001E-03    142.64        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     14.792        10.990        .10415E-03   -1.4939    
   4  norm          .62259        .25412        .22643E-04   -1.5550    
   5  Prefactor     2.7606        2.1932        .93706E-04   -1.5376    
   6  Prefactor     .10000E-03    3.8963        .14189E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     23.494        14.586        .82641E-04   -1.4738    
   8  norm          .10000E-03    11.425        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    23.433        .36285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    .75917        .62285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    10.613        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     14.840        19.812        .10391E-03   -1.4937    
  13  norm          .10000E-03    .81617        .64662E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    37.169        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     14.456        6.5838        .10534E-03   -1.4947    
  16  Prefactor     .10000E-03    129.54        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          1.3606        1.0165        .61645E-04   -1.5475    
  18  Prefactor     .10000E-03    10.558        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     4.8724        2.2669        .72735E-04   -1.5266    
  20  norm          4.6959        8.7339        .92846E-03   -1.5275    
  21  Prefactor     .10000E-03    15.240        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    23.887        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          3.9038        1.3071        .47008E-04   -1.5313    
  24  Prefactor     1.2077        105.50        .20483E-02   -1.5488    
  25  norm          .10000E-03    5.0929        .20967E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     3.2894        6.3494        .22328E-03   -1.5345    
  27  Prefactor     2.0919        1.9630        .95479E-04   -1.5419    
  28  Prefactor     7.7107        3.0752        .77972E-04   -1.5153    
  29  Normalizat    .95930        .21378        .24312E-03   -.94407    
  30  Prefactor     .96049        .24352        .28725E-03   -.94058    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.12249e-08
Minuit parameter uncertainties:
  1  0.00028802
  2  0.00175137
  3  10.9918
  4  0.254119
  5  2.19329
  6  5.75035e-07
  7  14.5881
  8  2.8717e-07
  9  1.14941e-05
  10  6.41937e-08
  11  6.64287e-07
  12  19.821
  13  3.97044e-07
  14  0.000755068
  15  6.58416
  16  0.00139942
  17  1.01647
  18  6.53385e-06
  19  2.26696
  20  8.73622
  21  1.56853e-05
  22  3.87639e-06
  23  1.30706
  24  22.6162
  25  1.57743e-05
  26  6.35065
  27  1.96305
  28  3.07523
  29  0.213967
  30  0.243803
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
623    Prefactor:  9.605e-01  2.438e-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.593e-01  2.140e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 10.69
Ra Dec: 174.075 34.129
Photon Index (Fixed Index): 2.55 +/- 0.00
Photon Flux (Fixed Index): 1.00e-07 +/- 4.55e-08
Energy Flux (Fixed Index): 2.74e-05 +/- 1.25e-05

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) = 5422.84637559
delta logL = 0.241809727834

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5422.84622953
delta logL = 0.241955787735

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    16.541       1.0000         .10000E-03   10000.    
     2 'Index     '    2.2251       1.0000          .0000       10.000    
     3 'Normalizat'    .98801       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .93747       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=   5422.846     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      264 TOTAL
                     EDM=   .82E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     16.551        176.21        .24619E-02    .19649E-04
   2  Index         2.2257        5.9855        .16987        .26105E-04
   3  Normalizat    .98796        .24914        .46016E-01    .11438E-04
   4  Prefactor     .93746        .23079        .65675E-01    .12009E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 16.5506
  Index      = 2.22571
  Normalizat = 0.987955
  Prefactor  = 0.937455
 **********
 **   18 **HESSE 
 **********

 FCN=   5422.846     FROM HESSE     STATUS=OK            33 CALLS      297 TOTAL
                     EDM=   .37E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     16.551        7.9040        .98478E-04   -1.4894    
   2  Index         2.2257        .45584        .64906E-02   -.58819    
   3  Normalizat    .98796        .20787        .24006E-03   -.93435    
   4  Prefactor     .93746        .24243        .29048E-03   -.94844    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.68861e-13
Minuit parameter uncertainties:
  1  7.9045
  2  0.456752
  3  0.208038
  4  0.242712
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/945393': 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) = 5422.84622742
delta logL = 0.241957901912

Extracting fit parameters...

4FGL J1136.2+3407
   Spectrum: PowerLaw
306    Prefactor:  1.655e+01  7.904e+00  1.000e-04  1.000e+04 ( 1.000e-12)
307        Index:  2.226e+00  4.568e-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:  9.375e-01  2.427e-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.880e-01  2.080e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 11.10
Ra Dec: 174.075 34.129
Photon Index (Free Index): 2.23 +/- 0.46
Photon Flux (Free Index): 7.96e-08 +/- 4.80e-08
Energy Flux (Free Index): 3.41e-05 +/- 2.18e-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/945393/cmap_HighResolution_259027201_259286401_4FGL_J1136.2+3407_daily_bin76.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.00e-07', energy_flux2='3.41e-05', photon_flux_error='4.55e-08', dlogl='2.42e-01', energy_flux='2.74e-05', photon_flux2='7.96e-08', job_status='DONE', time_completed='2021-09-04 05:04:54.628528', photon_index_error2='0.46', photon_index2='2.23', ts='10.69', fit_tolerance='1e-08', GAL='0.96', photon_index_error='0.00', energy_flux_error2='2.18e-05', EG='0.96', time_epoch_completed='1630757094.63', return_code='0', job_id='945393', GAL2='0.94', EG2='0.99', return_code2='0', energy_flux_error='1.25e-05', photon_flux_error2='4.80e-08', ts2='11.10', photon_index='2.55' WHERE bin_id='76' AND source_name='4FGL J1136.2+3407' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 05:04:54 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0031>
Subject: Job 945393: <4FGL_J1136.2+3407_daily_bin76> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1136.2+3407_daily_bin76 174.075 34.129 259027201 259286401 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 :                                   730.00 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             312.80 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   756 sec.
    Turnaround time :                            758 sec.

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

