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


Performing analysis on: 4FGL_J1036.2+2202_daily_bin1709
RA = 159.053, Dec = 22.0401
tmin = 682300801, tmax = 682560001
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='94641', job_status='RUN', time_executed='2022-09-16 15:28:01.858199', time_epoch_executed='1663367281.86' WHERE source_name='4FGL J1036.2+2202' and cadence='daily' and bin_id='1709'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/94641

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/94641/ft1_4FGL_J1036.2+2202_daily_bin1709.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/94641/ft2_4FGL_J1036.2+2202_daily_bin1709.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/94641/ft1_4FGL_J1036.2+2202_daily_bin1709.fits outfile=/scratch/kocevski/94641/ft1_filteredMKT_4FGL_J1036.2+2202_daily_bin1709.fits ra=159.053 dec=22.0401 rad=12.0 tmin=682300801.0 tmax=682560001.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.73
user 3.47
sys 0.24

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/94641/ft1_filtered_4FGL_J1036.2+2202_daily_bin1709.fits" evtable="EVENTS" scfile=/scratch/kocevski/94641/ft2_4FGL_J1036.2+2202_daily_bin1709.fits sctable="SC_DATA" outfile=/scratch/kocevski/94641/ltcube_682300801_682560001_4FGL_J1036.2+2202_daily_bin1709.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/94641/ft2_4FGL_J1036.2+2202_daily_bin1709.fits
.....................!
real 13.37
user 12.97
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/94641/ft1_filtered_4FGL_J1036.2+2202_daily_bin1709.fits evtable="EVENTS" scfile=/scratch/kocevski/94641/ft2_4FGL_J1036.2+2202_daily_bin1709.fits sctable="SC_DATA" expcube=/scratch/kocevski/94641/ltcube_682300801_682560001_4FGL_J1036.2+2202_daily_bin1709.fits outfile=/scratch/kocevski/94641/expmap_682300801_682560001_4FGL_J1036.2+2202_daily_bin1709.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/94641/ltcube_682300801_682560001_4FGL_J1036.2+2202_daily_bin1709.fits
.....................!
real 192.01
user 186.38
sys 5.13

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/94641/ft1_filtered_4FGL_J1036.2+2202_daily_bin1709.fits scfile=/scratch/kocevski/94641/ft2_4FGL_J1036.2+2202_daily_bin1709.fits outfile=/scratch/kocevski/94641/cmap_682300801_682560001_4FGL_J1036.2+2202_daily_bin1709.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.59
user 0.38
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/94641/ft1_filtered_4FGL_J1036.2+2202_daily_bin1709.fits scfile=/scratch/kocevski/94641/ft2_4FGL_J1036.2+2202_daily_bin1709.fits outfile=/scratch/kocevski/94641/cmap_HighResolution_682300801_682560001_4FGL_J1036.2+2202_daily_bin1709.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.38
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .62099       1.0000          .0000       .10000E+07
     2 'Prefactor '    .11111E-05   1.0000          .0000       .10000E+07
     3 'Prefactor '    .37748E-08   1.0000          .0000       .10000E+07
     4 'norm      '    24.032       1.0000          .0000       .10000E+07
     5 'Prefactor '    .79354E-05   1.0000          .0000       .10000E+07
     6 'Prefactor '    51.971       1.0000          .0000       .10000E+07
     7 'Prefactor '    16.348       1.0000          .0000       .10000E+07
     8 'Prefactor '    .20539E-08   1.0000          .0000       .10000E+07
     9 'Prefactor '    15.662       1.0000          .0000       .10000E+07
    10 'Prefactor '    21.915       1.0000          .0000       .10000E+07
    11 'Prefactor '    .27086       1.0000          .0000       .10000E+07
    12 'Prefactor '    .18519E-03   1.0000          .0000       .10000E+07
    13 'Prefactor '    15.080       1.0000          .0000       .10000E+07
    14 'Prefactor '    .31532E-03   1.0000          .0000       .10000E+07
    15 'norm      '    1.1421       1.0000          .0000       .10000E+07
    16 'Prefactor '    .40523E-06   1.0000          .0000       .10000E+07
    17 'Prefactor '    5.2719       1.0000          .0000       .10000E+07
    18 'Prefactor '    .68562E-03   1.0000          .0000       .10000E+07
    19 'Normalizat'    1.0676       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.1242       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=   6309.017     FROM MIGRAD    STATUS=CONVERGED    147 CALLS     1618 TOTAL
                     EDM=   .36E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  7.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .45686E-07    105.70        .26175E-05** at limit **
   2  Prefactor      .0000        2.0444       -.53313E-07** at limit **
   3  Prefactor      .0000        .92708       -.60903E-07** at limit **
   4  norm          24.035        7.4028        .26035E-06    .31993E-01
   5  Prefactor     .11102E-09    10.028       -.18560E-07** at limit **
   6  Prefactor     51.521        29.750       -.12812E-05    .13750    
   7  Prefactor     16.312        9.8386       -.31331E-06   -.11568E-01
   8  Prefactor      .0000        1.2844       -.76607E-08** at limit **
   9  Prefactor     15.624        9.2819        .11262E-07    .49038E-03
  10  Prefactor     21.871        9.9843        .26696E-06    .30377E-01
  11  Prefactor     .40674E-03    891.69       -.16121E-04** at limit **
  12  Prefactor      .0000        6.2715       -.12438E-06** at limit **
  13  Prefactor     15.076        1.5428        .26388E-07   -.25739E-02
  14  Prefactor     .44409E-09    5.3922       -.10656E-06** at limit **
  15  norm          1.1415        1.9068        .63473E-09   -.39537E-03
  16  Prefactor      .0000        .91079       -.26833E-07** at limit **
  17  Prefactor     5.2783        6.9298       -.61355E-07    .16385E-03
  18  Prefactor     .23870E-08    8.3862        .45113E-06** at limit **
  19  Normalizat    1.0683        .22319        .87884E-05    .18507E-05
  20  Prefactor     1.1243        .21921       -.84345E-05   -.18323E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.56857e-08
  Prefactor  = 0
  Prefactor  = 0
  norm       = 24.0348
  Prefactor  = 1.11022e-10
  Prefactor  = 51.5205
  Prefactor  = 16.3119
  Prefactor  = 0
  Prefactor  = 15.6239
  Prefactor  = 21.8709
  Prefactor  = 0.000406737
  Prefactor  = 0
  Prefactor  = 15.0758
  Prefactor  = 4.44089e-10
  norm       = 1.14147
  Prefactor  = 0
  Prefactor  = 5.27827
  Prefactor  = 2.38698e-09
  Normalizat = 1.06835
  Prefactor  = 1.12425
 **********
 **   18 **HESSE 
 **********

 FCN=   6309.017     FROM HESSE     STATUS=OK           337 CALLS     1955 TOTAL
                     EDM=   .19E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .45686E-07    105.53        .67369E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor      .0000        2.0463        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor      .0000        .92498        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          24.035        11.638        .20404E-03   -1.5610    
   5  Prefactor     .11102E-09    10.048        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     51.521        71.416        .13872E-03   -1.5564    
   7  Prefactor     16.312        10.595        .24744E-03   -1.5627    
   8  Prefactor      .0000        1.2781        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     15.624        9.5079        .25282E-03   -1.5629    
  10  Prefactor     21.871        11.515        .21367E-03   -1.5614    
  11  Prefactor     .40674E-03    41.781        .13762E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor      .0000        6.3340        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     15.076        12.482        .25765E-03   -1.5630    
  14  Prefactor     .44409E-09    5.4712        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          1.1415        1.9613        .10866E-02   -1.5687    
  16  Prefactor      .0000        .90909        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     5.2783        6.9551        .43752E-03   -1.5662    
  18  Prefactor     .23870E-08    8.3981        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    1.0683        .19276        .60272E-01   -.90775    
  20  Prefactor     1.1243        .18474        .60166E-01   -.88695    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.92759e-06
Minuit parameter uncertainties:
  1  0.00439068
  2  2.84273e-06
  3  1.68818e-06
  4  11.638
  5  5.91411e-05
  6  71.417
  7  10.5954
  8  3.45385e-07
  9  9.50796
  10  11.5152
  11  0.260724
  12  6.96671e-06
  13  12.4817
  14  9.94809e-05
  15  1.9613
  16  1.48399e-06
  17  6.95509
  18  0.000283127
  19  0.192891
  20  0.184843
Done.

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

Extracting fit parameters...

4FGL J1036.2+2202
   Spectrum: PowerLaw
236    Prefactor:  1.631e+01  1.060e+01  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.124e+00  1.848e-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.068e+00  1.929e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.49
Ra Dec: 159.053 22.040
Photon Index (Fixed Index): 2.61 +/- 0.00
Photon Flux (Fixed Index): 9.12e-08 +/- 5.92e-08
Energy Flux (Fixed Index): 2.36e-05 +/- 1.53e-05

TS (Fixed Index): 3.49
Ra Dec: 159.053 22.040
Photon Flux Upper Limit: 2.04e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.60e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/94641/likelihoodResults_682300801_682560001_4FGL_J1036.2+2202_daily_bin1709.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) = 6308.58052984
delta logL = 0.436208866594

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6308.56692225
delta logL = 0.449816453542

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    8.8823       1.0000          .0000       .10000E+07
     2 'Index     '    3.4639       1.0000          .0000       10.000    
     3 'Normalizat'    1.0053       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1742       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=   6308.567     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      247 TOTAL
                     EDM=   .25E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     8.8725        79.481        .33607E-03    .26262E-02
   2  Index         3.4651        3.5876        .15597        .11362E-03
   3  Normalizat    1.0053        .73445E-01    .46233E-01    .13213E-04
   4  Prefactor     1.1742        .71184E-01    .59064E-01    .55295E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 8.87246
  Index      = 3.46507
  Normalizat = 1.00529
  Prefactor  = 1.17419
 **********
 **   18 **HESSE 
 **********

 FCN=   6308.567     FROM HESSE     STATUS=OK            33 CALLS      280 TOTAL
                     EDM=   .27E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     8.8725        14.551        .12059E-04   -1.5648    
   2  Index         3.4651        1.3342        .57634E-02   -.31202    
   3  Normalizat    1.0053        .22920        .27333E-03   -.92853    
   4  Prefactor     1.1742        .22822        .26119E-03   -.87129    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.66478e-11
Minuit parameter uncertainties:
  1  14.5512
  2  1.35236
  3  0.229422
  4  0.228415
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/94641': 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) = 6308.56692154
delta logL = 0.449817163304

Extracting fit parameters...

4FGL J1036.2+2202
   Spectrum: PowerLaw
236    Prefactor:  8.872e+00  1.455e+01  0.000e+00  1.000e+06 ( 1.000e-12)
237        Index:  3.465e+00  1.352e+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:  1.174e+00  2.284e-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.005e+00  2.294e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.61
Ra Dec: 159.053 22.040
Photon Index (Free Index): 3.47 +/- 1.35
Photon Flux (Free Index): 1.41e-07 +/- 8.53e-08
Energy Flux (Free Index): 2.36e-05 +/- 1.36e-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/94641/cmap_HighResolution_682300801_682560001_4FGL_J1036.2+2202_daily_bin1709.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.60e-02', comment='SUCCESS', photon_flux='9.12e-08', energy_flux2='2.36e-05', photon_flux_error='5.92e-08', dlogl='4.50e-01', energy_flux='2.36e-05', photon_flux2='1.41e-07', job_status='DONE', time_completed='2022-09-16 15:37:19.590970', photon_index_error2='1.35', photon_index2='3.47', ts='3.49', fit_tolerance='1e-08', GAL='1.12', photon_index_error='0.00', photon_flux_upper_limit='2.04e-07', energy_flux_error2='1.36e-05', EG='1.07', time_epoch_completed='1663367839.59', return_code='0', job_id='94641', GAL2='1.17', EG2='1.01', return_code2='0', energy_flux_error='1.53e-05', photon_flux_error2='8.53e-08', ts2='4.61', photon_index='2.61' WHERE bin_id='1709' AND source_name='4FGL J1036.2+2202' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 16 15:37:19 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0223>
Subject: Job 94641: <4FGL_J1036.2+2202_daily_bin1709> in cluster <slac> Done

Job <4FGL_J1036.2+2202_daily_bin1709> 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) <bullet0223>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 16 15:25:49 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:49 2022
Terminated at Fri Sep 16 15:37:20 2022
Results reported at Fri Sep 16 15:37:20 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1036.2+2202_daily_bin1709 159.053 22.0401 682300801 682560001 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 :                                   560.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             311.61 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   690 sec.
    Turnaround time :                            722 sec.

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

