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


Performing analysis on: 4FGL_J1036.2+2202_daily_bin1760
RA = 159.053, Dec = 22.0401
tmin = 695520001, tmax = 695779201
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='733621', job_status='RUN', time_executed='2023-01-19 00:44:18.633392', time_epoch_executed='1674117858.63' WHERE source_name='4FGL J1036.2+2202' and cadence='daily' and bin_id='1760'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/733621

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

Retrieving the FT1 file...

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

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

Retrieving 45 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/733621/ft1_4FGL_J1036.2+2202_daily_bin1760.fits


Retrieving the FT1 file...

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

Retrieving 45 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/733621/ft2_4FGL_J1036.2+2202_daily_bin1760.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/733621/ft1_4FGL_J1036.2+2202_daily_bin1760.fits outfile=/scratch/kocevski/733621/ft1_filteredMKT_4FGL_J1036.2+2202_daily_bin1760.fits ra=159.053 dec=22.0401 rad=12.0 tmin=695520001.0 tmax=695779201.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.44
user 2.20
sys 0.20

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

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

Number of photons that the gtmktime cut: 276

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/733621/ft1_filtered_4FGL_J1036.2+2202_daily_bin1760.fits" evtable="EVENTS" scfile=/scratch/kocevski/733621/ft2_4FGL_J1036.2+2202_daily_bin1760.fits sctable="SC_DATA" outfile=/scratch/kocevski/733621/ltcube_695520001_695779201_4FGL_J1036.2+2202_daily_bin1760.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/733621/ft2_4FGL_J1036.2+2202_daily_bin1760.fits
.....................!
real 17.41
user 16.93
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/733621/ft1_filtered_4FGL_J1036.2+2202_daily_bin1760.fits evtable="EVENTS" scfile=/scratch/kocevski/733621/ft2_4FGL_J1036.2+2202_daily_bin1760.fits sctable="SC_DATA" expcube=/scratch/kocevski/733621/ltcube_695520001_695779201_4FGL_J1036.2+2202_daily_bin1760.fits outfile=/scratch/kocevski/733621/expmap_695520001_695779201_4FGL_J1036.2+2202_daily_bin1760.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/733621/ltcube_695520001_695779201_4FGL_J1036.2+2202_daily_bin1760.fits
.....................!
real 192.87
user 187.20
sys 5.05

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/733621/ft1_filtered_4FGL_J1036.2+2202_daily_bin1760.fits scfile=/scratch/kocevski/733621/ft2_4FGL_J1036.2+2202_daily_bin1760.fits outfile=/scratch/kocevski/733621/cmap_695520001_695779201_4FGL_J1036.2+2202_daily_bin1760.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.56
user 0.38
sys 0.16

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .16409       1.0000          .0000       .10000E+07
     2 'Prefactor '    9.2597       1.0000          .0000       .10000E+07
     3 'Prefactor '    10.404       1.0000          .0000       .10000E+07
     4 'norm      '    .32032E-03   1.0000          .0000       .10000E+07
     5 'Prefactor '    .21766E-01   1.0000          .0000       .10000E+07
     6 'Prefactor '    .87291E-01   1.0000          .0000       .10000E+07
     7 'Prefactor '    .19503E-03   1.0000          .0000       .10000E+07
     8 'Prefactor '    .98477E-06   1.0000          .0000       .10000E+07
     9 'Prefactor '    13.062       1.0000          .0000       .10000E+07
    10 'Prefactor '    24.428       1.0000          .0000       .10000E+07
    11 'Prefactor '    .23774E-01   1.0000          .0000       .10000E+07
    12 'Prefactor '    .49983E-04   1.0000          .0000       .10000E+07
    13 'Prefactor '    .32646E-06   1.0000          .0000       .10000E+07
    14 'Prefactor '    .92850E-03   1.0000          .0000       .10000E+07
    15 'norm      '    .22204E-09   1.0000          .0000       .10000E+07
    16 'Prefactor '    1.6999       1.0000          .0000       .10000E+07
    17 'Prefactor '    .25382E-05   1.0000          .0000       .10000E+07
    18 'Prefactor '    .27056E-03   1.0000          .0000       .10000E+07
    19 'Normalizat'    1.3133       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .71758       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=   3283.188     FROM MIGRAD    STATUS=CONVERGED    101 CALLS     1432 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .11324E-06    1.5993       -.33838E-06** at limit **
   2  Prefactor     9.1276        1.6773       -.20827E-06    .29816E-01
   3  Prefactor     10.431        6.9201        .48137E-06    .76635E-01
   4  norm          .15610E-06    2.4877        .41724E-06** at limit **
   5  Prefactor     .71881E-06    40.508        .30035E-05** at limit **
   6  Prefactor     .30698E-06    11.489       -.14627E-05** at limit **
   7  Prefactor     .17292E-06    4.1187        .49202E-06** at limit **
   8  Prefactor     .27756E-09    2.8464       -.81439E-06** at limit **
   9  Prefactor     12.742        4.8506        .38491E-06    .26077E-01
  10  Prefactor     24.235        6.6661       -.19110E-06    .95084E-01
  11  Prefactor     .11102E-09    22.442        .87527E-06** at limit **
  12  Prefactor     .44409E-08    1.6686        .56764E-06** at limit **
  13  Prefactor     .26645E-08    20.235       -.36267E-05** at limit **
  14  Prefactor     .54790E-06    5.1310       -.57663E-06** at limit **
  15  norm           .0000        .54195        .40186E-06** at limit **
  16  Prefactor     1.6935        3.4191       -.10700E-06    .96184E-03
  17  Prefactor     .17775E-06    6.3860        .30268E-06** at limit **
  18  Prefactor     .10925E-06    2.0442        .46491E-06** at limit **
  19  Normalizat    1.3160        .29137        .47573E-05   -.29738E-05
  20  Prefactor     .71715        .27940       -.14851E-04    .13372E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.13243e-07
  Prefactor  = 9.12759
  Prefactor  = 10.4314
  norm       = 1.56097e-07
  Prefactor  = 7.18814e-07
  Prefactor  = 3.06977e-07
  Prefactor  = 1.72917e-07
  Prefactor  = 2.77556e-10
  Prefactor  = 12.7416
  Prefactor  = 24.2349
  Prefactor  = 1.11022e-10
  Prefactor  = 4.44089e-09
  Prefactor  = 2.66454e-09
  Prefactor  = 5.47895e-07
  norm       = 0
  Prefactor  = 1.69349
  Prefactor  = 1.77747e-07
  Prefactor  = 1.09246e-07
  Normalizat = 1.316
  Prefactor  = 0.717148
 **********
 **   18 **HESSE 
 **********

 FCN=   3283.188     FROM HESSE     STATUS=OK           325 CALLS     1757 TOTAL
                     EDM=   .36E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .11324E-06    72.494        .12453E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     9.1276        22.288        .32911E-03   -1.5648    
   3  Prefactor     10.431        9.5265        .31038E-03   -1.5643    
   4  norm          .15610E-06    6.3987        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .71881E-06    43.048        .16923E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .30698E-06    57.407        .14284E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .17292E-06    5.9824        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .27756E-09    2.8406        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     12.742        9.6083        .27689E-03   -1.5637    
  10  Prefactor     24.235        15.235        .20237E-03   -1.5610    
  11  Prefactor     .11102E-09    22.390        .16800E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .44409E-08    6.1677        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .26645E-08    20.268        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .54790E-06    8.6701        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm           .0000        .54161        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     1.6935        3.4548        .80654E-03   -1.5682    
  17  Prefactor     .17775E-06    9.7503        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10925E-06    6.3667        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    1.3160        .25142        .51999E-01   -.83090    
  20  Prefactor     .71715        .23481        .65812E-01   -1.0286    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.60758e-07
Minuit parameter uncertainties:
  1  0.00573056
  2  22.288
  3  9.5265
  4  0.00199875
  5  0.0111252
  6  0.0083963
  7  0.0020342
  8  5.60587e-05
  9  9.60829
  10  15.2352
  11  0.000100636
  12  0.000330899
  13  0.000465913
  14  0.00435914
  15  2.45704e-06
  16  3.45479
  17  0.00263287
  18  0.0016679
  19  0.251653
  20  0.235138
Done.

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

Extracting fit parameters...

4FGL J1036.2+2202
   Spectrum: PowerLaw
236    Prefactor:  1.729e-07  2.034e-03  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:  7.171e-01  2.351e-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.316e+00  2.517e-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: 1.29e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.01e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/733621/likelihoodResults_695520001_695779201_4FGL_J1036.2+2202_daily_bin1760.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): 102
logL (Free Index) = 3283.18895812
delta logL = -0.00128587723475

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 3283.18767385
delta logL = -1.61206071425e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .77743E-06   1.0000          .0000       .10000E+07
     2 'Index     '    4.0496       1.0000          .0000       10.000    
     3 'Normalizat'    1.3165       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .71672       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=   3283.188     FROM MIGRAD    STATUS=CONVERGED     41 CALLS      246 TOTAL
                     EDM=   .19E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        8.0476       -.71831E-06** at limit **
   2  Index         1.8855        2.8820        .70560E-05     .0000    
   3  Normalizat    1.3160        .28572       -.72419E-05   -.70135E-06
   4  Prefactor     .71715        .27432        .60875E-05   -.18084E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 1.88555
  Normalizat = 1.316
  Prefactor  = 0.717147
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   3283.188     FROM HESSE     STATUS=FAILED        11 CALLS      257 TOTAL
                     EDM=   .19E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        8.0471        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         .37235        1.5786        .70560E-05   -.67243    
   3  Normalizat    1.3160        1.0758       -.72419E-05   -.83090    
   4  Prefactor     .71715        1.0667        .60875E-05   -1.0286    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 1.90131e-12
Minuit parameter uncertainties:
  1  1.70659e-06
  2  0.803115
  3  1.09504
  4  1.09975
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/733621': 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) = 3283.18767223
delta logL = 1.44405021274e-08

Extracting fit parameters...

4FGL J1036.2+2202
   Spectrum: PowerLaw
236    Prefactor:  0.000e+00  1.707e-06  0.000e+00  1.000e+06 ( 1.000e-12)
237        Index:  1.886e+00  8.031e-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:  7.171e-01  1.100e+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.316e+00  1.095e+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  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/733621/cmap_HighResolution_695520001_695779201_4FGL_J1036.2+2202_daily_bin1760.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.01e-02', job_status='DONE', photon_flux_upper_limit='1.29e-07', time_completed='2023-01-19 00:51:32.218337', job_id='733621', GAL2='0.72', fit_tolerance='1e-08', EG2='1.32', EG='1.32', time_epoch_completed='1674118292.22', return_code2='101', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.72', dlogl='1.44e-08', ts2='0.00', photon_index_error='0.00', photon_index='2.61' WHERE bin_id='1760' AND source_name='4FGL J1036.2+2202' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Jan 19 00:51:32 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0024>
Subject: Job 733621: <4FGL_J1036.2+2202_daily_bin1760> in cluster <slac> Done

Job <4FGL_J1036.2+2202_daily_bin1760> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Thu Jan 19 00:40:29 2023
Job was executed on host(s) <bullet0024>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Jan 19 00:43:40 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Jan 19 00:43:40 2023
Terminated at Thu Jan 19 00:51:32 2023
Results reported at Thu Jan 19 00:51:32 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1036.2+2202_daily_bin1760 159.053 22.0401 695520001 695779201 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 :                                   435.22 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             381.39 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   472 sec.
    Turnaround time :                            663 sec.

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

