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


Performing analysis on: 4FGL_J1136.2+3407_daily_bin73
RA = 174.075, Dec = 34.129
tmin = 258249601, tmax = 258508801
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='945388', job_status='RUN', time_executed='2021-09-04 04:54:26.679941', time_epoch_executed='1630756466.68' WHERE source_name='4FGL J1136.2+3407' and cadence='daily' and bin_id='73'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/945388

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

Retrieving the FT1 file...

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

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

Retrieving 33 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/945388/ft1_4FGL_J1136.2+3407_daily_bin73.fits


Retrieving the FT1 file...

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

Retrieving 33 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/945388/ft2_4FGL_J1136.2+3407_daily_bin73.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/945388/ft1_4FGL_J1136.2+3407_daily_bin73.fits outfile=/scratch/kocevski/945388/ft1_filteredMKT_4FGL_J1136.2+3407_daily_bin73.fits ra=174.075 dec=34.129 rad=12.0 tmin=258249601.0 tmax=258508801.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.18
user 0.95
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/945388/ft1_filtered_4FGL_J1136.2+3407_daily_bin73.fits" evtable="EVENTS" scfile=/scratch/kocevski/945388/ft2_4FGL_J1136.2+3407_daily_bin73.fits sctable="SC_DATA" outfile=/scratch/kocevski/945388/ltcube_258249601_258508801_4FGL_J1136.2+3407_daily_bin73.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/945388/ft2_4FGL_J1136.2+3407_daily_bin73.fits
.....................!
real 9.38
user 8.93
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/945388/ft1_filtered_4FGL_J1136.2+3407_daily_bin73.fits evtable="EVENTS" scfile=/scratch/kocevski/945388/ft2_4FGL_J1136.2+3407_daily_bin73.fits sctable="SC_DATA" expcube=/scratch/kocevski/945388/ltcube_258249601_258508801_4FGL_J1136.2+3407_daily_bin73.fits outfile=/scratch/kocevski/945388/expmap_258249601_258508801_4FGL_J1136.2+3407_daily_bin73.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/945388/ltcube_258249601_258508801_4FGL_J1136.2+3407_daily_bin73.fits
.....................!
real 191.95
user 185.76
sys 5.77

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/945388/ft1_filtered_4FGL_J1136.2+3407_daily_bin73.fits scfile=/scratch/kocevski/945388/ft2_4FGL_J1136.2+3407_daily_bin73.fits outfile=/scratch/kocevski/945388/cmap_258249601_258508801_4FGL_J1136.2+3407_daily_bin73.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.35
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/945388/ft1_filtered_4FGL_J1136.2+3407_daily_bin73.fits scfile=/scratch/kocevski/945388/ft2_4FGL_J1136.2+3407_daily_bin73.fits outfile=/scratch/kocevski/945388/cmap_HighResolution_258249601_258508801_4FGL_J1136.2+3407_daily_bin73.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.53
user 0.35
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    1.1795       1.0000         .10000E-03   10000.    
     5 'Prefactor '    1.9587       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10229E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    4.9832       1.0000         .10000E-03   10000.    
     9 'norm      '    5.2010       1.0000         .10000E-03   10000.    
    10 'Prefactor '    1.5178       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10479E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    7.2206       1.0000         .10000E-03   10000.    
    13 'norm      '    4.5474       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    3.3578       1.0000         .10000E-03   10000.    
    16 'Prefactor '    20.595       1.0000         .10000E-03   10000.    
    17 'norm      '    1.8778       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10326E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10066E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    50.893       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    4.4481       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    6.1076       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .92288       1.0000         .10000E-03   10000.    
    29 'Normalizat'    .66872       1.0000         .10000E-01   10.000    
    30 'Prefactor '    1.0679       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=   3321.145     FROM MIGRAD    STATUS=CONVERGED    785 CALLS     3934 TOTAL
                     EDM=   .42E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    19.157       -.51409E-05** at limit **
   2  Prefactor     .10000E-03    117.14       -.13014E-04** at limit **
   3  Prefactor     .10000E-03    4.7866        .77059E-08** at limit **
   4  norm          1.1795        .39177        .13171E-07    .19492E-02
   5  Prefactor     1.9587        2.3447       -.17927E-07   -.29811E-04
   6  Prefactor     .10000E-03    42.306       -.17312E-04** at limit **
   7  Prefactor     .10000E-03    6.9865        .82778E-07** at limit **
   8  norm          4.9860        15.995       -.27735E-07    .77395E-04
   9  norm          5.2012        12.376       -.49511E-06   -.86566E-04
  10  Prefactor     1.5167        2.2289       -.15380E-06   -.22678E-03
  11  Prefactor     .10000E-03    110.10        .37627E-05** at limit **
  12  Prefactor     7.2156        18.774        .35568E-06   -.27180E-04
  13  norm          4.5453        3.0064       -.10899E-06   -.23403E-04
  14  Prefactor     .10000E-03    5.7624        .25047E-06** at limit **
  15  Prefactor     3.3579        4.5641       -.84836E-07   -.13270E-03
  16  Prefactor     20.596        33.616        .21848E-06   -.56352E-05
  17  norm          1.8782        1.3322       -.44897E-07   -.27829E-03
  18  Prefactor     .10000E-03    15.318        .16741E-05** at limit **
  19  Prefactor     .10000E-03    1.5838       -.10189E-06** at limit **
  20  norm          .10000E-03    24.700        .34739E-05** at limit **
  21  Prefactor     50.889        39.148       -.17631E-05   -.59345E-04
  22  Prefactor     .10000E-03    25.249        .34015E-05** at limit **
  23  norm          4.4480        1.8514       -.43758E-08   -.73972E-04
  24  Prefactor     .10000E-03    55.760        .18919E-04** at limit **
  25  norm          6.1054        3.8665        .44683E-07    .36914E-04
  26  Prefactor     .10000E-03    9.3983       -.14127E-06** at limit **
  27  Prefactor     .10000E-03    1.9900       -.42044E-07** at limit **
  28  Prefactor     .92322        3.3398       -.71014E-06   -.68794E-03
  29  Normalizat    .66868        .21771        .63179E-06    .70834E-04
  30  Prefactor     1.0680        .24969        .25137E-06    .69013E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.17954
  Prefactor  = 1.9587
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 4.98602
  norm       = 5.20121
  Prefactor  = 1.51673
  Prefactor  = 0.0001
  Prefactor  = 7.21562
  norm       = 4.54532
  Prefactor  = 0.0001
  Prefactor  = 3.35792
  Prefactor  = 20.5961
  norm       = 1.8782
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 50.8894
  Prefactor  = 0.0001
  norm       = 4.44797
  Prefactor  = 0.0001
  norm       = 6.10541
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.923225
  Normalizat = 0.66868
  Prefactor  = 1.06797
 **********
 **   18 **HESSE 
 **********

 FCN=   3321.145     FROM HESSE     STATUS=OK           584 CALLS     4518 TOTAL
                     EDM=   .82E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    19.172        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    117.06        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    4.7909        .12313E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          1.1795        .39219        .20044E-04   -1.5491    
   5  Prefactor     1.9587        2.3358        .93225E-04   -1.5428    
   6  Prefactor     .10000E-03    42.436        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    6.9897        .14877E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          4.9860        15.918        .18015E-03   -1.5261    
   9  norm          5.2012        12.384        .17627E-03   -1.5252    
  10  Prefactor     1.5167        2.1935        .99410E-04   -1.5462    
  11  Prefactor     .10000E-03    112.05        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     7.2156        18.748        .14927E-03   -1.5171    
  13  norm          4.5453        2.9953        .77289E-04   -1.5282    
  14  Prefactor     .10000E-03    5.7666        .13508E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     3.3579        4.5516        .13822E-03   -1.5341    
  16  Prefactor     20.596        33.675        .88258E-04   -1.4800    
  17  norm          1.8782        1.3265        .52266E-04   -1.5434    
  18  Prefactor     .10000E-03    15.383        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    5.9318        .13943E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    25.070        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     50.889        39.271        .56216E-04   -1.4280    
  22  Prefactor     .10000E-03    25.239        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          4.4480        1.8508        .48339E-04   -1.5286    
  24  Prefactor     .10000E-03    55.631        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          6.1054        3.8215        .83964E-04   -1.5214    
  26  Prefactor     .10000E-03    9.5270        .17250E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    2.0221        .79108E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .92322        3.3559        .18558E-03   -1.5516    
  29  Normalizat    .66868        .25096        .26076E-03   -1.0514    
  30  Prefactor     1.0680        .29096        .25413E-03   -.90497    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.17465e-10
Minuit parameter uncertainties:
  1  1.43329e-06
  2  1.04943e-05
  3  8.3769e-07
  4  0.392189
  5  2.3359
  6  0.0004051
  7  4.5144e-06
  8  15.9319
  9  12.3905
  10  2.19361
  11  8.61757e-05
  12  18.7629
  13  2.99544
  14  9.75752e-07
  15  4.55204
  16  33.7061
  17  1.32649
  18  3.1028e-06
  19  1.68088e-05
  20  4.30888e-05
  21  39.291
  22  4.1533e-06
  23  1.8508
  24  1.45199e-05
  25  3.82167
  26  5.64992e-06
  27  4.30378e-06
  28  3.35659
  29  0.251386
  30  0.291391
Done.

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

Extracting fit parameters...

4FGL J1136.2+3407
   Spectrum: PowerLaw
306    Prefactor:  3.358e+00  4.552e+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.068e+00  2.914e-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:  6.687e-01  2.514e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/945388/likelihoodResults_258249601_258508801_4FGL_J1136.2+3407_daily_bin73.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) = 3318.76487764
delta logL = 2.3797224999

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3318.63143229
delta logL = 2.51316785652

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.9493       1.0000         .10000E-03   10000.    
     2 'Index     '    1.2800       1.0000          .0000       10.000    
     3 'Normalizat'    .65510       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0699       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=   3318.631     FROM MIGRAD    STATUS=CONVERGED     49 CALLS      218 TOTAL
                     EDM=   .84E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.9493        5.5021        .38047E-02   -.31775E-03
   2  Index         1.2800        .28815        .10512       -.47247E-04
   3  Normalizat    .65514        .20611        .41688E-01    .31345E-04
   4  Prefactor     1.0699        .25134        .57395E-01    .29678E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.94934
  Index      = 1.28
  Normalizat = 0.655142
  Prefactor  = 1.06986
 **********
 **   18 **HESSE 
 **********

 FCN=   3318.631     FROM HESSE     STATUS=OK            31 CALLS      249 TOTAL
                     EDM=   .98E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.9493        7.3823        .10891E-03   -1.5181    
   2  Index         1.2800        .39749        .45229E-02   -.83904    
   3  Normalizat    .65514        .24114        .26265E-03   -1.0569    
   4  Prefactor     1.0699        .29464        .25379E-03   -.90436    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.783e-11
Minuit parameter uncertainties:
  1  7.38328
  2  0.398429
  3  0.241527
  4  0.295091
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/945388': 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) = 3318.63143227
delta logL = 2.51316787023

Extracting fit parameters...

4FGL J1136.2+3407
   Spectrum: PowerLaw
306    Prefactor:  6.949e+00  7.383e+00  1.000e-04  1.000e+04 ( 1.000e-12)
307        Index:  1.280e+00  3.984e-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.070e+00  2.951e-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:  6.551e-01  2.415e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.89
Ra Dec: 174.075 34.129
Photon Index (Free Index): 1.28 +/- 0.40
Photon Flux (Free Index): 2.21e-08 +/- 2.02e-08
Energy Flux (Free Index): 1.44e-04 +/- 1.49e-04

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/945388/cmap_HighResolution_258249601_258508801_4FGL_J1136.2+3407_daily_bin73.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.75e-03', comment='SUCCESS', energy_flux2='1.44e-04', dlogl='2.51e+00', photon_flux2='2.21e-08', job_status='DONE', time_completed='2021-09-04 05:04:43.353417', photon_index_error2='0.40', photon_index2='1.28', ts='0.87', fit_tolerance='1e-08', GAL='1.07', photon_index_error='0.00', photon_flux_upper_limit='1.12e-07', energy_flux_error2='1.49e-04', EG='0.67', time_epoch_completed='1630757083.35', return_code='0', job_id='945388', GAL2='1.07', EG2='0.66', return_code2='0', photon_flux_error2='2.02e-08', ts2='5.89', photon_index='2.55' WHERE bin_id='73' AND source_name='4FGL J1136.2+3407' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 05:04:43 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0192>
Subject: Job 945388: <4FGL_J1136.2+3407_daily_bin73> in cluster <slac> Done

Job <4FGL_J1136.2+3407_daily_bin73> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Sat Sep  4 04:52:16 2021
Job was executed on host(s) <bullet0192>, 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:44 2021
Results reported at Sat Sep  4 05:04:44 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1136.2+3407_daily_bin73 174.075 34.129 258249601 258508801 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 :                                   616.53 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             285.76 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   745 sec.
    Turnaround time :                            748 sec.

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

