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


Performing analysis on: 4FGL_J1131.0+3815_daily_bin1779
RA = 172.755, Dec = 38.2565
tmin = 700444801, tmax = 700704001
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='21100', job_status='RUN', time_executed='2023-03-17 01:28:58.415167', time_epoch_executed='1679041738.42' WHERE source_name='4FGL J1131.0+3815' and cadence='daily' and bin_id='1779'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/21100

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/21100/ft1_4FGL_J1131.0+3815_daily_bin1779.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/21100/ft2_4FGL_J1131.0+3815_daily_bin1779.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/21100/ft1_4FGL_J1131.0+3815_daily_bin1779.fits outfile=/scratch/kocevski/21100/ft1_filteredMKT_4FGL_J1131.0+3815_daily_bin1779.fits ra=172.755 dec=38.2565 rad=12.0 tmin=700444801.0 tmax=700704001.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 5.28
user 5.02
sys 0.22

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/21100/ft2_4FGL_J1131.0+3815_daily_bin1779.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/21100/ft2_4FGL_J1131.0+3815_daily_bin1779.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/21100/ft1_filteredMKT_4FGL_J1131.0+3815_daily_bin1779.fits evtable="EVENTS" outfile="/scratch/kocevski/21100/ft1_filtered_4FGL_J1131.0+3815_daily_bin1779.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

Number of photons that the gtmktime cut: 544

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/21100/ft1_filtered_4FGL_J1131.0+3815_daily_bin1779.fits" evtable="EVENTS" scfile=/scratch/kocevski/21100/ft2_4FGL_J1131.0+3815_daily_bin1779.fits sctable="SC_DATA" outfile=/scratch/kocevski/21100/ltcube_700444801_700704001_4FGL_J1131.0+3815_daily_bin1779.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/21100/ft2_4FGL_J1131.0+3815_daily_bin1779.fits
.....................!
real 11.81
user 11.48
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/21100/ft1_filtered_4FGL_J1131.0+3815_daily_bin1779.fits evtable="EVENTS" scfile=/scratch/kocevski/21100/ft2_4FGL_J1131.0+3815_daily_bin1779.fits sctable="SC_DATA" expcube=/scratch/kocevski/21100/ltcube_700444801_700704001_4FGL_J1131.0+3815_daily_bin1779.fits outfile=/scratch/kocevski/21100/expmap_700444801_700704001_4FGL_J1131.0+3815_daily_bin1779.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/21100/ltcube_700444801_700704001_4FGL_J1131.0+3815_daily_bin1779.fits
.....................!
real 189.67
user 185.12
sys 4.23

Generating the xml model:
radLim = 0.001
maxRad = 12
normsOnly = True
freeVariableSources = True
Fixing all sources to their catalog values, except variable sources
Creating file and adding sources from 4FGL
Added 211 point sources and 0 extended sources

Setting source of interest to:
4FGL J1131.0+3815 @ 172.755 38.2565

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/21100/ft1_filtered_4FGL_J1131.0+3815_daily_bin1779.fits scfile=/scratch/kocevski/21100/ft2_4FGL_J1131.0+3815_daily_bin1779.fits outfile=/scratch/kocevski/21100/cmap_700444801_700704001_4FGL_J1131.0+3815_daily_bin1779.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=172.755 yref=38.2565 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.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/21100/ft1_filtered_4FGL_J1131.0+3815_daily_bin1779.fits scfile=/scratch/kocevski/21100/ft2_4FGL_J1131.0+3815_daily_bin1779.fits outfile=/scratch/kocevski/21100/cmap_HighResolution_700444801_700704001_4FGL_J1131.0+3815_daily_bin1779.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=172.755 yref=38.2565 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.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/21100/ft1_filtered_4FGL_J1131.0+3815_daily_bin1779.fits evtable="EVENTS" scfile=/scratch/kocevski/21100/ft2_4FGL_J1131.0+3815_daily_bin1779.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/21100/Model_4FGL_J1131.0+3815_daily_bin1779.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/21100/ft1_filtered_4FGL_J1131.0+3815_daily_bin1779.fits.....................!
real 53.51
user 52.27
sys 1.14

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/21100/ft1_filtered_4FGL_J1131.0+3815_daily_bin1779.fits', '/scratch/kocevski/21100/ft2_4FGL_J1131.0+3815_daily_bin1779.fits', expMap='/scratch/kocevski/21100/expmap_700444801_700704001_4FGL_J1131.0+3815_daily_bin1779.fits', expCube='/scratch/kocevski/21100/ltcube_700444801_700704001_4FGL_J1131.0+3815_daily_bin1779.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/21100/Model_4FGL_J1131.0+3815_daily_bin1779.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1131.0+3815'

4FGL J1131.0+3815
   Spectrum: LogParabola
342         norm:  1.699e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-12)
343        alpha:  2.549e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
344         beta:  1.620e-01  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
345           Eb:  9.785e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/21100/ft1_filtered_4FGL_J1131.0+3815_daily_bin1779.fits
Spacecraft file(s): /scratch/kocevski/21100/ft2_4FGL_J1131.0+3815_daily_bin1779.fits
Exposure map: /scratch/kocevski/21100/expmap_700444801_700704001_4FGL_J1131.0+3815_daily_bin1779.fits
Exposure cube: /scratch/kocevski/21100/ltcube_700444801_700704001_4FGL_J1131.0+3815_daily_bin1779.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/21100/Model_4FGL_J1131.0+3815_daily_bin1779.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) = 6056.23240562

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    29.887       1.0000          .0000       .10000E+07
     2 'Prefactor '    2.6181       1.0000          .0000       .10000E+07
     3 'Prefactor '    14.389       1.0000          .0000       .10000E+07
     4 'Prefactor '    .38458E-01   1.0000          .0000       .10000E+07
     5 'norm      '    2.5151       1.0000          .0000       .10000E+07
     6 'Prefactor '    .40560E-04   1.0000          .0000       .10000E+07
     7 'Prefactor '    .18958E-01   1.0000          .0000       .10000E+07
     8 'Prefactor '    .19240E-01   1.0000          .0000       .10000E+07
     9 'Prefactor '    100.11       1.0000          .0000       .10000E+07
    10 'norm      '    .11882E-01   1.0000          .0000       .10000E+07
    11 'norm      '    .33193E-02   1.0000          .0000       .10000E+07
    12 'Prefactor '    .20538E-04   1.0000          .0000       .10000E+07
    13 'Prefactor '    20.258       1.0000          .0000       .10000E+07
    14 'Prefactor '    .64151E-03   1.0000          .0000       .10000E+07
    15 'norm      '    4.4043       1.0000          .0000       .10000E+07
    16 'Prefactor '    9.9290       1.0000          .0000       .10000E+07
    17 'Prefactor '    .94983       1.0000          .0000       .10000E+07
    18 'Prefactor '    44.445       1.0000          .0000       .10000E+07
    19 'norm      '    .31790       1.0000          .0000       .10000E+07
    20 'norm      '    .18552E-02   1.0000          .0000       .10000E+07
    21 'Prefactor '    .94938E-03   1.0000          .0000       .10000E+07
    22 'Prefactor '    53.528       1.0000          .0000       .10000E+07
    23 'Prefactor '    35.094       1.0000          .0000       .10000E+07
    24 'norm      '    26.582       1.0000          .0000       .10000E+07
    25 'Prefactor '    12.782       1.0000          .0000       .10000E+07
    26 'Normalizat'    1.3914       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .50565       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6710E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6056.229     FROM MIGRAD    STATUS=CONVERGED    167 CALLS     2532 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     29.947        2.4362       -.26187E-06    .20954E-01
   2  Prefactor     2.6313        5.5051        .28101E-06   -.14457E-02
   3  Prefactor     14.386        2.1427       -.28978E-06    .13287E-01
   4  Prefactor     .55511E-10    28.161       -.44431E-06** at limit **
   5  norm          2.5151        .46759       -.76186E-08   -.55139E-02
   6  Prefactor     .22465E-06    4.6217       -.65206E-06** at limit **
   7  Prefactor     .22760E-08    27.815        .94384E-06** at limit **
   8  Prefactor     .37700E-01    8.8877       -.24737E-05** at limit **
   9  Prefactor     99.948        6.9173        .61713E-07    .38388E-01
  10  norm          .77716E-09    11.340        .40292E-06** at limit **
  11  norm          .72164E-09    15.389        .99492E-06** at limit **
  12  Prefactor     .18285E-06    5.4129       -.28266E-06** at limit **
  13  Prefactor     20.396        14.370        .49042E-07   -.75871E-01
  14  Prefactor     .37192E-08    19.213        .32597E-06** at limit **
  15  norm          4.3887        3.7800       -.59685E-06    .97710E-03
  16  Prefactor     9.9440        13.847        .11590E-05   -.86775E-02
  17  Prefactor     .91832        1.3509        .36718E-07    .13764E-01
  18  Prefactor     45.716        45.008       -.14342E-05    .13710    
  19  norm          .28991        2.5085       -.19301E-05    .38790E-02
  20  norm          .79325E-07    4.4198       -.97984E-07** at limit **
  21  Prefactor     .22388E-06    3.4698        .29719E-06** at limit **
  22  Prefactor     55.275        65.091       -.11163E-05   -.79510E-01
  23  Prefactor     35.118        24.507       -.25307E-05   -.39894E-01
  24  norm          26.583        3.6078       -.15806E-07   -.22020E-02
  25  Prefactor     12.750        10.953       -.13563E-07    .18285E-01
  26  Normalizat    1.3903        .24513        .12761E-04   -.19617E-03
  27  Prefactor     .50621        .25973       -.25413E-04   -.10892E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 29.9465
  Prefactor  = 2.63131
  Prefactor  = 14.3859
  Prefactor  = 5.55112e-11
  norm       = 2.51507
  Prefactor  = 2.24654e-07
  Prefactor  = 2.27596e-09
  Prefactor  = 0.0377001
  Prefactor  = 99.948
  norm       = 7.77156e-10
  norm       = 7.21645e-10
  Prefactor  = 1.82854e-07
  Prefactor  = 20.3961
  Prefactor  = 3.71925e-09
  norm       = 4.38869
  Prefactor  = 9.94403
  Prefactor  = 0.918317
  Prefactor  = 45.7158
  norm       = 0.289907
  norm       = 7.93254e-08
  Prefactor  = 2.23876e-07
  Prefactor  = 55.2751
  Prefactor  = 35.1179
  norm       = 26.5831
  Prefactor  = 12.7499
  Normalizat = 1.39029
  Prefactor  = 0.506207
 **********
 **   18 **HESSE 
 **********

 FCN=   6056.229     FROM HESSE     STATUS=OK           564 CALLS     3096 TOTAL
                     EDM=   .52E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     29.947        28.935        .18295E-03   -1.5599    
   2  Prefactor     2.6313        5.5081        .63008E-03   -1.5676    
   3  Prefactor     14.386        24.613        .26379E-03   -1.5632    
   4  Prefactor     .55511E-10    28.154        .16034E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          2.5151        .49089        .49959E-03   -1.5676    
   6  Prefactor     .22465E-06    6.3516        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .22760E-08    12.003        .83243E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .37700E-01    16.911        .96002E-02   -1.5704    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     99.948        118.97        .99950E-04   -1.5508    
  10  norm          .77716E-09    11.345        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .72164E-09    15.477        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .18285E-06    6.8731        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     20.396        84.292        .22225E-03   -1.5618    
  14  Prefactor     .37192E-08    19.509        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          4.3887        5.3856        .47964E-03   -1.5666    
  16  Prefactor     9.9440        14.348        .31776E-03   -1.5645    
  17  Prefactor     .91832        17.282        .42374E-03   -1.5689    
  18  Prefactor     45.716        84.460        .15001E-03   -1.5573    
  19  norm          .28991        2.8861        .26890E-02   -1.5697    
  20  norm          .79325E-07    4.9623        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .22388E-06    5.1117        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     55.275        94.567        .13669E-03   -1.5559    
  23  Prefactor     35.118        24.894        .16882E-03   -1.5589    
  24  norm          26.583        3.6097        .19399E-03   -1.5605    
  25  Prefactor     12.750        11.081        .27992E-03   -1.5637    
  26  Normalizat    1.3903        .21758        .55084E-01   -.80910    
  27  Prefactor     .50621        .23108        .96223E-01   -1.1169    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.15237e-06
Minuit parameter uncertainties:
  1  28.9352
  2  5.50816
  3  24.6129
  4  7.6282e-05
  5  0.490887
  6  0.00238898
  7  0.000329248
  8  1.59691
  9  118.978
  10  0.000188351
  11  0.00021157
  12  0.00224204
  13  82.9293
  14  0.000537067
  15  5.38557
  16  14.3477
  17  7.96752
  18  84.4621
  19  1.82943
  20  0.00125465
  21  0.00213948
  22  94.5694
  23  24.8937
  24  3.60966
  25  11.0809
  26  0.217727
  27  0.231511
Done.

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

Extracting fit parameters...

4FGL J1131.0+3815
   Spectrum: LogParabola
342         norm:  4.389e+00  5.386e+00  0.000e+00  1.000e+06 ( 1.000e-12)
343        alpha:  2.549e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
344         beta:  1.620e-01  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
345           Eb:  9.785e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
668    Prefactor:  5.062e-01  2.315e-01  0.000e+00  1.000e+01 ( 1.000e+00)
669        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
670        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
667   Normalization:  1.390e+00  2.177e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.98
Ra Dec: 172.755 38.257
Photon Index (Fixed Index): 2.55 +/- 0.00
Photon Flux (Fixed Index): 5.93e-08 +/- 7.28e-08
Energy Flux (Fixed Index): 1.86e-05 +/- 2.28e-05

TS (Fixed Index): 1.98
Ra Dec: 172.755 38.257
Photon Flux Upper Limit: 1.59e-07 ph cm-2 s-1
Energy Flux Upper Limit: 4.99e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/21100/likelihoodResults_700444801_700704001_4FGL_J1131.0+3815_daily_bin1779.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) = 6055.28223621
delta logL = 0.946965382863

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6055.26840969
delta logL = 0.960791907539

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.3097       1.0000          .0000       .10000E+07
     2 'alpha     '    3.7987       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2899       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .58255       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6710E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6055.268     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      249 TOTAL
                     EDM=   .20E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.3087        10.330        .96324E-03    .92195E-02
   2  alpha         3.8000        4.1163        .25564        .72232E-04
   3  Normalizat    1.2898        .60596E-01    .56695E-01   -.39599E-05
   4  Prefactor     .58290        .66214E-01    .90074E-01    .26178E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.30867
  alpha      = 3.80001
  Normalizat = 1.28982
  Prefactor  = 0.582905
 **********
 **   18 **HESSE 
 **********

 FCN=   6055.268     FROM HESSE     STATUS=OK            33 CALLS      282 TOTAL
                     EDM=   .61E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.3087        24.264        .47773E-05   -1.5685    
   2  alpha         3.8000        4.3482        .10623E-01    .54686    
   3  Normalizat    1.2898        .33583        .25069E-03   -.83871    
   4  Prefactor     .58290        .36545        .39920E-03   -1.0831    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.05258e-10
Minuit parameter uncertainties:
  1  11.2702
  2  5.13884
  3  0.336402
  4  0.366949
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/21100': 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) = 6055.2684027
delta logL = 0.960798894598

Extracting fit parameters...

4FGL J1131.0+3815
   Spectrum: LogParabola
342         norm:  1.309e+00  1.127e+01  0.000e+00  1.000e+06 ( 1.000e-12)
343        alpha:  3.800e+00  5.139e+00  0.000e+00  5.000e+00 ( 1.000e+00)
344         beta:  1.620e-01  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
345           Eb:  9.785e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
668    Prefactor:  5.829e-01  3.669e-01  0.000e+00  1.000e+01 ( 1.000e+00)
669        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
670        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
667   Normalization:  1.290e+00  3.364e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.02
Ra Dec: 172.755 38.257
Photon Index (Free Index): 3.80 +/- 5.14
Photon Flux (Free Index): 1.49e-07 +/- 1.62e-07
Energy Flux (Free Index): 2.55e-05 +/- 1.77e-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/21100/cmap_HighResolution_700444801_700704001_4FGL_J1131.0+3815_daily_bin1779.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.99e-05', comment='SUCCESS', photon_flux='5.93e-08', energy_flux2='2.55e-05', photon_flux_error='7.28e-08', dlogl='9.61e-01', energy_flux='1.86e-05', photon_flux2='1.49e-07', job_status='DONE', time_completed='2023-03-17 01:41:13.079514', photon_index_error2='5.14', photon_index2='3.80', ts='1.98', fit_tolerance='1e-08', GAL='0.51', photon_index_error='0.00', photon_flux_upper_limit='1.59e-07', energy_flux_error2='1.77e-05', EG='1.39', time_epoch_completed='1679042473.08', return_code='0', job_id='21100', GAL2='0.58', EG2='1.29', return_code2='0', energy_flux_error='2.28e-05', photon_flux_error2='1.62e-07', ts2='4.02', photon_index='2.55' WHERE bin_id='1779' AND source_name='4FGL J1131.0+3815' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Mar 17 01:41:13 PDT 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0240>
Subject: Job 21100: <4FGL_J1131.0+3815_daily_bin1779> in cluster <slac> Done

Job <4FGL_J1131.0+3815_daily_bin1779> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Fri Mar 17 01:25:27 2023
Job was executed on host(s) <bullet0240>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Mar 17 01:25:28 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Mar 17 01:25:28 2023
Terminated at Fri Mar 17 01:41:13 2023
Results reported at Fri Mar 17 01:41:13 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1131.0+3815_daily_bin1779 172.755 38.2565 700444801 700704001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1131.0+3815 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   736.32 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             287.94 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   945 sec.
    Turnaround time :                            946 sec.

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

