aklog: Couldn't determine realm of user:aklog: No credentials cache found  while getting realm
/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 180 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 make4FGLDR3xml version 01r09.
The default diffuse model files and names are for P8R3, 4FGL DRs, and the default fermitools directory locations.

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 = 7483
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1136.2+3407_daily_bin1770
RA = 174.075, Dec = 34.129
tmin = 698112001, tmax = 698371201
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='484113', job_status='RUN', time_executed='2023-02-18 00:43:24.421245', time_epoch_executed='1676709804.42' WHERE source_name='4FGL J1136.2+3407' and cadence='daily' and bin_id='1770'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/484113

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/484113/ft1_4FGL_J1136.2+3407_daily_bin1770.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/484113/ft2_4FGL_J1136.2+3407_daily_bin1770.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/484113/ft1_4FGL_J1136.2+3407_daily_bin1770.fits outfile=/scratch/kocevski/484113/ft1_filteredMKT_4FGL_J1136.2+3407_daily_bin1770.fits ra=174.075 dec=34.129 rad=12.0 tmin=698112001.0 tmax=698371201.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 4.38
user 4.15
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/484113/ft2_4FGL_J1136.2+3407_daily_bin1770.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/484113/ft1_filteredMKT_4FGL_J1136.2+3407_daily_bin1770.fits evtable="EVENTS" outfile="/scratch/kocevski/484113/ft1_filtered_4FGL_J1136.2+3407_daily_bin1770.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.48
user 0.34
sys 0.14

Number of photons that the gtmktime cut: 497

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/484113/ft1_filtered_4FGL_J1136.2+3407_daily_bin1770.fits evtable="EVENTS" scfile=/scratch/kocevski/484113/ft2_4FGL_J1136.2+3407_daily_bin1770.fits sctable="SC_DATA" expcube=/scratch/kocevski/484113/ltcube_698112001_698371201_4FGL_J1136.2+3407_daily_bin1770.fits outfile=/scratch/kocevski/484113/expmap_698112001_698371201_4FGL_J1136.2+3407_daily_bin1770.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/484113/ltcube_698112001_698371201_4FGL_J1136.2+3407_daily_bin1770.fits
.....................!
real 189.36
user 184.27
sys 4.78

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/484113/ft1_filtered_4FGL_J1136.2+3407_daily_bin1770.fits scfile=/scratch/kocevski/484113/ft2_4FGL_J1136.2+3407_daily_bin1770.fits outfile=/scratch/kocevski/484113/cmap_698112001_698371201_4FGL_J1136.2+3407_daily_bin1770.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.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/484113/ft1_filtered_4FGL_J1136.2+3407_daily_bin1770.fits scfile=/scratch/kocevski/484113/ft2_4FGL_J1136.2+3407_daily_bin1770.fits outfile=/scratch/kocevski/484113/cmap_HighResolution_698112001_698371201_4FGL_J1136.2+3407_daily_bin1770.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.56
user 0.40
sys 0.16

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/484113/ft1_filtered_4FGL_J1136.2+3407_daily_bin1770.fits', '/scratch/kocevski/484113/ft2_4FGL_J1136.2+3407_daily_bin1770.fits', expMap='/scratch/kocevski/484113/expmap_698112001_698371201_4FGL_J1136.2+3407_daily_bin1770.fits', expCube='/scratch/kocevski/484113/ltcube_698112001_698371201_4FGL_J1136.2+3407_daily_bin1770.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/484113/Model_4FGL_J1136.2+3407_daily_bin1770.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  0.000e+00  1.000e+06 ( 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/484113/ft1_filtered_4FGL_J1136.2+3407_daily_bin1770.fits
Spacecraft file(s): /scratch/kocevski/484113/ft2_4FGL_J1136.2+3407_daily_bin1770.fits
Exposure map: /scratch/kocevski/484113/expmap_698112001_698371201_4FGL_J1136.2+3407_daily_bin1770.fits
Exposure cube: /scratch/kocevski/484113/ltcube_698112001_698371201_4FGL_J1136.2+3407_daily_bin1770.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/484113/Model_4FGL_J1136.2+3407_daily_bin1770.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) = 4892.40295821

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .13536E-02   1.0000          .0000       .10000E+07
     2 'Prefactor '    15.287       1.0000          .0000       .10000E+07
     3 'Prefactor '    .70426E-03   1.0000          .0000       .10000E+07
     4 'norm      '    2.4630       1.0000          .0000       .10000E+07
     5 'Prefactor '    .10872E-05   1.0000          .0000       .10000E+07
     6 'Prefactor '    .54196E-03   1.0000          .0000       .10000E+07
     7 'Prefactor '    .29875E-03   1.0000          .0000       .10000E+07
     8 'norm      '    .33367E-02   1.0000          .0000       .10000E+07
     9 'Prefactor '    1.8675       1.0000          .0000       .10000E+07
    10 'Prefactor '    .88461E-02   1.0000          .0000       .10000E+07
    11 'Prefactor '    21.628       1.0000          .0000       .10000E+07
    12 'norm      '    8.0362       1.0000          .0000       .10000E+07
    13 'Prefactor '    .86572E-04   1.0000          .0000       .10000E+07
    14 'Prefactor '    2.8211       1.0000          .0000       .10000E+07
    15 'Prefactor '    8.0773       1.0000          .0000       .10000E+07
    16 'norm      '    1.1868       1.0000          .0000       .10000E+07
    17 'Prefactor '    .20176E-03   1.0000          .0000       .10000E+07
    18 'Prefactor '    1.2253       1.0000          .0000       .10000E+07
    19 'norm      '    .60264E-04   1.0000          .0000       .10000E+07
    20 'Prefactor '    .17106E-01   1.0000          .0000       .10000E+07
    21 'norm      '    57.694       1.0000          .0000       .10000E+07
    22 'norm      '    .96223E-06   1.0000          .0000       .10000E+07
    23 'Prefactor '    .32608E-03   1.0000          .0000       .10000E+07
    24 'Prefactor '    3.6848       1.0000          .0000       .10000E+07
    25 'Prefactor '    1.6407       1.0000          .0000       .10000E+07
    26 'Normalizat'    1.2648       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .64145       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6260E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   4892.252     FROM MIGRAD    STATUS=CONVERGED    210 CALLS     1898 TOTAL
                     EDM=   .47E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .97311E-07    88.665       -.19069E-06** at limit **
   2  Prefactor     11.066        301.55        .66825E-05    .26699E-03
   3  Prefactor      .0000        4.6661       -.55900E-07** at limit **
   4  norm          2.4636        .53725       -.22530E-07    .29924E-02
   5  Prefactor      .0000        1.5325        .35053E-07** at limit **
   6  Prefactor      .0000        7.5789        .93745E-07** at limit **
   7  Prefactor      .0000        7.3826       -.10358E-06** at limit **
   8  norm          .12768E-08    45.279       -.82634E-06** at limit **
   9  Prefactor     1.8556        2.8574       -.11843E-06    .65642E-03
  10  Prefactor     .33307E-09    33.790       -.98057E-06** at limit **
  11  Prefactor     21.710        18.525        .71864E-07   -.62073E-03
  12  norm          8.0557        3.6818        .29303E-07    .32105E-03
  13  Prefactor      .0000        13.143        .10378E-06** at limit **
  14  Prefactor     2.8950        6.1110       -.66606E-07    .90809E-04
  15  Prefactor     7.6689        4.7723        .12440E-06   -.20892E-01
  16  norm          1.1897        1.1203       -.15196E-07    .88018E-03
  17  Prefactor      .0000        19.453       -.20129E-06** at limit **
  18  Prefactor     1.2239        2.4484        .12730E-06    .26845E-04
  19  norm           .0000        4.2798       -.10722E-06** at limit **
  20  Prefactor      .0000        27.328       -.21646E-07** at limit **
  21  norm          57.756        5.1838       -.14553E-09    .58350E-03
  22  norm           .0000        2.2149       -.39324E-07** at limit **
  23  Prefactor      .0000        6.5332       -.15818E-07** at limit **
  24  Prefactor     3.6842        3.2202        .16050E-07    .12675E-03
  25  Prefactor     1.6402        2.1761        .13239E-07    .11942E-03
  26  Normalizat    1.2654        .27151        .26860E-05    .34148E-04
  27  Prefactor     .64092        .30568       -.11035E-04    .33862E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 9.7311e-08
  Prefactor  = 11.0663
  Prefactor  = 0
  norm       = 2.46364
  Prefactor  = 0
  Prefactor  = 0
  Prefactor  = 0
  norm       = 1.27676e-09
  Prefactor  = 1.85564
  Prefactor  = 3.33067e-10
  Prefactor  = 21.7097
  norm       = 8.05567
  Prefactor  = 0
  Prefactor  = 2.89504
  Prefactor  = 7.66895
  norm       = 1.18974
  Prefactor  = 0
  Prefactor  = 1.22386
  norm       = 0
  Prefactor  = 0
  norm       = 57.756
  norm       = 0
  Prefactor  = 0
  Prefactor  = 3.68421
  Prefactor  = 1.64025
  Normalizat = 1.2654
  Prefactor  = 0.640919
 **********
 **   18 **HESSE 
 **********

 FCN=   4892.252     FROM HESSE     STATUS=OK           542 CALLS     2440 TOTAL
                     EDM=   .11E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .97311E-07    89.543        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     11.066        300.98        .25590E-03   -1.5641    
   3  Prefactor      .0000        4.6663        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          2.4636        .53658        .52242E-03   -1.5677    
   5  Prefactor      .0000        1.5311        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor      .0000        7.5805        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor      .0000        7.3912        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .12768E-08    44.612        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     1.8556        2.8976        .76198E-03   -1.5681    
  10  Prefactor     .33307E-09    33.892        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     21.710        18.616        .21509E-03   -1.5615    
  12  norm          8.0557        3.7254        .35345E-03   -1.5651    
  13  Prefactor      .0000        13.123        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     2.8950        6.1397        .60529E-03   -1.5674    
  15  Prefactor     7.6689        64.535        .35254E-03   -1.5653    
  16  norm          1.1897        1.2339        .10466E-02   -1.5686    
  17  Prefactor      .0000        19.430        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     1.2239        2.4895        .10171E-02   -1.5686    
  19  norm           .0000        4.2820        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor      .0000        27.274        .17235E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          57.756        5.1889        .13166E-03   -1.5556    
  22  norm           .0000        2.2080        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor      .0000        6.5271        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     3.6842        3.2214        .52590E-03   -1.5670    
  25  Prefactor     1.6402        2.1942        .82460E-03   -1.5682    
  26  Normalizat    1.2654        .23465        .61152E-01   -.84605    
  27  Prefactor     .64092        .26539        .95337E-01   -1.0589    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.143e-07
Minuit parameter uncertainties:
  1  0.00590395
  2  115.432
  3  1.47178e-06
  4  0.536577
  5  1.11561e-06
  6  9.48603e-07
  7  2.96451e-06
  8  0.000481243
  9  2.89763
  10  0.000205401
  11  18.6161
  12  3.72541
  13  1.66313e-05
  14  6.13976
  15  44.494
  16  1.23387
  17  1.37955e-05
  18  2.4895
  19  1.87642e-06
  20  1.0049e-05
  21  5.18892
  22  2.42634e-06
  23  8.04955e-07
  24  3.22141
  25  2.19424
  26  0.234848
  27  0.265912
Done.

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

Extracting fit parameters...

4FGL J1136.2+3407
   Spectrum: PowerLaw
306    Prefactor:  2.895e+00  6.140e+00  0.000e+00  1.000e+06 ( 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:  6.409e-01  2.659e-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.265e+00  2.348e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.28
Ra Dec: 174.075 34.129
Photon Flux Upper Limit: 1.24e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.69e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/484113/likelihoodResults_698112001_698371201_4FGL_J1136.2+3407_daily_bin1770.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) = 4892.19992197
delta logL = 0.0515974105583

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4892.18370534
delta logL = 0.0678140441878

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.9387       1.0000          .0000       .10000E+07
     2 'Index     '    3.1071       1.0000          .0000       10.000    
     3 'Normalizat'    1.2568       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .64761       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=   4892.184     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      208 TOTAL
                     EDM=   .88E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.9441        118.86        .74541E-03    .55665E-02
   2  Index         3.1082        6.4042        .21872        .60201E-04
   3  Normalizat    1.2568        .60574E-01    .61311E-01    .53165E-06
   4  Prefactor     .64750        .70602E-01    .94880E-01    .23830E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.94411
  Index      = 3.10816
  Normalizat = 1.25679
  Prefactor  = 0.6475
 **********
 **   18 **HESSE 
 **********

 FCN=   4892.184     FROM HESSE     STATUS=OK            33 CALLS      241 TOTAL
                     EDM=   .12E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.9441        6.5295        .16106E-04   -1.5680    
   2  Index         3.1082        2.0276        .11310E-01   -.38803    
   3  Normalizat    1.2568        .26647        .27114E-03   -.84866    
   4  Prefactor     .64750        .30437        .42061E-03   -1.0562    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.22795e-08
Minuit parameter uncertainties:
  1  6.52949
  2  2.09885
  3  0.266763
  4  0.305149
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/484113': 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) = 4892.1837022
delta logL = 0.0678171823556

Extracting fit parameters...

4FGL J1136.2+3407
   Spectrum: PowerLaw
306    Prefactor:  1.944e+00  6.529e+00  0.000e+00  1.000e+06 ( 1.000e-12)
307        Index:  3.108e+00  2.099e+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:  6.475e-01  3.051e-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.257e+00  2.668e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.28
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/484113/cmap_HighResolution_698112001_698371201_4FGL_J1136.2+3407_daily_bin1770.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.69e-03', job_status='DONE', photon_flux_upper_limit='1.24e-07', time_completed='2023-02-18 00:53:37.681759', job_id='484113', GAL2='0.65', fit_tolerance='1e-08', EG2='1.26', EG='1.27', time_epoch_completed='1676710417.68', return_code2='0', ts='0.28', comment='SUCCESS', return_code='0', GAL='0.64', dlogl='6.78e-02', ts2='0.41', photon_index_error='0.00', photon_index='2.55' WHERE bin_id='1770' AND source_name='4FGL J1136.2+3407' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Feb 18 00:53:37 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0152>
Subject: Job 484113: <4FGL_J1136.2+3407_daily_bin1770> in cluster <slac> Done

Job <4FGL_J1136.2+3407_daily_bin1770> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Sat Feb 18 00:40:14 2023
Job was executed on host(s) <bullet0152>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Feb 18 00:40:15 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Feb 18 00:40:15 2023
Terminated at Sat Feb 18 00:53:38 2023
Results reported at Sat Feb 18 00:53:38 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1136.2+3407_daily_bin1770 174.075 34.129 698112001 698371201 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 :                                   615.30 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             266.50 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   802 sec.
    Turnaround time :                            804 sec.

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

