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


Performing analysis on: 4FGL_J1136.2+3407_daily_bin18
RA = 174.075, Dec = 34.129
tmin = 243993601, tmax = 244252801
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='944068', job_status='RUN', time_executed='2021-09-04 04:50:53.772219', time_epoch_executed='1630756253.77' WHERE source_name='4FGL J1136.2+3407' and cadence='daily' and bin_id='18'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/944068

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/944068/ft1_4FGL_J1136.2+3407_daily_bin18.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/944068/ft2_4FGL_J1136.2+3407_daily_bin18.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/944068/ft1_4FGL_J1136.2+3407_daily_bin18.fits outfile=/scratch/kocevski/944068/ft1_filteredMKT_4FGL_J1136.2+3407_daily_bin18.fits ra=174.075 dec=34.129 rad=12.0 tmin=243993601.0 tmax=244252801.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.39
user 1.20
sys 0.17

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/944068/ft1_filtered_4FGL_J1136.2+3407_daily_bin18.fits evtable="EVENTS" scfile=/scratch/kocevski/944068/ft2_4FGL_J1136.2+3407_daily_bin18.fits sctable="SC_DATA" expcube=/scratch/kocevski/944068/ltcube_243993601_244252801_4FGL_J1136.2+3407_daily_bin18.fits outfile=/scratch/kocevski/944068/expmap_243993601_244252801_4FGL_J1136.2+3407_daily_bin18.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/944068/ltcube_243993601_244252801_4FGL_J1136.2+3407_daily_bin18.fits
.....................!
real 190.44
user 185.40
sys 4.69

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

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/944068/ft1_filtered_4FGL_J1136.2+3407_daily_bin18.fits scfile=/scratch/kocevski/944068/ft2_4FGL_J1136.2+3407_daily_bin18.fits outfile=/scratch/kocevski/944068/cmap_HighResolution_243993601_244252801_4FGL_J1136.2+3407_daily_bin18.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.40
sys 0.13

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    10.657       1.0000         .10000E-03   10000.    
     2 'Prefactor '    168.66       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    1.6918       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    24.138       1.0000         .10000E-03   10000.    
     9 'norm      '    2.5523       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10039E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    15.810       1.0000         .10000E-03   10000.    
    13 'norm      '    .58995       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    1.2457       1.0000         .10000E-03   10000.    
    16 'Prefactor '    66.369       1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    2.2800       1.0000         .10000E-03   10000.    
    19 'Prefactor '    2.9823       1.0000         .10000E-03   10000.    
    20 'norm      '    12.042       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    3.4480       1.0000         .10000E-03   10000.    
    24 'Prefactor '    15.250       1.0000         .10000E-03   10000.    
    25 'norm      '    14.533       1.0000         .10000E-03   10000.    
    26 'Prefactor '    14.419       1.0000         .10000E-03   10000.    
    27 'Prefactor '    2.0991       1.0000         .10000E-03   10000.    
    28 'Prefactor '    3.8042       1.0000         .10000E-03   10000.    
    29 'Normalizat'    .76407       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .98488       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6260E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5824.869     FROM MIGRAD    STATUS=CONVERGED     90 CALLS     3233 TOTAL
                     EDM=   .14E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY= 12.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     10.657        1.0020       -.57232E-07   -.11956E-04
   2  Prefactor     168.66        1.0029        .35416E-07   -.41586E-03
   3  Prefactor     .10000E-03    2.5547       -.64720E-06** at limit **
   4  norm          1.6920        .35944        .18101E-06    .21968E-02
   5  Prefactor     .10000E-03    .80084       -.71511E-06** at limit **
   6  Prefactor     .10000E-03    9.0248       -.19592E-05** at limit **
   7  Prefactor     .10000E-03    11.645        .91629E-05** at limit **
   8  norm          24.144        1.1389        .52370E-06   -.14811E-03
   9  norm          2.5527        1.0267        .28929E-06    .65470E-04
  10  Prefactor     .10000E-03    .77614       -.35425E-06** at limit **
  11  Prefactor     .10000E-03    39.848       -.51613E-04** at limit **
  12  Prefactor     15.810        1.0390        .33203E-06   -.77066E-04
  13  norm          .58881        2.0452       -.24263E-05   -.17651E-03
  14  Prefactor     .10000E-03    16.245       -.19519E-04** at limit **
  15  Prefactor     1.2500        4.3492       -.10829E-05   -.95009E-04
  16  Prefactor     66.370        1.0528        .23651E-06   -.10645E-02
  17  norm          .10000E-03    .37094       -.38287E-07** at limit **
  18  Prefactor     2.2796        1.0282        .17227E-06   -.12672E-04
  19  Prefactor     2.9825        1.8622       -.92780E-07    .31721E-03
  20  norm          12.040        1.0041        .46405E-07    .22991E-04
  21  Prefactor     .10002E-03    17.320        .34655E-04** at limit **
  22  Prefactor     .10002E-03    13.414        .22780E-04** at limit **
  23  norm          3.4480        1.2845       -.30535E-07   -.40344E-03
  24  Prefactor     15.249        1.0179       -.27212E-06    .18016E-03
  25  norm          14.533        1.0676        .22877E-06    .15189E-02
  26  Prefactor     14.419        1.0076        .14645E-06   -.13562E-04
  27  Prefactor     2.0990        1.9009       -.49469E-06   -.51003E-04
  28  Prefactor     3.8042        2.3291       -.38609E-06   -.10848E-03
  29  Normalizat    .76407        .19981       -.11628E-05   -.18378E-03
  30  Prefactor     .98486        .23848       -.10786E-05   -.20563E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 10.6571
  Prefactor  = 168.659
  Prefactor  = 0.0001
  norm       = 1.69195
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 24.1439
  norm       = 2.55269
  Prefactor  = 0.0001
  Prefactor  = 0.000100004
  Prefactor  = 15.8104
  norm       = 0.588813
  Prefactor  = 0.0001
  Prefactor  = 1.24999
  Prefactor  = 66.37
  norm       = 0.0001
  Prefactor  = 2.2796
  Prefactor  = 2.98249
  norm       = 12.0402
  Prefactor  = 0.000100017
  Prefactor  = 0.00010002
  norm       = 3.44799
  Prefactor  = 15.2487
  norm       = 14.5327
  Prefactor  = 14.4192
  Prefactor  = 2.09903
  Prefactor  = 3.80418
  Normalizat = 0.764071
  Prefactor  = 0.984865
 **********
 **   18 **HESSE 
 **********

 FCN=   5824.869     FROM HESSE     STATUS=OK           652 CALLS     3885 TOTAL
                     EDM=   .13E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     10.657        16.214        .30683E-02   -1.5055    
   2  Prefactor     168.66        112.99        .77659E-03   -1.3103    
   3  Prefactor     .10000E-03    2.5530        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          1.6920        .36075        .46130E-02   -1.5448    
   5  Prefactor     .10000E-03    .78913        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    8.9896        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    11.562        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          24.144        14.496        .20383E-02   -1.4725    
   9  norm          2.5527        6.5158        .63893E-02   -1.5388    
  10  Prefactor     .10000E-03    .76475        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    40.456        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     15.810        14.124        .25183E-02   -1.4913    
  13  norm          .58881        2.1117        .11633E-01   -1.5555    
  14  Prefactor     .10000E-03    15.986        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     1.2500        4.4278        .10030E-01   -1.5484    
  16  Prefactor     66.370        45.012        .12316E-02   -1.4077    
  17  norm          .10000E-03    .36285        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     2.2796        16.183        .67980E-02   -1.5406    
  19  Prefactor     2.9825        1.9000        .58773E-02   -1.5363    
  20  norm          12.040        9.8164        .28860E-02   -1.5014    
  21  Prefactor     .10002E-03    28.609        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10002E-03    31.014        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          3.4480        1.2920        .54452E-02   -1.5337    
  24  Prefactor     15.249        23.375        .25641E-02   -1.4927    
  25  norm          14.533        4.4574        .26267E-02   -1.4945    
  26  Prefactor     14.419        10.243        .26370E-02   -1.4948    
  27  Prefactor     2.0990        1.9836        .71215E-02   -1.5418    
  28  Prefactor     3.8042        2.3980        .51738E-02   -1.5318    
  29  Normalizat    .76407        .18221        .43140E-01   -1.0142    
  30  Prefactor     .98486        .20834        .46078E-01   -.93236    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.28798e-07
Minuit parameter uncertainties:
  1  16.2206
  2  113.133
  3  1.62012e-05
  4  0.360748
  5  5.32172e-06
  6  3.60257e-05
  7  2.53416e-05
  8  14.4978
  9  6.51761
  10  3.06621e-06
  11  0.000788821
  12  14.1269
  13  2.11194
  14  1.64811e-05
  15  4.42895
  16  45.0347
  17  7.2417e-07
  18  12.152
  19  1.90008
  20  9.81771
  21  0.00139541
  22  0.00157619
  23  1.29201
  24  23.3892
  25  4.45751
  26  10.2445
  27  1.98363
  28  2.39808
  29  0.182355
  30  0.208506
Done.

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

Extracting fit parameters...

4FGL J1136.2+3407
   Spectrum: PowerLaw
306    Prefactor:  1.250e+00  4.429e+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:  9.849e-01  2.085e-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.641e-01  1.824e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.10
Ra Dec: 174.075 34.129
Photon Flux Upper Limit: 8.46e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.61e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/944068/likelihoodResults_243993601_244252801_4FGL_J1136.2+3407_daily_bin18.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) = 5824.76752082
delta logL = 0.101135490595

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5824.76517015
delta logL = 0.10348616116

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.1351       1.0000         .10000E-03   10000.    
     2 'Index     '    3.3030       1.0000          .0000       10.000    
     3 'Normalizat'    .74896       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .99441       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=   5824.765     FROM MIGRAD    STATUS=CONVERGED     82 CALLS      236 TOTAL
                     EDM=   .13E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.1353        3.8205        .14997E-03    .49282E-03
   2  Index         3.3029        2.0442        .13433E-01    .32394E-04
   3  Normalizat    .74895        .20180        .26186E-03    .24126E-03
   4  Prefactor     .99442        .23950        .27693E-03    .18806E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.13525
  Index      = 3.30286
  Normalizat = 0.748953
  Prefactor  = 0.99442
 **********
 **   18 **HESSE 
 **********

 FCN=   5824.765     FROM HESSE     STATUS=OK            25 CALLS      261 TOTAL
                     EDM=   .14E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.1353        3.0978        .59988E-05   -1.5495    
   2  Index         3.3029        1.6746        .53731E-03   -.34631    
   3  Normalizat    .74895        .20212        .10474E-04   -1.0199    
   4  Prefactor     .99442        .23964        .11077E-04   -.92916    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.38915e-10
Minuit parameter uncertainties:
  1  3.0982
  2  1.71219
  3  0.202327
  4  0.239893
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/944068': 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) = 5824.76517014
delta logL = 0.103486169582

Extracting fit parameters...

4FGL J1136.2+3407
   Spectrum: PowerLaw
306    Prefactor:  1.135e+00  3.098e+00  1.000e-04  1.000e+04 ( 1.000e-12)
307        Index:  3.303e+00  1.712e+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:  9.944e-01  2.399e-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.490e-01  2.023e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.10
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/944068/cmap_HighResolution_243993601_244252801_4FGL_J1136.2+3407_daily_bin18.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.61e-03', job_status='DONE', photon_flux_upper_limit='8.46e-08', time_completed='2021-09-04 05:04:07.461270', job_id='944068', GAL2='0.99', fit_tolerance='1e-08', EG2='0.75', EG='0.76', time_epoch_completed='1630757047.46', return_code2='0', ts='0.10', comment='SUCCESS', return_code='0', GAL='0.98', dlogl='1.03e-01', ts2='0.33', photon_index_error='0.00', photon_index='2.55' WHERE bin_id='18' AND source_name='4FGL J1136.2+3407' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 05:04:07 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0254>
Subject: Job 944068: <4FGL_J1136.2+3407_daily_bin18> in cluster <slac> Done

Job <4FGL_J1136.2+3407_daily_bin18> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Sat Sep  4 04:47:34 2021
Job was executed on host(s) <bullet0254>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 04:47:36 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:47:36 2021
Terminated at Sat Sep  4 05:04:08 2021
Results reported at Sat Sep  4 05:04:08 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1136.2+3407_daily_bin18 174.075 34.129 243993601 244252801 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 :                                   792.25 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             292.35 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   991 sec.
    Turnaround time :                            994 sec.

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

