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


Performing analysis on: 4FGL_J1132.7+0034_daily_bin1773
RA = 173.196, Dec = 0.5737
tmin = 698889601, tmax = 699148801
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='787877', job_status='RUN', time_executed='2023-02-27 09:36:13.641644', time_epoch_executed='1677519373.64' WHERE source_name='4FGL J1132.7+0034' and cadence='daily' and bin_id='1773'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/787877

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/787877/ft1_4FGL_J1132.7+0034_daily_bin1773.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/787877/ft2_4FGL_J1132.7+0034_daily_bin1773.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/787877/ft1_4FGL_J1132.7+0034_daily_bin1773.fits outfile=/scratch/kocevski/787877/ft1_filteredMKT_4FGL_J1132.7+0034_daily_bin1773.fits ra=173.196 dec=0.5737 rad=12.0 tmin=698889601.0 tmax=699148801.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 2.96
user 2.72
sys 0.20

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

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

Number of photons that the gtmktime cut: 57

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/787877/ft1_filtered_4FGL_J1132.7+0034_daily_bin1773.fits" evtable="EVENTS" scfile=/scratch/kocevski/787877/ft2_4FGL_J1132.7+0034_daily_bin1773.fits sctable="SC_DATA" outfile=/scratch/kocevski/787877/ltcube_698889601_699148801_4FGL_J1132.7+0034_daily_bin1773.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/787877/ft2_4FGL_J1132.7+0034_daily_bin1773.fits
.....................!
real 15.78
user 15.41
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/787877/ft1_filtered_4FGL_J1132.7+0034_daily_bin1773.fits evtable="EVENTS" scfile=/scratch/kocevski/787877/ft2_4FGL_J1132.7+0034_daily_bin1773.fits sctable="SC_DATA" expcube=/scratch/kocevski/787877/ltcube_698889601_699148801_4FGL_J1132.7+0034_daily_bin1773.fits outfile=/scratch/kocevski/787877/expmap_698889601_699148801_4FGL_J1132.7+0034_daily_bin1773.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/787877/ltcube_698889601_699148801_4FGL_J1132.7+0034_daily_bin1773.fits
.....................!
real 192.87
user 188.30
sys 3.97

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/787877/ft1_filtered_4FGL_J1132.7+0034_daily_bin1773.fits scfile=/scratch/kocevski/787877/ft2_4FGL_J1132.7+0034_daily_bin1773.fits outfile=/scratch/kocevski/787877/cmap_698889601_699148801_4FGL_J1132.7+0034_daily_bin1773.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.56
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/787877/ft1_filtered_4FGL_J1132.7+0034_daily_bin1773.fits scfile=/scratch/kocevski/787877/ft2_4FGL_J1132.7+0034_daily_bin1773.fits outfile=/scratch/kocevski/787877/cmap_HighResolution_698889601_699148801_4FGL_J1132.7+0034_daily_bin1773.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.39
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/787877/ft1_filtered_4FGL_J1132.7+0034_daily_bin1773.fits evtable="EVENTS" scfile=/scratch/kocevski/787877/ft2_4FGL_J1132.7+0034_daily_bin1773.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/787877/Model_4FGL_J1132.7+0034_daily_bin1773.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/787877/ft1_filtered_4FGL_J1132.7+0034_daily_bin1773.fits.............................!
real 19.24
user 17.42
sys 1.30

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/787877/ft1_filtered_4FGL_J1132.7+0034_daily_bin1773.fits', '/scratch/kocevski/787877/ft2_4FGL_J1132.7+0034_daily_bin1773.fits', expMap='/scratch/kocevski/787877/expmap_698889601_699148801_4FGL_J1132.7+0034_daily_bin1773.fits', expCube='/scratch/kocevski/787877/ltcube_698889601_699148801_4FGL_J1132.7+0034_daily_bin1773.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/787877/Model_4FGL_J1132.7+0034_daily_bin1773.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/787877/ft1_filtered_4FGL_J1132.7+0034_daily_bin1773.fits
Spacecraft file(s): /scratch/kocevski/787877/ft2_4FGL_J1132.7+0034_daily_bin1773.fits
Exposure map: /scratch/kocevski/787877/expmap_698889601_699148801_4FGL_J1132.7+0034_daily_bin1773.fits
Exposure cube: /scratch/kocevski/787877/ltcube_698889601_699148801_4FGL_J1132.7+0034_daily_bin1773.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/787877/Model_4FGL_J1132.7+0034_daily_bin1773.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 746.532249

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 743.555132931

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.2180       1.0000          .0000       .10000E+07
     2 'norm      '    .11102E-09   1.0000          .0000       .10000E+07
     3 'Prefactor '    5.8652       1.0000          .0000       .10000E+07
     4 'Prefactor '    115.13       1.0000          .0000       .10000E+07
     5 'Prefactor '    .11172E-04   1.0000          .0000       .10000E+07
     6 'Prefactor '    .45249E-01   1.0000          .0000       .10000E+07
     7 'norm      '    17.987       1.0000          .0000       .10000E+07
     8 'Prefactor '    .41798E-05   1.0000          .0000       .10000E+07
     9 'norm      '    .15877E-02   1.0000          .0000       .10000E+07
    10 'Prefactor '    .11107E-05   1.0000          .0000       .10000E+07
    11 'Prefactor '    .40961E-03   1.0000          .0000       .10000E+07
    12 'norm      '    7.6581       1.0000          .0000       .10000E+07
    13 'Prefactor '    1.4070       1.0000          .0000       .10000E+07
    14 'Prefactor '    1.5509       1.0000          .0000       .10000E+07
    15 'Prefactor '    .83684E-02   1.0000          .0000       .10000E+07
    16 'Prefactor '    .15837E-06   1.0000          .0000       .10000E+07
    17 'Prefactor '    .45762E-02   1.0000          .0000       .10000E+07
    18 'Prefactor '    .94026E-01   1.0000          .0000       .10000E+07
    19 'Prefactor '    .67411E-02   1.0000          .0000       .10000E+07
    20 'Prefactor '    15.854       1.0000          .0000       .10000E+07
    21 'Prefactor '    .16580       1.0000          .0000       .10000E+07
    22 'Prefactor '    24.824       1.0000          .0000       .10000E+07
    23 'norm      '    .27756E-08   1.0000          .0000       .10000E+07
    24 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.3271       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=   743.5480     FROM MIGRAD    STATUS=CONVERGED    180 CALLS      435 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .31574E-03    793.54       -.43562E-04** at limit **
   2  norm           .0000        3.4094       -.10456E-06** at limit **
   3  Prefactor     5.8652        1.0037         .0000         .0000    
   4  Prefactor     114.98        4.6802       -.21757E-06   -.33823E-01
   5  Prefactor     .30531E-08    12.869       -.15348E-05** at limit **
   6  Prefactor     .55511E-10    124.67        .10627E-04** at limit **
   7  norm          18.015        3.0724        .27823E-06   -.19130E-01
   8  Prefactor     .61062E-09    5.8572       -.27198E-06** at limit **
   9  norm          .14266E-06    23.651       -.86754E-05** at limit **
  10  Prefactor     .22204E-09    4.7573        .20252E-06** at limit **
  11  Prefactor     .39974E-06    24.960        .19034E-04** at limit **
  12  norm          8.3252        7.4944        .80171E-06   -.10889E-01
  13  Prefactor     .86965        17.104       -.37074E-05    .47507E-03
  14  Prefactor     .37425E-04    272.09       -.51784E-04** at limit **
  15  Prefactor     .38713E-06    29.384       -.94537E-05** at limit **
  16  Prefactor     .53846E-08    12.943        .52852E-06** at limit **
  17  Prefactor     .10011E-05    49.600        .11626E-04** at limit **
  18  Prefactor     .31641E-08    78.828        .66570E-05** at limit **
  19  Prefactor     .17101E-04    101.71        .17796E-04** at limit **
  20  Prefactor     13.362        23.486        .65990E-05    .66784E-03
  21  Prefactor     .52923        232.28        .67524E-04   -.27538E-01
  22  Prefactor     25.260        6.1642       -.13128E-05    .47908E-02
  23  norm          .27756E-09    6.1977       -.95913E-06** at limit **
  24  Normalizat    .10000E-01    .24069       -.39249E-04** at limit **
  25  Prefactor     1.3313        .26416       -.83794E-05    .75610E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000315743
  norm       = 0
  Prefactor  = 5.86518
  Prefactor  = 114.98
  Prefactor  = 3.05311e-09
  Prefactor  = 5.55112e-11
  norm       = 18.0155
  Prefactor  = 6.10623e-10
  norm       = 1.42664e-07
  Prefactor  = 2.22045e-10
  Prefactor  = 3.99736e-07
  norm       = 8.32521
  Prefactor  = 0.869648
  Prefactor  = 3.74249e-05
  Prefactor  = 3.87135e-07
  Prefactor  = 5.38458e-09
  Prefactor  = 1.00109e-06
  Prefactor  = 3.16414e-09
  Prefactor  = 1.71013e-05
  Prefactor  = 13.362
  Prefactor  = 0.529232
  Prefactor  = 25.2602
  norm       = 2.77556e-10
  Normalizat = 0.01
  Prefactor  = 1.33133
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   743.5480     FROM HESSE     STATUS=FAILED        19 CALLS      454 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .31574E-03    796.98        .69024E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm           .0000        3.4172        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     41358.        41352.         .0000       -1.5660    
   4  Prefactor     114.98        .99935       -.21757E-06   -1.5494    
   5  Prefactor     .30531E-08    .44347E-01   -.15348E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .55511E-10    .61898        .10627E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          18.015        1.0012        .27823E-06   -1.5623    
   8  Prefactor     .61062E-09    .44347E-01   -.27198E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .14266E-06    .44347E-01   -.86754E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .22204E-09    .44347E-01    .20252E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .39974E-06    .44347E-01    .19034E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          8.3252        1.0449        .80171E-06   -1.5650    
  13  Prefactor     .86965        .85187       -.37074E-05   -1.5689    
  14  Prefactor     .37425E-04    .18272       -.51784E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .38713E-06    .44347E-01   -.94537E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .53846E-08    .44347E-01    .52852E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10011E-05    .44347E-01    .11626E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .31641E-08    .49649        .66570E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .17101E-04    .44347E-01    .17796E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     13.362        .91850        .65990E-05   -1.5635    
  21  Prefactor     .52923        .90347        .67524E-04   -1.5693    
  22  Prefactor     25.260        1.0090       -.13128E-05   -1.5607    
  23  norm          .27756E-09    .44347E-01   -.95913E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .10000E-01    .25505       -.39249E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     1.3313        1.0736       -.83794E-05   -.82380    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 1.39739e-09
Minuit parameter uncertainties:
  1  1.00341
  2  7.00516e-06
  3  1.00368
  4  0.999349
  5  2.32774e-05
  6  1.40931e-05
  7  1.00119
  8  1.01938e-05
  9  0.000159075
  10  6.23185e-06
  11  0.000266293
  12  1.04489
  13  0.851869
  14  0.00523007
  15  0.000262058
  16  3.0847e-05
  17  0.000421411
  18  7.92219e-05
  19  0.00174172
  20  0.918498
  21  0.903474
  22  1.00896
  23  6.81201e-06
  24  1.34587e-06
  25  1.09229
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 743.54803699

Extracting fit parameters...

4FGL J1132.7+0034
   Spectrum: PowerLaw
308    Prefactor:  2.220e-10  6.232e-06  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:  1.331e+00  1.092e+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.000e-02  1.346e-06  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 173.196 0.574
Photon Flux Upper Limit: 4.21e-07 ph cm-2 s-1
Energy Flux Upper Limit: 3.19e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/787877/likelihoodResults_698889601_699148801_4FGL_J1132.7+0034_daily_bin1773.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) = 743.548326165
delta logL = -0.000289174555746

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 743.548037136
delta logL = -1.46217530528e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .17075E-06   1.0000          .0000       .10000E+07
     2 'Index     '    .71319       1.0000          .0000       10.000    
     3 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3314       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=   743.5480     FROM MIGRAD    STATUS=CONVERGED     39 CALLS      237 TOTAL
                     EDM=   .21E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        3.4114        .42118E-03** at limit **
   2  Index         2.5180        1.7927        .44298E-04     .0000    
   3  Normalizat    .10000E-01    .25505        .11005E-03** at limit **
   4  Prefactor     1.3313        1.0714        .32006E-04    .18585E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 2.51802
  Normalizat = 0.01
  Prefactor  = 1.33133
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   743.5480     FROM HESSE     STATUS=FAILED         9 CALLS      246 TOTAL
                     EDM=   .21E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        3.4114        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         .71494        2.0247        .44298E-04   -.51944    
   3  Normalizat    .10000E-01    .25505        .11005E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     1.3313        1.0714        .32006E-04   -.82380    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 2.09338e-10
Minuit parameter uncertainties:
  1  1.02217e-06
  2  1.84802
  3  6.26526e-06
  4  1.08997
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/787877': 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) = 743.54803699
delta logL = -4.64979166281e-11

Extracting fit parameters...

4FGL J1132.7+0034
   Spectrum: PowerLaw
308    Prefactor:  0.000e+00  1.022e-06  0.000e+00  1.000e+06 ( 1.000e-12)
309        Index:  2.518e+00  1.848e+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:  1.331e+00  1.090e+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.000e-02  6.265e-06  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/787877/cmap_HighResolution_698889601_699148801_4FGL_J1132.7+0034_daily_bin1773.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.19e-02', job_status='DONE', photon_flux_upper_limit='4.21e-07', time_completed='2023-02-27 09:42:31.055247', job_id='787877', GAL2='1.33', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1677519751.06', return_code2='101', ts='-0.00', comment='SUCCESS', return_code='101', GAL='1.33', dlogl='-4.65e-11', ts2='0.00', photon_index_error='0.00', photon_index='2.14' WHERE bin_id='1773' AND source_name='4FGL J1132.7+0034' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Feb 27 09:42:31 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0218>
Subject: Job 787877: <4FGL_J1132.7+0034_daily_bin1773> in cluster <slac> Done

Job <4FGL_J1132.7+0034_daily_bin1773> was submitted from host <rhel6-64o> by user <kocevski> in cluster <slac> at Mon Feb 27 09:35:15 2023
Job was executed on host(s) <bullet0218>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Feb 27 09:35:16 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Feb 27 09:35:16 2023
Terminated at Mon Feb 27 09:43:03 2023
Results reported at Mon Feb 27 09:43:03 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1132.7+0034_daily_bin1773 173.196 0.5737 698889601 699148801 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 :                                   339.32 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             233.83 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   467 sec.
    Turnaround time :                            468 sec.

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

