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


Performing analysis on: 4FGL_J1136.2+3407_daily_bin22
RA = 174.075, Dec = 34.129
tmin = 245030401, tmax = 245289601
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='944075', job_status='RUN', time_executed='2021-09-04 04:48:13.005110', time_epoch_executed='1630756093.01' WHERE source_name='4FGL J1136.2+3407' and cadence='daily' and bin_id='22'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/944075

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/944075/ft1_4FGL_J1136.2+3407_daily_bin22.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/944075/ft2_4FGL_J1136.2+3407_daily_bin22.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/944075/ft1_4FGL_J1136.2+3407_daily_bin22.fits outfile=/scratch/kocevski/944075/ft1_filteredMKT_4FGL_J1136.2+3407_daily_bin22.fits ra=174.075 dec=34.129 rad=12.0 tmin=245030401.0 tmax=245289601.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.45
user 1.26
sys 0.17

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/944075/ft1_filtered_4FGL_J1136.2+3407_daily_bin22.fits" evtable="EVENTS" scfile=/scratch/kocevski/944075/ft2_4FGL_J1136.2+3407_daily_bin22.fits sctable="SC_DATA" outfile=/scratch/kocevski/944075/ltcube_245030401_245289601_4FGL_J1136.2+3407_daily_bin22.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/944075/ft2_4FGL_J1136.2+3407_daily_bin22.fits
.....................!
real 15.28
user 14.40
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/944075/ft1_filtered_4FGL_J1136.2+3407_daily_bin22.fits evtable="EVENTS" scfile=/scratch/kocevski/944075/ft2_4FGL_J1136.2+3407_daily_bin22.fits sctable="SC_DATA" expcube=/scratch/kocevski/944075/ltcube_245030401_245289601_4FGL_J1136.2+3407_daily_bin22.fits outfile=/scratch/kocevski/944075/expmap_245030401_245289601_4FGL_J1136.2+3407_daily_bin22.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/944075/ltcube_245030401_245289601_4FGL_J1136.2+3407_daily_bin22.fits
.....................!
real 190.94
user 185.90
sys 4.23

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/944075/ft1_filtered_4FGL_J1136.2+3407_daily_bin22.fits scfile=/scratch/kocevski/944075/ft2_4FGL_J1136.2+3407_daily_bin22.fits outfile=/scratch/kocevski/944075/cmap_245030401_245289601_4FGL_J1136.2+3407_daily_bin22.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.14

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    5.2404       1.0000         .10000E-03   10000.    
     4 'norm      '    1.0719       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    22.086       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    4.0680       1.0000         .10000E-03   10000.    
     9 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10335E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    5.7823       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    1.6275       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .52072       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    4.2335       1.0000         .10000E-03   10000.    
    20 'norm      '    10.414       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10187E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .26036       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    32.139       1.0000         .10000E-03   10000.    
    26 'Prefactor '    1.8374       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    5.5922       1.0000         .10000E-03   10000.    
    29 'Normalizat'    .88735       1.0000         .10000E-01   10.000    
    30 'Prefactor '    1.2250       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=   5473.156     FROM MIGRAD    STATUS=CONVERGED    790 CALLS     4880 TOTAL
                     EDM=   .76E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    15.477       -.55830E-05** at limit **
   2  Prefactor     .10000E-03    71.008        .36437E-05** at limit **
   3  Prefactor     5.2433        15.838        .47344E-06   -.16014E-04
   4  norm          1.0719        .36246       -.44174E-08   -.72985E-03
   5  Prefactor     .10000E-03    2.8038       -.37190E-07** at limit **
   6  Prefactor     22.084        17.779       -.30983E-07   -.10778E-03
   7  Prefactor     .10000E-03    14.274        .36858E-05** at limit **
   8  norm          4.0675        8.1364       -.21772E-06   -.31569E-03
   9  norm          .10000E-03    4.0984       -.24492E-07** at limit **
  10  Prefactor     .10000E-03    1.4040        .91418E-06** at limit **
  11  Prefactor     5.7381        36.298       -.12824E-04   -.99466E-04
  12  Prefactor     .10000E-03    21.886        .23394E-05** at limit **
  13  norm          1.6272        2.4313        .38294E-06   -.25674E-03
  14  Prefactor     .10000E-03    7.3214       -.58408E-07** at limit **
  15  Prefactor     .10000E-03    2.0818        .25064E-07** at limit **
  16  Prefactor     .10000E-03    22.176        .24447E-05** at limit **
  17  norm          .51939        1.0623       -.54099E-07   -.31983E-03
  18  Prefactor     .10000E-03    10.268       -.63536E-06** at limit **
  19  Prefactor     4.2338        2.0779       -.22174E-07    .15207E-04
  20  norm          10.413        11.096        .27195E-08   -.48318E-05
  21  Prefactor     .10000E-03    11.791        .65526E-06** at limit **
  22  Prefactor     .10000E-03    123.49       -.12463E-05** at limit **
  23  norm          .26044        .91458        .76035E-07   -.60229E-04
  24  Prefactor     .10000E-03    28.065       -.41479E-05** at limit **
  25  norm          32.141        6.2463       -.13735E-05    .80782E-03
  26  Prefactor     1.8372        1.6721        .13963E-06   -.13159E-02
  27  Prefactor     .10000E-03    1.6313        .20069E-06** at limit **
  28  Prefactor     5.5924        2.9831        .40894E-06   -.58562E-04
  29  Normalizat    .88730        .18986        .17110E-06   -.13030E-03
  30  Prefactor     1.2250        .22002        .59497E-06   -.12651E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.24331
  norm       = 1.0719
  Prefactor  = 0.0001
  Prefactor  = 22.0844
  Prefactor  = 0.0001
  norm       = 4.06746
  norm       = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 5.73809
  Prefactor  = 0.0001
  norm       = 1.62721
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.519387
  Prefactor  = 0.0001
  Prefactor  = 4.23376
  norm       = 10.4133
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.260439
  Prefactor  = 0.0001
  norm       = 32.1411
  Prefactor  = 1.83715
  Prefactor  = 0.0001
  Prefactor  = 5.59245
  Normalizat = 0.887295
  Prefactor  = 1.22501
 **********
 **   18 **HESSE 
 **********

 FCN=   5473.156     FROM HESSE     STATUS=OK           584 CALLS     5464 TOTAL
                     EDM=   .83E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    15.311        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    70.937        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     5.2433        15.760        .17559E-03   -1.5250    
   4  norm          1.0719        .36302        .24352E-04   -1.5501    
   5  Prefactor     .10000E-03    2.9016        .24027E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     22.084        17.800        .85231E-04   -1.4768    
   7  Prefactor     .10000E-03    14.260        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          4.0675        8.2648        .99951E-03   -1.5305    
   9  norm          .10000E-03    4.1162        .14626E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    2.2021        .16178E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     5.7381        34.891        .16702E-03   -1.5229    
  12  Prefactor     .10000E-03    22.134        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          1.6272        2.3808        .12978E-03   -1.5453    
  14  Prefactor     .10000E-03    7.3712        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    2.0929        .10420E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    22.155        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .51939        .93641        .10014E-02   -1.5564    
  18  Prefactor     .10000E-03    10.311        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     4.2338        2.0769        .72211E-04   -1.5296    
  20  norm          10.413        11.062        .12416E-03   -1.5062    
  21  Prefactor     .10000E-03    11.817        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    124.02        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .26044        .91911        .12622E-03   -1.5606    
  24  Prefactor     .10000E-03    28.030        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          32.141        6.1177        .70680E-04   -1.4573    
  26  Prefactor     1.8372        6.4016        .15389E-02   -1.5437    
  27  Prefactor     .10000E-03    1.6658        .92244E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     5.5924        2.9780        .88716E-04   -1.5235    
  29  Normalizat    .88730        .21982        .26380E-03   -.96908    
  30  Prefactor     1.2250        .25888        .27618E-03   -.85565    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.25362e-09
Minuit parameter uncertainties:
  1  0.000157211
  2  0.000233524
  3  15.7727
  4  0.363016
  5  9.77649e-06
  6  17.8043
  7  0.000111926
  8  8.26708
  9  1.80451e-06
  10  0.000138578
  11  28.3232
  12  0.000117869
  13  2.38095
  14  5.6071e-06
  15  6.57164e-08
  16  8.68588e-05
  17  0.936438
  18  1.36714e-05
  19  2.07693
  20  11.0642
  21  1.35881e-05
  22  6.77542e-05
  23  0.919157
  24  0.000219362
  25  6.11783
  26  6.40397
  27  2.65747e-05
  28  2.97804
  29  0.220044
  30  0.259148
Done.

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

Extracting fit parameters...

4FGL J1136.2+3407
   Spectrum: PowerLaw
306    Prefactor:  1.000e-04  6.572e-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.225e+00  2.591e-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:  8.873e-01  2.200e-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.41e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.00e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/944075/likelihoodResults_245030401_245289601_4FGL_J1136.2+3407_daily_bin22.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) = 5473.15784288
delta logL = -0.00225992451033

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5473.1555833
delta logL = -3.46152774e-07

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.5460       1.0000          .0000       10.000    
     3 'Normalizat'    .88748       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2248       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=   5473.156     FROM MIGRAD    STATUS=CONVERGED    104 CALLS      252 TOTAL
                     EDM=   .79E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    21.143        .10443E-01** at limit **
   2  Index         2.2434        6.0491        .50000       -.73783E-07
   3  Normalizat    .88730        .14474E-01    .26380E-03    .11636E-05
   4  Prefactor     1.2250        .17567E-01    .27618E-03    .88092E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.24342
  Normalizat = 0.887296
  Prefactor  = 1.22501
 **********
 **   18 **HESSE 
 **********

 FCN=   5473.156     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      281 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    319.85        .10689E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.2434        7.2156        .50000       -.58394    
   3  Normalizat    .88730        .71351E-01    .10552E-04   -.96908    
   4  Prefactor     1.2250        .86588E-01    .11047E-04   -.85565    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.20666e-09
Minuit parameter uncertainties:
  1  4.79023e-05
  2  1348.81
  3  0.0713588
  4  0.0865978
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/944075': 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) = 5473.1555818
delta logL = 1.15370494314e-06

Extracting fit parameters...

4FGL J1136.2+3407
   Spectrum: PowerLaw
306    Prefactor:  1.000e-04  4.790e-05  1.000e-04  1.000e+04 ( 1.000e-12)
307        Index:  2.243e+00  1.349e+03  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.225e+00  8.660e-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:  8.873e-01  7.136e-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/944075/cmap_HighResolution_245030401_245289601_4FGL_J1136.2+3407_daily_bin22.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.00e-03', job_status='DONE', photon_flux_upper_limit='6.41e-08', time_completed='2021-09-04 05:03:10.365515', job_id='944075', GAL2='1.23', fit_tolerance='1e-08', EG2='0.89', EG='0.89', time_epoch_completed='1630756990.37', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.23', dlogl='1.15e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.55' WHERE bin_id='22' AND source_name='4FGL J1136.2+3407' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 05:03:10 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0124>
Subject: Job 944075: <4FGL_J1136.2+3407_daily_bin22> in cluster <slac> Done

Job <4FGL_J1136.2+3407_daily_bin22> 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) <bullet0124>, 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:03:11 2021
Results reported at Sat Sep  4 05:03:11 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1136.2+3407_daily_bin22 174.075 34.129 245030401 245289601 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 :                                   893.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             354.07 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   934 sec.
    Turnaround time :                            937 sec.

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

