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


Performing analysis on: 4FGL_J1036.2+2202_daily_bin1749
RA = 159.053, Dec = 22.0401
tmin = 692668801, tmax = 692928001
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='947888', job_status='RUN', time_executed='2022-12-17 00:31:56.029825', time_epoch_executed='1671265916.03' WHERE source_name='4FGL J1036.2+2202' and cadence='daily' and bin_id='1749'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/947888

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/947888/ft1_4FGL_J1036.2+2202_daily_bin1749.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/947888/ft2_4FGL_J1036.2+2202_daily_bin1749.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/947888/ft1_4FGL_J1036.2+2202_daily_bin1749.fits outfile=/scratch/kocevski/947888/ft1_filteredMKT_4FGL_J1036.2+2202_daily_bin1749.fits ra=159.053 dec=22.0401 rad=12.0 tmin=692668801.0 tmax=692928001.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.64
user 3.40
sys 0.23

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

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

Number of photons that the gtmktime cut: 594

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/947888/ft1_filtered_4FGL_J1036.2+2202_daily_bin1749.fits evtable="EVENTS" scfile=/scratch/kocevski/947888/ft2_4FGL_J1036.2+2202_daily_bin1749.fits sctable="SC_DATA" expcube=/scratch/kocevski/947888/ltcube_692668801_692928001_4FGL_J1036.2+2202_daily_bin1749.fits outfile=/scratch/kocevski/947888/expmap_692668801_692928001_4FGL_J1036.2+2202_daily_bin1749.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/947888/ltcube_692668801_692928001_4FGL_J1036.2+2202_daily_bin1749.fits
.....................!
real 192.85
user 187.18
sys 5.31

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/947888/ft1_filtered_4FGL_J1036.2+2202_daily_bin1749.fits scfile=/scratch/kocevski/947888/ft2_4FGL_J1036.2+2202_daily_bin1749.fits outfile=/scratch/kocevski/947888/cmap_692668801_692928001_4FGL_J1036.2+2202_daily_bin1749.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.54
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/947888/ft1_filtered_4FGL_J1036.2+2202_daily_bin1749.fits scfile=/scratch/kocevski/947888/ft2_4FGL_J1036.2+2202_daily_bin1749.fits outfile=/scratch/kocevski/947888/cmap_HighResolution_692668801_692928001_4FGL_J1036.2+2202_daily_bin1749.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.54
user 0.38
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    15.224       1.0000          .0000       .10000E+07
     2 'Prefactor '    1.1834       1.0000          .0000       .10000E+07
     3 'Prefactor '    2.4906       1.0000          .0000       .10000E+07
     4 'norm      '    4.1602       1.0000          .0000       .10000E+07
     5 'Prefactor '    .13995E-02   1.0000          .0000       .10000E+07
     6 'Prefactor '    .16471E-02   1.0000          .0000       .10000E+07
     7 'Prefactor '    10.145       1.0000          .0000       .10000E+07
     8 'Prefactor '    1.8464       1.0000          .0000       .10000E+07
     9 'Prefactor '    16.344       1.0000          .0000       .10000E+07
    10 'Prefactor '    11.986       1.0000          .0000       .10000E+07
    11 'Prefactor '    .72938E-03   1.0000          .0000       .10000E+07
    12 'Prefactor '    .53746E-05   1.0000          .0000       .10000E+07
    13 'Prefactor '    3.1377       1.0000          .0000       .10000E+07
    14 'Prefactor '    3.2227       1.0000          .0000       .10000E+07
    15 'norm      '    2.5424       1.0000          .0000       .10000E+07
    16 'Prefactor '    .23187       1.0000          .0000       .10000E+07
    17 'Prefactor '    3.7521       1.0000          .0000       .10000E+07
    18 'Prefactor '    .10436E-07   1.0000          .0000       .10000E+07
    19 'Normalizat'    1.2179       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .86337       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=   6631.563     FROM MIGRAD    STATUS=CONVERGED    136 CALLS     1481 TOTAL
                     EDM=   .35E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     16.902        43.001       -.90332E-06    .34222E-04
   2  Prefactor     1.1282        5.8424       -.20041E-07    .63839E-04
   3  Prefactor     2.4924        1.7066        .12351E-07    .19848E-03
   4  norm          4.2046        4.7572        .48495E-07   -.27749E-04
   5  Prefactor     .12934E-07    9.1094        .16284E-06** at limit **
   6  Prefactor     .13767E-07    9.2989        .19286E-06** at limit **
   7  Prefactor     10.084        6.5684        .10209E-07   -.50992E-04
   8  Prefactor     1.8473        2.0904        .11938E-07    .58076E-04
   9  Prefactor     16.326        9.3683       -.20305E-07    .38014E-03
  10  Prefactor     12.183        7.3173        .29173E-07    .14141E-02
  11  Prefactor      .0000        10.289       -.89892E-07** at limit **
  12  Prefactor      .0000        3.3180        .77182E-07** at limit **
  13  Prefactor     3.1337        5.5026       -.31706E-07    .99309E-04
  14  Prefactor     2.6819        21.888       -.29134E-06    .44597E-04
  15  norm          2.5453        2.4425       -.90318E-07    .63350E-03
  16  Prefactor     .23093        2.8985        .80868E-08** at limit **
  17  Prefactor     3.7787        8.0330       -.83711E-07    .88934E-04
  18  Prefactor      .0000        4.3030        .24784E-06** at limit **
  19  Normalizat    1.2179        .19966       -.28975E-05    .33258E-04
  20  Prefactor     .86317        .19748        .34761E-05    .16643E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 16.9021
  Prefactor  = 1.12824
  Prefactor  = 2.49235
  norm       = 4.20465
  Prefactor  = 1.29341e-08
  Prefactor  = 1.37668e-08
  Prefactor  = 10.0836
  Prefactor  = 1.84727
  Prefactor  = 16.3261
  Prefactor  = 12.1833
  Prefactor  = 0
  Prefactor  = 0
  Prefactor  = 3.13372
  Prefactor  = 2.68193
  norm       = 2.54527
  Prefactor  = 0.230926
  Prefactor  = 3.77871
  Prefactor  = 0
  Normalizat = 1.21792
  Prefactor  = 0.863171
 **********
 **   18 **HESSE 
 **********

 FCN=   6631.563     FROM HESSE     STATUS=OK           343 CALLS     1824 TOTAL
                     EDM=   .86E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     16.902        42.963        .25643E-03   -1.5626    
   2  Prefactor     1.1282        5.8116        .10494E-02   -1.5687    
   3  Prefactor     2.4924        1.7039        .64742E-03   -1.5676    
   4  norm          4.2046        4.7625        .49391E-03   -1.5667    
   5  Prefactor     .12934E-07    18.180        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .13767E-07    18.234        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     10.084        6.6479        .31434E-03   -1.5644    
   8  Prefactor     1.8473        2.1168        .76712E-03   -1.5681    
   9  Prefactor     16.326        9.5408        .24748E-03   -1.5627    
  10  Prefactor     12.183        11.303        .28909E-03   -1.5638    
  11  Prefactor      .0000        10.275        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor      .0000        3.4215        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     3.1337        5.5525        .57205E-03   -1.5673    
  14  Prefactor     2.6819        23.953        .56405E-03   -1.5675    
  15  norm          2.5453        2.4599        .64019E-03   -1.5676    
  16  Prefactor     .23093        1.4901        .34076E-02   -1.5698    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     3.7787        8.0412        .52098E-03   -1.5669    
  18  Prefactor      .0000        4.4529        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    1.2179        .17429        .52639E-01   -.86051    
  20  Prefactor     .86317        .17051        .44536E-01   -.97440    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.57507e-09
Minuit parameter uncertainties:
  1  42.9638
  2  5.12127
  3  1.70394
  4  4.76248
  5  0.000969302
  6  0.00100201
  7  6.64786
  8  2.11675
  9  9.54079
  10  11.3028
  11  1.8393e-06
  12  4.80151e-06
  13  5.55255
  14  16.03
  15  2.45987
  16  1.1732
  17  8.04122
  18  2.54042e-06
  19  0.174371
  20  0.170615
Done.

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

Extracting fit parameters...

4FGL J1036.2+2202
   Spectrum: PowerLaw
236    Prefactor:  1.008e+01  6.648e+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:  8.632e-01  1.706e-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.218e+00  1.744e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.74
Ra Dec: 159.053 22.040
Photon Index (Fixed Index): 2.61 +/- 0.00
Photon Flux (Fixed Index): 5.64e-08 +/- 3.71e-08
Energy Flux (Fixed Index): 1.46e-05 +/- 9.62e-06

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) = 6631.25173153
delta logL = 0.31160249203

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6631.23876388
delta logL = 0.324570139509

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    11.051       1.0000          .0000       .10000E+07
     2 'Index     '    2.1553       1.0000          .0000       10.000    
     3 'Normalizat'    1.2382       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .84946       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=   6631.239     FROM MIGRAD    STATUS=CONVERGED     48 CALLS      205 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     11.051        11.304        .30113E-03   -.11770E-01
   2  Index         2.1554        .67351        .22955       -.22450E-04
   3  Normalizat    1.2382        .16713        .52280E-01    .44442E-05
   4  Prefactor     .84946        .17034        .44358E-01    .17176E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 11.0506
  Index      = 2.15539
  Normalizat = 1.23819
  Prefactor  = 0.849457
 **********
 **   18 **HESSE 
 **********

 FCN=   6631.239     FROM HESSE     STATUS=OK            31 CALLS      236 TOTAL
                     EDM=   .95E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     11.051        7.4487        .12045E-04   -1.5641    
   2  Index         2.1554        .53359        .84013E-02   -.60519    
   3  Normalizat    1.2382        .19266        .23115E-03   -.85431    
   4  Prefactor     .84946        .19596        .27882E-03   -.97930    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.5075e-10
Minuit parameter uncertainties:
  1  7.44874
  2  0.535102
  3  0.19277
  4  0.19612
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/947888': 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) = 6631.23876387
delta logL = 0.324570149962

Extracting fit parameters...

4FGL J1036.2+2202
   Spectrum: PowerLaw
236    Prefactor:  1.105e+01  7.449e+00  0.000e+00  1.000e+06 ( 1.000e-12)
237        Index:  2.155e+00  5.351e-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:  8.495e-01  1.961e-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.238e+00  1.928e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.40
Ra Dec: 159.053 22.040
Photon Index (Free Index): 2.16 +/- 0.54
Photon Flux (Free Index): 3.91e-08 +/- 3.40e-08
Energy Flux (Free Index): 1.91e-05 +/- 1.60e-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/947888/cmap_HighResolution_692668801_692928001_4FGL_J1036.2+2202_daily_bin1749.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='5.64e-08', energy_flux2='1.91e-05', photon_flux_error='3.71e-08', dlogl='3.25e-01', energy_flux='1.46e-05', photon_flux2='3.91e-08', job_status='DONE', time_completed='2022-12-17 00:40:35.094836', photon_index_error2='0.54', photon_index2='2.16', ts='4.74', fit_tolerance='1e-08', GAL='0.86', photon_index_error='0.00', energy_flux_error2='1.60e-05', EG='1.22', time_epoch_completed='1671266435.09', return_code='0', job_id='947888', GAL2='0.85', EG2='1.24', return_code2='0', energy_flux_error='9.62e-06', photon_flux_error2='3.40e-08', ts2='5.40', photon_index='2.61' WHERE bin_id='1749' AND source_name='4FGL J1036.2+2202' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Dec 17 00:40:35 PST 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0124>
Subject: Job 947888: <4FGL_J1036.2+2202_daily_bin1749> in cluster <slac> Done

Job <4FGL_J1036.2+2202_daily_bin1749> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Sat Dec 17 00:30:24 2022
Job was executed on host(s) <bullet0124>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Dec 17 00:30:25 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Dec 17 00:30:25 2022
Terminated at Sat Dec 17 00:40:35 2022
Results reported at Sat Dec 17 00:40:35 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1036.2+2202_daily_bin1749 159.053 22.0401 692668801 692928001 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 :                                   521.23 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             300.23 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   610 sec.
    Turnaround time :                            611 sec.

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

