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


Performing analysis on: 4FGL_J1136.2+3407_daily_bin91
RA = 174.075, Dec = 34.129
tmin = 262915201, tmax = 263174401
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='945416', job_status='RUN', time_executed='2021-09-04 04:53:09.050571', time_epoch_executed='1630756389.05' WHERE source_name='4FGL J1136.2+3407' and cadence='daily' and bin_id='91'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/945416

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

Retrieving the FT1 file...

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

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

Retrieving 41 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/945416/ft1_4FGL_J1136.2+3407_daily_bin91.fits


Retrieving the FT1 file...

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

Retrieving 41 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/945416/ft2_4FGL_J1136.2+3407_daily_bin91.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/945416/ft1_4FGL_J1136.2+3407_daily_bin91.fits outfile=/scratch/kocevski/945416/ft1_filteredMKT_4FGL_J1136.2+3407_daily_bin91.fits ra=174.075 dec=34.129 rad=12.0 tmin=262915201.0 tmax=263174401.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.30
user 1.10
sys 0.16

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/945416/ft1_filtered_4FGL_J1136.2+3407_daily_bin91.fits" evtable="EVENTS" scfile=/scratch/kocevski/945416/ft2_4FGL_J1136.2+3407_daily_bin91.fits sctable="SC_DATA" outfile=/scratch/kocevski/945416/ltcube_262915201_263174401_4FGL_J1136.2+3407_daily_bin91.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/945416/ft2_4FGL_J1136.2+3407_daily_bin91.fits
.....................!
real 11.27
user 10.71
sys 0.37

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/945416/ft1_filtered_4FGL_J1136.2+3407_daily_bin91.fits evtable="EVENTS" scfile=/scratch/kocevski/945416/ft2_4FGL_J1136.2+3407_daily_bin91.fits sctable="SC_DATA" expcube=/scratch/kocevski/945416/ltcube_262915201_263174401_4FGL_J1136.2+3407_daily_bin91.fits outfile=/scratch/kocevski/945416/expmap_262915201_263174401_4FGL_J1136.2+3407_daily_bin91.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/945416/ltcube_262915201_263174401_4FGL_J1136.2+3407_daily_bin91.fits
.....................!
real 192.52
user 186.85
sys 5.26

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/945416/ft1_filtered_4FGL_J1136.2+3407_daily_bin91.fits scfile=/scratch/kocevski/945416/ft2_4FGL_J1136.2+3407_daily_bin91.fits outfile=/scratch/kocevski/945416/cmap_262915201_263174401_4FGL_J1136.2+3407_daily_bin91.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.36
sys 0.15

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10880E-02   1.0000         .10000E-03   10000.    
     2 'Prefactor '    38.262       1.0000         .10000E-03   10000.    
     3 'Prefactor '    1.2544       1.0000         .10000E-03   10000.    
     4 'norm      '    .82969       1.0000         .10000E-03   10000.    
     5 'Prefactor '    2.4211       1.0000         .10000E-03   10000.    
     6 'Prefactor '    6.3216       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .12241E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    19.190       1.0000         .10000E-03   10000.    
     9 'norm      '    2.3009       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    2.1654       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .22580E-02   1.0000         .10000E-03   10000.    
    13 'norm      '    1.0769       1.0000         .10000E-03   10000.    
    14 'Prefactor '    9.4671       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .16916E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .75924E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .55240       1.0000         .10000E-03   10000.    
    18 'Prefactor '    52.824       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10365E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .11507E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .76390E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    56.044       1.0000         .10000E-03   10000.    
    23 'norm      '    3.5380       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .31440E-02   1.0000         .10000E-03   10000.    
    25 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10148E-01   1.0000         .10000E-03   10000.    
    27 'Prefactor '    1.5405       1.0000         .10000E-03   10000.    
    28 'Prefactor '    6.8648       1.0000         .10000E-03   10000.    
    29 'Normalizat'    1.5958       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .26667       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=   4384.077     FROM MIGRAD    STATUS=CONVERGED   1499 CALLS     4155 TOTAL
                     EDM=   .32E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    19.161        .94128E-01** at limit **
   2  Prefactor     44.463        71.291        .64796E-04    .66672E-05
   3  Prefactor     1.1767        11.725        .39889E-03    .22744E-04
   4  norm          .82958        .29087        .20376E-04    .41456E-03
   5  Prefactor     2.4286        3.0850        .12428E-03    .51593E-04
   6  Prefactor     6.2641        8.4781        .15965E-03    .35392E-04
   7  Prefactor     .10000E-03    4.5287        .13759E-02** at limit **
   8  norm          19.294        13.583        .91430E-04    .79381E-04
   9  norm          2.2912        18.032        .27054E-03    .44039E-04
  10  Prefactor     .10000E-03    .89060        .60753E-03** at limit **
  11  Prefactor     1.1239        343.66        .27989E-03    .13323E-04
  12  Prefactor     .10000E-03    20.360        .20117E-02** at limit **
  13  norm          1.1057        2.1900        .12703E-02    .17553E-03
  14  Prefactor     9.4158        10.967        .13025E-03    .59441E-04
  15  Prefactor     .10000E-03    2.5378        .10247E-02** at limit **
  16  Prefactor     .10000E-03    47.317        .20933E-02** at limit **
  17  norm          .54572        1.2170        .10130E-03   -.17396E-04
  18  Prefactor     52.312        30.630        .55184E-04    .15315E-03
  19  Prefactor     .10000E-03    2.8449        .16424E-02** at limit **
  20  norm          .10000E-03    4.6179        .13891E-02** at limit **
  21  Prefactor     .10000E-03    10.546        .20929E-02** at limit **
  22  Prefactor     57.482        52.713        .26792E-03    .51132E-04
  23  norm          3.5442        1.6759        .55843E-04    .23758E-03
  24  Prefactor     .10000E-03    29.501        .19777E-02** at limit **
  25  norm          .10000E-03    .99901        .64528E-03** at limit **
  26  Prefactor     .27897E-01    20.230        .59183E-01    .10445E-03
  27  Prefactor     1.5407        1.8808        .49039E-03    .19566E-04
  28  Prefactor     6.8663        3.0377        .74462E-04    .83362E-04
  29  Normalizat    1.5958        .24177        .19981E-03    .96770E-04
  30  Prefactor     .26654        .24509        .49269E-03    .68439E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 44.4631
  Prefactor  = 1.17675
  norm       = 0.829578
  Prefactor  = 2.42856
  Prefactor  = 6.26413
  Prefactor  = 0.0001
  norm       = 19.2936
  norm       = 2.29118
  Prefactor  = 0.0001
  Prefactor  = 1.12392
  Prefactor  = 0.000100001
  norm       = 1.10566
  Prefactor  = 9.41579
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.54572
  Prefactor  = 52.3117
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 57.4825
  norm       = 3.54419
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0278971
  Prefactor  = 1.54075
  Prefactor  = 6.86629
  Normalizat = 1.59575
  Prefactor  = 0.266536
 **********
 **   18 **HESSE 
 **********

 FCN=   4384.077     FROM HESSE     STATUS=OK           580 CALLS     4735 TOTAL
                     EDM=   .27E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    18.883        .95363E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     44.463        71.288        .12959E-04   -1.4373    
   3  Prefactor     1.1767        11.718        .15955E-04   -1.5491    
   4  norm          .82958        .29086        .81503E-06   -1.5526    
   5  Prefactor     2.4286        3.0841        .49712E-05   -1.5396    
   6  Prefactor     6.2641        8.4779        .63858E-05   -1.5207    
   7  Prefactor     .10000E-03    4.5288        .27519E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          19.294        13.582        .18286E-04   -1.4829    
   9  norm          2.2912        18.017        .10822E-04   -1.5405    
  10  Prefactor     .10000E-03    .89061        .12151E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     1.1239        340.87        .11195E-04   -1.5496    
  12  Prefactor     .10000E-03    20.371        .40234E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          1.1057        2.1797        .50813E-04   -1.5498    
  14  Prefactor     9.4158        10.967        .52099E-05   -1.5094    
  15  Prefactor     .10000E-03    2.5381        .20493E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    47.323        .41866E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .54572        1.2164        .40519E-05   -1.5560    
  18  Prefactor     52.312        30.620        .11037E-04   -1.4260    
  19  Prefactor     .10000E-03    2.8504        .32847E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    4.6180        .27783E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    10.546        .41859E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     57.482        52.705        .10717E-04   -1.4190    
  23  norm          3.5442        1.6758        .22337E-05   -1.5331    
  24  Prefactor     .10000E-03    29.503        .39554E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          .10000E-03    .99903        .12906E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .27897E-01    15.420        .69625E-01   -1.5675    
  27  Prefactor     1.5407        1.8807        .19616E-04   -1.5460    
  28  Prefactor     6.8663        3.0377        .29785E-05   -1.5184    
  29  Normalizat    1.5958        .24145        .39963E-04   -.75122    
  30  Prefactor     .26654        .24499        .19708E-04   -1.2428    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.67343e-10
Minuit parameter uncertainties:
  1  0.00013086
  2  71.4254
  3  7.42832
  4  0.290862
  5  3.08428
  6  8.47949
  7  3.02542e-06
  8  13.584
  9  12.8549
  10  5.06524e-06
  11  39.3731
  12  0.000311035
  13  2.17988
  14  10.9691
  15  9.10916e-06
  16  0.000136321
  17  1.21643
  18  30.6296
  19  3.03846e-05
  20  8.80301e-06
  21  2.28925e-06
  22  52.748
  23  1.67584
  24  1.65095e-05
  25  1.06739e-06
  26  1.30972
  27  1.88082
  28  3.03775
  29  0.241627
  30  0.245943
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
623    Prefactor:  2.665e-01  2.459e-01  0.000e+00  1.000e+01 ( 1.000e+00)
624        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
625        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
622   Normalization:  1.596e+00  2.416e-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.93e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.41e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/945416/likelihoodResults_262915201_263174401_4FGL_J1136.2+3407_daily_bin91.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) = 4384.07873413
delta logL = -0.00183856427066

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4384.07689727
delta logL = -1.70553539647e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11250E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5244       1.0000          .0000       10.000    
     3 'Normalizat'    1.5958       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .26656       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=   4384.068     FROM MIGRAD    STATUS=CONVERGED    140 CALLS      292 TOTAL
                     EDM=   .70E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .36462        6.9000        .10645E-01    .14458E-02
   2  Index         1.2332        1.0382        .33897       -.45822E-04
   3  Normalizat    1.5966        .22427        .19981E-03    .16445E-03
   4  Prefactor     .26358        .24441        .49269E-03    .63524E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.364623
  Index      = 1.23316
  Normalizat = 1.59659
  Prefactor  = 0.263579
 **********
 **   18 **HESSE 
 **********

 FCN=   4384.068     FROM HESSE     STATUS=OK            29 CALLS      321 TOTAL
                     EDM=   .50E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .36462        5.6694        .28895E-03   -1.5587    
   2  Index         1.2332        1.4798        .17887E-01   -.85317    
   3  Normalizat    1.5966        .22400        .39963E-04   -.75099    
   4  Prefactor     .26358        .24311        .19708E-04   -1.2447    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.95495e-11
Minuit parameter uncertainties:
  1  2.87548
  2  1.53497
  3  0.224143
  4  0.244049
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/945416': 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) = 4384.06762702
delta logL = 0.00926854606132

Extracting fit parameters...

4FGL J1136.2+3407
   Spectrum: PowerLaw
306    Prefactor:  3.646e-01  2.875e+00  1.000e-04  1.000e+04 ( 1.000e-12)
307        Index:  1.233e+00  1.535e+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:  2.636e-01  2.440e-01  0.000e+00  1.000e+01 ( 1.000e+00)
624        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
625        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
622   Normalization:  1.597e+00  2.241e-01  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/945416/cmap_HighResolution_262915201_263174401_4FGL_J1136.2+3407_daily_bin91.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.41e-03', job_status='DONE', photon_flux_upper_limit='6.93e-08', time_completed='2021-09-04 05:05:51.379547', job_id='945416', GAL2='0.26', fit_tolerance='1e-08', EG2='1.60', EG='1.60', time_epoch_completed='1630757151.38', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.27', dlogl='9.27e-03', ts2='0.02', photon_index_error='0.00', photon_index='2.55' WHERE bin_id='91' AND source_name='4FGL J1136.2+3407' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 05:05:51 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0236>
Subject: Job 945416: <4FGL_J1136.2+3407_daily_bin91> in cluster <slac> Done

Job <4FGL_J1136.2+3407_daily_bin91> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Sat Sep  4 04:52:19 2021
Job was executed on host(s) <bullet0236>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 04:52:21 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Sep  4 04:52:21 2021
Terminated at Sat Sep  4 05:05:52 2021
Results reported at Sat Sep  4 05:05:52 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1136.2+3407_daily_bin91 174.075 34.129 262915201 263174401 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 :                                   758.00 sec.
    Max Memory :                                 1258 MB
    Average Memory :                             324.96 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   810 sec.
    Turnaround time :                            813 sec.

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

