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


Performing analysis on: 4FGL_J1036.2+2202_weekly_bin750
RA = 159.053, Dec = 22.0401
tmin = 692582401, tmax = 693187201
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='46317', job_status='RUN', time_executed='2022-12-20 02:57:54.815095', time_epoch_executed='1671533874.82' WHERE source_name='4FGL J1036.2+2202' and cadence='weekly' and bin_id='750'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/46317

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/46317/ft1_4FGL_J1036.2+2202_weekly_bin750.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/46317/ft2_4FGL_J1036.2+2202_weekly_bin750.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/46317/ft1_4FGL_J1036.2+2202_weekly_bin750.fits outfile=/scratch/kocevski/46317/ft1_filteredMKT_4FGL_J1036.2+2202_weekly_bin750.fits ra=159.053 dec=22.0401 rad=12.0 tmin=692582401.0 tmax=693187201.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.87
user 7.52
sys 0.28

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

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

Number of photons that the gtmktime cut: 1342

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/46317/ft1_filtered_4FGL_J1036.2+2202_weekly_bin750.fits" evtable="EVENTS" scfile=/scratch/kocevski/46317/ft2_4FGL_J1036.2+2202_weekly_bin750.fits sctable="SC_DATA" outfile=/scratch/kocevski/46317/ltcube_692582401_693187201_4FGL_J1036.2+2202_weekly_bin750.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/46317/ft2_4FGL_J1036.2+2202_weekly_bin750.fits
.....................!
real 26.74
user 25.94
sys 0.45

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/46317/ft1_filtered_4FGL_J1036.2+2202_weekly_bin750.fits evtable="EVENTS" scfile=/scratch/kocevski/46317/ft2_4FGL_J1036.2+2202_weekly_bin750.fits sctable="SC_DATA" expcube=/scratch/kocevski/46317/ltcube_692582401_693187201_4FGL_J1036.2+2202_weekly_bin750.fits outfile=/scratch/kocevski/46317/expmap_692582401_693187201_4FGL_J1036.2+2202_weekly_bin750.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/46317/ltcube_692582401_693187201_4FGL_J1036.2+2202_weekly_bin750.fits
.....................!
real 192.23
user 185.41
sys 5.48

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/46317/ft1_filtered_4FGL_J1036.2+2202_weekly_bin750.fits scfile=/scratch/kocevski/46317/ft2_4FGL_J1036.2+2202_weekly_bin750.fits outfile=/scratch/kocevski/46317/cmap_692582401_693187201_4FGL_J1036.2+2202_weekly_bin750.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.58
user 0.41
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/46317/ft1_filtered_4FGL_J1036.2+2202_weekly_bin750.fits scfile=/scratch/kocevski/46317/ft2_4FGL_J1036.2+2202_weekly_bin750.fits outfile=/scratch/kocevski/46317/cmap_HighResolution_692582401_693187201_4FGL_J1036.2+2202_weekly_bin750.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.58
user 0.41
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .61527E-01   1.0000          .0000       .10000E+07
     2 'Prefactor '    .12499E-03   1.0000          .0000       .10000E+07
     3 'Prefactor '    1.9146       1.0000          .0000       .10000E+07
     4 'norm      '    1.0576       1.0000          .0000       .10000E+07
     5 'Prefactor '    .21699E-01   1.0000          .0000       .10000E+07
     6 'Prefactor '    .27623E-03   1.0000          .0000       .10000E+07
     7 'Prefactor '    7.4865       1.0000          .0000       .10000E+07
     8 'Prefactor '    1.9342       1.0000          .0000       .10000E+07
     9 'Prefactor '    19.234       1.0000          .0000       .10000E+07
    10 'Prefactor '    6.4972       1.0000          .0000       .10000E+07
    11 'Prefactor '    .28577E-05   1.0000          .0000       .10000E+07
    12 'Prefactor '    2.5114       1.0000          .0000       .10000E+07
    13 'Prefactor '    .49991       1.0000          .0000       .10000E+07
    14 'Prefactor '    .36108E-05   1.0000          .0000       .10000E+07
    15 'norm      '    .53097       1.0000          .0000       .10000E+07
    16 'Prefactor '    1.0430       1.0000          .0000       .10000E+07
    17 'Prefactor '    .51714E-06   1.0000          .0000       .10000E+07
    18 'Prefactor '    .57859E-04   1.0000          .0000       .10000E+07
    19 'Normalizat'    1.1257       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .98474       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=   15036.28     FROM MIGRAD    STATUS=CONVERGED    120 CALLS     1184 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .32785E-06    34.067       -.28151E-05** at limit **
   2  Prefactor     .10719E-06    4.1392        .97567E-06** at limit **
   3  Prefactor     1.9149        1.0796        .36509E-07    .54209E-02
   4  norm          1.0534        2.9717       -.11582E-06   -.54880E-03
   5  Prefactor     .91593E-08    20.524       -.19386E-05** at limit **
   6  Prefactor     .10228E-05    5.6616        .17837E-06** at limit **
   7  Prefactor     7.5215        4.2011        .49954E-07   -.45954E-02
   8  Prefactor     1.9330        1.2933       -.15052E-07   -.41349E-02
   9  Prefactor     19.243        4.0429        .20108E-06    .12965E-01
  10  Prefactor     6.4379        4.9092        .43513E-06    .16839E-01
  11  Prefactor     .27239E-06    6.8091       -.71351E-06** at limit **
  12  Prefactor     2.5314        4.3697       -.16017E-06    .26874E-02
  13  Prefactor     .47644        4.6839       -.14509E-05   -.11382E-01
  14  Prefactor     .46241E-06    9.9621       -.21496E-05** at limit **
  15  norm          .53039        1.3688       -.83805E-07    .71897E-03
  16  Prefactor     1.0438        1.1147        .10391E-06   -.41985E-04
  17  Prefactor     .20334E-06    4.3642       -.14240E-06** at limit **
  18  Prefactor     .55511E-10    1.7326        .17346E-06** at limit **
  19  Normalizat    1.1258        .13345       -.57626E-05    .29384E-03
  20  Prefactor     .98475        .13300        .46398E-05    .44386E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.27849e-07
  Prefactor  = 1.07192e-07
  Prefactor  = 1.91494
  norm       = 1.05341
  Prefactor  = 9.15934e-09
  Prefactor  = 1.02285e-06
  Prefactor  = 7.52149
  Prefactor  = 1.93299
  Prefactor  = 19.2432
  Prefactor  = 6.43795
  Prefactor  = 2.72393e-07
  Prefactor  = 2.53139
  Prefactor  = 0.476436
  Prefactor  = 4.62408e-07
  norm       = 0.530393
  Prefactor  = 1.04378
  Prefactor  = 2.03337e-07
  Prefactor  = 5.55112e-11
  Normalizat = 1.12577
  Prefactor  = 0.984748
 **********
 **   18 **HESSE 
 **********

 FCN=   15036.28     FROM HESSE     STATUS=OK           337 CALLS     1521 TOTAL
                     EDM=   .30E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .32785E-06    34.484        .15108E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10719E-06    4.4917        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     1.9149        1.0813        .75088E-03   -1.5680    
   4  norm          1.0534        2.9893        .11945E-02   -1.5687    
   5  Prefactor     .91593E-08    20.263        .16927E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10228E-05    9.7032        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     7.5215        4.2315        .36630E-03   -1.5653    
   8  Prefactor     1.9330        1.3083        .74641E-03   -1.5680    
   9  Prefactor     19.243        6.5021        .22810E-03   -1.5620    
  10  Prefactor     6.4379        6.1737        .39349E-03   -1.5657    
  11  Prefactor     .27239E-06    7.8123        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     2.5314        4.7151        .64448E-03   -1.5676    
  13  Prefactor     .47644        4.8740        .78718E-03   -1.5694    
  14  Prefactor     .46241E-06    11.653        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .53039        1.4199        .75653E-03   -1.5693    
  16  Prefactor     1.0438        1.3552        .30030E-02   -1.5688    
  17  Prefactor     .20334E-06    5.0824        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .55511E-10    1.7393        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    1.1258        .11300        .53399E-01   -.88929    
  20  Prefactor     .98475        .11224        .46076E-01   -.93240    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.02418e-06
Minuit parameter uncertainties:
  1  0.00672486
  2  0.0013876
  3  1.0813
  4  2.98932
  5  0.00086105
  6  0.00630069
  7  4.23153
  8  1.30826
  9  6.50213
  10  6.17368
  11  0.00291743
  12  4.71515
  13  3.04771
  14  0.00464256
  15  1.41995
  16  1.35523
  17  0.0020332
  18  1.66655e-05
  19  0.113028
  20  0.112267
Done.

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

Extracting fit parameters...

4FGL J1036.2+2202
   Spectrum: PowerLaw
236    Prefactor:  7.521e+00  4.232e+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:  9.847e-01  1.123e-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.126e+00  1.130e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.67
Ra Dec: 159.053 22.040
Photon Index (Fixed Index): 2.61 +/- 0.00
Photon Flux (Fixed Index): 4.21e-08 +/- 2.36e-08
Energy Flux (Fixed Index): 1.09e-05 +/- 6.12e-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) = 15036.0375961
delta logL = 0.241703204421

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 15036.0334016
delta logL = 0.245897762625

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    8.1827       1.0000          .0000       .10000E+07
     2 'Index     '    2.2884       1.0000          .0000       10.000    
     3 'Normalizat'    1.1375       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .97656       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.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   15036.03     FROM MIGRAD    STATUS=CONVERGED     88 CALLS      274 TOTAL
                     EDM=   .34E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     8.1826        4.6181        .14010E-04    .57632E-02
   2  Index         2.2885        .44633        .10002E-01    .14518E-03
   3  Normalizat    1.1375        .12733        .23506E-03   -.31824E-04
   4  Prefactor     .97656        .13134        .26055E-03    .24086E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 8.18262
  Index      = 2.28849
  Normalizat = 1.13748
  Prefactor  = 0.976564
 **********
 **   18 **HESSE 
 **********

 FCN=   15036.03     FROM HESSE     STATUS=OK            23 CALLS      297 TOTAL
                     EDM=   .36E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     8.1826        4.6231        .56039E-06   -1.5651    
   2  Index         2.2885        .44674        .40008E-03   -.57317    
   3  Normalizat    1.1375        .12746        .94026E-05   -.88557    
   4  Prefactor     .97656        .13146        .10422E-04   -.93515    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.61531e-10
Minuit parameter uncertainties:
  1  4.62314
  2  0.447589
  3  0.127498
  4  0.131501
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/46317': 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) = 15036.0334015
delta logL = 0.245897779128

Extracting fit parameters...

4FGL J1036.2+2202
   Spectrum: PowerLaw
236    Prefactor:  8.183e+00  4.623e+00  0.000e+00  1.000e+06 ( 1.000e-12)
237        Index:  2.288e+00  4.476e-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:  9.766e-01  1.315e-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.137e+00  1.275e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.17
Ra Dec: 159.053 22.040
Photon Index (Free Index): 2.29 +/- 0.45
Photon Flux (Free Index): 3.27e-08 +/- 2.36e-08
Energy Flux (Free Index): 1.26e-05 +/- 7.86e-06

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/46317/cmap_HighResolution_692582401_693187201_4FGL_J1036.2+2202_weekly_bin750.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='4.21e-08', energy_flux2='1.26e-05', photon_flux_error='2.36e-08', dlogl='2.46e-01', energy_flux='1.09e-05', photon_flux2='3.27e-08', job_status='DONE', time_completed='2022-12-20 03:11:01.193582', photon_index_error2='0.45', photon_index2='2.29', ts='5.67', fit_tolerance='1e-08', GAL='0.98', photon_index_error='0.00', energy_flux_error2='7.86e-06', EG='1.13', time_epoch_completed='1671534661.19', return_code='0', job_id='46317', GAL2='0.98', EG2='1.14', return_code2='0', energy_flux_error='6.12e-06', photon_flux_error2='2.36e-08', ts2='6.17', photon_index='2.61' WHERE bin_id='750' AND source_name='4FGL J1036.2+2202' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Dec 20 03:11:01 PST 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0270>
Subject: Job 46317: <4FGL_J1036.2+2202_weekly_bin750> in cluster <slac> Done

Job <4FGL_J1036.2+2202_weekly_bin750> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Tue Dec 20 02:55:18 2022
Job was executed on host(s) <bullet0270>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Dec 20 02:55:19 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Dec 20 02:55:19 2022
Terminated at Tue Dec 20 03:11:01 2022
Results reported at Tue Dec 20 03:11:01 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1036.2+2202_weekly_bin750 159.053 22.0401 692582401 693187201 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 :                                   784.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             297.70 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   942 sec.
    Turnaround time :                            943 sec.

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

