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 204 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_J1032.6+3737_daily_bin1750
RA = 158.173, Dec = 37.6234
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='5102', job_status='RUN', time_executed='2022-12-20 00:33:52.625796', time_epoch_executed='1671525232.63' WHERE source_name='4FGL J1032.6+3737' and cadence='daily' and bin_id='1750'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/5102

Creating custom pfile directory:
/scratch/kocevski/5102/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/5102/ft1_4FGL_J1032.6+3737_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/5102/ft2_4FGL_J1032.6+3737_daily_bin1750.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/5102/ft1_4FGL_J1032.6+3737_daily_bin1750.fits outfile=/scratch/kocevski/5102/ft1_filteredMKT_4FGL_J1032.6+3737_daily_bin1750.fits ra=158.173 dec=37.6234 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.42
user 3.21
sys 0.20

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

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

Number of photons that the gtmktime cut: 547

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/5102/ft1_filtered_4FGL_J1032.6+3737_daily_bin1750.fits" evtable="EVENTS" scfile=/scratch/kocevski/5102/ft2_4FGL_J1032.6+3737_daily_bin1750.fits sctable="SC_DATA" outfile=/scratch/kocevski/5102/ltcube_692928001_693187201_4FGL_J1032.6+3737_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/5102/ft2_4FGL_J1032.6+3737_daily_bin1750.fits
.....................!
real 11.83
user 11.48
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/5102/ft1_filtered_4FGL_J1032.6+3737_daily_bin1750.fits evtable="EVENTS" scfile=/scratch/kocevski/5102/ft2_4FGL_J1032.6+3737_daily_bin1750.fits sctable="SC_DATA" expcube=/scratch/kocevski/5102/ltcube_692928001_693187201_4FGL_J1032.6+3737_daily_bin1750.fits outfile=/scratch/kocevski/5102/expmap_692928001_693187201_4FGL_J1032.6+3737_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/5102/ltcube_692928001_693187201_4FGL_J1032.6+3737_daily_bin1750.fits
.....................!
real 191.10
user 185.86
sys 4.90

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/5102/ft1_filtered_4FGL_J1032.6+3737_daily_bin1750.fits scfile=/scratch/kocevski/5102/ft2_4FGL_J1032.6+3737_daily_bin1750.fits outfile=/scratch/kocevski/5102/cmap_692928001_693187201_4FGL_J1032.6+3737_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=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.60
user 0.40
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/5102/ft1_filtered_4FGL_J1032.6+3737_daily_bin1750.fits scfile=/scratch/kocevski/5102/ft2_4FGL_J1032.6+3737_daily_bin1750.fits outfile=/scratch/kocevski/5102/cmap_HighResolution_692928001_693187201_4FGL_J1032.6+3737_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=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.55
user 0.39
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/5102/ft1_filtered_4FGL_J1032.6+3737_daily_bin1750.fits evtable="EVENTS" scfile=/scratch/kocevski/5102/ft2_4FGL_J1032.6+3737_daily_bin1750.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/5102/Model_4FGL_J1032.6+3737_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/5102/ft1_filtered_4FGL_J1032.6+3737_daily_bin1750.fits.....................!
real 52.75
user 51.28
sys 1.25

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/5102/ft1_filtered_4FGL_J1032.6+3737_daily_bin1750.fits', '/scratch/kocevski/5102/ft2_4FGL_J1032.6+3737_daily_bin1750.fits', expMap='/scratch/kocevski/5102/expmap_692928001_693187201_4FGL_J1032.6+3737_daily_bin1750.fits', expCube='/scratch/kocevski/5102/ltcube_692928001_693187201_4FGL_J1032.6+3737_daily_bin1750.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/5102/Model_4FGL_J1032.6+3737_daily_bin1750.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/5102/ft1_filtered_4FGL_J1032.6+3737_daily_bin1750.fits
Spacecraft file(s): /scratch/kocevski/5102/ft2_4FGL_J1032.6+3737_daily_bin1750.fits
Exposure map: /scratch/kocevski/5102/expmap_692928001_693187201_4FGL_J1032.6+3737_daily_bin1750.fits
Exposure cube: /scratch/kocevski/5102/ltcube_692928001_693187201_4FGL_J1032.6+3737_daily_bin1750.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/5102/Model_4FGL_J1032.6+3737_daily_bin1750.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 102
logL (Fixed Index) = 5882.61209358

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .84377E-08   1.0000          .0000       .10000E+07
     2 'Prefactor '    .28755E-07   1.0000          .0000       .10000E+07
     3 'Prefactor '    20.906       1.0000          .0000       .10000E+07
     4 'Prefactor '    .68451E-06   1.0000          .0000       .10000E+07
     5 'norm      '    6.5985       1.0000          .0000       .10000E+07
     6 'Prefactor '    2.3478       1.0000          .0000       .10000E+07
     7 'Prefactor '    1.4747       1.0000          .0000       .10000E+07
     8 'Prefactor '    9.1312       1.0000          .0000       .10000E+07
     9 'norm      '    .45198E-03   1.0000          .0000       .10000E+07
    10 'Prefactor '    .58327E-04   1.0000          .0000       .10000E+07
    11 'Prefactor '    .21103E-02   1.0000          .0000       .10000E+07
    12 'Prefactor '    .85289E-05   1.0000          .0000       .10000E+07
    13 'Prefactor '    .26277E-05   1.0000          .0000       .10000E+07
    14 'Prefactor '    .17683E-02   1.0000          .0000       .10000E+07
    15 'Prefactor '    .19744E-05   1.0000          .0000       .10000E+07
    16 'norm      '    1.5019       1.0000          .0000       .10000E+07
    17 'Prefactor '    .59636E-06   1.0000          .0000       .10000E+07
    18 'Prefactor '    7.3172       1.0000          .0000       .10000E+07
    19 'Prefactor '    .87251E-03   1.0000          .0000       .10000E+07
    20 'norm      '    4.2323       1.0000          .0000       .10000E+07
    21 'Prefactor '    .59090E-04   1.0000          .0000       .10000E+07
    22 'Prefactor '    5.9371       1.0000          .0000       .10000E+07
    23 'norm      '    .17149       1.0000          .0000       .10000E+07
    24 'Normalizat'    1.3290       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .59449       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=   5882.427     FROM MIGRAD    STATUS=CONVERGED    204 CALLS     1759 TOTAL
                     EDM=   .13E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm           .0000        5.0369        .21346E-06** at limit **
   2  Prefactor     .10991E-07    10.991       -.64406E-06** at limit **
   3  Prefactor     21.066        1.7475       -.10499E-07   -.11054E-02
   4  Prefactor      .0000        4.4357       -.17625E-06** at limit **
   5  norm          6.5800        4.2727       -.25463E-06   -.35999E-01
   6  Prefactor     2.3466        1.9627       -.17054E-06    .12397E-02
   7  Prefactor     1.4716        4.7856        .53430E-06   -.41376E-04
   8  Prefactor     9.1266        6.3160        .55212E-07   -.57557E-03
   9  norm          .11102E-09    6.8891        .62528E-07** at limit **
  10  Prefactor     .12212E-08    147.72       -.26065E-05** at limit **
  11  Prefactor     .90483E-08    18.054        .14815E-05** at limit **
  12  Prefactor      .0000        1.8588       -.72102E-07** at limit **
  13  Prefactor     .27756E-09    28.705        .74028E-06** at limit **
  14  Prefactor     .94369E-08    20.921       -.66372E-07** at limit **
  15  Prefactor     .16487E-07    10.055        .87890E-07** at limit **
  16  norm          1.5022        .34279       -.71406E-08    .30610E-02
  17  Prefactor      .0000        1.5238       -.17989E-06** at limit **
  18  Prefactor     7.3834        2.0383       -.13384E-06   -.39113E-02
  19  Prefactor     .29421E-08    8.3359       -.29974E-06** at limit **
  20  norm          3.7940        1.6764       -.22160E-07   -.45826E-02
  21  Prefactor      .0000        2.3711        .13838E-06** at limit **
  22  Prefactor     5.8799        2.6827       -.15756E-06    .79676E-02
  23  norm          .17492        4.4044       -.11800E-05** at limit **
  24  Normalizat    1.3295        .18816        .20695E-05   -.58322E-05
  25  Prefactor     .59454        .21795       -.32779E-05   -.16232E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0
  Prefactor  = 1.09912e-08
  Prefactor  = 21.0663
  Prefactor  = 0
  norm       = 6.58003
  Prefactor  = 2.34665
  Prefactor  = 1.47155
  Prefactor  = 9.12659
  norm       = 1.11022e-10
  Prefactor  = 1.22125e-09
  Prefactor  = 9.04832e-09
  Prefactor  = 0
  Prefactor  = 2.77556e-10
  Prefactor  = 9.4369e-09
  Prefactor  = 1.64868e-08
  norm       = 1.50222
  Prefactor  = 0
  Prefactor  = 7.38338
  Prefactor  = 2.94209e-09
  norm       = 3.79396
  Prefactor  = 0
  Prefactor  = 5.87986
  norm       = 0.17492
  Normalizat = 1.32947
  Prefactor  = 0.594543
 **********
 **   18 **HESSE 
 **********

 FCN=   5882.427     FROM HESSE     STATUS=OK           477 CALLS     2236 TOTAL
                     EDM=   .53E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm           .0000        5.0399        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10991E-07    11.320        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     21.066        25.560        .21877E-03   -1.5616    
   4  Prefactor      .0000        4.4330        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          6.5800        12.548        .39042E-03   -1.5657    
   6  Prefactor     2.3466        1.9733        .66876E-03   -1.5677    
   7  Prefactor     1.4716        5.0645        .88413E-03   -1.5684    
   8  Prefactor     9.1266        6.6320        .33143E-03   -1.5648    
   9  norm          .11102E-09    6.8876        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .12212E-08    146.79        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .90483E-08    18.509        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor      .0000        1.8720        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .27756E-09    28.960        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .94369E-08    21.436        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .16487E-07    10.514        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          1.5022        .35596        .46812E-03   -1.5683    
  17  Prefactor      .0000        1.5235        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     7.3834        18.253        .37055E-03   -1.5654    
  19  Prefactor     .29421E-08    8.4299        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          3.7940        16.426        .48956E-03   -1.5669    
  21  Prefactor      .0000        2.3717        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     5.8799        35.524        .41188E-03   -1.5659    
  23  norm          .17492        1.7345        .32603E-02   -1.5716    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.3295        .17069        .32305E-01   -.82691    
  25  Prefactor     .59454        .19631        .77233E-01   -1.0782    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.28742e-08
Minuit parameter uncertainties:
  1  1.28602e-05
  2  0.000705314
  3  25.5599
  4  2.22032e-07
  5  12.5481
  6  1.97334
  7  5.0645
  8  6.63198
  9  4.84728e-05
  10  0.000846311
  11  0.000818841
  12  4.63275e-06
  13  0.00018586
  14  0.000900298
  15  0.000832434
  16  0.355963
  17  1.76419e-06
  18  18.2529
  19  0.000313501
  20  15.7886
  21  4.94155e-06
  22  28.9054
  23  1.10162
  24  0.170766
  25  0.196532
Done.

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

Extracting fit parameters...

4FGL J1032.6+3737
   Spectrum: PowerLaw
316    Prefactor:  9.048e-09  8.188e-04  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:  5.945e-01  1.965e-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:  1.329e+00  1.708e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/5102/likelihoodResults_692928001_693187201_4FGL_J1032.6+3737_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) = 5882.45258249
delta logL = -0.0259259669192

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5880.9728971
delta logL = 1.453759425

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .34711E-05   1.0000          .0000       .10000E+07
     2 'Index     '    7.9084       1.0000          .0000       10.000    
     3 'Normalizat'    1.2361       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .66936       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=   5882.427     FROM MIGRAD    STATUS=CONVERGED    122 CALLS      465 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10547E-08    2.5212        .42118E-03** at limit **
   2  Index         .21702        5.4969        .50000       -.77307E-09
   3  Normalizat    1.3295        .16724        .34060E-01    .77892E-03
   4  Prefactor     .59455        .19799        .77236E-01   -.57965E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.05471e-09
  Index      = 0.21702
  Normalizat = 1.32947
  Prefactor  = 0.594546
 **********
 **   18 **HESSE 
 **********

 FCN=   5882.427     FROM HESSE     STATUS=OK            31 CALLS      496 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10547E-08    2.4900        .84235E-04   -20.420    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         .21702        5.4867        .50000       -92584.    
   3  Normalizat    1.3295        .18284        .20167E-03    30.589    
   4  Prefactor     .59455        .21590        .34199E-03    85.901    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.06111e-09
Minuit parameter uncertainties:
  1  0.000103388
  2  1.45746
  3  0.182929
  4  0.2162
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/5102': 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) = 5882.42665653
delta logL = -2.82852852251e-10

Extracting fit parameters...

4FGL J1032.6+3737
   Spectrum: PowerLaw
316    Prefactor:  1.055e-09  1.034e-04  0.000e+00  1.000e+06 ( 1.000e-14)
317        Index:  2.170e-01  1.457e+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:  5.945e-01  2.162e-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:  1.329e+00  1.829e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 158.173 37.623

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/5102/cmap_HighResolution_692928001_693187201_4FGL_J1032.6+3737_daily_bin1750.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.13e-03', job_status='DONE', photon_flux_upper_limit='5.47e-08', time_completed='2022-12-20 00:44:50.944762', job_id='5102', GAL2='0.59', fit_tolerance='1e-08', EG2='1.33', EG='1.33', time_epoch_completed='1671525890.94', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.59', dlogl='-2.83e-10', ts2='-0.00', photon_index_error='0.00', photon_index='2.08' WHERE bin_id='1750' AND source_name='4FGL J1032.6+3737' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Dec 20 00:44:50 PST 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0065>
Subject: Job 5102: <4FGL_J1032.6+3737_daily_bin1750> in cluster <slac> Done

Job <4FGL_J1032.6+3737_daily_bin1750> was submitted from host <rhel6-64l> by user <kocevski> in cluster <slac> at Tue Dec 20 00:30:18 2022
Job was executed on host(s) <bullet0065>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Dec 20 00:30:19 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:30:19 2022
Terminated at Tue Dec 20 00:44:51 2022
Results reported at Tue Dec 20 00:44:51 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1032.6+3737_daily_bin1750 158.173 37.6234 692928001 693187201 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 :                                   660.58 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             276.32 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   872 sec.
    Turnaround time :                            873 sec.

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

