/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 5 seconds before starting...
Proceeding.

Importing modules...
This is make3FGLxml version 01r0.
The default diffuse model files and names are for pass 8 and assume you have v10r00p05 of the Fermi Science Tools or higher.
This is make4FGLxml version 01r04.
The default diffuse model files and names are for pass 8 and 4FGL and assume you have v11r5p3 of the Fermi Science Tools or higher.

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

/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/cbook/deprecation.py:106: MatplotlibDeprecationWarning: The mpl_toolkits.axes_grid module was deprecated in version 2.1. Use mpl_toolkits.axes_grid1 and mpl_toolkits.axisartist provies the same functionality instead.
  warnings.warn(message, mplDeprecation, stacklevel=1)

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

number of points = 7424
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1136.2+3407_daily_bin306
RA = 174.075, Dec = 34.129
tmin = 318643201, tmax = 318902401
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='945757', job_status='RUN', time_executed='2021-09-04 04:53:01.558763', time_epoch_executed='1630756381.56' WHERE source_name='4FGL J1136.2+3407' and cadence='daily' and bin_id='306'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/945757

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/945757/ft1_4FGL_J1136.2+3407_daily_bin306.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/945757/ft2_4FGL_J1136.2+3407_daily_bin306.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/945757/ft1_4FGL_J1136.2+3407_daily_bin306.fits outfile=/scratch/kocevski/945757/ft1_filteredMKT_4FGL_J1136.2+3407_daily_bin306.fits ra=174.075 dec=34.129 rad=12.0 tmin=318643201.0 tmax=318902401.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.36
user 3.15
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/945757/ft1_filtered_4FGL_J1136.2+3407_daily_bin306.fits" evtable="EVENTS" scfile=/scratch/kocevski/945757/ft2_4FGL_J1136.2+3407_daily_bin306.fits sctable="SC_DATA" outfile=/scratch/kocevski/945757/ltcube_318643201_318902401_4FGL_J1136.2+3407_daily_bin306.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/945757/ft2_4FGL_J1136.2+3407_daily_bin306.fits
.....................!
real 11.68
user 11.34
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/945757/ft1_filtered_4FGL_J1136.2+3407_daily_bin306.fits evtable="EVENTS" scfile=/scratch/kocevski/945757/ft2_4FGL_J1136.2+3407_daily_bin306.fits sctable="SC_DATA" expcube=/scratch/kocevski/945757/ltcube_318643201_318902401_4FGL_J1136.2+3407_daily_bin306.fits outfile=/scratch/kocevski/945757/expmap_318643201_318902401_4FGL_J1136.2+3407_daily_bin306.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/945757/ltcube_318643201_318902401_4FGL_J1136.2+3407_daily_bin306.fits
.....................!
real 189.61
user 184.76
sys 4.48

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/945757/ft1_filtered_4FGL_J1136.2+3407_daily_bin306.fits scfile=/scratch/kocevski/945757/ft2_4FGL_J1136.2+3407_daily_bin306.fits outfile=/scratch/kocevski/945757/cmap_318643201_318902401_4FGL_J1136.2+3407_daily_bin306.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.54
user 0.39
sys 0.12

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/945757/ft1_filtered_4FGL_J1136.2+3407_daily_bin306.fits scfile=/scratch/kocevski/945757/ft2_4FGL_J1136.2+3407_daily_bin306.fits outfile=/scratch/kocevski/945757/cmap_HighResolution_318643201_318902401_4FGL_J1136.2+3407_daily_bin306.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.39
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10104E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .98426       1.0000         .10000E-03   10000.    
     5 'Prefactor '    4.5987       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10160E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    1.4168       1.0000         .10000E-03   10000.    
     8 'norm      '    21.743       1.0000         .10000E-03   10000.    
     9 'norm      '    12.931       1.0000         .10000E-03   10000.    
    10 'Prefactor '    1.1952       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    17.103       1.0000         .10000E-03   10000.    
    13 'norm      '    .50462       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10230E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    1.2972       1.0000         .10000E-03   10000.    
    18 'Prefactor '    9.0221       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .35888       1.0000         .10000E-03   10000.    
    20 'norm      '    6.5697       1.0000         .10000E-03   10000.    
    21 'Prefactor '    11.077       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    1.1810       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10057E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    1.6576       1.0000         .10000E-03   10000.    
    26 'Prefactor '    5.0474       1.0000         .10000E-03   10000.    
    27 'Prefactor '    3.1144       1.0000         .10000E-03   10000.    
    28 'Prefactor '    2.5461       1.0000         .10000E-03   10000.    
    29 'Normalizat'    .79648       1.0000         .10000E-01   10.000    
    30 'Prefactor '    1.1343       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=   5549.068     FROM MIGRAD    STATUS=CONVERGED    765 CALLS     3927 TOTAL
                     EDM=   .95E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    6.5971        .98862E-08** at limit **
   2  Prefactor     .10000E-03    83.326       -.72228E-06** at limit **
   3  Prefactor     .10000E-03    15.626       -.35020E-06** at limit **
   4  norm          .98441        .41032       -.32802E-07    .21275E-03
   5  Prefactor     4.5994        2.9778        .44570E-07   -.75367E-05
   6  Prefactor     .10000E-03    26.204       -.12636E-05** at limit **
   7  Prefactor     1.4023        112.61        .27912E-06   -.89918E-06
   8  norm          21.748        14.919       -.35231E-06    .19457E-04
   9  norm          12.931        9.3843        .56555E-07   -.16154E-04
  10  Prefactor     1.1960        2.0710        .84296E-07   -.14105E-03
  11  Prefactor     .10000E-03    16.282       -.21700E-06** at limit **
  12  Prefactor     17.109        15.411        .31044E-06   -.41534E-04
  13  norm          .50478        1.4843        .45063E-06   -.25446E-04
  14  Prefactor     .10000E-03    16.306        .56144E-06** at limit **
  15  Prefactor     .10000E-03    1.7237       -.24057E-08** at limit **
  16  Prefactor     .10000E-03    11.901        .69846E-08** at limit **
  17  norm          1.2972        .87379        .11903E-07   -.19256E-03
  18  Prefactor     9.0236        15.771       -.72261E-06   -.84384E-04
  19  Prefactor     .35869        1.4025        .99263E-06   -.10947E-03
  20  norm          6.5688        8.9986        .16789E-05   -.13518E-03
  21  Prefactor     11.076        19.517        .42097E-06   -.23485E-04
  22  Prefactor     .10000E-03    48.787        .86155E-06** at limit **
  23  norm          1.1811        1.0766        .88276E-07   -.93804E-04
  24  Prefactor     .10000E-03    20.824        .62166E-06** at limit **
  25  norm          1.6577        1.7607        .38344E-07   -.18924E-04
  26  Prefactor     5.0473        5.2369        .24040E-07   -.68704E-04
  27  Prefactor     3.1144        2.1375        .15960E-07   -.12359E-04
  28  Prefactor     2.5460        1.7725        .96866E-08   -.20676E-04
  29  Normalizat    .79649        .17475       -.47916E-06   -.96193E-04
  30  Prefactor     1.1343        .20397       -.44364E-06   -.60510E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 0.984411
  Prefactor  = 4.5994
  Prefactor  = 0.000100001
  Prefactor  = 1.40233
  norm       = 21.7476
  norm       = 12.9308
  Prefactor  = 1.19605
  Prefactor  = 0.0001
  Prefactor  = 17.1089
  norm       = 0.504782
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.2972
  Prefactor  = 9.02365
  Prefactor  = 0.358694
  norm       = 6.56879
  Prefactor  = 11.0761
  Prefactor  = 0.000100002
  norm       = 1.18106
  Prefactor  = 0.000100001
  norm       = 1.65766
  Prefactor  = 5.04733
  Prefactor  = 3.11439
  Prefactor  = 2.54602
  Normalizat = 0.796494
  Prefactor  = 1.13432
 **********
 **   18 **HESSE 
 **********

 FCN=   5549.068     FROM HESSE     STATUS=OK           598 CALLS     4525 TOTAL
                     EDM=   .19E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    6.5994        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    83.691        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    16.228        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .98441        .40912        .23424E-04   -1.5510    
   5  Prefactor     4.5994        2.9753        .98742E-04   -1.5279    
   6  Prefactor     .10000E-03    26.393        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     1.4023        112.27        .36364E-03   -1.5471    
   8  norm          21.748        14.832        .85899E-04   -1.4775    
   9  norm          12.931        9.3849        .11139E-03   -1.4989    
  10  Prefactor     1.1960        1.9887        .13039E-03   -1.5489    
  11  Prefactor     .10000E-03    16.305        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     17.109        15.381        .96846E-04   -1.4880    
  13  norm          .50478        1.4405        .14626E-03   -1.5566    
  14  Prefactor     .10000E-03    16.960        .36285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    1.7386        .95451E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    11.913        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          1.2972        .87203        .54584E-04   -1.5480    
  18  Prefactor     9.0236        15.558        .13344E-03   -1.5107    
  19  Prefactor     .35869        1.3917        .16069E-03   -1.5588    
  20  norm          6.5688        8.9436        .78284E-03   -1.5195    
  21  Prefactor     11.076        19.521        .12038E-03   -1.5042    
  22  Prefactor     .10000E-03    49.261        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          1.1811        1.0515        .70056E-04   -1.5491    
  24  Prefactor     .10000E-03    21.080        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          1.6577        1.7474        .97091E-04   -1.5450    
  26  Prefactor     5.0473        5.2406        .16835E-03   -1.5259    
  27  Prefactor     3.1144        2.1412        .85796E-04   -1.5355    
  28  Prefactor     2.5460        1.7724        .80115E-04   -1.5389    
  29  Normalizat    .79649        .20280        .25311E-03   -1.0020    
  30  Prefactor     1.1343        .23752        .26386E-03   -.88377    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.90727e-10
Minuit parameter uncertainties:
  1  1.85127e-06
  2  0.000663135
  3  5.76782e-05
  4  0.409122
  5  2.97535
  6  0.000291995
  7  25.1429
  8  14.8343
  9  9.38601
  10  1.98884
  11  7.00507e-05
  12  15.3846
  13  1.44058
  14  8.69363e-05
  15  6.19226e-08
  16  4.70615e-06
  17  0.872043
  18  15.5653
  19  1.39182
  20  8.94539
  21  19.5325
  22  0.00057574
  23  1.05149
  24  0.000259777
  25  1.74742
  26  5.24112
  27  2.14122
  28  1.77245
  29  0.202988
  30  0.237738
Done.

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

Extracting fit parameters...

4FGL J1136.2+3407
   Spectrum: PowerLaw
306    Prefactor:  1.000e-04  6.192e-08  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.134e+00  2.377e-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.965e-01  2.030e-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: 5.16e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.03e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/945757/likelihoodResults_318643201_318902401_4FGL_J1136.2+3407_daily_bin306.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): 102
logL (Free Index) = 5549.07070003
delta logL = -0.00271439949302

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5549.06798563
delta logL = 6.13090378465e-09

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5450       1.0000          .0000       10.000    
     3 'Normalizat'    .79651       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1343       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   5549.068     FROM MIGRAD    STATUS=FAILED        89 CALLS      240 TOTAL
                     EDM=   .28E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10064E-03    60.881        .95725E-03** at limit **
   2  Index         2.4902        6.8826        .50000        .32935E-04
   3  Normalizat    .79649        .25461E-01    .25310E-03   -.62884E-05
   4  Prefactor     1.1343        .31278E-01    .26386E-03   -.55151E-05
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   5549.068     FROM SIMPLEX   STATUS=UNCHANGED    146 CALLS      386 TOTAL
                     EDM=   .98E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10064E-03    60.881        .21270E-03** at limit **
   2  Index         2.4902        6.8826        .87421E-04    .32935E-04
   3  Normalizat    .79649        .25461E-01    .14761E-05   -.62884E-05
   4  Prefactor     1.1343        .31278E-01    .11740E-05   -.55151E-05
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5549.068     FROM MIGRAD    STATUS=CONVERGED     42 CALLS      428 TOTAL
                     EDM=   .39E-11    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    323.51        .19145E-03** at limit **
   2  Index         2.2748        7.4269        .50000        .44929E-07
   3  Normalizat    .79649        .79904E-01    .10124E-04    .53900E-04
   4  Prefactor     1.1343        .98146E-01    .10554E-04    .58383E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.27481
  Normalizat = 0.796495
  Prefactor  = 1.13432
 **********
 **   18 **HESSE 
 **********

 FCN=   5549.068     FROM HESSE     STATUS=OK            29 CALLS      457 TOTAL
                     EDM=   .55E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    2.0937        .38290E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.2748        5.0297        .50000       -.57643    
   3  Normalizat    .79649        .19156        .20248E-05   -1.0020    
   4  Prefactor     1.1343        .23536        .21108E-05   -.88377    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.50435e-12
Minuit parameter uncertainties:
  1  3.20631e-06
  2  87.4144
  3  0.19172
  4  0.235576
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/945757': 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) = 5549.06798428
delta logL = 1.34983565658e-06

Extracting fit parameters...

4FGL J1136.2+3407
   Spectrum: PowerLaw
306    Prefactor:  1.000e-04  3.206e-06  1.000e-04  1.000e+04 ( 1.000e-12)
307        Index:  2.275e+00  8.741e+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:  1.134e+00  2.356e-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.965e-01  1.917e-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/945757/cmap_HighResolution_318643201_318902401_4FGL_J1136.2+3407_daily_bin306.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.03e-03', job_status='DONE', photon_flux_upper_limit='5.16e-08', time_completed='2021-09-04 05:07:17.949065', job_id='945757', GAL2='1.13', fit_tolerance='1e-08', EG2='0.80', EG='0.80', time_epoch_completed='1630757237.95', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.13', dlogl='1.35e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.55' WHERE bin_id='306' AND source_name='4FGL J1136.2+3407' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 05:07:17 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0015>
Subject: Job 945757: <4FGL_J1136.2+3407_daily_bin306> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1136.2+3407_daily_bin306 174.075 34.129 318643201 318902401 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 :                                   847.00 sec.
    Max Memory :                                 1155 MB
    Average Memory :                             349.21 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   870 sec.
    Turnaround time :                            871 sec.

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

