/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 122 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 = 7344
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1136.2+3407_daily_bin367
RA = 174.075, Dec = 34.129
tmin = 334454401, tmax = 334713601
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='946650', job_status='RUN', time_executed='2021-09-04 04:58:33.123074', time_epoch_executed='1630756713.12' WHERE source_name='4FGL J1136.2+3407' and cadence='daily' and bin_id='367'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/946650

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/946650/ft1_4FGL_J1136.2+3407_daily_bin367.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/946650/ft2_4FGL_J1136.2+3407_daily_bin367.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/946650/ft1_4FGL_J1136.2+3407_daily_bin367.fits outfile=/scratch/kocevski/946650/ft1_filteredMKT_4FGL_J1136.2+3407_daily_bin367.fits ra=174.075 dec=34.129 rad=12.0 tmin=334454401.0 tmax=334713601.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.65
user 3.26
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/946650/ft1_filtered_4FGL_J1136.2+3407_daily_bin367.fits" evtable="EVENTS" scfile=/scratch/kocevski/946650/ft2_4FGL_J1136.2+3407_daily_bin367.fits sctable="SC_DATA" outfile=/scratch/kocevski/946650/ltcube_334454401_334713601_4FGL_J1136.2+3407_daily_bin367.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/946650/ft2_4FGL_J1136.2+3407_daily_bin367.fits
.....................!
real 12.72
user 11.77
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/946650/ft1_filtered_4FGL_J1136.2+3407_daily_bin367.fits evtable="EVENTS" scfile=/scratch/kocevski/946650/ft2_4FGL_J1136.2+3407_daily_bin367.fits sctable="SC_DATA" expcube=/scratch/kocevski/946650/ltcube_334454401_334713601_4FGL_J1136.2+3407_daily_bin367.fits outfile=/scratch/kocevski/946650/expmap_334454401_334713601_4FGL_J1136.2+3407_daily_bin367.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/946650/ltcube_334454401_334713601_4FGL_J1136.2+3407_daily_bin367.fits
.....................!
real 192.46
user 185.66
sys 5.10

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/946650/ft1_filtered_4FGL_J1136.2+3407_daily_bin367.fits scfile=/scratch/kocevski/946650/ft2_4FGL_J1136.2+3407_daily_bin367.fits outfile=/scratch/kocevski/946650/cmap_334454401_334713601_4FGL_J1136.2+3407_daily_bin367.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.55
user 0.39
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/946650/ft1_filtered_4FGL_J1136.2+3407_daily_bin367.fits scfile=/scratch/kocevski/946650/ft2_4FGL_J1136.2+3407_daily_bin367.fits outfile=/scratch/kocevski/946650/cmap_HighResolution_334454401_334713601_4FGL_J1136.2+3407_daily_bin367.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.55
user 0.38
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 'Prefactor '    143.83       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    1.0728       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .83935       1.0000         .10000E-03   10000.    
     7 'Prefactor '    4.2848       1.0000         .10000E-03   10000.    
     8 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    1.5048       1.0000         .10000E-03   10000.    
    10 'Prefactor '    5.1947       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    12.886       1.0000         .10000E-03   10000.    
    13 'norm      '    6.9234       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .11760E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    12.557       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10858E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    9.1456       1.0000         .10000E-03   10000.    
    18 'Prefactor '    20.630       1.0000         .10000E-03   10000.    
    19 'Prefactor '    1.8753       1.0000         .10000E-03   10000.    
    20 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10148E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    4.8990       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    2.0561       1.0000         .10000E-03   10000.    
    26 'Prefactor '    1.3599       1.0000         .10000E-03   10000.    
    27 'Prefactor '    3.9082       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    29 'Normalizat'    1.3404       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .55393       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=   6516.986     FROM MIGRAD    STATUS=CONVERGED    779 CALLS     3922 TOTAL
                     EDM=   .29E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    7.9024        .77718E-07** at limit **
   2  Prefactor     143.85        137.19        .17354E-04    .30678E-06
   3  Prefactor     .10000E-03    5.1240        .20684E-07** at limit **
   4  norm          1.0729        .33691       -.16067E-07   -.63204E-04
   5  Prefactor     .10000E-03    1.6504        .24769E-07** at limit **
   6  Prefactor     .84929        8.9612       -.78044E-07    .95680E-05
   7  Prefactor     4.2845        9.7686       -.97784E-07    .12378E-05
   8  norm          .10000E-03    10.040       -.29272E-06** at limit **
   9  norm          1.5062        26.129        .71158E-07   -.12573E-03
  10  Prefactor     5.1957        3.3707        .73212E-07    .21413E-03
  11  Prefactor     .10000E-03    35.706       -.13989E-04** at limit **
  12  Prefactor     12.892        20.028       -.40737E-07   -.24271E-04
  13  norm          6.9231        3.2809        .25945E-07    .22991E-03
  14  Prefactor     .10000E-03    11.479        .54143E-06** at limit **
  15  Prefactor     12.557        7.2076        .47273E-07   -.53168E-04
  16  Prefactor     .10000E-03    97.319       -.61104E-05** at limit **
  17  norm          9.1449        1.8264        .20213E-07    .26388E-04
  18  Prefactor     20.632        24.882        .49188E-06   -.17119E-04
  19  Prefactor     1.8753        1.5966        .13579E-07   -.25458E-04
  20  norm          .10000E-03    6.9981        .52971E-08** at limit **
  21  Prefactor     .10000E-03    56.106        .93614E-05** at limit **
  22  Prefactor     .10000E-03    30.960        .92686E-05** at limit **
  23  norm          4.8992        1.6671        .19232E-07   -.17864E-03
  24  Prefactor     .10000E-03    16.308       -.60622E-06** at limit **
  25  norm          2.0563        2.2922        .24730E-07   -.12708E-04
  26  Prefactor     1.3598        2.6268        .26019E-08   -.59720E-03
  27  Prefactor     3.9081        2.2776        .11330E-07   -.86721E-05
  28  Prefactor     .10000E-03    .65993        .71035E-09** at limit **
  29  Normalizat    1.3400        .20032       -.91778E-06    .13369E-04
  30  Prefactor     .55433        .20942       -.12337E-06   -.45852E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 143.848
  Prefactor  = 0.0001
  norm       = 1.07288
  Prefactor  = 0.0001
  Prefactor  = 0.849292
  Prefactor  = 4.28447
  norm       = 0.0001
  norm       = 1.50622
  Prefactor  = 5.19568
  Prefactor  = 0.0001
  Prefactor  = 12.8919
  norm       = 6.92313
  Prefactor  = 0.0001
  Prefactor  = 12.557
  Prefactor  = 0.0001
  norm       = 9.14493
  Prefactor  = 20.6324
  Prefactor  = 1.87533
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 4.89923
  Prefactor  = 0.0001
  norm       = 2.05625
  Prefactor  = 1.35981
  Prefactor  = 3.90808
  Prefactor  = 0.0001
  Normalizat = 1.34002
  Prefactor  = 0.554332
 **********
 **   18 **HESSE 
 **********

 FCN=   6516.986     FROM HESSE     STATUS=OK           594 CALLS     4516 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    7.9059        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     143.85        137.62        .16798E-03   -1.3303    
   3  Prefactor     .10000E-03    5.1349        .17846E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          1.0729        .34048        .24345E-04   -1.5501    
   5  Prefactor     .10000E-03    1.6751        .10119E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .84929        60.050        .43568E-02   -1.5524    
   7  Prefactor     4.2845        9.7675        .19463E-03   -1.5294    
   8  norm          .10000E-03    10.133        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          1.5062        33.528        .17445E-02   -1.5463    
  10  Prefactor     5.1957        3.3617        .10786E-03   -1.5252    
  11  Prefactor     .10000E-03    35.728        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     12.892        20.017        .11158E-03   -1.4990    
  13  norm          6.9231        3.2781        .92878E-04   -1.5182    
  14  Prefactor     .10000E-03    11.504        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     12.557        7.2052        .11304E-03   -1.4999    
  16  Prefactor     .10000E-03    98.519        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          9.1449        1.8308        .46162E-04   -1.5103    
  18  Prefactor     20.632        24.864        .88184E-04   -1.4799    
  19  Prefactor     1.8753        1.5986        .44849E-03   -1.5434    
  20  norm          .10000E-03    7.0328        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    56.590        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    30.985        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          4.8992        1.6670        .57243E-04   -1.5265    
  24  Prefactor     .10000E-03    16.340        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          2.0563        2.2944        .11913E-03   -1.5421    
  26  Prefactor     1.3598        7.0205        .18727E-02   -1.5475    
  27  Prefactor     3.9081        2.2910        .86159E-04   -1.5313    
  28  Prefactor     .10000E-03    .66303        .64027E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    1.3400        .23529        .24142E-03   -.82380    
  30  Prefactor     .55433        .23912        .39405E-03   -1.0954    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.17518e-09
Minuit parameter uncertainties:
  1  2.30941e-06
  2  137.926
  3  3.99946e-06
  4  0.340479
  5  3.64597e-06
  6  14.297
  7  9.77115
  8  9.1227e-06
  9  14.2213
  10  3.3618
  11  6.04919e-06
  12  20.027
  13  3.27816
  14  8.93378e-06
  15  7.2057
  16  9.10945e-05
  17  1.83084
  18  24.8764
  19  1.5986
  20  1.87834e-06
  21  5.16071e-06
  22  4.89978e-06
  23  1.66699
  24  4.45057e-06
  25  2.29445
  26  6.18039
  27  2.29103
  28  3.7456e-07
  29  0.235474
  30  0.239559
Done.

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

Extracting fit parameters...

4FGL J1136.2+3407
   Spectrum: PowerLaw
306    Prefactor:  1.256e+01  7.206e+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:  5.543e-01  2.396e-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.340e+00  2.355e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 7.12
Ra Dec: 174.075 34.129
Photon Index (Fixed Index): 2.55 +/- 0.00
Photon Flux (Fixed Index): 8.69e-08 +/- 4.98e-08
Energy Flux (Fixed Index): 2.38e-05 +/- 1.37e-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) = 6516.6151787
delta logL = 0.371054787827

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6516.57763038
delta logL = 0.408603115326

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    14.567       1.0000         .10000E-03   10000.    
     2 'Index     '    2.1357       1.0000          .0000       10.000    
     3 'Normalizat'    1.3685       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .53020       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=   6516.578     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      211 TOTAL
                     EDM=   .40E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     14.567        13.307        .26236E-02   -.18290E-02
   2  Index         2.1361        .61073        .18566       -.10327E-04
   3  Normalizat    1.3684        .19396        .54138E-01   -.23234E-05
   4  Prefactor     .53024        .21335        .90741E-01    .35956E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 14.5666
  Index      = 2.13607
  Normalizat = 1.36842
  Prefactor  = 0.530241
 **********
 **   18 **HESSE 
 **********

 FCN=   6516.578     FROM HESSE     STATUS=OK            31 CALLS      242 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     14.567        8.2302        .10494E-03   -1.4944    
   2  Index         2.1361        .43159        .71639E-02   -.60990    
   3  Normalizat    1.3684        .21768        .23937E-03   -.81547    
   4  Prefactor     .53024        .23699        .40217E-03   -1.1061    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.60943e-09
Minuit parameter uncertainties:
  1  8.23088
  2  0.432392
  3  0.217828
  4  0.237434
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/946650': 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) = 6516.57763001
delta logL = 0.408603479853

Extracting fit parameters...

4FGL J1136.2+3407
   Spectrum: PowerLaw
306    Prefactor:  1.457e+01  8.231e+00  1.000e-04  1.000e+04 ( 1.000e-12)
307        Index:  2.136e+00  4.324e-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:  5.302e-01  2.374e-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.368e+00  2.178e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 7.95
Ra Dec: 174.075 34.129
Photon Index (Free Index): 2.14 +/- 0.43
Photon Flux (Free Index): 6.41e-08 +/- 4.52e-08
Energy Flux (Free Index): 3.26e-05 +/- 2.38e-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/946650/cmap_HighResolution_334454401_334713601_4FGL_J1136.2+3407_daily_bin367.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='8.69e-08', energy_flux2='3.26e-05', photon_flux_error='4.98e-08', dlogl='4.09e-01', energy_flux='2.38e-05', photon_flux2='6.41e-08', job_status='DONE', time_completed='2021-09-04 05:12:11.731163', photon_index_error2='0.43', photon_index2='2.14', ts='7.12', fit_tolerance='1e-08', GAL='0.55', photon_index_error='0.00', energy_flux_error2='2.38e-05', EG='1.34', time_epoch_completed='1630757531.73', return_code='0', job_id='946650', GAL2='0.53', EG2='1.37', return_code2='0', energy_flux_error='1.37e-05', photon_flux_error2='4.52e-08', ts2='7.95', photon_index='2.55' WHERE bin_id='367' AND source_name='4FGL J1136.2+3407' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 05:12:11 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0038>
Subject: Job 946650: <4FGL_J1136.2+3407_daily_bin367> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1136.2+3407_daily_bin367 174.075 34.129 334454401 334713601 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 :                                   812.19 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             298.42 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   951 sec.
    Turnaround time :                            953 sec.

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

