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


Performing analysis on: 4FGL_J1032.6+3737_daily_bin1764
RA = 158.173, Dec = 37.6234
tmin = 696556801, tmax = 696816001
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='442326', job_status='RUN', time_executed='2023-01-31 00:38:16.814996', time_epoch_executed='1675154296.82' WHERE source_name='4FGL J1032.6+3737' and cadence='daily' and bin_id='1764'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/442326

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/442326/ft1_4FGL_J1032.6+3737_daily_bin1764.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/442326/ft2_4FGL_J1032.6+3737_daily_bin1764.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/442326/ft1_4FGL_J1032.6+3737_daily_bin1764.fits outfile=/scratch/kocevski/442326/ft1_filteredMKT_4FGL_J1032.6+3737_daily_bin1764.fits ra=158.173 dec=37.6234 rad=12.0 tmin=696556801.0 tmax=696816001.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.76
user 3.53
sys 0.19

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/442326/ft2_4FGL_J1032.6+3737_daily_bin1764.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/442326/ft2_4FGL_J1032.6+3737_daily_bin1764.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/442326/ft1_filteredMKT_4FGL_J1032.6+3737_daily_bin1764.fits evtable="EVENTS" outfile="/scratch/kocevski/442326/ft1_filtered_4FGL_J1032.6+3737_daily_bin1764.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.54
user 0.36
sys 0.16

Number of photons that the gtmktime cut: 517

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/442326/ft1_filtered_4FGL_J1032.6+3737_daily_bin1764.fits" evtable="EVENTS" scfile=/scratch/kocevski/442326/ft2_4FGL_J1032.6+3737_daily_bin1764.fits sctable="SC_DATA" outfile=/scratch/kocevski/442326/ltcube_696556801_696816001_4FGL_J1032.6+3737_daily_bin1764.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/442326/ft2_4FGL_J1032.6+3737_daily_bin1764.fits
.....................!
real 15.48
user 15.02
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/442326/ft1_filtered_4FGL_J1032.6+3737_daily_bin1764.fits evtable="EVENTS" scfile=/scratch/kocevski/442326/ft2_4FGL_J1032.6+3737_daily_bin1764.fits sctable="SC_DATA" expcube=/scratch/kocevski/442326/ltcube_696556801_696816001_4FGL_J1032.6+3737_daily_bin1764.fits outfile=/scratch/kocevski/442326/expmap_696556801_696816001_4FGL_J1032.6+3737_daily_bin1764.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/442326/ltcube_696556801_696816001_4FGL_J1032.6+3737_daily_bin1764.fits
.....................!
real 192.17
user 186.01
sys 5.57

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

Setting source of interest to:
4FGL J1032.6+3737 @ 158.173 37.6234

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/442326/ft1_filtered_4FGL_J1032.6+3737_daily_bin1764.fits scfile=/scratch/kocevski/442326/ft2_4FGL_J1032.6+3737_daily_bin1764.fits outfile=/scratch/kocevski/442326/cmap_696556801_696816001_4FGL_J1032.6+3737_daily_bin1764.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=158.173 yref=37.6234 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.59
user 0.40
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/442326/ft1_filtered_4FGL_J1032.6+3737_daily_bin1764.fits scfile=/scratch/kocevski/442326/ft2_4FGL_J1032.6+3737_daily_bin1764.fits outfile=/scratch/kocevski/442326/cmap_HighResolution_696556801_696816001_4FGL_J1032.6+3737_daily_bin1764.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=158.173 yref=37.6234 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.61
user 0.41
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/442326/ft1_filtered_4FGL_J1032.6+3737_daily_bin1764.fits evtable="EVENTS" scfile=/scratch/kocevski/442326/ft2_4FGL_J1032.6+3737_daily_bin1764.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/442326/Model_4FGL_J1032.6+3737_daily_bin1764.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/442326/ft1_filtered_4FGL_J1032.6+3737_daily_bin1764.fits.....................!
real 51.12
user 49.68
sys 1.23

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/442326/ft1_filtered_4FGL_J1032.6+3737_daily_bin1764.fits', '/scratch/kocevski/442326/ft2_4FGL_J1032.6+3737_daily_bin1764.fits', expMap='/scratch/kocevski/442326/expmap_696556801_696816001_4FGL_J1032.6+3737_daily_bin1764.fits', expCube='/scratch/kocevski/442326/ltcube_696556801_696816001_4FGL_J1032.6+3737_daily_bin1764.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/442326/Model_4FGL_J1032.6+3737_daily_bin1764.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1032.6+3737'

4FGL J1032.6+3737
   Spectrum: PowerLaw
316    Prefactor:  7.905e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-14)
317        Index:  2.076e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
318        Scale:  2.586e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/442326/ft1_filtered_4FGL_J1032.6+3737_daily_bin1764.fits
Spacecraft file(s): /scratch/kocevski/442326/ft2_4FGL_J1032.6+3737_daily_bin1764.fits
Exposure map: /scratch/kocevski/442326/expmap_696556801_696816001_4FGL_J1032.6+3737_daily_bin1764.fits
Exposure cube: /scratch/kocevski/442326/ltcube_696556801_696816001_4FGL_J1032.6+3737_daily_bin1764.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/442326/Model_4FGL_J1032.6+3737_daily_bin1764.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) = 5880.31868008

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .24053E-02   1.0000          .0000       .10000E+07
     2 'Prefactor '    .37919E-02   1.0000          .0000       .10000E+07
     3 'Prefactor '    .35039E-03   1.0000          .0000       .10000E+07
     4 'Prefactor '    .30882E-03   1.0000          .0000       .10000E+07
     5 'norm      '    5.9451       1.0000          .0000       .10000E+07
     6 'Prefactor '    1.5367       1.0000          .0000       .10000E+07
     7 'Prefactor '    5.7712       1.0000          .0000       .10000E+07
     8 'Prefactor '    2.9033       1.0000          .0000       .10000E+07
     9 'norm      '    8.5694       1.0000          .0000       .10000E+07
    10 'Prefactor '    63.300       1.0000          .0000       .10000E+07
    11 'Prefactor '    4.6679       1.0000          .0000       .10000E+07
    12 'Prefactor '    .91237E-05   1.0000          .0000       .10000E+07
    13 'Prefactor '    38.948       1.0000          .0000       .10000E+07
    14 'Prefactor '    49.596       1.0000          .0000       .10000E+07
    15 'Prefactor '    .12144E-03   1.0000          .0000       .10000E+07
    16 'norm      '    2.6153       1.0000          .0000       .10000E+07
    17 'Prefactor '    .77370E-01   1.0000          .0000       .10000E+07
    18 'Prefactor '    .40104E-03   1.0000          .0000       .10000E+07
    19 'Prefactor '    .76822E-04   1.0000          .0000       .10000E+07
    20 'norm      '    38.433       1.0000          .0000       .10000E+07
    21 'Prefactor '    4.9118       1.0000          .0000       .10000E+07
    22 'Prefactor '    .36441E-03   1.0000          .0000       .10000E+07
    23 'norm      '    1.2888       1.0000          .0000       .10000E+07
    24 'Normalizat'    .82438       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.0083       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6420E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5880.263     FROM MIGRAD    STATUS=CONVERGED    211 CALLS     2209 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .18041E-07    19.775       -.88404E-07** at limit **
   2  Prefactor     .27578E-06    58.622       -.12045E-04** at limit **
   3  Prefactor     .45036E-06    12.793       -.23905E-05** at limit **
   4  Prefactor     .77716E-09    7.1853       -.13409E-06** at limit **
   5  norm          5.9733        14.276        .10680E-05    .40483E-02
   6  Prefactor     1.5390        1.8120        .31197E-07    .55237E-03
   7  Prefactor     5.7652        4.9663       -.75080E-07    .45059E-03
   8  Prefactor     2.8865        5.8508       -.20223E-06    .50018E-04
   9  norm          8.8045        10.670        .50472E-06   -.35380E-02
  10  Prefactor     66.072        55.437        .11700E-04    .96190E-01
  11  Prefactor     5.8725        18.014       -.25360E-05    .26704E-01
  12  Prefactor     .55511E-09    7.4000        .53203E-06** at limit **
  13  Prefactor     39.555        27.112       -.91253E-05   -.38060E-01
  14  Prefactor     50.232        40.077        .14714E-04   -.15792    
  15  Prefactor     .45166E-05    6.1343        .59893E-05** at limit **
  16  norm          2.6156        .44941        .10979E-07    .45114E-02
  17  Prefactor     .76432E-01    17.960       -.62406E-06** at limit **
  18  Prefactor     .20613E-05    10.224       -.24810E-05** at limit **
  19  Prefactor     .44409E-09    6.6619        .15950E-06** at limit **
  20  norm          38.480        3.9207        .94421E-06    .49465E-01
  21  Prefactor     4.9171        2.8396        .90943E-08    .90502E-03
  22  Prefactor     .67703E-05    101.44        .24441E-04** at limit **
  23  norm          1.2900        1.6940       -.29477E-07    .18313E-02
  24  Normalizat    .82235        .19879       -.71462E-05   -.25534E-04
  25  Prefactor     1.0077        .23387       -.30089E-05    .22221E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.80411e-08
  Prefactor  = 2.75779e-07
  Prefactor  = 4.50362e-07
  Prefactor  = 7.77156e-10
  norm       = 5.97331
  Prefactor  = 1.53898
  Prefactor  = 5.76517
  Prefactor  = 2.88648
  norm       = 8.80455
  Prefactor  = 66.0715
  Prefactor  = 5.87248
  Prefactor  = 5.55112e-10
  Prefactor  = 39.5553
  Prefactor  = 50.2316
  Prefactor  = 4.51661e-06
  norm       = 2.61558
  Prefactor  = 0.0764322
  Prefactor  = 2.0613e-06
  Prefactor  = 4.44089e-10
  norm       = 38.4801
  Prefactor  = 4.91707
  Prefactor  = 6.77031e-06
  norm       = 1.29005
  Normalizat = 0.822349
  Prefactor  = 1.00775
 **********
 **   18 **HESSE 
 **********

 FCN=   5880.263     FROM HESSE     STATUS=OK           483 CALLS     2692 TOTAL
                     EDM=   .53E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .18041E-07    19.742        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .27578E-06    62.557        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .45036E-06    13.665        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .77716E-09    7.1761        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          5.9733        14.323        .41160E-03   -1.5659    
   6  Prefactor     1.5390        1.8355        .86010E-03   -1.5683    
   7  Prefactor     5.7652        5.0476        .41785E-03   -1.5660    
   8  Prefactor     2.8865        6.0155        .59608E-03   -1.5674    
   9  norm          8.8045        10.886        .34219E-03   -1.5649    
  10  Prefactor     66.072        60.515        .12570E-03   -1.5545    
  11  Prefactor     5.8725        60.656        .46556E-03   -1.5659    
  12  Prefactor     .55511E-09    7.3400        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     39.555        30.246        .16025E-03   -1.5582    
  14  Prefactor     50.232        91.735        .14201E-03   -1.5566    
  15  Prefactor     .45166E-05    14.681        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          2.6156        .44961        .46261E-03   -1.5676    
  17  Prefactor     .76432E-01    1.7870        .55729E-02   -1.5713    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .20613E-05    14.677        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .44409E-09    6.6620        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          38.480        18.069        .16132E-03   -1.5584    
  21  Prefactor     4.9171        2.8571        .45359E-03   -1.5664    
  22  Prefactor     .67703E-05    106.47        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          1.2900        1.7300        .97546E-03   -1.5685    
  24  Normalizat    .82235        .17227        .43928E-01   -.99245    
  25  Prefactor     1.0077        .19973        .63587E-01   -.92472    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.33756e-06
Minuit parameter uncertainties:
  1  0.00119309
  2  0.00830679
  3  0.00496153
  4  0.000146764
  5  14.3235
  6  1.8355
  7  5.04765
  8  6.01551
  9  10.8861
  10  60.5152
  11  37.747
  12  0.000128582
  13  30.2462
  14  91.7379
  15  0.0162863
  16  0.449611
  17  0.739155
  18  0.0110007
  19  0.000109448
  20  18.0692
  21  2.85713
  22  0.0536979
  23  1.72999
  24  0.172384
  25  0.199881
Done.

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

Extracting fit parameters...

4FGL J1032.6+3737
   Spectrum: PowerLaw
316    Prefactor:  5.872e+00  3.775e+01  0.000e+00  1.000e+06 ( 1.000e-14)
317        Index:  2.076e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
318        Scale:  2.586e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
639    Prefactor:  1.008e+00  1.999e-01  0.000e+00  1.000e+01 ( 1.000e+00)
640        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
641        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
638   Normalization:  8.223e-01  1.724e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.03
Ra Dec: 158.173 37.623
Photon Flux Upper Limit: 7.94e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.99e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/442326/likelihoodResults_696556801_696816001_4FGL_J1032.6+3737_daily_bin1764.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) = 5875.41778249
delta logL = 4.84562489379

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5875.14120183
delta logL = 5.1222055516

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5875.141     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      313 TOTAL
                     EDM=   .34E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .18118E-01    .87442E-01    .86700E-04** at limit **
   2  Index         5.4490        1.3748        .40831E-01   -.19501E-03
   3  Normalizat    .58876        .64604E-01    .66678E-01   -.47939E-04
   4  Prefactor     1.1934        .77740E-01    .58909E-01   -.41382E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0181178
  Index      = 5.44898
  Normalizat = 0.588761
  Prefactor  = 1.19336
 **********
 **   18 **HESSE 
 **********

 FCN=   5875.141     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      344 TOTAL
                     EDM=   .19E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .18118E-01    .12599        .37093E-06   -1.5705    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         5.4490        1.7187        .17522E-02    .89917E-01
   3  Normalizat    .58876        .18378        .29510E-03   -1.0846    
   4  Prefactor     1.1934        .21994        .26049E-03   -.86536    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.89638e-10
Minuit parameter uncertainties:
  1  0.0955531
  2  1.75479
  3  0.183967
  4  0.220113
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/442326': 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): 102
logL (Free Index) = 5875.14120098
delta logL = 5.12220640162

Extracting fit parameters...

4FGL J1032.6+3737
   Spectrum: PowerLaw
316    Prefactor:  1.812e-02  9.555e-02  0.000e+00  1.000e+06 ( 1.000e-14)
317        Index:  5.449e+00  1.755e+00  0.000e+00  1.000e+01 (-1.000e+00)
318        Scale:  2.586e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
639    Prefactor:  1.193e+00  2.201e-01  0.000e+00  1.000e+01 ( 1.000e+00)
640        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
641        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
638   Normalization:  5.888e-01  1.840e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 11.51
Ra Dec: 158.173 37.623
Photon Index (Free Index): 5.45 +/- 1.75
Photon Flux (Free Index): 2.05e-07 +/- 7.77e-08
Energy Flux (Free Index): 2.63e-05 +/- 1.01e-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/442326/cmap_HighResolution_696556801_696816001_4FGL_J1032.6+3737_daily_bin1764.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.99e-03', comment='SUCCESS', energy_flux2='2.63e-05', dlogl='5.12e+00', photon_flux2='2.05e-07', job_status='DONE', time_completed='2023-01-31 00:49:25.171369', photon_index_error2='1.75', photon_index2='5.45', ts='0.03', fit_tolerance='1e-08', GAL='1.01', photon_index_error='0.00', photon_flux_upper_limit='7.94e-08', energy_flux_error2='1.01e-05', EG='0.82', time_epoch_completed='1675154965.17', return_code='0', job_id='442326', GAL2='1.19', EG2='0.59', return_code2='102', photon_flux_error2='7.77e-08', ts2='11.51', photon_index='2.08' WHERE bin_id='1764' AND source_name='4FGL J1032.6+3737' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Jan 31 00:49:25 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0035>
Subject: Job 442326: <4FGL_J1032.6+3737_daily_bin1764> in cluster <slac> Done

Job <4FGL_J1032.6+3737_daily_bin1764> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Tue Jan 31 00:35:23 2023
Job was executed on host(s) <bullet0035>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Jan 31 00:37:44 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Jan 31 00:37:44 2023
Terminated at Tue Jan 31 00:49:25 2023
Results reported at Tue Jan 31 00:49:25 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1032.6+3737_daily_bin1764 158.173 37.6234 696556801 696816001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1032.6+3737 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   670.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             316.32 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   701 sec.
    Turnaround time :                            842 sec.

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

