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


Performing analysis on: 4FGL_J1032.6+3737_daily_bin1778
RA = 158.173, Dec = 37.6234
tmin = 700185601, tmax = 700444801
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='957311', job_status='RUN', time_executed='2023-03-14 00:35:39.519634', time_epoch_executed='1678779339.52' WHERE source_name='4FGL J1032.6+3737' and cadence='daily' and bin_id='1778'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/957311

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/957311/ft1_4FGL_J1032.6+3737_daily_bin1778.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/957311/ft2_4FGL_J1032.6+3737_daily_bin1778.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/957311/ft1_4FGL_J1032.6+3737_daily_bin1778.fits outfile=/scratch/kocevski/957311/ft1_filteredMKT_4FGL_J1032.6+3737_daily_bin1778.fits ra=158.173 dec=37.6234 rad=12.0 tmin=700185601.0 tmax=700444801.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.96
user 3.73
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/957311/ft2_4FGL_J1032.6+3737_daily_bin1778.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/957311/ft1_filteredMKT_4FGL_J1032.6+3737_daily_bin1778.fits evtable="EVENTS" outfile="/scratch/kocevski/957311/ft1_filtered_4FGL_J1032.6+3737_daily_bin1778.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.49
user 0.32
sys 0.16

Number of photons that the gtmktime cut: 514

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/957311/ft1_filtered_4FGL_J1032.6+3737_daily_bin1778.fits evtable="EVENTS" scfile=/scratch/kocevski/957311/ft2_4FGL_J1032.6+3737_daily_bin1778.fits sctable="SC_DATA" expcube=/scratch/kocevski/957311/ltcube_700185601_700444801_4FGL_J1032.6+3737_daily_bin1778.fits outfile=/scratch/kocevski/957311/expmap_700185601_700444801_4FGL_J1032.6+3737_daily_bin1778.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/957311/ltcube_700185601_700444801_4FGL_J1032.6+3737_daily_bin1778.fits
.....................!
real 192.52
user 187.16
sys 4.93

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/957311/ft1_filtered_4FGL_J1032.6+3737_daily_bin1778.fits scfile=/scratch/kocevski/957311/ft2_4FGL_J1032.6+3737_daily_bin1778.fits outfile=/scratch/kocevski/957311/cmap_700185601_700444801_4FGL_J1032.6+3737_daily_bin1778.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.39
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/957311/ft1_filtered_4FGL_J1032.6+3737_daily_bin1778.fits scfile=/scratch/kocevski/957311/ft2_4FGL_J1032.6+3737_daily_bin1778.fits outfile=/scratch/kocevski/957311/cmap_HighResolution_700185601_700444801_4FGL_J1032.6+3737_daily_bin1778.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.54
user 0.39
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .40020E-03   1.0000          .0000       .10000E+07
     2 'Prefactor '    .61906E-03   1.0000          .0000       .10000E+07
     3 'Prefactor '    39.264       1.0000          .0000       .10000E+07
     4 'Prefactor '    .47568E-03   1.0000          .0000       .10000E+07
     5 'norm      '    8.7004       1.0000          .0000       .10000E+07
     6 'Prefactor '    2.4893       1.0000          .0000       .10000E+07
     7 'Prefactor '    .25424E-07   1.0000          .0000       .10000E+07
     8 'Prefactor '    4.9762       1.0000          .0000       .10000E+07
     9 'norm      '    19.407       1.0000          .0000       .10000E+07
    10 'Prefactor '    .14298E-02   1.0000          .0000       .10000E+07
    11 'Prefactor '    56.655       1.0000          .0000       .10000E+07
    12 'Prefactor '    .39070E-05   1.0000          .0000       .10000E+07
    13 'Prefactor '    .17377E-01   1.0000          .0000       .10000E+07
    14 'Prefactor '    87.943       1.0000          .0000       .10000E+07
    15 'Prefactor '    .20629E-03   1.0000          .0000       .10000E+07
    16 'norm      '    1.8709       1.0000          .0000       .10000E+07
    17 'Prefactor '    3.9890       1.0000          .0000       .10000E+07
    18 'Prefactor '    .68504E-03   1.0000          .0000       .10000E+07
    19 'Prefactor '    .72546E-02   1.0000          .0000       .10000E+07
    20 'norm      '    17.493       1.0000          .0000       .10000E+07
    21 'Prefactor '    2.9499       1.0000          .0000       .10000E+07
    22 'Prefactor '    .28630E-03   1.0000          .0000       .10000E+07
    23 'norm      '    3.1285       1.0000          .0000       .10000E+07
    24 'Normalizat'    1.1618       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .56111       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=   5590.700     FROM MIGRAD    STATUS=CONVERGED    145 CALLS     2102 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .24425E-08    4.4385        .67358E-06** at limit **
   2  Prefactor     .18874E-08    7.1641        .18833E-05** at limit **
   3  Prefactor     39.285        1.3003        .10211E-06   -.25524E-01
   4  Prefactor     .77716E-09    3.8532       -.25146E-06** at limit **
   5  norm          8.6950        5.2626       -.18016E-05   -.81431E-01
   6  Prefactor     2.4907        2.3791        .46324E-08    .41525E-02
   7  Prefactor      .0000        1.7064       -.42911E-07** at limit **
   8  Prefactor     4.9734        3.9970       -.86110E-07   -.12365E-03
   9  norm          19.414        1.4453       -.20580E-06   -.90995E-03
  10  Prefactor     .46685E-07    20.557        .10824E-05** at limit **
  11  Prefactor     56.673        1.0265        .14776E-07   -.56214E-02
  12  Prefactor      .0000        2.2597       -.77263E-07** at limit **
  13  Prefactor     .44409E-09    26.589       -.76199E-06** at limit **
  14  Prefactor     88.054        4.4041        .43753E-06   -.29762    
  15  Prefactor     .46629E-08    5.0594       -.27853E-05** at limit **
  16  norm          1.8705        .36552        .30058E-07   -.24923E-01
  17  Prefactor     3.9943        4.1053       -.36597E-06    .76929E-02
  18  Prefactor     .63838E-08    4.9701        .26885E-05** at limit **
  19  Prefactor     .31641E-08    11.530       -.10771E-05** at limit **
  20  norm          17.472        1.2239       -.12210E-06    .78955E-02
  21  Prefactor     2.9491        2.4648       -.30776E-06   -.91714E-02
  22  Prefactor     .67168E-07    38.806       -.76615E-06** at limit **
  23  norm          3.1282        2.8923       -.20277E-06   -.61073E-02
  24  Normalizat    1.1619        .18443        .64344E-07   -.47996E-05
  25  Prefactor     .56093        .21387        .37531E-05   -.38799E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 2.44249e-09
  Prefactor  = 1.88738e-09
  Prefactor  = 39.2849
  Prefactor  = 7.77156e-10
  norm       = 8.69499
  Prefactor  = 2.4907
  Prefactor  = 0
  Prefactor  = 4.9734
  norm       = 19.4139
  Prefactor  = 4.66849e-08
  Prefactor  = 56.6728
  Prefactor  = 0
  Prefactor  = 4.44089e-10
  Prefactor  = 88.0539
  Prefactor  = 4.66294e-09
  norm       = 1.87053
  Prefactor  = 3.99429
  Prefactor  = 6.38378e-09
  Prefactor  = 3.16414e-09
  norm       = 17.4722
  Prefactor  = 2.94911
  Prefactor  = 6.71685e-08
  norm       = 3.12817
  Normalizat = 1.16188
  Prefactor  = 0.560926
 **********
 **   18 **HESSE 
 **********

 FCN=   5590.700     FROM HESSE     STATUS=OK           477 CALLS     2579 TOTAL
                     EDM=   .61E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .24425E-08    4.4770        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .18874E-08    7.3371        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     39.285        34.228        .15961E-03   -1.5583    
   4  Prefactor     .77716E-09    3.8569        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          8.6950        9.1500        .33959E-03   -1.5649    
   6  Prefactor     2.4907        2.3938        .64760E-03   -1.5676    
   7  Prefactor      .0000        1.7096        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     4.9734        4.0123        .45059E-03   -1.5663    
   9  norm          19.414        10.797        .22707E-03   -1.5620    
  10  Prefactor     .46685E-07    20.609        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     56.673        31.388        .13286E-03   -1.5557    
  12  Prefactor      .0000        2.2541        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .44409E-09    25.754        .17216E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     88.054        77.270        .10664E-03   -1.5520    
  15  Prefactor     .46629E-08    6.1294        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          1.8705        .36555        .43799E-03   -1.5681    
  17  Prefactor     3.9943        4.1358        .50474E-03   -1.5668    
  18  Prefactor     .63838E-08    5.6661        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .31641E-08    11.542        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          17.472        13.884        .23919E-03   -1.5624    
  21  Prefactor     2.9491        2.4848        .59105E-03   -1.5674    
  22  Prefactor     .67168E-07    38.693        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          3.1282        2.9009        .57293E-03   -1.5673    
  24  Normalizat    1.1619        .16901        .35905E-01   -.87789    
  25  Prefactor     .56093        .19197        .76635E-01   -1.0926    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.13115e-06
Minuit parameter uncertainties:
  1  0.000209704
  2  0.000233979
  3  34.2283
  4  0.000110131
  5  9.15003
  6  2.39385
  7  4.05873e-07
  8  4.01233
  9  10.797
  10  0.00196159
  11  31.3881
  12  4.84629e-06
  13  0.000211382
  14  77.271
  15  0.000339041
  16  0.365552
  17  4.13579
  18  0.000380744
  19  0.000383347
  20  13.8839
  21  2.48483
  22  0.00322472
  23  2.90091
  24  0.169093
  25  0.192189
Done.

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

Extracting fit parameters...

4FGL J1032.6+3737
   Spectrum: PowerLaw
316    Prefactor:  5.667e+01  3.139e+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:  5.609e-01  1.922e-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.162e+00  1.691e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 12.90
Ra Dec: 158.173 37.623
Photon Index (Fixed Index): 2.08 +/- 0.00
Photon Flux (Fixed Index): 4.51e-08 +/- 2.50e-08
Energy Flux (Fixed Index): 2.61e-05 +/- 1.44e-05

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) = 5590.59327569
delta logL = 0.107113381009

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5590.59058983
delta logL = 0.10979924183

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    71.723       1.0000          .0000       .10000E+07
     2 'Index     '    1.8623       1.0000          .0000       10.000    
     3 'Normalizat'    1.1720       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .55415       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.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5590.591     FROM MIGRAD    STATUS=CONVERGED     98 CALLS      305 TOTAL
                     EDM=   .88E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     71.623        50.760        .23617E-04    .75094E-03
   2  Index         1.8596        .46455        .53070E-02    .27038E-03
   3  Normalizat    1.1722        .18246        .20643E-03    .73334E-04
   4  Prefactor     .55445        .21339        .34127E-03   -.47637E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 71.6227
  Index      = 1.85961
  Normalizat = 1.17217
  Prefactor  = 0.554445
 **********
 **   18 **HESSE 
 **********

 FCN=   5590.591     FROM HESSE     STATUS=OK            25 CALLS      330 TOTAL
                     EDM=   .51E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     71.623        49.733        .94469E-06   -1.5539    
   2  Index         1.8596        .45507        .10614E-02   -.67908    
   3  Normalizat    1.1722        .18248        .41287E-04   -.87467    
   4  Prefactor     .55445        .21348        .13651E-04   -1.0954    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.07288e-11
Minuit parameter uncertainties:
  1  49.7337
  2  0.456118
  3  0.182577
  4  0.213788
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/957311': 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) = 5590.59054666
delta logL = 0.109842412345

Extracting fit parameters...

4FGL J1032.6+3737
   Spectrum: PowerLaw
316    Prefactor:  7.162e+01  4.973e+01  0.000e+00  1.000e+06 ( 1.000e-14)
317        Index:  1.860e+00  4.561e-01  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.544e-01  2.138e-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.172e+00  1.826e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 13.12
Ra Dec: 158.173 37.623
Photon Index (Free Index): 1.86 +/- 0.46
Photon Flux (Free Index): 3.52e-08 +/- 2.82e-08
Energy Flux (Free Index): 3.54e-05 +/- 3.30e-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/957311/cmap_HighResolution_700185601_700444801_4FGL_J1032.6+3737_daily_bin1778.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='4.51e-08', energy_flux2='3.54e-05', photon_flux_error='2.50e-08', dlogl='1.10e-01', energy_flux='2.61e-05', photon_flux2='3.52e-08', job_status='DONE', time_completed='2023-03-14 00:45:42.912597', photon_index_error2='0.46', photon_index2='1.86', ts='12.90', fit_tolerance='1e-08', GAL='0.56', photon_index_error='0.00', energy_flux_error2='3.30e-05', EG='1.16', time_epoch_completed='1678779942.91', return_code='0', job_id='957311', GAL2='0.55', EG2='1.17', return_code2='0', energy_flux_error='1.44e-05', photon_flux_error2='2.82e-08', ts2='13.12', photon_index='2.08' WHERE bin_id='1778' AND source_name='4FGL J1032.6+3737' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Mar 14 00:45:42 PDT 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0173>
Subject: Job 957311: <4FGL_J1032.6+3737_daily_bin1778> in cluster <slac> Done

Job <4FGL_J1032.6+3737_daily_bin1778> was submitted from host <rhel6-64n> by user <kocevski> in cluster <slac> at Tue Mar 14 00:35:25 2023
Job was executed on host(s) <bullet0173>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Mar 14 00:35:27 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Mar 14 00:35:27 2023
Terminated at Tue Mar 14 00:45:43 2023
Results reported at Tue Mar 14 00:45:43 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1032.6+3737_daily_bin1778 158.173 37.6234 700185601 700444801 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 :                                   605.40 sec.
    Max Memory :                                 1258 MB
    Average Memory :                             298.62 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   616 sec.
    Turnaround time :                            618 sec.

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

