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


Performing analysis on: 4FGL_J1136.2+3407_daily_bin1467
RA = 174.075, Dec = 34.129
tmin = 619574401, tmax = 619833601
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='952986', job_status='RUN', time_executed='2021-09-04 05:16:42.290122', time_epoch_executed='1630757802.29' WHERE source_name='4FGL J1136.2+3407' and cadence='daily' and bin_id='1467'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/952986

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/952986/ft1_4FGL_J1136.2+3407_daily_bin1467.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/952986/ft2_4FGL_J1136.2+3407_daily_bin1467.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/952986/ft1_4FGL_J1136.2+3407_daily_bin1467.fits outfile=/scratch/kocevski/952986/ft1_filteredMKT_4FGL_J1136.2+3407_daily_bin1467.fits ra=174.075 dec=34.129 rad=12.0 tmin=619574401.0 tmax=619833601.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.56
user 3.24
sys 0.20

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/952986/ft1_filtered_4FGL_J1136.2+3407_daily_bin1467.fits evtable="EVENTS" scfile=/scratch/kocevski/952986/ft2_4FGL_J1136.2+3407_daily_bin1467.fits sctable="SC_DATA" expcube=/scratch/kocevski/952986/ltcube_619574401_619833601_4FGL_J1136.2+3407_daily_bin1467.fits outfile=/scratch/kocevski/952986/expmap_619574401_619833601_4FGL_J1136.2+3407_daily_bin1467.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/952986/ltcube_619574401_619833601_4FGL_J1136.2+3407_daily_bin1467.fits
.....................!
real 189.65
user 184.97
sys 4.31

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/952986/ft1_filtered_4FGL_J1136.2+3407_daily_bin1467.fits scfile=/scratch/kocevski/952986/ft2_4FGL_J1136.2+3407_daily_bin1467.fits outfile=/scratch/kocevski/952986/cmap_619574401_619833601_4FGL_J1136.2+3407_daily_bin1467.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.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/952986/ft1_filtered_4FGL_J1136.2+3407_daily_bin1467.fits scfile=/scratch/kocevski/952986/ft2_4FGL_J1136.2+3407_daily_bin1467.fits outfile=/scratch/kocevski/952986/cmap_HighResolution_619574401_619833601_4FGL_J1136.2+3407_daily_bin1467.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.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    .18332E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    1.6225       1.0000         .10000E-03   10000.    
     5 'Prefactor '    2.2017       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10045E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    4.2588       1.0000         .10000E-03   10000.    
     9 'norm      '    .10011E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .28595E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    81.092       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .13405E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    11.887       1.0000         .10000E-03   10000.    
    14 'Prefactor '    5.7518       1.0000         .10000E-03   10000.    
    15 'Prefactor '    4.6590       1.0000         .10000E-03   10000.    
    16 'Prefactor '    105.75       1.0000         .10000E-03   10000.    
    17 'norm      '    1.6915       1.0000         .10000E-03   10000.    
    18 'Prefactor '    2.9345       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .65785       1.0000         .10000E-03   10000.    
    20 'norm      '    5.0191       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .88318       1.0000         .10000E-03   10000.    
    24 'Prefactor '    22.137       1.0000         .10000E-03   10000.    
    25 'norm      '    7.1325       1.0000         .10000E-03   10000.    
    26 'Prefactor '    2.8280       1.0000         .10000E-03   10000.    
    27 'Prefactor '    6.7399       1.0000         .10000E-03   10000.    
    28 'Prefactor '    3.0220       1.0000         .10000E-03   10000.    
    29 'Normalizat'    .75388       1.0000         .10000E-01   10.000    
    30 'Prefactor '    1.4542       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=   6722.131     FROM MIGRAD    STATUS=CONVERGED    800 CALLS     3986 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    10.325        .10698E-07** at limit **
   2  Prefactor     .10000E-03    598.03        .66656E-06** at limit **
   3  Prefactor     .10000E-03    4.5735        .10470E-07** at limit **
   4  norm          1.6224        .35441        .92662E-08    .13773E-02
   5  Prefactor     2.2014        3.6016        .12419E-06   -.24939E-04
   6  Prefactor     .10000E-03    11.758        .18109E-06** at limit **
   7  Prefactor     .10000E-03    4.4091        .68740E-08** at limit **
   8  norm          4.2595        12.642        .85902E-06    .18870E-03
   9  norm          .10000E-03    12.347       -.20881E-06** at limit **
  10  Prefactor     .10000E-03    1.7379       -.12986E-05** at limit **
  11  Prefactor     81.031        64.913        .35377E-05    .41071E-03
  12  Prefactor     .10001E-03    64.818       -.48358E-05** at limit **
  13  norm          11.887        4.3909        .13794E-06    .22222E-02
  14  Prefactor     5.7590        17.706       -.17492E-06   -.23937E-03
  15  Prefactor     4.6574        5.5825        .38251E-06    .35571E-03
  16  Prefactor     105.76        56.131        .75502E-08    .12492E-03
  17  norm          1.6912        1.3948        .28861E-07    .36912E-03
  18  Prefactor     2.9314        61.553       -.39595E-05   -.17501E-04
  19  Prefactor     .65756        2.3734        .55091E-06   -.12530E-03
  20  norm          5.0192        6.8036        .22839E-07    .24390E-05
  21  Prefactor     .10000E-03    7.9111       -.97517E-07** at limit **
  22  Prefactor     .10000E-03    17.735        .30495E-07** at limit **
  23  norm          .88293        1.2145        .82590E-07    .59927E-04
  24  Prefactor     22.141        30.607       -.11904E-05   -.19012E-03
  25  norm          7.1325        4.7747       -.10258E-07    .26968E-04
  26  Prefactor     2.8264        8.8371        .38165E-05   -.57994E-03
  27  Prefactor     6.7398        3.9989       -.30516E-07   -.94026E-04
  28  Prefactor     3.0219        2.3476       -.60573E-08   -.27693E-04
  29  Normalizat    .75387        .19996        .71429E-06    .31577E-03
  30  Prefactor     1.4542        .22067       -.94740E-06    .34485E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.62243
  Prefactor  = 2.2014
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 4.25945
  norm       = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 81.0313
  Prefactor  = 0.000100006
  norm       = 11.8871
  Prefactor  = 5.75903
  Prefactor  = 4.65736
  Prefactor  = 105.757
  norm       = 1.69123
  Prefactor  = 2.93142
  Prefactor  = 0.65756
  norm       = 5.01922
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.882934
  Prefactor  = 22.1415
  norm       = 7.13248
  Prefactor  = 2.8264
  Prefactor  = 6.73978
  Prefactor  = 3.02191
  Normalizat = 0.75387
  Prefactor  = 1.45422
 **********
 **   18 **HESSE 
 **********

 FCN=   6722.131     FROM HESSE     STATUS=OK           592 CALLS     4578 TOTAL
                     EDM=   .24E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    10.333        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    602.66        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    4.5775        .17113E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          1.6224        .35511        .22019E-04   -1.5453    
   5  Prefactor     2.2014        3.5942        .18531E-03   -1.5411    
   6  Prefactor     .10000E-03    11.844        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    4.4111        .16813E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          4.2595        12.623        .19524E-03   -1.5295    
   9  norm          .10000E-03    12.548        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    9.1876        .18117E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     81.031        64.352        .44601E-04   -1.3905    
  12  Prefactor     .10001E-03    65.755        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          11.887        4.4120        .87112E-04   -1.5018    
  14  Prefactor     5.7590        17.828        .16747E-03   -1.5228    
  15  Prefactor     4.6574        5.5663        .18645E-03   -1.5276    
  16  Prefactor     105.76        56.193        .39105E-04   -1.3648    
  17  norm          1.6912        1.3776        .73879E-04   -1.5448    
  18  Prefactor     2.9314        53.096        .23712E-03   -1.5366    
  19  Prefactor     .65756        2.7786        .18748E-02   -1.5546    
  20  norm          5.0192        6.7973        .17949E-03   -1.5260    
  21  Prefactor     .10000E-03    7.9175        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    17.737        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .88293        1.0778        .97895E-03   -1.5520    
  24  Prefactor     22.141        30.713        .85131E-04   -1.4767    
  25  norm          7.1325        4.7978        .12040E-03   -1.5174    
  26  Prefactor     2.8264        9.2111        .12092E-02   -1.5372    
  27  Prefactor     6.7398        4.0231        .10526E-03   -1.5189    
  28  Prefactor     3.0219        2.3451        .10556E-03   -1.5360    
  29  Normalizat    .75387        .23851        .31139E-03   -1.0180    
  30  Prefactor     1.4542        .26202        .27891E-03   -.78830    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.35692e-08
Minuit parameter uncertainties:
  1  9.42226e-06
  2  0.000288302
  3  6.77253e-08
  4  0.355114
  5  3.59458
  6  6.53347e-05
  7  1.16912e-07
  8  12.6308
  9  7.02509e-05
  10  0.000301307
  11  64.4076
  12  0.00128104
  13  4.41211
  14  17.8444
  15  5.56695
  16  56.2212
  17  1.37766
  18  24.977
  19  2.70341
  20  6.79838
  21  9.22185e-06
  22  1.29962e-05
  23  1.07781
  24  30.7344
  25  4.79809
  26  9.21569
  27  4.02323
  28  2.34518
  29  0.238837
  30  0.262262
Done.

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

Extracting fit parameters...

4FGL J1136.2+3407
   Spectrum: PowerLaw
306    Prefactor:  4.657e+00  5.567e+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:  1.454e+00  2.623e-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:  7.539e-01  2.388e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/952986/likelihoodResults_619574401_619833601_4FGL_J1136.2+3407_daily_bin1467.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) = 6721.909046
delta logL = 0.221476048981

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6721.90015398
delta logL = 0.230368063086

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.5106       1.0000         .10000E-03   10000.    
     2 'Index     '    3.4077       1.0000          .0000       10.000    
     3 'Normalizat'    .72318       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.4800       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=   6721.900     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      247 TOTAL
                     EDM=   .10E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.5151        47.953        .64468E-02    .99578E-03
   2  Index         3.4074        3.8386        .21315        .13987E-03
   3  Normalizat    .72309        .50175E-01    .71701E-01   -.27767E-04
   4  Prefactor     1.4802        .58301E-01    .62606E-01   -.26191E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.5151
  Index      = 3.40742
  Normalizat = 0.723091
  Prefactor  = 1.48018
 **********
 **   18 **HESSE 
 **********

 FCN=   6721.900     FROM HESSE     STATUS=OK            31 CALLS      278 TOTAL
                     EDM=   .34E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.5151        6.9827        .11804E-03   -1.5391    
   2  Index         3.4074        1.9882        .80298E-02   -.32416    
   3  Normalizat    .72309        .22296        .31734E-03   -1.0299    
   4  Prefactor     1.4802        .26351        .27686E-03   -.78096    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.44689e-10
Minuit parameter uncertainties:
  1  6.98493
  2  2.05163
  3  0.223244
  4  0.263752
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/952986': 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) = 6721.90015197
delta logL = 0.230370075539

Extracting fit parameters...

4FGL J1136.2+3407
   Spectrum: PowerLaw
306    Prefactor:  2.515e+00  6.985e+00  1.000e-04  1.000e+04 ( 1.000e-12)
307        Index:  3.407e+00  2.052e+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:  1.480e+00  2.638e-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:  7.231e-01  2.232e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.44
Ra Dec: 174.075 34.129
Photon Index (Free Index): 3.41 +/- 2.05
Photon Flux (Free Index): 5.38e-08 +/- 5.44e-08
Energy Flux (Free Index): 9.18e-06 +/- 9.30e-06

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/952986/cmap_HighResolution_619574401_619833601_4FGL_J1136.2+3407_daily_bin1467.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.15e-03', comment='SUCCESS', energy_flux2='9.18e-06', dlogl='2.30e-01', photon_flux2='5.38e-08', job_status='DONE', time_completed='2021-09-04 05:32:48.572119', photon_index_error2='2.05', photon_index2='3.41', ts='0.95', fit_tolerance='1e-08', GAL='1.45', photon_index_error='0.00', photon_flux_upper_limit='1.17e-07', energy_flux_error2='9.30e-06', EG='0.75', time_epoch_completed='1630758768.57', return_code='0', job_id='952986', GAL2='1.48', EG2='0.72', return_code2='0', photon_flux_error2='5.44e-08', ts2='1.44', photon_index='2.55' WHERE bin_id='1467' AND source_name='4FGL J1136.2+3407' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 05:32:48 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0295>
Subject: Job 952986: <4FGL_J1136.2+3407_daily_bin1467> in cluster <slac> Done

Job <4FGL_J1136.2+3407_daily_bin1467> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Sat Sep  4 05:16:29 2021
Job was executed on host(s) <bullet0295>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 05:16:30 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Sep  4 05:16:30 2021
Terminated at Sat Sep  4 05:32:49 2021
Results reported at Sat Sep  4 05:32:49 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1136.2+3407_daily_bin1467 174.075 34.129 619574401 619833601 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 :                                   962.25 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             336.19 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   978 sec.
    Turnaround time :                            980 sec.

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

