/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 216 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 = 7527
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1136.2+3407_daily_bin750
RA = 174.075, Dec = 34.129
tmin = 433728001, tmax = 433987201
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='948227', job_status='RUN', time_executed='2021-09-04 05:05:20.371614', time_epoch_executed='1630757120.37' WHERE source_name='4FGL J1136.2+3407' and cadence='daily' and bin_id='750'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/948227

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/948227/ft1_4FGL_J1136.2+3407_daily_bin750.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/948227/ft2_4FGL_J1136.2+3407_daily_bin750.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/948227/ft1_4FGL_J1136.2+3407_daily_bin750.fits outfile=/scratch/kocevski/948227/ft1_filteredMKT_4FGL_J1136.2+3407_daily_bin750.fits ra=174.075 dec=34.129 rad=12.0 tmin=433728001.0 tmax=433987201.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 6.06
user 5.81
sys 0.24

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/948227/ft2_4FGL_J1136.2+3407_daily_bin750.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/948227/ft1_filteredMKT_4FGL_J1136.2+3407_daily_bin750.fits evtable="EVENTS" outfile="/scratch/kocevski/948227/ft1_filtered_4FGL_J1136.2+3407_daily_bin750.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.49
user 0.33
sys 0.15

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/948227/ft1_filtered_4FGL_J1136.2+3407_daily_bin750.fits evtable="EVENTS" scfile=/scratch/kocevski/948227/ft2_4FGL_J1136.2+3407_daily_bin750.fits sctable="SC_DATA" expcube=/scratch/kocevski/948227/ltcube_433728001_433987201_4FGL_J1136.2+3407_daily_bin750.fits outfile=/scratch/kocevski/948227/expmap_433728001_433987201_4FGL_J1136.2+3407_daily_bin750.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/948227/ltcube_433728001_433987201_4FGL_J1136.2+3407_daily_bin750.fits
.....................!
real 190.68
user 185.29
sys 5.00

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/948227/ft1_filtered_4FGL_J1136.2+3407_daily_bin750.fits scfile=/scratch/kocevski/948227/ft2_4FGL_J1136.2+3407_daily_bin750.fits outfile=/scratch/kocevski/948227/cmap_433728001_433987201_4FGL_J1136.2+3407_daily_bin750.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=174.075 yref=34.129 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.54
user 0.39
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/948227/ft1_filtered_4FGL_J1136.2+3407_daily_bin750.fits scfile=/scratch/kocevski/948227/ft2_4FGL_J1136.2+3407_daily_bin750.fits outfile=/scratch/kocevski/948227/cmap_HighResolution_433728001_433987201_4FGL_J1136.2+3407_daily_bin750.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.58
user 0.39
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    49.179       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .59063       1.0000         .10000E-03   10000.    
     4 'norm      '    2.5282       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    3.8695       1.0000         .10000E-03   10000.    
     8 'norm      '    16.212       1.0000         .10000E-03   10000.    
     9 'norm      '    27.836       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .42484       1.0000         .10000E-03   10000.    
    11 'Prefactor '    56.517       1.0000         .10000E-03   10000.    
    12 'Prefactor '    13.472       1.0000         .10000E-03   10000.    
    13 'norm      '    .10089E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    6.9199       1.0000         .10000E-03   10000.    
    15 'Prefactor '    6.4772       1.0000         .10000E-03   10000.    
    16 'Prefactor '    78.112       1.0000         .10000E-03   10000.    
    17 'norm      '    7.7705       1.0000         .10000E-03   10000.    
    18 'Prefactor '    11.395       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10826E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10013E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    17.153       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10043E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10627E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    66.967       1.0000         .10000E-03   10000.    
    25 'norm      '    8.0342       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    1.4555       1.0000         .10000E-03   10000.    
    28 'Prefactor '    4.0056       1.0000         .10000E-03   10000.    
    29 'Normalizat'    .52848       1.0000         .10000E-01   10.000    
    30 'Prefactor '    1.1494       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=   3664.693     FROM MIGRAD    STATUS=CONVERGED    789 CALLS     4612 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    13.378        .69629E-07** at limit **
   2  Prefactor     48.997        153.23       -.25674E-05   -.66272E-04
   3  Prefactor     .59492        11.694        .48279E-06    .13017E-04
   4  norm          2.5276        .61693        .37796E-07   -.31539E-03
   5  Prefactor     .10000E-03    1.3801        .44246E-07** at limit **
   6  Prefactor     .10000E-03    5.7716       -.85234E-07** at limit **
   7  Prefactor     3.9235        55.621       -.24441E-05   -.39753E-05
   8  norm          16.213        14.571       -.47701E-06    .66239E-04
   9  norm          27.835        17.059        .13767E-06   -.18099E-04
  10  Prefactor     .42634        4.4271        .15010E-05    .14232E-02
  11  Prefactor     56.564        68.400       -.91834E-05    .14211E-03
  12  Prefactor     13.488        29.637       -.13485E-05    .65073E-05
  13  norm          .10000E-03    2.3196        .17026E-05** at limit **
  14  Prefactor     6.9197        16.551        .34156E-05   -.13108E-03
  15  Prefactor     6.4876        11.014       -.35711E-05    .14996E-03
  16  Prefactor     78.215        84.537        .79876E-06    .13493E-03
  17  norm          7.7691        2.7993       -.22527E-06    .35316E-03
  18  Prefactor     11.391        24.145       -.55238E-06   -.88126E-04
  19  Prefactor     .10000E-03    1.7137        .60020E-06** at limit **
  20  norm          .10000E-03    6.9102        .85422E-07** at limit **
  21  Prefactor     17.132        50.103        .10794E-05   -.25088E-05
  22  Prefactor     .10000E-03    49.410        .12702E-06** at limit **
  23  norm          .10000E-03    .85236        .18629E-06** at limit **
  24  Prefactor     66.992        64.893        .24840E-06    .45654E-04
  25  norm          8.0340        3.8982        .21951E-07   -.16750E-04
  26  Prefactor     .10000E-03    3.1192        .15391E-06** at limit **
  27  Prefactor     1.4554        1.7036        .23361E-07   -.13848E-05
  28  Prefactor     4.0056        3.1096        .97920E-07   -.55755E-04
  29  Normalizat    .52839        .25850       -.31751E-05    .64644E-05
  30  Prefactor     1.1495        .26486        .42831E-06   -.99568E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 48.997
  Prefactor  = 0.594922
  norm       = 2.52764
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.92352
  norm       = 16.2133
  norm       = 27.8355
  Prefactor  = 0.42634
  Prefactor  = 56.5637
  Prefactor  = 13.4882
  norm       = 0.0001
  Prefactor  = 6.9197
  Prefactor  = 6.48761
  Prefactor  = 78.2153
  norm       = 7.76908
  Prefactor  = 11.3912
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 17.1321
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 66.9921
  norm       = 8.03398
  Prefactor  = 0.0001
  Prefactor  = 1.45541
  Prefactor  = 4.00561
  Normalizat = 0.528394
  Prefactor  = 1.14948
 **********
 **   18 **HESSE 
 **********

 FCN=   3664.693     FROM HESSE     STATUS=OK           600 CALLS     5212 TOTAL
                     EDM=   .12E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    13.399        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     48.997        153.41        .28591E-03   -1.4307    
   3  Prefactor     .59492        37.809        .39302E-02   -1.5554    
   4  norm          2.5276        .62963        .20184E-04   -1.5390    
   5  Prefactor     .10000E-03    1.3872        .69398E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    5.7742        .14202E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     3.9235        57.892        .20514E-03   -1.5312    
   8  norm          16.213        14.582        .99471E-04   -1.4902    
   9  norm          27.835        17.094        .75934E-04   -1.4652    
  10  Prefactor     .42634        15.665        .18676E-02   -1.5577    
  11  Prefactor     56.564        77.252        .53360E-04   -1.4202    
  12  Prefactor     13.488        29.656        .10913E-03   -1.4973    
  13  norm          .10000E-03    2.3563        .90087E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     6.9197        16.386        .76256E-03   -1.5182    
  15  Prefactor     6.4876        11.191        .15769E-03   -1.5198    
  16  Prefactor     78.215        84.849        .22719E-03   -1.3937    
  17  norm          7.7691        2.8112        .50280E-04   -1.5150    
  18  Prefactor     11.391        23.430        .11868E-03   -1.5033    
  19  Prefactor     .10000E-03    2.5098        .14734E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    6.9130        .15543E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     17.132        49.869        .96706E-04   -1.4880    
  22  Prefactor     .10000E-03    49.429        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    5.1369        .10681E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     66.992        64.637        .49046E-04   -1.4069    
  25  norm          8.0340        3.8936        .78559E-04   -1.5141    
  26  Prefactor     .10000E-03    3.1219        .10441E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     1.4554        1.6985        .82264E-04   -1.5467    
  28  Prefactor     4.0056        3.1059        .88601E-04   -1.5308    
  29  Normalizat    .52839        .30513        .31757E-03   -1.1112    
  30  Prefactor     1.1495        .31543        .26180E-03   -.87901    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.18863e-08
Minuit parameter uncertainties:
  1  1.05504e-05
  2  154.671
  3  9.49091
  4  0.629627
  5  4.00916e-06
  6  1.77894e-05
  7  30.1772
  8  14.5847
  9  17.0967
  10  5.16954
  11  77.3896
  12  29.6883
  13  9.12289e-06
  14  16.397
  15  11.1946
  16  84.9812
  17  2.8112
  18  23.4493
  19  2.22144e-05
  20  3.63591e-06
  21  49.9909
  22  4.94638e-05
  23  5.03971e-05
  24  64.7048
  25  3.89372
  26  1.53609e-06
  27  1.69856
  28  3.10601
  29  0.306099
  30  0.315944
Done.

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

Extracting fit parameters...

4FGL J1136.2+3407
   Spectrum: PowerLaw
306    Prefactor:  6.488e+00  1.119e+01  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.149e+00  3.159e-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:  5.284e-01  3.061e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.57
Ra Dec: 174.075 34.129
Photon Flux Upper Limit: 1.86e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.45e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/948227/likelihoodResults_433728001_433987201_4FGL_J1136.2+3407_daily_bin750.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) = 3664.21871757
delta logL = 0.473955648044

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 3664.17769876
delta logL = 0.514974463652

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.6862       1.0000         .10000E-03   10000.    
     2 'Index     '    4.0136       1.0000          .0000       10.000    
     3 'Normalizat'    .46912       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2021       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=   3664.178     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      256 TOTAL
                     EDM=   .22E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.6879        32.524        .81068E-02    .11477E-02
   2  Index         4.0134        3.9519        .15023        .15166E-03
   3  Normalizat    .46919        .61817E-01    .75777E-01    .22527E-03
   4  Prefactor     1.2020        .73581E-01    .58053E-01    .20138E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.68787
  Index      = 4.01339
  Normalizat = 0.469186
  Prefactor  = 1.20198
 **********
 **   18 **HESSE 
 **********

 FCN=   3664.178     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      287 TOTAL
                     EDM=   .74E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.6879        66.210        .67294E-04   -1.5448    
   2  Index         4.0134        6.9319        .55290E-02   -.19862    
   3  Normalizat    .46919        .25266        .33557E-03   -1.1387    
   4  Prefactor     1.2020        .30270        .25669E-03   -.86270    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 7.39371e-10
Minuit parameter uncertainties:
  1  21.1673
  2  7.92829
  3  0.253275
  4  0.303136
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/948227': 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) = 3664.17769835
delta logL = 0.514974876378

Extracting fit parameters...

4FGL J1136.2+3407
   Spectrum: PowerLaw
306    Prefactor:  1.688e+00  2.117e+01  1.000e-04  1.000e+04 ( 1.000e-12)
307        Index:  4.013e+00  7.928e+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:  1.202e+00  3.031e-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:  4.692e-01  2.533e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.69
Ra Dec: 174.075 34.129
Photon Index (Free Index): 4.01 +/- 7.93
Photon Flux (Free Index): 8.76e-08 +/- 9.62e-08
Energy Flux (Free Index): 1.31e-05 +/- 2.78e-05

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/948227/cmap_HighResolution_433728001_433987201_4FGL_J1136.2+3407_daily_bin750.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.45e-02', comment='SUCCESS', energy_flux2='1.31e-05', dlogl='5.15e-01', photon_flux2='8.76e-08', job_status='DONE', time_completed='2021-09-04 05:17:23.061505', photon_index_error2='7.93', photon_index2='4.01', ts='0.57', fit_tolerance='1e-08', GAL='1.15', photon_index_error='0.00', photon_flux_upper_limit='1.86e-07', energy_flux_error2='2.78e-05', EG='0.53', time_epoch_completed='1630757843.06', return_code='0', job_id='948227', GAL2='1.20', EG2='0.47', return_code2='102', photon_flux_error2='9.62e-08', ts2='1.69', photon_index='2.55' WHERE bin_id='750' AND source_name='4FGL J1136.2+3407' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 05:17:23 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0267>
Subject: Job 948227: <4FGL_J1136.2+3407_daily_bin750> in cluster <slac> Done

Job <4FGL_J1136.2+3407_daily_bin750> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Sat Sep  4 05:01:28 2021
Job was executed on host(s) <bullet0267>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 05:01:30 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Sep  4 05:01:30 2021
Terminated at Sat Sep  4 05:17:23 2021
Results reported at Sat Sep  4 05:17:23 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1136.2+3407_daily_bin750 174.075 34.129 433728001 433987201 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 :                                   719.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             255.21 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   953 sec.
    Turnaround time :                            955 sec.

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

