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


Performing analysis on: 4FGL_J1136.2+3407_daily_bin93
RA = 174.075, Dec = 34.129
tmin = 263433601, tmax = 263692801
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='945419', job_status='RUN', time_executed='2021-09-04 04:54:04.177565', time_epoch_executed='1630756444.18' WHERE source_name='4FGL J1136.2+3407' and cadence='daily' and bin_id='93'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/945419

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/945419/ft1_4FGL_J1136.2+3407_daily_bin93.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/945419/ft2_4FGL_J1136.2+3407_daily_bin93.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/945419/ft1_4FGL_J1136.2+3407_daily_bin93.fits outfile=/scratch/kocevski/945419/ft1_filteredMKT_4FGL_J1136.2+3407_daily_bin93.fits ra=174.075 dec=34.129 rad=12.0 tmin=263433601.0 tmax=263692801.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.46
user 3.21
sys 0.21

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/945419/ft1_filtered_4FGL_J1136.2+3407_daily_bin93.fits evtable="EVENTS" scfile=/scratch/kocevski/945419/ft2_4FGL_J1136.2+3407_daily_bin93.fits sctable="SC_DATA" expcube=/scratch/kocevski/945419/ltcube_263433601_263692801_4FGL_J1136.2+3407_daily_bin93.fits outfile=/scratch/kocevski/945419/expmap_263433601_263692801_4FGL_J1136.2+3407_daily_bin93.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/945419/ltcube_263433601_263692801_4FGL_J1136.2+3407_daily_bin93.fits
.....................!
real 191.99
user 185.88
sys 5.38

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/945419/ft1_filtered_4FGL_J1136.2+3407_daily_bin93.fits scfile=/scratch/kocevski/945419/ft2_4FGL_J1136.2+3407_daily_bin93.fits outfile=/scratch/kocevski/945419/cmap_263433601_263692801_4FGL_J1136.2+3407_daily_bin93.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.52
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/945419/ft1_filtered_4FGL_J1136.2+3407_daily_bin93.fits scfile=/scratch/kocevski/945419/ft2_4FGL_J1136.2+3407_daily_bin93.fits outfile=/scratch/kocevski/945419/cmap_HighResolution_263433601_263692801_4FGL_J1136.2+3407_daily_bin93.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.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    147.75       1.0000         .10000E-03   10000.    
     3 'Prefactor '    9.2118       1.0000         .10000E-03   10000.    
     4 'norm      '    .60930       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .29723E-01   1.0000         .10000E-03   10000.    
     6 'Prefactor '    1.8577       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10125E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10022E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    19.435       1.0000         .10000E-03   10000.    
    10 'Prefactor '    1.4674       1.0000         .10000E-03   10000.    
    11 'Prefactor '    7.1926       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .13277E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    3.2515       1.0000         .10000E-03   10000.    
    17 'norm      '    2.8922       1.0000         .10000E-03   10000.    
    18 'Prefactor '    10.255       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .90891       1.0000         .10000E-03   10000.    
    20 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    3.2372       1.0000         .10000E-03   10000.    
    24 'Prefactor '    14.596       1.0000         .10000E-03   10000.    
    25 'norm      '    .11062E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    4.3592       1.0000         .10000E-03   10000.    
    28 'Prefactor '    7.9327       1.0000         .10000E-03   10000.    
    29 'Normalizat'    1.0709       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .92929       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=   5029.644     FROM MIGRAD    STATUS=CONVERGED    800 CALLS     4030 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    18.315       -.94358E-06** at limit **
   2  Prefactor     147.72        147.51       -.23370E-04    .14949E-04
   3  Prefactor     9.2290        9.5060       -.21424E-05    .82073E-04
   4  norm          .60933        .27982        .49415E-07    .93376E-03
   5  Prefactor     .10642E-03    1.6920       -.22649E-06** at limit **
   6  Prefactor     1.8497        27.295       -.57761E-05   -.15962E-03
   7  Prefactor     .10000E-03    16.617        .85322E-06** at limit **
   8  norm          .10000E-03    6.7098        .36698E-07** at limit **
   9  norm          19.438        14.462       -.62955E-06    .51334E-04
  10  Prefactor     1.4669        2.8088       -.13671E-05   -.88611E-03
  11  Prefactor     7.2143        78.568        .17929E-04   -.66850E-04
  12  Prefactor     .10000E-03    8.7665       -.13460E-06** at limit **
  13  norm          .10000E-03    2.3743        .12410E-05** at limit **
  14  Prefactor     .10000E-03    4.3885       -.63886E-07** at limit **
  15  Prefactor     .10000E-03    2.0613       -.65441E-07** at limit **
  16  Prefactor     3.1539        223.35       -.23832E-03   -.32309E-04
  17  norm          2.8925        1.6320        .38464E-05    .21440E-02
  18  Prefactor     10.249        16.139       -.10146E-05    .27105E-05
  19  Prefactor     .90910        .98111       -.64132E-07    .12605E-03
  20  norm          .10000E-03    5.5684        .72297E-07** at limit **
  21  Prefactor     .10000E-03    81.137       -.11652E-04** at limit **
  22  Prefactor     .10000E-03    34.717       -.46734E-06** at limit **
  23  norm          3.2366        1.4684       -.26138E-06    .20599E-03
  24  Prefactor     14.563        29.534        .34252E-05    .59359E-04
  25  norm          .10000E-03    2.9538       -.10037E-06** at limit **
  26  Prefactor     .10000E-03    3.4682       -.65843E-07** at limit **
  27  Prefactor     4.3593        2.9169       -.25315E-06   -.49404E-04
  28  Prefactor     7.9324        3.3140       -.21044E-06    .53917E-04
  29  Normalizat    1.0709        .20544        .59503E-05    .45739E-03
  30  Prefactor     .92954        .22505        .11888E-05    .44017E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 147.719
  Prefactor  = 9.22902
  norm       = 0.609329
  Prefactor  = 0.00010642
  Prefactor  = 1.84974
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 19.4382
  Prefactor  = 1.46693
  Prefactor  = 7.21431
  Prefactor  = 0.0001
  norm       = 0.000100004
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.15387
  norm       = 2.89253
  Prefactor  = 10.2487
  Prefactor  = 0.909098
  norm       = 0.0001
  Prefactor  = 0.000100003
  Prefactor  = 0.0001
  norm       = 3.2366
  Prefactor  = 14.5632
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.35931
  Prefactor  = 7.93237
  Normalizat = 1.07092
  Prefactor  = 0.92954
 **********
 **   18 **HESSE 
 **********

 FCN=   5029.644     FROM HESSE     STATUS=OK           594 CALLS     4624 TOTAL
                     EDM=   .35E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    18.345        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     147.72        147.62        .16577E-03   -1.3271    
   3  Prefactor     9.2290        9.5702        .13205E-03   -1.5100    
   4  norm          .60933        .27816        .23707E-04   -1.5552    
   5  Prefactor     .10642E-03    5.3955        .29538E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     1.8497        27.205        .30578E-03   -1.5436    
   7  Prefactor     .10000E-03    16.700        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    6.7314        .17937E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          19.438        14.482        .90852E-04   -1.4826    
  10  Prefactor     1.4669        2.7134        .13449E-03   -1.5466    
  11  Prefactor     7.2143        64.704        .14957E-03   -1.5171    
  12  Prefactor     .10000E-03    8.8050        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    4.1307        .19140E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    4.3975        .14509E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    2.0759        .99406E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     3.1539        226.11        .22461E-03   -1.5353    
  17  norm          2.8925        1.6305        .55209E-04   -1.5368    
  18  Prefactor     10.249        16.139        .12512E-03   -1.5068    
  19  Prefactor     .90910        .98608        .70677E-04   -1.5517    
  20  norm          .10000E-03    5.5830        .16343E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    82.834        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    34.736        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          3.2366        1.4687        .54984E-04   -1.5348    
  24  Prefactor     14.563        29.590        .10484E-03   -1.4945    
  25  norm          .10000E-03    3.0445        .23658E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    3.4852        .12897E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     4.3593        2.9031        .93989E-04   -1.5290    
  28  Prefactor     7.9324        3.3111        .79278E-04   -1.5145    
  29  Normalizat    1.0709        .24318        .23693E-03   -.90691    
  30  Prefactor     .92954        .26496        .29637E-03   -.95116    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.54178e-09
Minuit parameter uncertainties:
  1  5.7234e-05
  2  147.989
  3  9.57178
  4  0.27816
  5  0.0117719
  6  14.1949
  7  4.71209e-05
  8  4.17215e-06
  9  14.4849
  10  2.71365
  11  43.2729
  12  3.5912e-05
  13  0.000259428
  14  1.32673e-05
  15  7.04453e-06
  16  53.62
  17  1.63055
  18  16.146
  19  0.9861
  20  1.00073e-05
  21  0.000995447
  22  1.56681e-05
  23  1.46876
  24  29.6198
  25  1.82298e-05
  26  2.17469e-05
  27  2.90318
  28  3.31116
  29  0.24343
  30  0.265329
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
623    Prefactor:  9.295e-01  2.653e-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.071e+00  2.434e-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: 6.26e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.88e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/945419/likelihoodResults_263433601_263692801_4FGL_J1136.2+3407_daily_bin93.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) = 5029.64670532
delta logL = -0.00227935619296

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5029.64442595
delta logL = 2.04627212952e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5432       1.0000          .0000       10.000    
     3 'Normalizat'    1.0709       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .92956       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.

 FCN=   5029.644     FROM MIGRAD    STATUS=CONVERGED    101 CALLS      252 TOTAL
                     EDM=   .98E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    15.488        .99817E-02** at limit **
   2  Index         2.2077        8.8790        .50000        .22221E-06
   3  Normalizat    1.0709        .12490E-01    .23693E-03    .63051E-04
   4  Prefactor     .92954        .14724E-01    .29637E-03    .58076E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100004
  Index      = 2.20767
  Normalizat = 1.07092
  Prefactor  = 0.929537
 **********
 **   18 **HESSE 
 **********

 FCN=   5029.644     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      281 TOTAL
                     EDM=   .99E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    155.99        .10338E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.2077        8.5823        .50000       -.59254    
   3  Normalizat    1.0709        .42865E-01    .94771E-05   -.90691    
   4  Prefactor     .92954        .50529E-01    .11855E-04   -.95116    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 9.91473e-08
Minuit parameter uncertainties:
  1  0.00160149
  2  796.798
  3  0.0428661
  4  0.0505312
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/945419': 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): 102
logL (Free Index) = 5029.64442421
delta logL = 1.75852892426e-06

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
623    Prefactor:  9.295e-01  5.053e-02  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.071e+00  4.287e-02  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/945419/cmap_HighResolution_263433601_263692801_4FGL_J1136.2+3407_daily_bin93.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.88e-03', job_status='DONE', photon_flux_upper_limit='6.26e-08', time_completed='2021-09-04 05:07:36.160527', job_id='945419', GAL2='0.93', fit_tolerance='1e-08', EG2='1.07', EG='1.07', time_epoch_completed='1630757256.16', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.93', dlogl='1.76e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.55' WHERE bin_id='93' AND source_name='4FGL J1136.2+3407' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 05:07:36 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0239>
Subject: Job 945419: <4FGL_J1136.2+3407_daily_bin93> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1136.2+3407_daily_bin93 174.075 34.129 263433601 263692801 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 :                                   806.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             303.86 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   915 sec.
    Turnaround time :                            917 sec.

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

