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


Performing analysis on: 4FGL_J1036.2+2202_weekly_bin758
RA = 159.053, Dec = 22.0401
tmin = 697420801, tmax = 698025601
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='86849', job_status='RUN', time_executed='2023-02-14 01:08:38.916709', time_epoch_executed='1676365718.92' WHERE source_name='4FGL J1036.2+2202' and cadence='weekly' and bin_id='758'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/86849

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/86849/ft1_4FGL_J1036.2+2202_weekly_bin758.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/86849/ft2_4FGL_J1036.2+2202_weekly_bin758.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/86849/ft1_4FGL_J1036.2+2202_weekly_bin758.fits outfile=/scratch/kocevski/86849/ft1_filteredMKT_4FGL_J1036.2+2202_weekly_bin758.fits ra=159.053 dec=22.0401 rad=12.0 tmin=697420801.0 tmax=698025601.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 7.88
user 7.63
sys 0.24

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

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

Number of photons that the gtmktime cut: 1158

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/86849/ft1_filtered_4FGL_J1036.2+2202_weekly_bin758.fits evtable="EVENTS" scfile=/scratch/kocevski/86849/ft2_4FGL_J1036.2+2202_weekly_bin758.fits sctable="SC_DATA" expcube=/scratch/kocevski/86849/ltcube_697420801_698025601_4FGL_J1036.2+2202_weekly_bin758.fits outfile=/scratch/kocevski/86849/expmap_697420801_698025601_4FGL_J1036.2+2202_weekly_bin758.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/86849/ltcube_697420801_698025601_4FGL_J1036.2+2202_weekly_bin758.fits
.....................!
real 191.74
user 186.14
sys 5.28

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/86849/ft1_filtered_4FGL_J1036.2+2202_weekly_bin758.fits scfile=/scratch/kocevski/86849/ft2_4FGL_J1036.2+2202_weekly_bin758.fits outfile=/scratch/kocevski/86849/cmap_697420801_698025601_4FGL_J1036.2+2202_weekly_bin758.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.57
user 0.44
sys 0.12

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/86849/ft1_filtered_4FGL_J1036.2+2202_weekly_bin758.fits scfile=/scratch/kocevski/86849/ft2_4FGL_J1036.2+2202_weekly_bin758.fits outfile=/scratch/kocevski/86849/cmap_HighResolution_697420801_698025601_4FGL_J1036.2+2202_weekly_bin758.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.42
sys 0.13

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/86849/ft1_filtered_4FGL_J1036.2+2202_weekly_bin758.fits', '/scratch/kocevski/86849/ft2_4FGL_J1036.2+2202_weekly_bin758.fits', expMap='/scratch/kocevski/86849/expmap_697420801_698025601_4FGL_J1036.2+2202_weekly_bin758.fits', expCube='/scratch/kocevski/86849/ltcube_697420801_698025601_4FGL_J1036.2+2202_weekly_bin758.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/86849/Model_4FGL_J1036.2+2202_weekly_bin758.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/86849/ft1_filtered_4FGL_J1036.2+2202_weekly_bin758.fits
Spacecraft file(s): /scratch/kocevski/86849/ft2_4FGL_J1036.2+2202_weekly_bin758.fits
Exposure map: /scratch/kocevski/86849/expmap_697420801_698025601_4FGL_J1036.2+2202_weekly_bin758.fits
Exposure cube: /scratch/kocevski/86849/ltcube_697420801_698025601_4FGL_J1036.2+2202_weekly_bin758.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/86849/Model_4FGL_J1036.2+2202_weekly_bin758.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 102
logL (Fixed Index) = 12863.8019744

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .68335E-03   1.0000          .0000       .10000E+07
     2 'Prefactor '    2.9155       1.0000          .0000       .10000E+07
     3 'Prefactor '    .19097       1.0000          .0000       .10000E+07
     4 'norm      '    30.566       1.0000          .0000       .10000E+07
     5 'Prefactor '    9.4660       1.0000          .0000       .10000E+07
     6 'Prefactor '    3.1001       1.0000          .0000       .10000E+07
     7 'Prefactor '    7.8225       1.0000          .0000       .10000E+07
     8 'Prefactor '    .75617       1.0000          .0000       .10000E+07
     9 'Prefactor '    16.616       1.0000          .0000       .10000E+07
    10 'Prefactor '    7.6583       1.0000          .0000       .10000E+07
    11 'Prefactor '    10.918       1.0000          .0000       .10000E+07
    12 'Prefactor '    3.2479       1.0000          .0000       .10000E+07
    13 'Prefactor '    .42283E-06   1.0000          .0000       .10000E+07
    14 'Prefactor '    .25075E-03   1.0000          .0000       .10000E+07
    15 'norm      '    .60785E-07   1.0000          .0000       .10000E+07
    16 'Prefactor '    .41148E-04   1.0000          .0000       .10000E+07
    17 'Prefactor '    4.4640       1.0000          .0000       .10000E+07
    18 'Prefactor '    6.8023       1.0000          .0000       .10000E+07
    19 'Normalizat'    1.4000       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .56037       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=   12863.03     FROM MIGRAD    STATUS=CONVERGED    156 CALLS     1219 TOTAL
                     EDM=   .65E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .16653E-09    9.5709        .18782E-06** at limit **
   2  Prefactor     2.8828        3.9788       -.21538E-07    .16890E-02
   3  Prefactor     .19208        .63292       -.43977E-08** at limit **
   4  norm          30.560        7.2933       -.95494E-08   -.86634E-03
   5  Prefactor     9.5162        9.8533       -.66922E-06   -.24499E-02
   6  Prefactor     .24980E-07    748.76       -.43544E-07** at limit **
   7  Prefactor     7.7663        4.4953        .23301E-07    .73405E-02
   8  Prefactor     .75493        .70753       -.28330E-08    .13964E-01
   9  Prefactor     16.626        5.7455        .47992E-07    .10664E-01
  10  Prefactor     7.6735        6.4030       -.34033E-07    .60695E-02
  11  Prefactor     10.820        1.0539       -.12382E-08   -.15465E-02
  12  Prefactor     3.2214        5.4234       -.99776E-08   -.23485E-02
  13  Prefactor     .55511E-10    10.430       -.91371E-06** at limit **
  14  Prefactor      .0000        7.4030        .33070E-06** at limit **
  15  norm          .16653E-09    .54505       -.26490E-07** at limit **
  16  Prefactor     .55511E-10    2.6025       -.13318E-07** at limit **
  17  Prefactor     4.4490        5.5568       -.63245E-06   -.25749E-02
  18  Prefactor     6.8358        11.176        .21102E-05   -.14807E-02
  19  Normalizat    1.4015        .14169       -.21121E-05    .68538E-03
  20  Prefactor     .56043        .13749        .17749E-05    .30036E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.66533e-10
  Prefactor  = 2.88278
  Prefactor  = 0.192077
  norm       = 30.5599
  Prefactor  = 9.51623
  Prefactor  = 2.498e-08
  Prefactor  = 7.76626
  Prefactor  = 0.754929
  Prefactor  = 16.6255
  Prefactor  = 7.67353
  Prefactor  = 10.8197
  Prefactor  = 3.22142
  Prefactor  = 5.55112e-11
  Prefactor  = 0
  norm       = 1.66533e-10
  Prefactor  = 5.55112e-11
  Prefactor  = 4.44897
  Prefactor  = 6.8358
  Normalizat = 1.40147
  Prefactor  = 0.560435
 **********
 **   18 **HESSE 
 **********

 FCN=   12863.03     FROM HESSE     STATUS=OK           351 CALLS     1570 TOTAL
                     EDM=   .24E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .16653E-09    9.5931        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     2.8828        3.9985        .59474E-03   -1.5674    
   3  Prefactor     .19208        .54331        .38740E-02   -1.5699    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          30.560        7.2875        .18090E-03   -1.5597    
   5  Prefactor     9.5162        9.8711        .32548E-03   -1.5646    
   6  Prefactor     .24980E-07    34.944        .12019E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     7.7663        4.5092        .35828E-03   -1.5652    
   8  Prefactor     .75493        .70528        .56261E-03   -1.5691    
   9  Prefactor     16.626        5.7597        .24544E-03   -1.5626    
  10  Prefactor     7.6735        6.4432        .36213E-03   -1.5653    
  11  Prefactor     10.820        13.129        .30296E-03   -1.5642    
  12  Prefactor     3.2214        5.4891        .56174E-03   -1.5672    
  13  Prefactor     .55511E-10    10.315        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor      .0000        7.3870        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .16653E-09    .54315        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .55511E-10    2.4951        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     4.4490        5.6141        .47634E-03   -1.5666    
  18  Prefactor     6.8358        11.277        .38447E-03   -1.5656    
  19  Normalizat    1.4015        .12206        .47622E-01   -.80586    
  20  Prefactor     .56043        .11891        .72113E-01   -1.0928    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.38647e-07
Minuit parameter uncertainties:
  1  7.44367e-05
  2  3.99845
  3  0.543308
  4  7.28747
  5  9.87112
  6  0.00186797
  7  4.50916
  8  0.70528
  9  5.7597
  10  6.44323
  11  13.1286
  12  5.48908
  13  4.83097e-05
  14  2.2096e-05
  15  1.832e-05
  16  1.91851e-05
  17  5.61415
  18  11.2774
  19  0.122085
  20  0.11896
Done.

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

Extracting fit parameters...

4FGL J1036.2+2202
   Spectrum: PowerLaw
236    Prefactor:  7.766e+00  4.509e+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:  5.604e-01  1.190e-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.401e+00  1.221e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.07
Ra Dec: 159.053 22.040
Photon Index (Fixed Index): 2.61 +/- 0.00
Photon Flux (Fixed Index): 4.34e-08 +/- 2.52e-08
Energy Flux (Fixed Index): 1.12e-05 +/- 6.52e-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) = 12862.3374193
delta logL = 0.691640706

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 12862.3198842
delta logL = 0.709175782855

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    8.4151       1.0000          .0000       .10000E+07
     2 'Index     '    2.0602       1.0000          .0000       10.000    
     3 'Normalizat'    1.4205       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .54758       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=   12862.32     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      221 TOTAL
                     EDM=   .54E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     8.4163        8.0140        .34534E-03    .24613E-01
   2  Index         2.0603        .52152        .25454       -.58282E-04
   3  Normalizat    1.4205        .11837        .47366E-01    .12032E-05
   4  Prefactor     .54758        .11922        .72875E-01    .62932E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 8.41631
  Index      = 2.06025
  Normalizat = 1.42046
  Prefactor  = 0.547579
 **********
 **   18 **HESSE 
 **********

 FCN=   12862.32     FROM HESSE     STATUS=OK            33 CALLS      254 TOTAL
                     EDM=   .33E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     8.4163        5.3709        .69067E-04   -1.5650    
   2  Index         2.0603        .44850        .89337E-02   -.62852    
   3  Normalizat    1.4205        .13699        .20938E-03   -.80039    
   4  Prefactor     .54758        .13669        .32264E-03   -1.0984    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.33551e-12
Minuit parameter uncertainties:
  1  5.37091
  2  0.449429
  3  0.137023
  4  0.136768
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/86849': 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) = 12862.3198842
delta logL = 0.70917581858

Extracting fit parameters...

4FGL J1036.2+2202
   Spectrum: PowerLaw
236    Prefactor:  8.416e+00  5.371e+00  0.000e+00  1.000e+06 ( 1.000e-12)
237        Index:  2.060e+00  4.494e-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:  5.476e-01  1.368e-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.420e+00  1.370e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.49
Ra Dec: 159.053 22.040
Photon Index (Free Index): 2.06 +/- 0.45
Photon Flux (Free Index): 2.76e-08 +/- 2.28e-08
Energy Flux (Free Index): 1.65e-05 +/- 1.24e-05

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

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='4.34e-08', energy_flux2='1.65e-05', photon_flux_error='2.52e-08', dlogl='7.09e-01', energy_flux='1.12e-05', photon_flux2='2.76e-08', job_status='DONE', time_completed='2023-02-14 01:20:42.783945', photon_index_error2='0.45', photon_index2='2.06', ts='5.07', fit_tolerance='1e-08', GAL='0.56', photon_index_error='0.00', energy_flux_error2='1.24e-05', EG='1.40', time_epoch_completed='1676366442.78', return_code='0', job_id='86849', GAL2='0.55', EG2='1.42', return_code2='0', energy_flux_error='6.52e-06', photon_flux_error2='2.28e-08', ts2='6.49', photon_index='2.61' WHERE bin_id='758' AND source_name='4FGL J1036.2+2202' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Feb 14 01:20:42 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0043>
Subject: Job 86849: <4FGL_J1036.2+2202_weekly_bin758> in cluster <slac> Done

Job <4FGL_J1036.2+2202_weekly_bin758> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Feb 14 01:05:28 2023
Job was executed on host(s) <bullet0043>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Feb 14 01:05:29 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Feb 14 01:05:29 2023
Terminated at Tue Feb 14 01:20:43 2023
Results reported at Tue Feb 14 01:20:43 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1036.2+2202_weekly_bin758 159.053 22.0401 697420801 698025601 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 :                                   724.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             289.86 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   914 sec.
    Turnaround time :                            915 sec.

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

