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


Performing analysis on: 4FGL_J1036.2+2202_daily_bin1751
RA = 159.053, Dec = 22.0401
tmin = 693187201, tmax = 693446401
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='75157', job_status='RUN', time_executed='2022-12-23 00:31:04.050608', time_epoch_executed='1671784264.05' WHERE source_name='4FGL J1036.2+2202' and cadence='daily' and bin_id='1751'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/75157

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/75157/ft1_4FGL_J1036.2+2202_daily_bin1751.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/75157/ft2_4FGL_J1036.2+2202_daily_bin1751.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/75157/ft1_4FGL_J1036.2+2202_daily_bin1751.fits outfile=/scratch/kocevski/75157/ft1_filteredMKT_4FGL_J1036.2+2202_daily_bin1751.fits ra=159.053 dec=22.0401 rad=12.0 tmin=693187201.0 tmax=693446401.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.66
user 3.43
sys 0.22

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

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

Number of photons that the gtmktime cut: 510

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/75157/ft1_filtered_4FGL_J1036.2+2202_daily_bin1751.fits" evtable="EVENTS" scfile=/scratch/kocevski/75157/ft2_4FGL_J1036.2+2202_daily_bin1751.fits sctable="SC_DATA" outfile=/scratch/kocevski/75157/ltcube_693187201_693446401_4FGL_J1036.2+2202_daily_bin1751.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/75157/ft2_4FGL_J1036.2+2202_daily_bin1751.fits
.....................!
real 12.09
user 11.71
sys 0.38

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/75157/ft1_filtered_4FGL_J1036.2+2202_daily_bin1751.fits evtable="EVENTS" scfile=/scratch/kocevski/75157/ft2_4FGL_J1036.2+2202_daily_bin1751.fits sctable="SC_DATA" expcube=/scratch/kocevski/75157/ltcube_693187201_693446401_4FGL_J1036.2+2202_daily_bin1751.fits outfile=/scratch/kocevski/75157/expmap_693187201_693446401_4FGL_J1036.2+2202_daily_bin1751.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/75157/ltcube_693187201_693446401_4FGL_J1036.2+2202_daily_bin1751.fits
.....................!
real 190.89
user 185.30
sys 5.61

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/75157/ft1_filtered_4FGL_J1036.2+2202_daily_bin1751.fits scfile=/scratch/kocevski/75157/ft2_4FGL_J1036.2+2202_daily_bin1751.fits outfile=/scratch/kocevski/75157/cmap_693187201_693446401_4FGL_J1036.2+2202_daily_bin1751.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/75157/ft1_filtered_4FGL_J1036.2+2202_daily_bin1751.fits scfile=/scratch/kocevski/75157/ft2_4FGL_J1036.2+2202_daily_bin1751.fits outfile=/scratch/kocevski/75157/cmap_HighResolution_693187201_693446401_4FGL_J1036.2+2202_daily_bin1751.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.55
user 0.38
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10793E-02   1.0000          .0000       .10000E+07
     2 'Prefactor '    .12271E-03   1.0000          .0000       .10000E+07
     3 'Prefactor '    .13944E-06   1.0000          .0000       .10000E+07
     4 'norm      '    3.3273       1.0000          .0000       .10000E+07
     5 'Prefactor '    21.540       1.0000          .0000       .10000E+07
     6 'Prefactor '    41.520       1.0000          .0000       .10000E+07
     7 'Prefactor '    9.4562       1.0000          .0000       .10000E+07
     8 'Prefactor '    .40768E-05   1.0000          .0000       .10000E+07
     9 'Prefactor '    9.6808       1.0000          .0000       .10000E+07
    10 'Prefactor '    20.103       1.0000          .0000       .10000E+07
    11 'Prefactor '    .92239E-04   1.0000          .0000       .10000E+07
    12 'Prefactor '    6.8679       1.0000          .0000       .10000E+07
    13 'Prefactor '    .13409E-03   1.0000          .0000       .10000E+07
    14 'Prefactor '    .17317E-02   1.0000          .0000       .10000E+07
    15 'norm      '    .44059       1.0000          .0000       .10000E+07
    16 'Prefactor '    3.8539       1.0000          .0000       .10000E+07
    17 'Prefactor '    .19942E-04   1.0000          .0000       .10000E+07
    18 'Prefactor '    .22394E-03   1.0000          .0000       .10000E+07
    19 'Normalizat'    .78659       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.1283       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=   5756.323     FROM MIGRAD    STATUS=CONVERGED    186 CALLS     1614 TOTAL
                     EDM=   .39E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        47.895       -.40862E-05** at limit **
   2  Prefactor      .0000        7.7873       -.14970E-07** at limit **
   3  Prefactor      .0000        .74990       -.56721E-07** at limit **
   4  norm          3.3120        3.5485       -.29410E-06    .50174E-03
   5  Prefactor     18.789        31.768        .92490E-06   -.32039E-04
   6  Prefactor     36.140        56.463       -.12911E-05    .77368E-04
   7  Prefactor     9.4423        8.2338       -.61714E-07    .29659E-03
   8  Prefactor      .0000        .85350       -.39606E-06** at limit **
   9  Prefactor     9.6471        6.9553       -.35707E-06    .26250E-03
  10  Prefactor     20.037        11.295        .63786E-06    .20575E-03
  11  Prefactor      .0000        15.357       -.57880E-06** at limit **
  12  Prefactor     6.8322        8.0223       -.21435E-06    .58213E-04
  13  Prefactor      .0000        10.016        .47860E-06** at limit **
  14  Prefactor      .0000        5.4962        .10595E-06** at limit **
  15  norm          .43279        1.6058       -.48422E-06   -.26753E-03
  16  Prefactor     3.8273        3.1449       -.19980E-06   -.82078E-03
  17  Prefactor      .0000        2.3820        .42125E-06** at limit **
  18  Prefactor      .0000        6.5607       -.87696E-06** at limit **
  19  Normalizat    .79098        .20895       -.56321E-05    .12710E-05
  20  Prefactor     1.1277        .20776       -.18605E-05   -.31553E-06
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Prefactor  = 0
  Prefactor  = 0
  norm       = 3.31197
  Prefactor  = 18.7895
  Prefactor  = 36.14
  Prefactor  = 9.44235
  Prefactor  = 0
  Prefactor  = 9.64714
  Prefactor  = 20.0367
  Prefactor  = 0
  Prefactor  = 6.83224
  Prefactor  = 0
  Prefactor  = 0
  norm       = 0.432786
  Prefactor  = 3.82729
  Prefactor  = 0
  Prefactor  = 0
  Normalizat = 0.790983
  Prefactor  = 1.12773
 **********
 **   18 **HESSE 
 **********

 FCN=   5756.323     FROM HESSE     STATUS=OK           331 CALLS     1945 TOTAL
                     EDM=   .18E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        47.854        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor      .0000        7.6564        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor      .0000        .74609        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          3.3120        3.5468        .55466E-03   -1.5672    
   5  Prefactor     18.789        31.762        .21553E-03   -1.5621    
   6  Prefactor     36.140        56.857        .15521E-03   -1.5588    
   7  Prefactor     9.4423        8.2380        .32565E-03   -1.5647    
   8  Prefactor      .0000        .85142        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     9.6471        6.9694        .32183E-03   -1.5646    
  10  Prefactor     20.037        11.267        .22311E-03   -1.5618    
  11  Prefactor      .0000        15.391        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     6.8322        8.0439        .38260E-03   -1.5656    
  13  Prefactor      .0000        10.009        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor      .0000        5.4857        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .43279        1.6098        .84927E-03   -1.5695    
  16  Prefactor     3.8273        3.1419        .51381E-03   -1.5669    
  17  Prefactor      .0000        2.3783        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor      .0000        6.5466        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    .79098        .17633        .43435E-01   -1.0040    
  20  Prefactor     1.1277        .17530        .52564E-01   -.88585    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.78962e-09
Minuit parameter uncertainties:
  1  7.09264e-05
  2  2.52949e-06
  3  7.22329e-07
  4  3.54676
  5  31.7627
  6  56.8577
  7  8.23802
  8  6.64531e-07
  9  6.96937
  10  11.2673
  11  2.74227e-05
  12  8.04388
  13  6.97976e-07
  14  8.01832e-06
  15  1.60979
  16  3.14187
  17  2.67566e-06
  18  1.06653e-06
  19  0.176457
  20  0.175388
Done.

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

Extracting fit parameters...

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

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

EG_v02
   Spectrum: FileFunction
536   Normalization:  7.910e-01  1.765e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.92
Ra Dec: 159.053 22.040
Photon Index (Fixed Index): 2.61 +/- 0.00
Photon Flux (Fixed Index): 5.28e-08 +/- 4.60e-08
Energy Flux (Fixed Index): 1.37e-05 +/- 1.19e-05

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

Saving results to:
/scratch/kocevski/75157/likelihoodResults_693187201_693446401_4FGL_J1036.2+2202_daily_bin1751.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) = 5755.69637694
delta logL = 0.626224611473

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5755.6447245
delta logL = 0.677877059974

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.0941       1.0000          .0000       .10000E+07
     2 'Index     '    1.5455       1.0000          .0000       10.000    
     3 'Normalizat'    .83403       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1013       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=   5755.645     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      220 TOTAL
                     EDM=   .11E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.0847        5.8448        .40647E-03    .14283E-02
   2  Index         1.5442        .36619        .20768       -.10372E-03
   3  Normalizat    .83371        .16624        .44053E-01    .44366E-04
   4  Prefactor     1.1017        .17806        .37536E-01    .32298E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.08473
  Index      = 1.54424
  Normalizat = 0.833711
  Prefactor  = 1.10171
 **********
 **   18 **HESSE 
 **********

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

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.0847        9.0049        .16259E-04   -1.5659    
   2  Index         1.5442        .70530        .73405E-02   -.76308    
   3  Normalizat    .83371        .19070        .24956E-03   -.98830    
   4  Prefactor     1.1017        .20432        .23468E-03   -.89412    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.72652e-11
Minuit parameter uncertainties:
  1  9.00491
  2  0.709853
  3  0.190857
  4  0.204469
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/75157': 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) = 5755.64472125
delta logL = 0.677880302069

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
537    Prefactor:  1.102e+00  2.045e-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:  8.337e-01  1.909e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.27
Ra Dec: 159.053 22.040
Photon Index (Free Index): 1.54 +/- 0.71
Photon Flux (Free Index): 1.56e-08 +/- 2.35e-08
Energy Flux (Free Index): 4.25e-05 +/- 6.47e-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/75157/cmap_HighResolution_693187201_693446401_4FGL_J1036.2+2202_daily_bin1751.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.14e-02', comment='SUCCESS', photon_flux='5.28e-08', energy_flux2='4.25e-05', photon_flux_error='4.60e-08', dlogl='6.78e-01', energy_flux='1.37e-05', photon_flux2='1.56e-08', job_status='DONE', time_completed='2022-12-23 00:39:51.869586', photon_index_error2='0.71', photon_index2='1.54', ts='1.92', fit_tolerance='1e-08', GAL='1.13', photon_index_error='0.00', photon_flux_upper_limit='1.45e-07', energy_flux_error2='6.47e-05', EG='0.79', time_epoch_completed='1671784791.87', return_code='0', job_id='75157', GAL2='1.10', EG2='0.83', return_code2='0', energy_flux_error='1.19e-05', photon_flux_error2='2.35e-08', ts2='3.27', photon_index='2.61' WHERE bin_id='1751' AND source_name='4FGL J1036.2+2202' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Dec 23 00:39:51 PST 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0064>
Subject: Job 75157: <4FGL_J1036.2+2202_daily_bin1751> in cluster <slac> Done

Job <4FGL_J1036.2+2202_daily_bin1751> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Fri Dec 23 00:30:18 2022
Job was executed on host(s) <bullet0064>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Dec 23 00:30:19 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Dec 23 00:30:19 2022
Terminated at Fri Dec 23 00:39:52 2022
Results reported at Fri Dec 23 00:39:52 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1036.2+2202_daily_bin1751 159.053 22.0401 693187201 693446401 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 :                                   531.02 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             370.70 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   574 sec.
    Turnaround time :                            574 sec.

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

