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


Performing analysis on: 4FGL_J1036.2+2202_daily_bin1744
RA = 159.053, Dec = 22.0401
tmin = 691372801, tmax = 691632001
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='574980', job_status='RUN', time_executed='2022-12-02 00:41:14.031744', time_epoch_executed='1669970474.03' WHERE source_name='4FGL J1036.2+2202' and cadence='daily' and bin_id='1744'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/574980

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/574980/ft1_4FGL_J1036.2+2202_daily_bin1744.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/574980/ft2_4FGL_J1036.2+2202_daily_bin1744.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/574980/ft1_4FGL_J1036.2+2202_daily_bin1744.fits outfile=/scratch/kocevski/574980/ft1_filteredMKT_4FGL_J1036.2+2202_daily_bin1744.fits ra=159.053 dec=22.0401 rad=12.0 tmin=691372801.0 tmax=691632001.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 2.52
user 2.32
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/574980/ft2_4FGL_J1036.2+2202_daily_bin1744.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/574980/ft1_filteredMKT_4FGL_J1036.2+2202_daily_bin1744.fits evtable="EVENTS" outfile="/scratch/kocevski/574980/ft1_filtered_4FGL_J1036.2+2202_daily_bin1744.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.50
user 0.33
sys 0.16

Number of photons that the gtmktime cut: 764

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/574980/ft1_filtered_4FGL_J1036.2+2202_daily_bin1744.fits" evtable="EVENTS" scfile=/scratch/kocevski/574980/ft2_4FGL_J1036.2+2202_daily_bin1744.fits sctable="SC_DATA" outfile=/scratch/kocevski/574980/ltcube_691372801_691632001_4FGL_J1036.2+2202_daily_bin1744.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/574980/ft2_4FGL_J1036.2+2202_daily_bin1744.fits
.....................!
real 13.18
user 12.83
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/574980/ft1_filtered_4FGL_J1036.2+2202_daily_bin1744.fits evtable="EVENTS" scfile=/scratch/kocevski/574980/ft2_4FGL_J1036.2+2202_daily_bin1744.fits sctable="SC_DATA" expcube=/scratch/kocevski/574980/ltcube_691372801_691632001_4FGL_J1036.2+2202_daily_bin1744.fits outfile=/scratch/kocevski/574980/expmap_691372801_691632001_4FGL_J1036.2+2202_daily_bin1744.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/574980/ltcube_691372801_691632001_4FGL_J1036.2+2202_daily_bin1744.fits
.....................!
real 192.29
user 187.00
sys 4.65

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/574980/ft1_filtered_4FGL_J1036.2+2202_daily_bin1744.fits scfile=/scratch/kocevski/574980/ft2_4FGL_J1036.2+2202_daily_bin1744.fits outfile=/scratch/kocevski/574980/cmap_691372801_691632001_4FGL_J1036.2+2202_daily_bin1744.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.60
user 0.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/574980/ft1_filtered_4FGL_J1036.2+2202_daily_bin1744.fits scfile=/scratch/kocevski/574980/ft2_4FGL_J1036.2+2202_daily_bin1744.fits outfile=/scratch/kocevski/574980/cmap_HighResolution_691372801_691632001_4FGL_J1036.2+2202_daily_bin1744.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.39
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .17144E-02   1.0000          .0000       .10000E+07
     2 'Prefactor '    .26350E-03   1.0000          .0000       .10000E+07
     3 'Prefactor '    1.6909       1.0000          .0000       .10000E+07
     4 'norm      '    4.0428       1.0000          .0000       .10000E+07
     5 'Prefactor '    26.391       1.0000          .0000       .10000E+07
     6 'Prefactor '    .17762E-02   1.0000          .0000       .10000E+07
     7 'Prefactor '    .36440E-03   1.0000          .0000       .10000E+07
     8 'Prefactor '    .57176E-08   1.0000          .0000       .10000E+07
     9 'Prefactor '    13.531       1.0000          .0000       .10000E+07
    10 'Prefactor '    5.1931       1.0000          .0000       .10000E+07
    11 'Prefactor '    .40525E-03   1.0000          .0000       .10000E+07
    12 'Prefactor '    .23649E-05   1.0000          .0000       .10000E+07
    13 'Prefactor '    .90899E-03   1.0000          .0000       .10000E+07
    14 'Prefactor '    .16498E-04   1.0000          .0000       .10000E+07
    15 'norm      '    1.5722       1.0000          .0000       .10000E+07
    16 'Prefactor '    .33440       1.0000          .0000       .10000E+07
    17 'Prefactor '    2.3430       1.0000          .0000       .10000E+07
    18 'Prefactor '    .23226E-06   1.0000          .0000       .10000E+07
    19 'Normalizat'    1.3700       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .96402       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=   8368.120     FROM MIGRAD    STATUS=CONVERGED    156 CALLS     1507 TOTAL
                     EDM=   .41E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .18580E-06    12.767       -.60873E-06** at limit **
   2  Prefactor      .0000        3.3440       -.13656E-06** at limit **
   3  Prefactor     1.6876        2.4292       -.13473E-06   -.12538E-02
   4  norm          4.0562        6.4610        .20466E-06    .68876E-04
   5  Prefactor     25.867        25.761        .49237E-06   -.33838E-01
   6  Prefactor     .22427E-07    53.557       -.44146E-05** at limit **
   7  Prefactor      .0000        3.6360       -.11274E-06** at limit **
   8  Prefactor      .0000        1.4070        .94392E-07** at limit **
   9  Prefactor     13.463        6.4655       -.55124E-07    .22919E-03
  10  Prefactor     5.2311        6.1490       -.86118E-07    .12034E-03
  11  Prefactor     .51781E-06    9.5199       -.47769E-06** at limit **
  12  Prefactor      .0000        4.0611       -.30615E-06** at limit **
  13  Prefactor      .0000        2.7107       -.53742E-08** at limit **
  14  Prefactor     .76478E-06    6.5268        .25871E-06** at limit **
  15  norm          1.5727        1.1336       -.98522E-07   -.12463E-02
  16  Prefactor     .33373        1.4172       -.24521E-06    .32683E-03
  17  Prefactor     2.3595        3.5015       -.34447E-07    .18674E-03
  18  Prefactor     .26784E-06    8.5162       -.26448E-06** at limit **
  19  Normalizat    1.3701        .18173        .92698E-05    .69907E-04
  20  Prefactor     .96422        .18494       -.97401E-05    .34781E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.85796e-07
  Prefactor  = 0
  Prefactor  = 1.6876
  norm       = 4.05618
  Prefactor  = 25.8673
  Prefactor  = 2.24265e-08
  Prefactor  = 0
  Prefactor  = 0
  Prefactor  = 13.4626
  Prefactor  = 5.23112
  Prefactor  = 5.17808e-07
  Prefactor  = 0
  Prefactor  = 0
  Prefactor  = 7.64777e-07
  norm       = 1.57274
  Prefactor  = 0.333725
  Prefactor  = 2.35947
  Prefactor  = 2.67841e-07
  Normalizat = 1.3701
  Prefactor  = 0.964219
 **********
 **   18 **HESSE 
 **********

 FCN=   8368.120     FROM HESSE     STATUS=OK           329 CALLS     1836 TOTAL
                     EDM=   .20E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .18580E-06    13.737        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor      .0000        3.3420        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     1.6876        2.4489        .80919E-03   -1.5682    
   4  norm          4.0562        6.4705        .50126E-03   -1.5668    
   5  Prefactor     25.867        28.576        .19470E-03   -1.5606    
   6  Prefactor     .22427E-07    53.638        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor      .0000        3.6249        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor      .0000        1.3941        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     13.463        6.4641        .27204E-03   -1.5635    
  10  Prefactor     5.2311        6.1290        .44089E-03   -1.5662    
  11  Prefactor     .51781E-06    12.200        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor      .0000        4.0571        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor      .0000        2.7150        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .76478E-06    10.432        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          1.5727        1.1270        .84737E-03   -1.5683    
  16  Prefactor     .33373        1.4630        .97518E-03   -1.5696    
  17  Prefactor     2.3595        3.5222        .66950E-03   -1.5677    
  18  Prefactor     .26784E-06    9.8873        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    1.3701        .15626        .52150E-01   -.81497    
  20  Prefactor     .96422        .15921        .45816E-01   -.93932    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.96198e-07
Minuit parameter uncertainties:
  1  0.00319504
  2  2.19198e-06
  3  2.44892
  4  6.47054
  5  28.576
  6  0.00219384
  7  1.90568e-05
  8  1.44958e-07
  9  6.46406
  10  6.12906
  11  0.0050269
  12  3.4772e-06
  13  3.63755e-06
  14  0.00564916
  15  1.12696
  16  1.39749
  17  3.52216
  18  0.0032548
  19  0.156311
  20  0.159286
Done.

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

Extracting fit parameters...

4FGL J1036.2+2202
   Spectrum: PowerLaw
236    Prefactor:  0.000e+00  1.906e-05  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.642e-01  1.593e-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:  1.370e+00  1.563e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.00
Ra Dec: 159.053 22.040
Photon Flux Upper Limit: 5.91e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.63e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/574980/likelihoodResults_691372801_691632001_4FGL_J1036.2+2202_daily_bin1744.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) = 8368.12628951
delta logL = -0.00603214392322

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8368.12025972
delta logL = -2.3554002837e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .88999E-05   1.0000          .0000       .10000E+07
     2 'Index     '    3.0575       1.0000          .0000       10.000    
     3 'Normalizat'    1.3701       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .96432       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.
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   8368.120     FROM MIGRAD    STATUS=CONVERGED     44 CALLS      230 TOTAL
                     EDM=   .31E-13  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        1.5233        .42118E-03** at limit **
   2  Index         1.5041        .77936        .37104E-05     .0000    
   3  Normalizat    1.3701        1.0665       -.81693E-06   -.22846E-05
   4  Prefactor     .96422        1.3056        .34211E-05   -.50272E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 1.50409
  Normalizat = 1.3701
  Prefactor  = 0.964219
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   8368.120     FROM HESSE     STATUS=FAILED         9 CALLS      239 TOTAL
                     EDM=   .31E-13  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        1.5233        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         .20387        1.3843        .37104E-05   -.77425    
   3  Normalizat    1.3701        1.0665       -.81693E-06   -.81497    
   4  Prefactor     .96422        1.3056        .34211E-05   -.93932    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 3.10128e-14
Minuit parameter uncertainties:
  1  3.4894e-08
  2  0.785667
  3  1.08449
  4  1.35245
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/574980': 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): 101
logL (Free Index) = 8368.12025736
delta logL = 1.81898940355e-12

Extracting fit parameters...

4FGL J1036.2+2202
   Spectrum: PowerLaw
236    Prefactor:  0.000e+00  3.489e-08  0.000e+00  1.000e+06 ( 1.000e-12)
237        Index:  1.504e+00  7.857e-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:  9.642e-01  1.352e+00  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:  1.370e+00  1.084e+00  1.000e-02  1.000e+01 ( 1.000e+00)


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

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/574980/cmap_HighResolution_691372801_691632001_4FGL_J1036.2+2202_daily_bin1744.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.63e-03', job_status='DONE', photon_flux_upper_limit='5.91e-08', time_completed='2022-12-02 00:51:36.078088', job_id='574980', GAL2='0.96', fit_tolerance='1e-08', EG2='1.37', EG='1.37', time_epoch_completed='1669971096.08', return_code2='101', ts='0.00', comment='SUCCESS', return_code='0', GAL='0.96', dlogl='1.82e-12', ts2='0.00', photon_index_error='0.00', photon_index='2.61' WHERE bin_id='1744' AND source_name='4FGL J1036.2+2202' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Dec  2 00:51:36 PST 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0055>
Subject: Job 574980: <4FGL_J1036.2+2202_daily_bin1744> in cluster <slac> Done

Job <4FGL_J1036.2+2202_daily_bin1744> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Fri Dec  2 00:40:15 2022
Job was executed on host(s) <bullet0055>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Dec  2 00:40:26 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Dec  2 00:40:26 2022
Terminated at Fri Dec  2 00:51:37 2022
Results reported at Fri Dec  2 00:51:37 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1036.2+2202_daily_bin1744 159.053 22.0401 691372801 691632001 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 :                                   623.21 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             347.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   670 sec.
    Turnaround time :                            682 sec.

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

