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


Performing analysis on: 4FGL_J1032.6+3737_daily_bin1759
RA = 158.173, Dec = 37.6234
tmin = 695260801, tmax = 695520001
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='554436', job_status='RUN', time_executed='2023-01-16 01:03:41.707373', time_epoch_executed='1673859821.71' WHERE source_name='4FGL J1032.6+3737' and cadence='daily' and bin_id='1759'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/554436

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/554436/ft1_4FGL_J1032.6+3737_daily_bin1759.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/554436/ft2_4FGL_J1032.6+3737_daily_bin1759.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/554436/ft1_4FGL_J1032.6+3737_daily_bin1759.fits outfile=/scratch/kocevski/554436/ft1_filteredMKT_4FGL_J1032.6+3737_daily_bin1759.fits ra=158.173 dec=37.6234 rad=12.0 tmin=695260801.0 tmax=695520001.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.30
user 2.06
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/554436/ft2_4FGL_J1032.6+3737_daily_bin1759.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/554436/ft1_filteredMKT_4FGL_J1032.6+3737_daily_bin1759.fits evtable="EVENTS" outfile="/scratch/kocevski/554436/ft1_filtered_4FGL_J1032.6+3737_daily_bin1759.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.15

Number of photons that the gtmktime cut: 266

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/554436/ft1_filtered_4FGL_J1032.6+3737_daily_bin1759.fits" evtable="EVENTS" scfile=/scratch/kocevski/554436/ft2_4FGL_J1032.6+3737_daily_bin1759.fits sctable="SC_DATA" outfile=/scratch/kocevski/554436/ltcube_695260801_695520001_4FGL_J1032.6+3737_daily_bin1759.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/554436/ft2_4FGL_J1032.6+3737_daily_bin1759.fits
.....................!
real 14.96
user 14.45
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/554436/ft1_filtered_4FGL_J1032.6+3737_daily_bin1759.fits evtable="EVENTS" scfile=/scratch/kocevski/554436/ft2_4FGL_J1032.6+3737_daily_bin1759.fits sctable="SC_DATA" expcube=/scratch/kocevski/554436/ltcube_695260801_695520001_4FGL_J1032.6+3737_daily_bin1759.fits outfile=/scratch/kocevski/554436/expmap_695260801_695520001_4FGL_J1032.6+3737_daily_bin1759.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/554436/ltcube_695260801_695520001_4FGL_J1032.6+3737_daily_bin1759.fits
.....................!
real 158.60
user 153.12
sys 4.36

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/554436/ft1_filtered_4FGL_J1032.6+3737_daily_bin1759.fits scfile=/scratch/kocevski/554436/ft2_4FGL_J1032.6+3737_daily_bin1759.fits outfile=/scratch/kocevski/554436/cmap_695260801_695520001_4FGL_J1032.6+3737_daily_bin1759.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.56
user 0.35
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/554436/ft1_filtered_4FGL_J1032.6+3737_daily_bin1759.fits scfile=/scratch/kocevski/554436/ft2_4FGL_J1032.6+3737_daily_bin1759.fits outfile=/scratch/kocevski/554436/cmap_HighResolution_695260801_695520001_4FGL_J1032.6+3737_daily_bin1759.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.51
user 0.34
sys 0.16

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/554436/ft1_filtered_4FGL_J1032.6+3737_daily_bin1759.fits', '/scratch/kocevski/554436/ft2_4FGL_J1032.6+3737_daily_bin1759.fits', expMap='/scratch/kocevski/554436/expmap_695260801_695520001_4FGL_J1032.6+3737_daily_bin1759.fits', expCube='/scratch/kocevski/554436/ltcube_695260801_695520001_4FGL_J1032.6+3737_daily_bin1759.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/554436/Model_4FGL_J1032.6+3737_daily_bin1759.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/554436/ft1_filtered_4FGL_J1032.6+3737_daily_bin1759.fits
Spacecraft file(s): /scratch/kocevski/554436/ft2_4FGL_J1032.6+3737_daily_bin1759.fits
Exposure map: /scratch/kocevski/554436/expmap_695260801_695520001_4FGL_J1032.6+3737_daily_bin1759.fits
Exposure cube: /scratch/kocevski/554436/ltcube_695260801_695520001_4FGL_J1032.6+3737_daily_bin1759.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/554436/Model_4FGL_J1032.6+3737_daily_bin1759.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) = 2994.63279425

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .11284E-04   1.0000          .0000       .10000E+07
     2 'Prefactor '    26.943       1.0000          .0000       .10000E+07
     3 'Prefactor '    .11633       1.0000          .0000       .10000E+07
     4 'Prefactor '    30.520       1.0000          .0000       .10000E+07
     5 'norm      '    29.901       1.0000          .0000       .10000E+07
     6 'Prefactor '    .26134E-05   1.0000          .0000       .10000E+07
     7 'Prefactor '    .39587E-03   1.0000          .0000       .10000E+07
     8 'Prefactor '    .10572E-02   1.0000          .0000       .10000E+07
     9 'norm      '    1.2903       1.0000          .0000       .10000E+07
    10 'Prefactor '    90.127       1.0000          .0000       .10000E+07
    11 'Prefactor '    59.485       1.0000          .0000       .10000E+07
    12 'Prefactor '    .33692E-05   1.0000          .0000       .10000E+07
    13 'Prefactor '    .13920E-01   1.0000          .0000       .10000E+07
    14 'Prefactor '    114.71       1.0000          .0000       .10000E+07
    15 'Prefactor '    .37251E-03   1.0000          .0000       .10000E+07
    16 'norm      '    3.5782       1.0000          .0000       .10000E+07
    17 'Prefactor '    .15613E-05   1.0000          .0000       .10000E+07
    18 'Prefactor '    4.4356       1.0000          .0000       .10000E+07
    19 'Prefactor '    .10238       1.0000          .0000       .10000E+07
    20 'norm      '    .14299E-02   1.0000          .0000       .10000E+07
    21 'Prefactor '    .41159E-02   1.0000          .0000       .10000E+07
    22 'Prefactor '    .32651E-04   1.0000          .0000       .10000E+07
    23 'norm      '    2.0968       1.0000          .0000       .10000E+07
    24 'Normalizat'    1.0932       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.0190       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=   2994.493     FROM MIGRAD    STATUS=CONVERGED    283 CALLS     2303 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .35527E-08    24.595        .17073E-06** at limit **
   2  Prefactor     32.301        58.795        .44053E-06   -.34236E-01
   3  Prefactor     .39968E-08    168.84       -.35350E-06** at limit **
   4  Prefactor     30.519        24.219       -.32469E-07    .18596    
   5  norm          29.174        30.396       -.12102E-06   -.79533E-01
   6  Prefactor      .0000        3.1129        .34400E-07** at limit **
   7  Prefactor     .55511E-10    7.9667        .17348E-07** at limit **
   8  Prefactor      .0000        5.8504        .18443E-07** at limit **
   9  norm          1.2806        64.993       -.24771E-06    .19580E-03
  10  Prefactor     88.765        79.278       -.15593E-06   -.64845E-01
  11  Prefactor     63.250        45.259        .19419E-06    .17798E-01
  12  Prefactor     .27756E-09    8.5496       -.37977E-07** at limit **
  13  Prefactor     .36569E-04    93.011        .17208E-06** at limit **
  14  Prefactor     151.60        193.23        .49175E-06   -.17935E-02
  15  Prefactor      .0000        4.5746       -.63894E-08** at limit **
  16  norm          3.5631        .70658        .60424E-08    .13168E-01
  17  Prefactor      .0000        5.7614        .45266E-07** at limit **
  18  Prefactor     6.1502        27.638        .24895E-06    .37598E-02
  19  Prefactor     .47184E-08    52.825       -.62923E-06** at limit **
  20  norm          .23963E-05    77.684       -.67190E-06** at limit **
  21  Prefactor     .25957E-06    57.230       -.21300E-06** at limit **
  22  Prefactor     .35844E-04    76.625       -.12140E-06** at limit **
  23  norm          2.1747        4.9926       -.17493E-06   -.35935E-02
  24  Normalizat    1.0695        .34553       -.14482E-05    .17771E-04
  25  Prefactor     1.0271        .37357        .19247E-05    .27416E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 3.55271e-09
  Prefactor  = 32.3014
  Prefactor  = 3.9968e-09
  Prefactor  = 30.5187
  norm       = 29.1743
  Prefactor  = 0
  Prefactor  = 5.55112e-11
  Prefactor  = 0
  norm       = 1.28062
  Prefactor  = 88.7652
  Prefactor  = 63.2502
  Prefactor  = 2.77556e-10
  Prefactor  = 3.65694e-05
  Prefactor  = 151.598
  Prefactor  = 0
  norm       = 3.56315
  Prefactor  = 0
  Prefactor  = 6.15022
  Prefactor  = 4.71845e-09
  norm       = 2.39631e-06
  Prefactor  = 2.5957e-07
  Prefactor  = 3.58439e-05
  norm       = 2.17466
  Normalizat = 1.06946
  Prefactor  = 1.0271
 **********
 **   18 **HESSE 
 **********

 FCN=   2994.493     FROM HESSE     STATUS=OK           479 CALLS     2782 TOTAL
                     EDM=   .29E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .35527E-08    24.621        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     32.301        76.276        .19269E-03   -1.5594    
   3  Prefactor     .39968E-08    169.41        .13510E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     30.519        32.908        .18104E-03   -1.5597    
   5  norm          29.174        31.681        .18290E-03   -1.5600    
   6  Prefactor      .0000        3.1289        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .55511E-10    7.9989        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor      .0000        5.9202        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          1.2806        65.531        .97460E-03   -1.5685    
  10  Prefactor     88.765        85.527        .10534E-03   -1.5520    
  11  Prefactor     63.250        68.748        .12967E-03   -1.5549    
  12  Prefactor     .27756E-09    8.3996        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .36569E-04    109.21        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     151.60        190.28        .93373E-04   -1.5462    
  15  Prefactor      .0000        4.5877        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          3.5631        .70869        .42805E-03   -1.5670    
  17  Prefactor      .0000        5.8292        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     6.1502        27.890        .47790E-03   -1.5658    
  19  Prefactor     .47184E-08    50.835        .13866E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .23963E-05    78.380        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .25957E-06    5.8597        .42118E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .35844E-04    91.422        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          2.1747        5.6675        .71250E-03   -1.5678    
  24  Normalizat    1.0695        .29052        .60881E-01   -.90739    
  25  Prefactor     1.0271        .31458        .72497E-01   -.91832    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.88941e-06
Minuit parameter uncertainties:
  1  0.00058966
  2  76.2781
  3  0.00164159
  4  32.9085
  5  31.6814
  6  4.8606e-06
  7  4.62897e-05
  8  2.54748e-05
  9  18.3218
  10  85.5281
  11  68.7489
  12  9.46713e-05
  13  0.126392
  14  190.288
  15  2.12422e-05
  16  0.708685
  17  1.52882e-05
  18  26.1942
  19  0.000978996
  20  0.0274099
  21  0.00246657
  22  0.11449
  23  5.66749
  24  0.290954
  25  0.31515
Done.

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

Extracting fit parameters...

4FGL J1032.6+3737
   Spectrum: PowerLaw
316    Prefactor:  6.325e+01  6.875e+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.027e+00  3.152e-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.069e+00  2.910e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.27
Ra Dec: 158.173 37.623
Photon Index (Fixed Index): 2.08 +/- 0.00
Photon Flux (Fixed Index): 5.03e-08 +/- 5.47e-08
Energy Flux (Fixed Index): 2.91e-05 +/- 3.16e-05

TS (Fixed Index): 1.27
Ra Dec: 158.173 37.623
Photon Flux Upper Limit: 1.80e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.36e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/554436/likelihoodResults_695260801_695520001_4FGL_J1032.6+3737_daily_bin1759.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) = 2994.48875591
delta logL = 0.00451276162494

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 2994.48165571
delta logL = 0.0116129646985

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    51.306       1.0000          .0000       .10000E+07
     2 'Index     '    2.2065       1.0000          .0000       10.000    
     3 'Normalizat'    1.0611       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0350       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=   2994.482     FROM MIGRAD    STATUS=CONVERGED     49 CALLS      239 TOTAL
                     EDM=   .37E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     51.306        2028.6        .13962E-03    .66818E-03
   2  Index         2.2065        6.0346        .10798       -.13470E-05
   3  Normalizat    1.0611        .14242        .61093E-01   -.32527E-04
   4  Prefactor     1.0350        .12953        .72259E-01    .51770E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 51.3055
  Index      = 2.20653
  Normalizat = 1.0611
  Prefactor  = 1.035
 **********
 **   18 **HESSE 
 **********

 FCN=   2994.482     FROM HESSE     STATUS=OK            31 CALLS      270 TOTAL
                     EDM=   .62E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     51.306        115.67        .55848E-05   -1.5565    
   2  Index         2.2065        1.0549        .53576E-02   -.59281    
   3  Normalizat    1.0611        .32240        .27020E-03   -.91011    
   4  Prefactor     1.0350        .37652        .31972E-03   -.91572    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.15003e-10
Minuit parameter uncertainties:
  1  115.674
  2  1.06667
  3  0.323001
  4  0.377482
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/554436': 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) = 2994.4816557
delta logL = 0.0116129675557

Extracting fit parameters...

4FGL J1032.6+3737
   Spectrum: PowerLaw
316    Prefactor:  5.131e+01  1.157e+02  0.000e+00  1.000e+06 ( 1.000e-14)
317        Index:  2.207e+00  1.067e+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.035e+00  3.775e-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.061e+00  3.230e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.27
Ra Dec: 158.173 37.623
Photon Index (Free Index): 2.21 +/- 1.07
Photon Flux (Free Index): 5.57e-08 +/- 6.84e-08
Energy Flux (Free Index): 2.47e-05 +/- 4.26e-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/554436/cmap_HighResolution_695260801_695520001_4FGL_J1032.6+3737_daily_bin1759.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.36e-02', comment='SUCCESS', photon_flux='5.03e-08', energy_flux2='2.47e-05', photon_flux_error='5.47e-08', dlogl='1.16e-02', energy_flux='2.91e-05', photon_flux2='5.57e-08', job_status='DONE', time_completed='2023-01-16 01:10:55.394329', photon_index_error2='1.07', photon_index2='2.21', ts='1.27', fit_tolerance='1e-08', GAL='1.03', photon_index_error='0.00', photon_flux_upper_limit='1.80e-07', energy_flux_error2='4.26e-05', EG='1.07', time_epoch_completed='1673860255.39', return_code='0', job_id='554436', GAL2='1.03', EG2='1.06', return_code2='0', energy_flux_error='3.16e-05', photon_flux_error2='6.84e-08', ts2='1.27', photon_index='2.08' WHERE bin_id='1759' AND source_name='4FGL J1032.6+3737' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Jan 16 01:10:55 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0086>
Subject: Job 554436: <4FGL_J1032.6+3737_daily_bin1759> in cluster <slac> Done

Job <4FGL_J1032.6+3737_daily_bin1759> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Mon Jan 16 00:55:44 2023
Job was executed on host(s) <bullet0086>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Jan 16 01:00:27 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Jan 16 01:00:27 2023
Terminated at Mon Jan 16 01:10:56 2023
Results reported at Mon Jan 16 01:10:56 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1032.6+3737_daily_bin1759 158.173 37.6234 695260801 695520001 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 :                                   433.03 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             267.22 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   628 sec.
    Turnaround time :                            912 sec.

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

