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


Performing analysis on: 4FGL_J1036.2+2202_daily_bin1708
RA = 159.053, Dec = 22.0401
tmin = 682041601, tmax = 682300801
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='94640', job_status='RUN', time_executed='2022-09-16 15:27:41.018561', time_epoch_executed='1663367261.02' WHERE source_name='4FGL J1036.2+2202' and cadence='daily' and bin_id='1708'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/94640

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/94640/ft1_4FGL_J1036.2+2202_daily_bin1708.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/94640/ft2_4FGL_J1036.2+2202_daily_bin1708.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/94640/ft1_4FGL_J1036.2+2202_daily_bin1708.fits outfile=/scratch/kocevski/94640/ft1_filteredMKT_4FGL_J1036.2+2202_daily_bin1708.fits ra=159.053 dec=22.0401 rad=12.0 tmin=682041601.0 tmax=682300801.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 4.01
user 3.75
sys 0.21

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/94640/ft2_4FGL_J1036.2+2202_daily_bin1708.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/94640/ft2_4FGL_J1036.2+2202_daily_bin1708.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/94640/ft1_filteredMKT_4FGL_J1036.2+2202_daily_bin1708.fits evtable="EVENTS" outfile="/scratch/kocevski/94640/ft1_filtered_4FGL_J1036.2+2202_daily_bin1708.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.33
sys 0.17

Number of photons that the gtmktime cut: 531

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/94640/ft1_filtered_4FGL_J1036.2+2202_daily_bin1708.fits" evtable="EVENTS" scfile=/scratch/kocevski/94640/ft2_4FGL_J1036.2+2202_daily_bin1708.fits sctable="SC_DATA" outfile=/scratch/kocevski/94640/ltcube_682041601_682300801_4FGL_J1036.2+2202_daily_bin1708.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/94640/ft2_4FGL_J1036.2+2202_daily_bin1708.fits
.....................!
real 13.94
user 13.47
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/94640/ft1_filtered_4FGL_J1036.2+2202_daily_bin1708.fits evtable="EVENTS" scfile=/scratch/kocevski/94640/ft2_4FGL_J1036.2+2202_daily_bin1708.fits sctable="SC_DATA" expcube=/scratch/kocevski/94640/ltcube_682041601_682300801_4FGL_J1036.2+2202_daily_bin1708.fits outfile=/scratch/kocevski/94640/expmap_682041601_682300801_4FGL_J1036.2+2202_daily_bin1708.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/94640/ltcube_682041601_682300801_4FGL_J1036.2+2202_daily_bin1708.fits
.....................!
real 193.77
user 187.53
sys 5.15

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

Setting source of interest to:
4FGL J1036.2+2202 @ 159.053 22.0401

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/94640/ft1_filtered_4FGL_J1036.2+2202_daily_bin1708.fits scfile=/scratch/kocevski/94640/ft2_4FGL_J1036.2+2202_daily_bin1708.fits outfile=/scratch/kocevski/94640/cmap_682041601_682300801_4FGL_J1036.2+2202_daily_bin1708.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=159.053 yref=22.0401 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.57
user 0.39
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/94640/ft1_filtered_4FGL_J1036.2+2202_daily_bin1708.fits scfile=/scratch/kocevski/94640/ft2_4FGL_J1036.2+2202_daily_bin1708.fits outfile=/scratch/kocevski/94640/cmap_HighResolution_682041601_682300801_4FGL_J1036.2+2202_daily_bin1708.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=159.053 yref=22.0401 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.57
user 0.38
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/94640/ft1_filtered_4FGL_J1036.2+2202_daily_bin1708.fits evtable="EVENTS" scfile=/scratch/kocevski/94640/ft2_4FGL_J1036.2+2202_daily_bin1708.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/94640/Model_4FGL_J1036.2+2202_daily_bin1708.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/94640/ft1_filtered_4FGL_J1036.2+2202_daily_bin1708.fits.....................!
real 55.13
user 53.67
sys 1.28

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/94640/ft1_filtered_4FGL_J1036.2+2202_daily_bin1708.fits', '/scratch/kocevski/94640/ft2_4FGL_J1036.2+2202_daily_bin1708.fits', expMap='/scratch/kocevski/94640/expmap_682041601_682300801_4FGL_J1036.2+2202_daily_bin1708.fits', expCube='/scratch/kocevski/94640/ltcube_682041601_682300801_4FGL_J1036.2+2202_daily_bin1708.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/94640/Model_4FGL_J1036.2+2202_daily_bin1708.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1036.2+2202'

4FGL J1036.2+2202
   Spectrum: PowerLaw
236    Prefactor:  2.459e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-12)
237        Index:  2.615e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
238        Scale:  5.595e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/94640/ft1_filtered_4FGL_J1036.2+2202_daily_bin1708.fits
Spacecraft file(s): /scratch/kocevski/94640/ft2_4FGL_J1036.2+2202_daily_bin1708.fits
Exposure map: /scratch/kocevski/94640/expmap_682041601_682300801_4FGL_J1036.2+2202_daily_bin1708.fits
Exposure cube: /scratch/kocevski/94640/ltcube_682041601_682300801_4FGL_J1036.2+2202_daily_bin1708.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/94640/Model_4FGL_J1036.2+2202_daily_bin1708.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) = 6067.1546046

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    73.911       1.0000          .0000       .10000E+07
     2 'Prefactor '    11.639       1.0000          .0000       .10000E+07
     3 'Prefactor '    .10825E-06   1.0000          .0000       .10000E+07
     4 'norm      '    17.223       1.0000          .0000       .10000E+07
     5 'Prefactor '    21.088       1.0000          .0000       .10000E+07
     6 'Prefactor '    .13934       1.0000          .0000       .10000E+07
     7 'Prefactor '    5.5241       1.0000          .0000       .10000E+07
     8 'Prefactor '    .60390       1.0000          .0000       .10000E+07
     9 'Prefactor '    28.853       1.0000          .0000       .10000E+07
    10 'Prefactor '    9.1018       1.0000          .0000       .10000E+07
    11 'Prefactor '    .46937E-02   1.0000          .0000       .10000E+07
    12 'Prefactor '    .25978E-03   1.0000          .0000       .10000E+07
    13 'Prefactor '    .80479E-04   1.0000          .0000       .10000E+07
    14 'Prefactor '    .71678E-02   1.0000          .0000       .10000E+07
    15 'norm      '    2.2119       1.0000          .0000       .10000E+07
    16 'Prefactor '    .30365E-07   1.0000          .0000       .10000E+07
    17 'Prefactor '    .55039E-03   1.0000          .0000       .10000E+07
    18 'Prefactor '    .44134E-02   1.0000          .0000       .10000E+07
    19 'Normalizat'    .75129       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.4596       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5400E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6067.154     FROM MIGRAD    STATUS=CONVERGED    128 CALLS     1499 TOTAL
                     EDM=   .46E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     73.889        5.5183       -.69013E-08    .20606    
   2  Prefactor     11.454        7.9850        .20767E-07   -.96366E-02
   3  Prefactor      .0000        1.1156        .43616E-07** at limit **
   4  norm          17.126        8.6681        .26883E-07    .42775E-01
   5  Prefactor     21.076        1.0689       -.13174E-08   -.18546E-02
   6  Prefactor     .12823E-07    3.4742       -.90329E-07** at limit **
   7  Prefactor     5.5343        5.1836        .43559E-07    .29677E-03
   8  Prefactor     .59845        2.2345       -.27164E-07   -.10716E-02
   9  Prefactor     28.839        3.0426        .12091E-07    .77180E-02
  10  Prefactor     9.2149        9.4577       -.89844E-07    .18551E-01
  11  Prefactor     .16653E-07    11.181       -.75439E-07** at limit **
  12  Prefactor     .54401E-08    2.9922        .11072E-06** at limit **
  13  Prefactor     .12490E-07    4.2616       -.21766E-07** at limit **
  14  Prefactor     .24092E-07    25.508       -.23849E-06** at limit **
  15  norm          2.2103        2.2068        .10284E-07    .73347E-03
  16  Prefactor     .55511E-10    1.7600        .83823E-07** at limit **
  17  Prefactor     .37748E-08    5.8619        .17220E-06** at limit **
  18  Prefactor     .49127E-07    14.730       -.14464E-06** at limit **
  19  Normalizat    .75154        .21832       -.40615E-06   -.61907E-04
  20  Prefactor     1.4599        .22758       -.19664E-06   -.69208E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 73.8888
  Prefactor  = 11.4542
  Prefactor  = 0
  norm       = 17.1258
  Prefactor  = 21.0764
  Prefactor  = 1.28231e-08
  Prefactor  = 5.5343
  Prefactor  = 0.598448
  Prefactor  = 28.8386
  Prefactor  = 9.21494
  Prefactor  = 1.66533e-08
  Prefactor  = 5.44009e-09
  Prefactor  = 1.249e-08
  Prefactor  = 2.40918e-08
  norm       = 2.21034
  Prefactor  = 5.55112e-11
  Prefactor  = 3.77476e-09
  Prefactor  = 4.91274e-08
  Normalizat = 0.751537
  Prefactor  = 1.45987
 **********
 **   18 **HESSE 
 **********

 FCN=   6067.154     FROM HESSE     STATUS=OK           331 CALLS     1830 TOTAL
                     EDM=   .20E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     73.889        58.419        .11632E-03   -1.5536    
   2  Prefactor     11.454        8.0107        .29339E-03   -1.5640    
   3  Prefactor      .0000        1.1169        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          17.126        9.1971        .24107E-03   -1.5625    
   5  Prefactor     21.076        22.256        .21783E-03   -1.5616    
   6  Prefactor     .12823E-07    47.521        .12974E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     5.5343        5.2101        .42724E-03   -1.5661    
   8  Prefactor     .59845        2.2620        .68880E-03   -1.5692    
   9  Prefactor     28.839        10.959        .18620E-03   -1.5601    
  10  Prefactor     9.2149        10.644        .33197E-03   -1.5647    
  11  Prefactor     .16653E-07    11.237        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .54401E-08    5.9078        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .12490E-07    5.4539        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .24092E-07    25.524        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          2.2103        2.2582        .69131E-03   -1.5678    
  16  Prefactor     .55511E-10    1.7525        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .37748E-08    6.5497        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .49127E-07    14.752        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    .75154        .19117        .69012E-01   -1.0189    
  20  Prefactor     1.4599        .19466        .54780E-01   -.78670    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.00596e-06
Minuit parameter uncertainties:
  1  58.4198
  2  8.0107
  3  9.53187e-06
  4  9.19716
  5  22.2556
  6  0.00156258
  7  5.21009
  8  2.26204
  9  10.9589
  10  10.6442
  11  0.000865418
  12  0.000358293
  13  0.000522155
  14  0.0015689
  15  2.25821
  16  1.68416e-05
  17  0.000313875
  18  0.00170269
  19  0.191345
  20  0.194756
Done.

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

Extracting fit parameters...

4FGL J1036.2+2202
   Spectrum: PowerLaw
236    Prefactor:  5.534e+00  5.210e+00  0.000e+00  1.000e+06 ( 1.000e-12)
237        Index:  2.615e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
238        Scale:  5.595e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
537    Prefactor:  1.460e+00  1.948e-01  0.000e+00  1.000e+01 ( 1.000e+00)
538        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
539        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
536   Normalization:  7.515e-01  1.913e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.68
Ra Dec: 159.053 22.040
Photon Index (Fixed Index): 2.61 +/- 0.00
Photon Flux (Fixed Index): 3.10e-08 +/- 2.91e-08
Energy Flux (Fixed Index): 8.01e-06 +/- 7.54e-06

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) = 6064.42893549
delta logL = 2.72529414013

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6064.13178017
delta logL = 3.0224494588

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6064.132     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      218 TOTAL
                     EDM=   .92E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.8554        1.8963        .76443E-03   -.16023E-02
   2  Index         1.0849        .30982        .16758       -.84133E-04
   3  Normalizat    .77854        .18053        .67893E-01    .19498E-04
   4  Prefactor     1.4439        .19309        .55016E-01    .47449E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.85544
  Index      = 1.0849
  Normalizat = 0.778535
  Prefactor  = 1.44393
 **********
 **   18 **HESSE 
 **********

 FCN=   6064.132     FROM HESSE     STATUS=OK            31 CALLS      249 TOTAL
                     EDM=   .71E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.8554        2.9816        .96563E-05   -1.5681    
   2  Index         1.0849        .51729        .69240E-02   -.89951    
   3  Normalizat    .77854        .21124        .30040E-03   -1.0087    
   4  Prefactor     1.4439        .22630        .24324E-03   -.79122    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.11343e-12
Minuit parameter uncertainties:
  1  2.98155
  2  0.51971
  3  0.211459
  4  0.226455
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/94640': 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) = 6064.13177261
delta logL = 3.02245702343

Extracting fit parameters...

4FGL J1036.2+2202
   Spectrum: PowerLaw
236    Prefactor:  1.855e+00  2.982e+00  0.000e+00  1.000e+06 ( 1.000e-12)
237        Index:  1.085e+00  5.197e-01  0.000e+00  1.000e+01 (-1.000e+00)
238        Scale:  5.595e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
537    Prefactor:  1.444e+00  2.265e-01  0.000e+00  1.000e+01 ( 1.000e+00)
538        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
539        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
536   Normalization:  7.785e-01  2.115e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 11.71
Ra Dec: 159.053 22.040
Photon Index (Free Index): 1.08 +/- 0.52
Photon Flux (Free Index): 6.28e-09 +/- 6.93e-09
Energy Flux (Free Index): 7.29e-05 +/- 9.15e-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/94640/cmap_HighResolution_682041601_682300801_4FGL_J1036.2+2202_daily_bin1708.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='3.10e-08', energy_flux2='7.29e-05', photon_flux_error='2.91e-08', dlogl='3.02e+00', energy_flux='8.01e-06', photon_flux2='6.28e-09', job_status='DONE', time_completed='2022-09-16 15:36:12.114503', photon_index_error2='0.52', photon_index2='1.08', ts='5.68', fit_tolerance='1e-08', GAL='1.46', photon_index_error='0.00', energy_flux_error2='9.15e-05', EG='0.75', time_epoch_completed='1663367772.11', return_code='0', job_id='94640', GAL2='1.44', EG2='0.78', return_code2='0', energy_flux_error='7.54e-06', photon_flux_error2='6.93e-09', ts2='11.71', photon_index='2.61' WHERE bin_id='1708' AND source_name='4FGL J1036.2+2202' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 16 15:36:12 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0072>
Subject: Job 94640: <4FGL_J1036.2+2202_daily_bin1708> in cluster <slac> Done

Job <4FGL_J1036.2+2202_daily_bin1708> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Fri Sep 16 15:25:18 2022
Job was executed on host(s) <bullet0072>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 16 15:25:48 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Sep 16 15:25:48 2022
Terminated at Fri Sep 16 15:36:12 2022
Results reported at Fri Sep 16 15:36:12 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1036.2+2202_daily_bin1708 159.053 22.0401 682041601 682300801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1036.2+2202 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   512.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             248.55 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   624 sec.
    Turnaround time :                            654 sec.

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

