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


Performing analysis on: 4FGL_J1032.6+3737_daily_bin1749
RA = 158.173, Dec = 37.6234
tmin = 692668801, tmax = 692928001
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='947884', job_status='RUN', time_executed='2022-12-17 00:32:08.996563', time_epoch_executed='1671265929.0' WHERE source_name='4FGL J1032.6+3737' and cadence='daily' and bin_id='1749'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/947884

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/947884/ft1_4FGL_J1032.6+3737_daily_bin1749.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/947884/ft2_4FGL_J1032.6+3737_daily_bin1749.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/947884/ft1_4FGL_J1032.6+3737_daily_bin1749.fits outfile=/scratch/kocevski/947884/ft1_filteredMKT_4FGL_J1032.6+3737_daily_bin1749.fits ra=158.173 dec=37.6234 rad=12.0 tmin=692668801.0 tmax=692928001.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.63
user 3.42
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/947884/ft1_filtered_4FGL_J1032.6+3737_daily_bin1749.fits" evtable="EVENTS" scfile=/scratch/kocevski/947884/ft2_4FGL_J1032.6+3737_daily_bin1749.fits sctable="SC_DATA" outfile=/scratch/kocevski/947884/ltcube_692668801_692928001_4FGL_J1032.6+3737_daily_bin1749.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/947884/ft2_4FGL_J1032.6+3737_daily_bin1749.fits
.....................!
real 12.06
user 11.67
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/947884/ft1_filtered_4FGL_J1032.6+3737_daily_bin1749.fits evtable="EVENTS" scfile=/scratch/kocevski/947884/ft2_4FGL_J1032.6+3737_daily_bin1749.fits sctable="SC_DATA" expcube=/scratch/kocevski/947884/ltcube_692668801_692928001_4FGL_J1032.6+3737_daily_bin1749.fits outfile=/scratch/kocevski/947884/expmap_692668801_692928001_4FGL_J1032.6+3737_daily_bin1749.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/947884/ltcube_692668801_692928001_4FGL_J1032.6+3737_daily_bin1749.fits
.....................!
real 190.87
user 185.17
sys 5.37

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/947884/ft1_filtered_4FGL_J1032.6+3737_daily_bin1749.fits scfile=/scratch/kocevski/947884/ft2_4FGL_J1032.6+3737_daily_bin1749.fits outfile=/scratch/kocevski/947884/cmap_692668801_692928001_4FGL_J1032.6+3737_daily_bin1749.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.54
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/947884/ft1_filtered_4FGL_J1032.6+3737_daily_bin1749.fits scfile=/scratch/kocevski/947884/ft2_4FGL_J1032.6+3737_daily_bin1749.fits outfile=/scratch/kocevski/947884/cmap_HighResolution_692668801_692928001_4FGL_J1032.6+3737_daily_bin1749.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/947884/ft1_filtered_4FGL_J1032.6+3737_daily_bin1749.fits evtable="EVENTS" scfile=/scratch/kocevski/947884/ft2_4FGL_J1032.6+3737_daily_bin1749.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/947884/Model_4FGL_J1032.6+3737_daily_bin1749.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/947884/ft1_filtered_4FGL_J1032.6+3737_daily_bin1749.fits.....................!
real 51.31
user 50.05
sys 1.17

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .20924E-03   1.0000          .0000       .10000E+07
     2 'Prefactor '    .16068E-02   1.0000          .0000       .10000E+07
     3 'Prefactor '    .19752E-02   1.0000          .0000       .10000E+07
     4 'Prefactor '    1.0546       1.0000          .0000       .10000E+07
     5 'norm      '    2.8351       1.0000          .0000       .10000E+07
     6 'Prefactor '    2.6734       1.0000          .0000       .10000E+07
     7 'Prefactor '    15.704       1.0000          .0000       .10000E+07
     8 'Prefactor '    .99104E-03   1.0000          .0000       .10000E+07
     9 'norm      '    .51018E-03   1.0000          .0000       .10000E+07
    10 'Prefactor '    .42826E-02   1.0000          .0000       .10000E+07
    11 'Prefactor '    .19595E-02   1.0000          .0000       .10000E+07
    12 'Prefactor '    4.8993       1.0000          .0000       .10000E+07
    13 'Prefactor '    .14146E-03   1.0000          .0000       .10000E+07
    14 'Prefactor '    81.680       1.0000          .0000       .10000E+07
    15 'Prefactor '    3.9634       1.0000          .0000       .10000E+07
    16 'norm      '    1.4705       1.0000          .0000       .10000E+07
    17 'Prefactor '    1.3253       1.0000          .0000       .10000E+07
    18 'Prefactor '    14.686       1.0000          .0000       .10000E+07
    19 'Prefactor '    .18976E-03   1.0000          .0000       .10000E+07
    20 'norm      '    7.5731       1.0000          .0000       .10000E+07
    21 'Prefactor '    .96430E-02   1.0000          .0000       .10000E+07
    22 'Prefactor '    .26390E-01   1.0000          .0000       .10000E+07
    23 'norm      '    .24092E-07   1.0000          .0000       .10000E+07
    24 'Normalizat'    .94191       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .81779       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=   6002.182     FROM MIGRAD    STATUS=CONVERGED    190 CALLS     2143 TOTAL
                     EDM=   .16E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .25702E-07    17.840       -.17474E-06** at limit **
   2  Prefactor     .14599E-07    6.7997        .41304E-06** at limit **
   3  Prefactor     .76050E-08    10.944        .18314E-06** at limit **
   4  Prefactor     1.0359        10.703       -.20272E-06    .11351E-03
   5  norm          2.8423        14.964        .79451E-06    .55295E-02
   6  Prefactor     2.6736        1.7528        .44959E-07    .64021E-03
   7  Prefactor     15.712        5.1685        .10633E-06   -.78477E-04
   8  Prefactor     .83267E-09    4.7214       -.31280E-08** at limit **
   9  norm          .61062E-09    4.3862        .98281E-07** at limit **
  10  Prefactor     .49960E-09    22.888       -.50074E-06** at limit **
  11  Prefactor     .29643E-07    9.4939        .46625E-06** at limit **
  12  Prefactor     4.8996        4.2374        .20695E-07   -.63506E-04
  13  Prefactor     .55511E-10    4.8601        .34967E-06** at limit **
  14  Prefactor     81.316        32.024        .33299E-06    .10216    
  15  Prefactor     3.9704        6.0655       -.20982E-07    .61980E-05
  16  norm          1.4704        .33418       -.21588E-07    .18514E-02
  17  Prefactor     1.3241        2.3222        .11278E-06   -.46555E-03
  18  Prefactor     14.695        3.1954       -.37979E-07   -.75831E-02
  19  Prefactor     .12768E-08    4.8373        .47750E-07** at limit **
  20  norm          7.6284        9.2503       -.21569E-06    .13523E-02
  21  Prefactor     .22302E-01    63.272       -.17649E-05** at limit **
  22  Prefactor     .11102E-09    29.679       -.15930E-06** at limit **
  23  norm          .27756E-09    1.6414       -.13783E-07** at limit **
  24  Normalizat    .94183        .17773       -.74630E-05    .40344E-04
  25  Prefactor     .81776        .20522        .49302E-05    .22887E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 2.57017e-08
  Prefactor  = 1.45994e-08
  Prefactor  = 7.60503e-09
  Prefactor  = 1.03589
  norm       = 2.84226
  Prefactor  = 2.6736
  Prefactor  = 15.712
  Prefactor  = 8.32667e-10
  norm       = 6.10623e-10
  Prefactor  = 4.996e-10
  Prefactor  = 2.9643e-08
  Prefactor  = 4.89961
  Prefactor  = 5.55112e-11
  Prefactor  = 81.3156
  Prefactor  = 3.9704
  norm       = 1.47036
  Prefactor  = 1.32407
  Prefactor  = 14.6949
  Prefactor  = 1.27676e-09
  norm       = 7.62843
  Prefactor  = 0.0223022
  Prefactor  = 1.11022e-10
  norm       = 2.77556e-10
  Normalizat = 0.94183
  Prefactor  = 0.817757
 **********
 **   18 **HESSE 
 **********

 FCN=   6002.182     FROM HESSE     STATUS=OK           477 CALLS     2620 TOTAL
                     EDM=   .44E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .25702E-07    18.445        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .14599E-07    15.995        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .76050E-08    10.986        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     1.0359        10.662        .11997E-02   -1.5688    
   5  norm          2.8423        17.313        .60368E-03   -1.5674    
   6  Prefactor     2.6736        1.7559        .62301E-03   -1.5675    
   7  Prefactor     15.712        5.1795        .25247E-03   -1.5629    
   8  Prefactor     .83267E-09    4.7132        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .61062E-09    4.3834        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .49960E-09    22.879        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .29643E-07    15.516        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     4.8996        4.2378        .45418E-03   -1.5664    
  13  Prefactor     .55511E-10    8.5890        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     81.316        72.144        .11065E-03   -1.5528    
  15  Prefactor     3.9704        6.0866        .50642E-03   -1.5668    
  16  norm          1.4704        .34082        .46434E-03   -1.5684    
  17  Prefactor     1.3241        2.3650        .95456E-03   -1.5685    
  18  Prefactor     14.695        15.240        .26110E-03   -1.5631    
  19  Prefactor     .12768E-08    8.5650        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          7.6284        10.096        .36418E-03   -1.5653    
  21  Prefactor     .22302E-01    2.2148        .42118E-02   -1.5705    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .11102E-09    29.428        .16648E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .27756E-09    1.6359        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .94183        .15532        .45435E-01   -.95005    
  25  Prefactor     .81776        .17697        .64314E-01   -.99077    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.4457e-06
Minuit parameter uncertainties:
  1  0.00137656
  2  0.000967348
  3  0.000577431
  4  6.64663
  5  14.0298
  6  1.75593
  7  5.17951
  8  0.000123303
  9  0.00010143
  10  0.000218187
  11  0.00135597
  12  4.23785
  13  4.2231e-05
  14  72.1445
  15  6.08659
  16  0.340825
  17  2.36503
  18  15.2397
  19  0.000211169
  20  10.0956
  21  0.444497
  22  0.0001019
  23  4.39794e-05
  24  0.155392
  25  0.177092
Done.

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

Extracting fit parameters...

4FGL J1032.6+3737
   Spectrum: PowerLaw
316    Prefactor:  2.964e-08  1.356e-03  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:  8.178e-01  1.771e-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:  9.418e-01  1.554e-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: 4.04e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.05e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/947884/likelihoodResults_692668801_692928001_4FGL_J1032.6+3737_daily_bin1749.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) = 6002.21361486
delta logL = -0.0313039530765

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6002.18231804
delta logL = -7.12627479516e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .17329E-03   1.0000          .0000       .10000E+07
     2 'Index     '    1.0743       1.0000          .0000       10.000    
     3 'Normalizat'    .94200       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .81749       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=   6002.182     FROM MIGRAD    STATUS=CONVERGED     62 CALLS      232 TOTAL
                     EDM=   .12E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .76605E-08    .73777        .42118E-03** at limit **
   2  Index         1.9069        6.7246        .38657        .70581E-09
   3  Normalizat    .94184        .75546E-03    .45436E-01    .15728E-02
   4  Prefactor     .81776        .90694E-03    .64314E-01    .94000E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.66054e-09
  Index      = 1.90685
  Normalizat = 0.941835
  Prefactor  = 0.817755
 **********
 **   18 **HESSE 
 **********

 FCN=   6002.182     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      261 TOTAL
                     EDM=   .31E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .76605E-08    1.6717        .84235E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.9069        9.0214        .50000       -.66700    
   3  Normalizat    .94184        .11360E-02    .22350E-03   -.95005    
   4  Prefactor     .81776        .13626E-02    .28448E-03   -.99077    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.07871e-11
Minuit parameter uncertainties:
  1  0.000226283
  2  2434.26
  3  0.00113599
  4  0.00136259
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/947884': 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) = 6002.18231091
delta logL = -3.64707375411e-10

Extracting fit parameters...

4FGL J1032.6+3737
   Spectrum: PowerLaw
316    Prefactor:  7.661e-09  2.263e-04  0.000e+00  1.000e+06 ( 1.000e-14)
317        Index:  1.907e+00  2.434e+03  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:  8.178e-01  1.363e-03  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:  9.418e-01  1.136e-03  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/947884/cmap_HighResolution_692668801_692928001_4FGL_J1032.6+3737_daily_bin1749.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.05e-03', job_status='DONE', photon_flux_upper_limit='4.04e-08', time_completed='2022-12-17 00:43:05.213207', job_id='947884', GAL2='0.82', fit_tolerance='1e-08', EG2='0.94', EG='0.94', time_epoch_completed='1671266585.21', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.82', dlogl='-3.65e-10', ts2='-0.00', photon_index_error='0.00', photon_index='2.08' WHERE bin_id='1749' AND source_name='4FGL J1032.6+3737' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Dec 17 00:43:05 PST 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0106>
Subject: Job 947884: <4FGL_J1032.6+3737_daily_bin1749> in cluster <slac> Done

Job <4FGL_J1032.6+3737_daily_bin1749> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Sat Dec 17 00:30:24 2022
Job was executed on host(s) <bullet0106>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Dec 17 00:30:25 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Dec 17 00:30:25 2022
Terminated at Sat Dec 17 00:43:06 2022
Results reported at Sat Dec 17 00:43:06 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1032.6+3737_daily_bin1749 158.173 37.6234 692668801 692928001 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 :                                   658.45 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             302.24 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   760 sec.
    Turnaround time :                            762 sec.

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

