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


Performing analysis on: 4FGL_J1132.7+0034_daily_bin1750
RA = 173.196, Dec = 0.5737
tmin = 692928001, tmax = 693187201
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='8690', job_status='RUN', time_executed='2022-12-20 00:40:44.683058', time_epoch_executed='1671525644.68' WHERE source_name='4FGL J1132.7+0034' and cadence='daily' and bin_id='1750'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/8690

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/8690/ft1_4FGL_J1132.7+0034_daily_bin1750.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/8690/ft2_4FGL_J1132.7+0034_daily_bin1750.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/8690/ft1_4FGL_J1132.7+0034_daily_bin1750.fits outfile=/scratch/kocevski/8690/ft1_filteredMKT_4FGL_J1132.7+0034_daily_bin1750.fits ra=173.196 dec=0.5737 rad=12.0 tmin=692928001.0 tmax=693187201.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 3.45
user 3.21
sys 0.21

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/8690/ft2_4FGL_J1132.7+0034_daily_bin1750.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/8690/ft2_4FGL_J1132.7+0034_daily_bin1750.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/8690/ft1_filteredMKT_4FGL_J1132.7+0034_daily_bin1750.fits evtable="EVENTS" outfile="/scratch/kocevski/8690/ft1_filtered_4FGL_J1132.7+0034_daily_bin1750.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.32
sys 0.16

Number of photons that the gtmktime cut: 597

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/8690/ft1_filtered_4FGL_J1132.7+0034_daily_bin1750.fits" evtable="EVENTS" scfile=/scratch/kocevski/8690/ft2_4FGL_J1132.7+0034_daily_bin1750.fits sctable="SC_DATA" outfile=/scratch/kocevski/8690/ltcube_692928001_693187201_4FGL_J1132.7+0034_daily_bin1750.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/8690/ft2_4FGL_J1132.7+0034_daily_bin1750.fits
.....................!
real 11.66
user 11.29
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/8690/ft1_filtered_4FGL_J1132.7+0034_daily_bin1750.fits evtable="EVENTS" scfile=/scratch/kocevski/8690/ft2_4FGL_J1132.7+0034_daily_bin1750.fits sctable="SC_DATA" expcube=/scratch/kocevski/8690/ltcube_692928001_693187201_4FGL_J1132.7+0034_daily_bin1750.fits outfile=/scratch/kocevski/8690/expmap_692928001_693187201_4FGL_J1132.7+0034_daily_bin1750.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/8690/ltcube_692928001_693187201_4FGL_J1132.7+0034_daily_bin1750.fits
.....................!
real 191.10
user 185.57
sys 5.13

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 193 point sources and 0 extended sources

Setting source of interest to:
4FGL J1132.7+0034 @ 173.196 0.5737

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/8690/ft1_filtered_4FGL_J1132.7+0034_daily_bin1750.fits scfile=/scratch/kocevski/8690/ft2_4FGL_J1132.7+0034_daily_bin1750.fits outfile=/scratch/kocevski/8690/cmap_692928001_693187201_4FGL_J1132.7+0034_daily_bin1750.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=173.196 yref=0.5737 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

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/8690/ft1_filtered_4FGL_J1132.7+0034_daily_bin1750.fits scfile=/scratch/kocevski/8690/ft2_4FGL_J1132.7+0034_daily_bin1750.fits outfile=/scratch/kocevski/8690/cmap_HighResolution_692928001_693187201_4FGL_J1132.7+0034_daily_bin1750.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=173.196 yref=0.5737 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.55
user 0.38
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/8690/ft1_filtered_4FGL_J1132.7+0034_daily_bin1750.fits evtable="EVENTS" scfile=/scratch/kocevski/8690/ft2_4FGL_J1132.7+0034_daily_bin1750.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/8690/Model_4FGL_J1132.7+0034_daily_bin1750.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/8690/ft1_filtered_4FGL_J1132.7+0034_daily_bin1750.fits.....................!
real 63.39
user 61.98
sys 1.23

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/8690/ft1_filtered_4FGL_J1132.7+0034_daily_bin1750.fits', '/scratch/kocevski/8690/ft2_4FGL_J1132.7+0034_daily_bin1750.fits', expMap='/scratch/kocevski/8690/expmap_692928001_693187201_4FGL_J1132.7+0034_daily_bin1750.fits', expCube='/scratch/kocevski/8690/ltcube_692928001_693187201_4FGL_J1132.7+0034_daily_bin1750.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/8690/Model_4FGL_J1132.7+0034_daily_bin1750.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1132.7+0034'

4FGL J1132.7+0034
   Spectrum: PowerLaw
308    Prefactor:  2.058e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-12)
309        Index:  2.136e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
310        Scale:  1.103e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/8690/ft1_filtered_4FGL_J1132.7+0034_daily_bin1750.fits
Spacecraft file(s): /scratch/kocevski/8690/ft2_4FGL_J1132.7+0034_daily_bin1750.fits
Exposure map: /scratch/kocevski/8690/expmap_692928001_693187201_4FGL_J1132.7+0034_daily_bin1750.fits
Exposure cube: /scratch/kocevski/8690/ltcube_692928001_693187201_4FGL_J1132.7+0034_daily_bin1750.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/8690/Model_4FGL_J1132.7+0034_daily_bin1750.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) = 6512.35538896

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    8.8828       1.0000          .0000       .10000E+07
     2 'norm      '    .85974       1.0000          .0000       .10000E+07
     3 'Prefactor '    15.387       1.0000          .0000       .10000E+07
     4 'Prefactor '    19.127       1.0000          .0000       .10000E+07
     5 'Prefactor '    .33620       1.0000          .0000       .10000E+07
     6 'Prefactor '    .87620E-01   1.0000          .0000       .10000E+07
     7 'norm      '    .15878E-01   1.0000          .0000       .10000E+07
     8 'Prefactor '    .61962E-01   1.0000          .0000       .10000E+07
     9 'norm      '    .15168E-02   1.0000          .0000       .10000E+07
    10 'Prefactor '    .19756E-06   1.0000          .0000       .10000E+07
    11 'Prefactor '    .76175E-05   1.0000          .0000       .10000E+07
    12 'norm      '    .70006E-05   1.0000          .0000       .10000E+07
    13 'Prefactor '    .24113E-02   1.0000          .0000       .10000E+07
    14 'Prefactor '    .46657       1.0000          .0000       .10000E+07
    15 'Prefactor '    .74974E-03   1.0000          .0000       .10000E+07
    16 'Prefactor '    .32466E-03   1.0000          .0000       .10000E+07
    17 'Prefactor '    .10975E-01   1.0000          .0000       .10000E+07
    18 'Prefactor '    11.850       1.0000          .0000       .10000E+07
    19 'Prefactor '    .15269       1.0000          .0000       .10000E+07
    20 'Prefactor '    .99559E-04   1.0000          .0000       .10000E+07
    21 'Prefactor '    .26265E-03   1.0000          .0000       .10000E+07
    22 'Prefactor '    11.540       1.0000          .0000       .10000E+07
    23 'norm      '    .66042E-06   1.0000          .0000       .10000E+07
    24 'Normalizat'    1.6146       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .67243       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6150E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6512.328     FROM MIGRAD    STATUS=CONVERGED    184 CALLS     2220 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     8.8479        8.9324       -.17744E-06   -.13167E-02
   2  norm          .85977        .55879        .22613E-08   -.23759E-02
   3  Prefactor     15.387        12.929        .30429E-05    .37602E-01
   4  Prefactor     19.116        14.172       -.20379E-05   -.32591E-01
   5  Prefactor     .32458        18.994       -.11769E-05   -.23596E-03
   6  Prefactor     .66058E-08    35.942       -.17098E-06** at limit **
   7  norm          .18197E-05    40.713        .63284E-05** at limit **
   8  Prefactor     .12035        38.751        .10422E-05** at limit **
   9  norm          .55450E-06    6.7467        .14384E-05** at limit **
  10  Prefactor     .11102E-09    1.3071        .10845E-06** at limit **
  11  Prefactor     .24053E-05    11.450       -.95391E-06** at limit **
  12  norm          .11102E-09    3.0053        .29124E-06** at limit **
  13  Prefactor     .42446E-02    2.4508       -.18539E-05** at limit **
  14  Prefactor     .44769E-05    73.685       -.91924E-05** at limit **
  15  Prefactor     .15543E-08    5.7306       -.12838E-06** at limit **
  16  Prefactor     .43687E-07    4.3521        .10393E-05** at limit **
  17  Prefactor     .61229E-07    14.933       -.13301E-05** at limit **
  18  Prefactor     11.184        22.148        .54216E-05   -.41184E-01
  19  Prefactor     .12091E-04    209.11        .16269E-04** at limit **
  20  Prefactor     .13362E-06    156.04       -.45162E-05** at limit **
  21  Prefactor     .24525E-06    6.3090        .14531E-05** at limit **
  22  Prefactor     11.547        6.3751       -.13621E-05    .62083E-02
  23  norm          .55511E-10    1.0046       -.20070E-06** at limit **
  24  Normalizat    1.6146        .22841        .46916E-05   -.17884E-03
  25  Prefactor     .67249        .17843       -.46385E-05   -.23310E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 8.84787
  norm       = 0.859774
  Prefactor  = 15.3868
  Prefactor  = 19.116
  Prefactor  = 0.324575
  Prefactor  = 6.60583e-09
  norm       = 1.81966e-06
  Prefactor  = 0.120348
  norm       = 5.54501e-07
  Prefactor  = 1.11022e-10
  Prefactor  = 2.4053e-06
  norm       = 1.11022e-10
  Prefactor  = 0.00424464
  Prefactor  = 4.47692e-06
  Prefactor  = 1.55431e-09
  Prefactor  = 4.36873e-08
  Prefactor  = 6.12288e-08
  Prefactor  = 11.1842
  Prefactor  = 1.20907e-05
  Prefactor  = 1.33615e-07
  Prefactor  = 2.45248e-07
  Prefactor  = 11.5466
  norm       = 5.55112e-11
  Normalizat = 1.61456
  Prefactor  = 0.672487
 **********
 **   18 **HESSE 
 **********

 FCN=   6512.328     FROM HESSE     STATUS=OK           509 CALLS     2729 TOTAL
                     EDM=   .45E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     8.8479        8.9750        .33606E-03   -1.5648    
   2  norm          .85977        .56739        .48584E-03   -1.5689    
   3  Prefactor     15.387        14.434        .25507E-03   -1.5630    
   4  Prefactor     19.116        16.483        .22873E-03   -1.5621    
   5  Prefactor     .32458        3.1130        .73733E-02   -1.5697    
   6  Prefactor     .66058E-08    36.027        .14274E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .18197E-05    5.0780        .12123E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .12035        1.9463        .85383E-02   -1.5701    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .55450E-06    18.685        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .11102E-09    1.2866        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .24053E-05    20.810        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .11102E-09    3.0676        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .42446E-02    3.1550        .47702E-02   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .44769E-05    101.38        .82146E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .15543E-08    5.7043        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .43687E-07    21.502        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .61229E-07    15.341        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     11.184        36.144        .29075E-03   -1.5641    
  19  Prefactor     .12091E-04    37.189        .15369E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .13362E-06    157.45        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .24525E-06    18.838        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     11.547        15.477        .29465E-03   -1.5640    
  23  norm          .55511E-10    1.0086        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.6146        .20137        .53804E-01   -.74608    
  25  Prefactor     .67249        .15367        .61917E-01   -1.0462    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.53926e-07
Minuit parameter uncertainties:
  1  8.97499
  2  0.567394
  3  14.4337
  4  16.4827
  5  2.01039
  6  0.000974357
  7  0.00607957
  8  0.967942
  9  0.00643785
  10  2.36528e-05
  11  0.0141496
  12  3.95537e-05
  13  0.231447
  14  0.0426094
  15  0.000187748
  16  0.00193881
  17  0.00193846
  18  36.1443
  19  0.0424096
  20  0.00917354
  21  0.00429881
  22  15.477
  23  1.65898e-05
  24  0.201472
  25  0.153769
Done.

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

Extracting fit parameters...

4FGL J1132.7+0034
   Spectrum: PowerLaw
308    Prefactor:  1.110e-10  2.365e-05  0.000e+00  1.000e+06 ( 1.000e-12)
309        Index:  2.136e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
310        Scale:  1.103e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
612    Prefactor:  6.725e-01  1.538e-01  0.000e+00  1.000e+01 ( 1.000e+00)
613        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
614        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
611   Normalization:  1.615e+00  2.015e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 173.196 0.574
Photon Flux Upper Limit: 5.01e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.80e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/8690/likelihoodResults_692928001_693187201_4FGL_J1132.7+0034_daily_bin1750.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) = 6512.328781
delta logL = -0.000963486250839

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6512.32781759
delta logL = -7.08350853529e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .28200E-07   1.0000          .0000       .10000E+07
     2 'Index     '    2.2379       1.0000          .0000       10.000    
     3 'Normalizat'    1.6145       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .67254       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6150E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   6512.328     FROM MIGRAD    STATUS=CONVERGED     38 CALLS      244 TOTAL
                     EDM=   .12E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        1.2743        .42118E-03** at limit **
   2  Index         2.1455        .99885        .47670E-05     .0000    
   3  Normalizat    1.6146        1.0396        .11832E-04    .95233E-04
   4  Prefactor     .67249        1.0220       -.91427E-05    .85603E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 2.14549
  Normalizat = 1.61456
  Prefactor  = 0.672489
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   6512.328     FROM HESSE     STATUS=FAILED         9 CALLS      253 TOTAL
                     EDM=   .12E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        1.2743        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         .50473        1.7266        .47670E-05   -.60760    
   3  Normalizat    1.6146        1.0396        .11832E-04   -.74608    
   4  Prefactor     .67249        1.0220       -.91427E-05   -1.0462    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 1.18867e-11
Minuit parameter uncertainties:
  1  7.74892e-06
  2  1.00898
  3  1.054
  4  1.05276
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/8690': 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): 101
logL (Free Index) = 6512.32781752
delta logL = 7.54880602472e-11

Extracting fit parameters...

4FGL J1132.7+0034
   Spectrum: PowerLaw
308    Prefactor:  0.000e+00  7.749e-06  0.000e+00  1.000e+06 ( 1.000e-12)
309        Index:  2.145e+00  1.009e+00  0.000e+00  1.000e+01 (-1.000e+00)
310        Scale:  1.103e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
612    Prefactor:  6.725e-01  1.053e+00  0.000e+00  1.000e+01 ( 1.000e+00)
613        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
614        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
611   Normalization:  1.615e+00  1.054e+00  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 173.196 0.574

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/8690/cmap_HighResolution_692928001_693187201_4FGL_J1132.7+0034_daily_bin1750.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.80e-03', job_status='DONE', photon_flux_upper_limit='5.01e-08', time_completed='2022-12-20 00:52:13.200417', job_id='8690', GAL2='0.67', fit_tolerance='1e-08', EG2='1.61', EG='1.61', time_epoch_completed='1671526333.2', return_code2='101', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.67', dlogl='7.55e-11', ts2='0.00', photon_index_error='0.00', photon_index='2.14' WHERE bin_id='1750' AND source_name='4FGL J1132.7+0034' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Dec 20 00:52:13 PST 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0240>
Subject: Job 8690: <4FGL_J1132.7+0034_daily_bin1750> in cluster <slac> Done

Job <4FGL_J1132.7+0034_daily_bin1750> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Dec 20 00:40:14 2022
Job was executed on host(s) <bullet0240>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Dec 20 00:40:15 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Dec 20 00:40:15 2022
Terminated at Tue Dec 20 00:52:13 2022
Results reported at Tue Dec 20 00:52:13 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1132.7+0034_daily_bin1750 173.196 0.5737 692928001 693187201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1132.7+0034 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   690.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             335.76 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   718 sec.
    Turnaround time :                            719 sec.

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

