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


Performing analysis on: 4FGL_J1136.2+3407_daily_bin959
RA = 174.075, Dec = 34.129
tmin = 487900801, tmax = 488160001
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='950062', job_status='RUN', time_executed='2021-09-04 05:09:19.657658', time_epoch_executed='1630757359.66' WHERE source_name='4FGL J1136.2+3407' and cadence='daily' and bin_id='959'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/950062

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/950062/ft1_4FGL_J1136.2+3407_daily_bin959.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/950062/ft2_4FGL_J1136.2+3407_daily_bin959.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/950062/ft1_4FGL_J1136.2+3407_daily_bin959.fits outfile=/scratch/kocevski/950062/ft1_filteredMKT_4FGL_J1136.2+3407_daily_bin959.fits ra=174.075 dec=34.129 rad=12.0 tmin=487900801.0 tmax=488160001.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.01
user 5.76
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/950062/ft1_filtered_4FGL_J1136.2+3407_daily_bin959.fits" evtable="EVENTS" scfile=/scratch/kocevski/950062/ft2_4FGL_J1136.2+3407_daily_bin959.fits sctable="SC_DATA" outfile=/scratch/kocevski/950062/ltcube_487900801_488160001_4FGL_J1136.2+3407_daily_bin959.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/950062/ft2_4FGL_J1136.2+3407_daily_bin959.fits
.....................!
real 11.91
user 11.55
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/950062/ft1_filtered_4FGL_J1136.2+3407_daily_bin959.fits evtable="EVENTS" scfile=/scratch/kocevski/950062/ft2_4FGL_J1136.2+3407_daily_bin959.fits sctable="SC_DATA" expcube=/scratch/kocevski/950062/ltcube_487900801_488160001_4FGL_J1136.2+3407_daily_bin959.fits outfile=/scratch/kocevski/950062/expmap_487900801_488160001_4FGL_J1136.2+3407_daily_bin959.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/950062/ltcube_487900801_488160001_4FGL_J1136.2+3407_daily_bin959.fits
.....................!
real 189.10
user 184.26
sys 4.43

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/950062/ft1_filtered_4FGL_J1136.2+3407_daily_bin959.fits scfile=/scratch/kocevski/950062/ft2_4FGL_J1136.2+3407_daily_bin959.fits outfile=/scratch/kocevski/950062/cmap_487900801_488160001_4FGL_J1136.2+3407_daily_bin959.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.38
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/950062/ft1_filtered_4FGL_J1136.2+3407_daily_bin959.fits scfile=/scratch/kocevski/950062/ft2_4FGL_J1136.2+3407_daily_bin959.fits outfile=/scratch/kocevski/950062/cmap_HighResolution_487900801_488160001_4FGL_J1136.2+3407_daily_bin959.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/950062/ft1_filtered_4FGL_J1136.2+3407_daily_bin959.fits evtable="EVENTS" scfile=/scratch/kocevski/950062/ft2_4FGL_J1136.2+3407_daily_bin959.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/950062/Model_4FGL_J1136.2+3407_daily_bin959.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/950062/ft1_filtered_4FGL_J1136.2+3407_daily_bin959.fits.....................!
real 46.82
user 45.35
sys 1.13

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    16.200       1.0000         .10000E-03   10000.    
     2 'Prefactor '    16.098       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    1.6747       1.0000         .10000E-03   10000.    
     5 'Prefactor '    3.8078       1.0000         .10000E-03   10000.    
     6 'Prefactor '    10.425       1.0000         .10000E-03   10000.    
     7 'Prefactor '    12.719       1.0000         .10000E-03   10000.    
     8 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    22.340       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10347E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    38.179       1.0000         .10000E-03   10000.    
    12 'Prefactor '    4.7249       1.0000         .10000E-03   10000.    
    13 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    6.1171       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .18169E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .21781E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    21.909       1.0000         .10000E-03   10000.    
    22 'Prefactor '    18.531       1.0000         .10000E-03   10000.    
    23 'norm      '    11.019       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    7.1211       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    7.7898       1.0000         .10000E-03   10000.    
    28 'Prefactor '    4.3024       1.0000         .10000E-03   10000.    
    29 'Normalizat'    .94966       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .76653       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=   4963.060     FROM MIGRAD    STATUS=CONVERGED    775 CALLS     3927 TOTAL
                     EDM=   .51E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     16.199        27.311       -.97223E-08    .49818E-05
   2  Prefactor     16.255        193.35        .55675E-05    .30307E-04
   3  Prefactor     .10000E-03    4.6641       -.23135E-06** at limit **
   4  norm          1.6747        .37768        .10593E-07    .58832E-03
   5  Prefactor     3.8081        2.9424        .12298E-06    .46606E-05
   6  Prefactor     10.427        12.267        .18629E-05    .28724E-03
   7  Prefactor     12.719        12.052       -.11482E-06   -.42681E-05
   8  norm          .10000E-03    7.0798       -.35974E-06** at limit **
   9  norm          22.342        13.299        .33922E-06   -.63985E-05
  10  Prefactor     .10000E-03    1.8542        .38034E-07** at limit **
  11  Prefactor     38.182        38.161        .73753E-07   -.58984E-04
  12  Prefactor     4.7303        30.796        .31111E-06   -.28396E-04
  13  norm          .10000E-03    1.0354        .15890E-07** at limit **
  14  Prefactor     6.1191        17.172        .84237E-06    .12868E-05
  15  Prefactor     .10001E-03    4.6845        .18689E-05** at limit **
  16  Prefactor     .10000E-03    28.065       -.33879E-06** at limit **
  17  norm          .10001E-03    .53721       -.47676E-07** at limit **
  18  Prefactor     .10000E-03    13.195       -.51238E-06** at limit **
  19  Prefactor     .10000E-03    .64767       -.14959E-06** at limit **
  20  norm          .10000E-03    4.5703       -.17775E-06** at limit **
  21  Prefactor     21.931        29.424        .17640E-05   -.32879E-04
  22  Prefactor     18.530        59.194        .76905E-05    .98599E-04
  23  norm          11.019        2.3539        .39949E-07   -.11544E-03
  24  Prefactor     .10000E-03    50.853        .80393E-06** at limit **
  25  norm          7.1209        4.2492       -.24175E-08    .12612E-05
  26  Prefactor     .10000E-03    2.5208       -.11137E-06** at limit **
  27  Prefactor     7.7897        3.7802       -.22028E-07   -.15419E-04
  28  Prefactor     4.3024        3.2769        .10087E-06    .55207E-04
  29  Normalizat    .94924        .23375       -.83941E-05    .13422E-03
  30  Prefactor     .76702        .25130        .10069E-04    .41370E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 16.1992
  Prefactor  = 16.2551
  Prefactor  = 0.0001
  norm       = 1.67474
  Prefactor  = 3.80812
  Prefactor  = 10.4274
  Prefactor  = 12.7192
  norm       = 0.0001
  norm       = 22.3418
  Prefactor  = 0.0001
  Prefactor  = 38.1816
  Prefactor  = 4.73034
  norm       = 0.0001
  Prefactor  = 6.11907
  Prefactor  = 0.00010001
  Prefactor  = 0.0001
  norm       = 0.00010001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 21.9307
  Prefactor  = 18.5299
  norm       = 11.0192
  Prefactor  = 0.0001
  norm       = 7.12085
  Prefactor  = 0.0001
  Prefactor  = 7.78968
  Prefactor  = 4.30244
  Normalizat = 0.949244
  Prefactor  = 0.767019
 **********
 **   18 **HESSE 
 **********

 FCN=   4963.060     FROM HESSE     STATUS=OK           590 CALLS     4517 TOTAL
                     EDM=   .31E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     16.199        27.313        .99510E-04   -1.4903    
   2  Prefactor     16.255        193.00        .99823E-04   -1.4901    
   3  Prefactor     .10000E-03    4.6729        .14860E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          1.6747        .37897        .19477E-04   -1.5449    
   5  Prefactor     3.8081        2.9371        .10156E-03   -1.5318    
   6  Prefactor     10.427        12.347        .62048E-03   -1.5062    
   7  Prefactor     12.719        12.073        .11232E-03   -1.4995    
   8  norm          .10000E-03    7.1080        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          22.342        13.294        .84746E-04   -1.4762    
  10  Prefactor     .10000E-03    3.0157        .16988E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     38.182        35.116        .64866E-04   -1.4471    
  12  Prefactor     4.7303        28.776        .18511E-03   -1.5273    
  13  norm          .10000E-03    1.0589        .13960E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     6.1191        16.615        .16233E-03   -1.5213    
  15  Prefactor     .10001E-03    11.355        .27030E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    28.274        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10001E-03    5.8601        .94193E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    13.321        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    .65769        .55395E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    4.5795        .14712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     21.931        29.086        .85574E-04   -1.4771    
  22  Prefactor     18.530        58.062        .93041E-04   -1.4847    
  23  norm          11.019        2.3530        .47282E-04   -1.5044    
  24  Prefactor     .10000E-03    51.323        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          7.1209        4.2558        .10256E-03   -1.5174    
  26  Prefactor     .10000E-03    2.5247        .10924E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     7.7897        3.7878        .87822E-04   -1.5150    
  28  Prefactor     4.3024        3.2723        .10502E-03   -1.5293    
  29  Normalizat    .94924        .23665        .23661E-03   -.94751    
  30  Prefactor     .76702        .25566        .30719E-03   -1.0096    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.07124e-09
Minuit parameter uncertainties:
  1  27.3339
  2  112.479
  3  2.05188e-05
  4  0.378968
  5  2.9372
  6  12.3502
  7  12.0757
  8  3.42738e-05
  9  13.2963
  10  2.80985e-05
  11  35.1353
  12  23.3507
  13  1.15601e-06
  14  16.6275
  15  0.000677456
  16  7.79341e-05
  17  0.000491892
  18  7.4765e-05
  19  3.88402e-06
  20  1.41252e-05
  21  29.1051
  22  58.24
  23  2.35301
  24  0.000195738
  25  4.25597
  26  4.11693e-06
  27  3.78794
  28  3.27243
  29  0.236908
  30  0.256057
Done.

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

Extracting fit parameters...

4FGL J1136.2+3407
   Spectrum: PowerLaw
306    Prefactor:  1.000e-04  6.775e-04  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:  7.670e-01  2.561e-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:  9.492e-01  2.369e-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: 8.11e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.33e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/950062/likelihoodResults_487900801_488160001_4FGL_J1136.2+3407_daily_bin959.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) = 4963.06056877
delta logL = -0.000417790472056

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4963.0601512
delta logL = -2.12926352106e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10517E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5811       1.0000          .0000       10.000    
     3 'Normalizat'    .94919       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .76713       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=   4962.392     FROM MIGRAD    STATUS=CONVERGED    216 CALLS      372 TOTAL
                     EDM=   .33E-11    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    .11733E-01    .22476E-03** at limit **
   2  Index         9.6746        8.6807        .93040E-01   -.10622E-05
   3  Normalizat    .86753        .79906E-01    .23662E-02    .12194E-04
   4  Prefactor     .83451        .93645E-01    .30718E-02    .17443E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 9.67461
  Normalizat = 0.867531
  Prefactor  = 0.834515
 **********
 **   18 **HESSE 
 **********

 FCN=   4962.392     FROM HESSE     STATUS=OK            33 CALLS      405 TOTAL
                     EDM=   .40E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    .80358E-03    .11687E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         9.6746        .53737        .20386E-02    1.2080    
   3  Normalizat    .86753        .22204        .94647E-04   -.97611    
   4  Prefactor     .83451        .25866        .12287E-03   -.98468    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.03068e-12
Minuit parameter uncertainties:
  1  2.47914e-09
  2  0.545949
  3  0.222269
  4  0.259034
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/950062': 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) = 4962.39177054
delta logL = 0.668380438345

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
623    Prefactor:  8.345e-01  2.590e-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.675e-01  2.223e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.45
Ra Dec: 174.075 34.129
Photon Index (Free Index): 9.67 +/- 0.55
Photon Flux (Free Index): 5.89e-08 +/- 5.36e-08
Energy Flux (Free Index): 6.62e-06 +/- 6.01e-06

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/950062/cmap_HighResolution_487900801_488160001_4FGL_J1136.2+3407_daily_bin959.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.33e-03', comment='SUCCESS', energy_flux2='6.62e-06', dlogl='6.68e-01', photon_flux2='5.89e-08', job_status='DONE', time_completed='2021-09-04 05:22:48.025568', photon_index_error2='0.55', photon_index2='9.67', ts='-0.00', fit_tolerance='1e-08', GAL='0.77', photon_index_error='0.00', photon_flux_upper_limit='8.11e-08', energy_flux_error2='6.01e-06', EG='0.95', time_epoch_completed='1630758168.03', return_code='0', job_id='950062', GAL2='0.83', EG2='0.87', return_code2='0', photon_flux_error2='5.36e-08', ts2='1.45', photon_index='2.55' WHERE bin_id='959' AND source_name='4FGL J1136.2+3407' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 05:22:48 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0294>
Subject: Job 950062: <4FGL_J1136.2+3407_daily_bin959> in cluster <slac> Done

Job <4FGL_J1136.2+3407_daily_bin959> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sat Sep  4 05:06:56 2021
Job was executed on host(s) <bullet0294>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 05:06:58 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:06:58 2021
Terminated at Sat Sep  4 05:22:48 2021
Results reported at Sat Sep  4 05:22:48 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1136.2+3407_daily_bin959 174.075 34.129 487900801 488160001 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 :                                   802.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             263.73 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   951 sec.
    Turnaround time :                            952 sec.

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

