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


Performing analysis on: 4FGL_J1036.2+2202_daily_bin1765
RA = 159.053, Dec = 22.0401
tmin = 696816001, tmax = 697075201
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='631333', job_status='RUN', time_executed='2023-02-03 00:49:18.274857', time_epoch_executed='1675414158.27' WHERE source_name='4FGL J1036.2+2202' and cadence='daily' and bin_id='1765'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/631333

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/631333/ft1_4FGL_J1036.2+2202_daily_bin1765.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/631333/ft2_4FGL_J1036.2+2202_daily_bin1765.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/631333/ft1_4FGL_J1036.2+2202_daily_bin1765.fits outfile=/scratch/kocevski/631333/ft1_filteredMKT_4FGL_J1036.2+2202_daily_bin1765.fits ra=159.053 dec=22.0401 rad=12.0 tmin=696816001.0 tmax=697075201.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.67
user 3.43
sys 0.21

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

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

Number of photons that the gtmktime cut: 540

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/631333/ft1_filtered_4FGL_J1036.2+2202_daily_bin1765.fits evtable="EVENTS" scfile=/scratch/kocevski/631333/ft2_4FGL_J1036.2+2202_daily_bin1765.fits sctable="SC_DATA" expcube=/scratch/kocevski/631333/ltcube_696816001_697075201_4FGL_J1036.2+2202_daily_bin1765.fits outfile=/scratch/kocevski/631333/expmap_696816001_697075201_4FGL_J1036.2+2202_daily_bin1765.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/631333/ltcube_696816001_697075201_4FGL_J1036.2+2202_daily_bin1765.fits
.....................!
real 193.52
user 188.22
sys 4.85

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/631333/ft1_filtered_4FGL_J1036.2+2202_daily_bin1765.fits scfile=/scratch/kocevski/631333/ft2_4FGL_J1036.2+2202_daily_bin1765.fits outfile=/scratch/kocevski/631333/cmap_696816001_697075201_4FGL_J1036.2+2202_daily_bin1765.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.69
user 0.39
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/631333/ft1_filtered_4FGL_J1036.2+2202_daily_bin1765.fits scfile=/scratch/kocevski/631333/ft2_4FGL_J1036.2+2202_daily_bin1765.fits outfile=/scratch/kocevski/631333/cmap_HighResolution_696816001_697075201_4FGL_J1036.2+2202_daily_bin1765.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.56
user 0.37
sys 0.18

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/631333/ft1_filtered_4FGL_J1036.2+2202_daily_bin1765.fits', '/scratch/kocevski/631333/ft2_4FGL_J1036.2+2202_daily_bin1765.fits', expMap='/scratch/kocevski/631333/expmap_696816001_697075201_4FGL_J1036.2+2202_daily_bin1765.fits', expCube='/scratch/kocevski/631333/ltcube_696816001_697075201_4FGL_J1036.2+2202_daily_bin1765.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/631333/Model_4FGL_J1036.2+2202_daily_bin1765.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/631333/ft1_filtered_4FGL_J1036.2+2202_daily_bin1765.fits
Spacecraft file(s): /scratch/kocevski/631333/ft2_4FGL_J1036.2+2202_daily_bin1765.fits
Exposure map: /scratch/kocevski/631333/expmap_696816001_697075201_4FGL_J1036.2+2202_daily_bin1765.fits
Exposure cube: /scratch/kocevski/631333/ltcube_696816001_697075201_4FGL_J1036.2+2202_daily_bin1765.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/631333/Model_4FGL_J1036.2+2202_daily_bin1765.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) = 6151.85721609

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .12882E-02   1.0000          .0000       .10000E+07
     2 'Prefactor '    4.3012       1.0000          .0000       .10000E+07
     3 'Prefactor '    3.1637       1.0000          .0000       .10000E+07
     4 'norm      '    44.165       1.0000          .0000       .10000E+07
     5 'Prefactor '    59.506       1.0000          .0000       .10000E+07
     6 'Prefactor '    .39949E-01   1.0000          .0000       .10000E+07
     7 'Prefactor '    3.6373       1.0000          .0000       .10000E+07
     8 'Prefactor '    .25163E-06   1.0000          .0000       .10000E+07
     9 'Prefactor '    43.117       1.0000          .0000       .10000E+07
    10 'Prefactor '    6.4904       1.0000          .0000       .10000E+07
    11 'Prefactor '    .45391E-02   1.0000          .0000       .10000E+07
    12 'Prefactor '    .70591E-01   1.0000          .0000       .10000E+07
    13 'Prefactor '    19.597       1.0000          .0000       .10000E+07
    14 'Prefactor '    13.021       1.0000          .0000       .10000E+07
    15 'norm      '    .66514       1.0000          .0000       .10000E+07
    16 'Prefactor '    .11331E-04   1.0000          .0000       .10000E+07
    17 'Prefactor '    .18353E-01   1.0000          .0000       .10000E+07
    18 'Prefactor '    .86644E-03   1.0000          .0000       .10000E+07
    19 'Normalizat'    .95807       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .99047       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=   6151.810     FROM MIGRAD    STATUS=CONVERGED    141 CALLS     1203 TOTAL
                     EDM=   .29E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .72720E-08    12.665       -.11219E-06** at limit **
   2  Prefactor     4.1726        7.8219       -.10251E-06    .13910E-02
   3  Prefactor     3.1659        2.1548        .82053E-07    .80197E-03
   4  norm          44.164        5.4729        .10938E-07   -.45813E-01
   5  Prefactor     60.009        42.326        .54819E-07   -.23499E-02
   6  Prefactor      .0000        22.970        .44219E-06** at limit **
   7  Prefactor     3.6056        6.1724        .19921E-07   -.25005E-02
   8  Prefactor      .0000        .91216        .93057E-07** at limit **
   9  Prefactor     43.136        5.8037       -.37246E-08   -.12718    
  10  Prefactor     6.4771        8.5500        .33295E-07    .15442E-01
  11  Prefactor     .41633E-08    10.958       -.16197E-06** at limit **
  12  Prefactor     .39968E-08    39.327       -.13446E-05** at limit **
  13  Prefactor     19.593        10.311        .48720E-07   -.28368E-01
  14  Prefactor     12.803        2.7577        .72734E-09    .80321E-02
  15  norm          .66321        1.7913        .32122E-07    .12132E-02
  16  Prefactor      .0000        2.2154       -.11814E-07** at limit **
  17  Prefactor     .16653E-09    27.636        .15107E-06** at limit **
  18  Prefactor     .44409E-09    17.740        .33196E-06** at limit **
  19  Normalizat    .95880        .21467        .19015E-05   -.30467E-04
  20  Prefactor     .99035        .21055       -.47872E-05   -.45803E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.27196e-09
  Prefactor  = 4.17262
  Prefactor  = 3.16587
  norm       = 44.1643
  Prefactor  = 60.0094
  Prefactor  = 0
  Prefactor  = 3.60562
  Prefactor  = 0
  Prefactor  = 43.1358
  Prefactor  = 6.47711
  Prefactor  = 4.16334e-09
  Prefactor  = 3.9968e-09
  Prefactor  = 19.5929
  Prefactor  = 12.8025
  norm       = 0.663213
  Prefactor  = 0
  Prefactor  = 1.66533e-10
  Prefactor  = 4.44089e-10
  Normalizat = 0.958795
  Prefactor  = 0.990348
 **********
 **   18 **HESSE 
 **********

 FCN=   6151.810     FROM HESSE     STATUS=OK           347 CALLS     1550 TOTAL
                     EDM=   .15E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .72720E-08    12.806        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     4.1726        8.0543        .48551E-03   -1.5667    
   3  Prefactor     3.1659        2.1528        .56957E-03   -1.5672    
   4  norm          44.164        13.343        .15049E-03   -1.5575    
   5  Prefactor     60.009        42.397        .12964E-03   -1.5553    
   6  Prefactor      .0000        22.941        .15966E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     3.6056        6.2243        .52946E-03   -1.5670    
   8  Prefactor      .0000        .90827        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     43.136        11.036        .15231E-03   -1.5577    
  10  Prefactor     6.4771        10.389        .39370E-03   -1.5657    
  11  Prefactor     .41633E-08    11.022        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .39968E-08    6.3944        .97216E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     19.593        13.068        .22597E-03   -1.5619    
  14  Prefactor     12.803        16.735        .27734E-03   -1.5636    
  15  norm          .66321        1.8142        .63584E-03   -1.5692    
  16  Prefactor      .0000        2.2062        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .16653E-09    3.4320        .75325E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .44409E-09    17.733        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    .95880        .18940        .45639E-01   -.94424    
  20  Prefactor     .99035        .18331        .46148E-01   -.93052    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.47456e-07
Minuit parameter uncertainties:
  1  0.000610133
  2  8.05432
  3  2.15284
  4  13.3431
  5  42.3973
  6  3.54968e-05
  7  6.2243
  8  5.20645e-07
  9  11.0358
  10  10.389
  11  0.00042842
  12  0.000319076
  13  13.0682
  14  16.7349
  15  1.81425
  16  6.46225e-07
  17  4.65154e-05
  18  0.000179784
  19  0.189532
  20  0.183423
Done.

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

Extracting fit parameters...

4FGL J1036.2+2202
   Spectrum: PowerLaw
236    Prefactor:  3.606e+00  6.224e+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:  9.903e-01  1.834e-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:  9.588e-01  1.895e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.44
Ra Dec: 159.053 22.040
Photon Flux Upper Limit: 1.06e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.31e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/631333/likelihoodResults_696816001_697075201_4FGL_J1036.2+2202_daily_bin1765.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) = 6151.78755252
delta logL = 0.022875101411

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6151.785414
delta logL = 0.025013622766

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.2534       1.0000          .0000       .10000E+07
     2 'Index     '    2.9319       1.0000          .0000       10.000    
     3 'Normalizat'    .95147       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .99526       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=   6151.785     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      221 TOTAL
                     EDM=   .35E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.2542        206.84        .56125E-03    .85218E-02
   2  Index         2.9318        5.5539        .24884        .92658E-04
   3  Normalizat    .95153        .57779E-01    .45556E-01    .52160E-04
   4  Prefactor     .99521        .55546E-01    .46208E-01   -.75906E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.25424
  Index      = 2.93184
  Normalizat = 0.95153
  Prefactor  = 0.995212
 **********
 **   18 **HESSE 
 **********

 FCN=   6151.785     FROM HESSE     STATUS=OK            33 CALLS      254 TOTAL
                     EDM=   .26E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.2542        6.4485        .21461E-04   -1.5672    
   2  Index         2.9318        1.5586        .15104E-01   -.42644    
   3  Normalizat    .95153        .21022        .26470E-03   -.94672    
   4  Prefactor     .99521        .21150        .26392E-03   -.92889    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.59869e-10
Minuit parameter uncertainties:
  1  6.44853
  2  1.59075
  3  0.210403
  4  0.211672
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/631333': 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) = 6151.78541393
delta logL = 0.0250136900813

Extracting fit parameters...

4FGL J1036.2+2202
   Spectrum: PowerLaw
236    Prefactor:  3.254e+00  6.449e+00  0.000e+00  1.000e+06 ( 1.000e-12)
237        Index:  2.932e+00  1.591e+00  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:  9.952e-01  2.117e-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:  9.515e-01  2.104e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.44
Ra Dec: 159.053 22.040

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/631333/cmap_HighResolution_696816001_697075201_4FGL_J1036.2+2202_daily_bin1765.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.31e-03', job_status='DONE', photon_flux_upper_limit='1.06e-07', time_completed='2023-02-03 00:58:05.636747', job_id='631333', GAL2='1.00', fit_tolerance='1e-08', EG2='0.95', EG='0.96', time_epoch_completed='1675414685.64', return_code2='0', ts='0.44', comment='SUCCESS', return_code='0', GAL='0.99', dlogl='2.50e-02', ts2='0.50', photon_index_error='0.00', photon_index='2.61' WHERE bin_id='1765' AND source_name='4FGL J1036.2+2202' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Feb  3 00:58:05 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0050>
Subject: Job 631333: <4FGL_J1036.2+2202_daily_bin1765> in cluster <slac> Done

Job <4FGL_J1036.2+2202_daily_bin1765> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Fri Feb  3 00:45:19 2023
Job was executed on host(s) <bullet0050>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Feb  3 00:46:12 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Feb  3 00:46:12 2023
Terminated at Fri Feb  3 00:58:06 2023
Results reported at Fri Feb  3 00:58:06 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1036.2+2202_daily_bin1765 159.053 22.0401 696816001 697075201 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 :                                   529.12 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             270.54 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   713 sec.
    Turnaround time :                            767 sec.

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

