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


Performing analysis on: 4FGL_J1036.2+2202_weekly_bin757
RA = 159.053, Dec = 22.0401
tmin = 696816001, tmax = 697420801
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='259684', job_status='RUN', time_executed='2023-02-07 00:56:58.523820', time_epoch_executed='1675760218.52' WHERE source_name='4FGL J1036.2+2202' and cadence='weekly' and bin_id='757'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/259684

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/259684/ft1_4FGL_J1036.2+2202_weekly_bin757.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/259684/ft2_4FGL_J1036.2+2202_weekly_bin757.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/259684/ft1_4FGL_J1036.2+2202_weekly_bin757.fits outfile=/scratch/kocevski/259684/ft1_filteredMKT_4FGL_J1036.2+2202_weekly_bin757.fits ra=159.053 dec=22.0401 rad=12.0 tmin=696816001.0 tmax=697420801.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.71
user 7.30
sys 0.34

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

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

Number of photons that the gtmktime cut: 1255

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/259684/ft1_filtered_4FGL_J1036.2+2202_weekly_bin757.fits" evtable="EVENTS" scfile=/scratch/kocevski/259684/ft2_4FGL_J1036.2+2202_weekly_bin757.fits sctable="SC_DATA" outfile=/scratch/kocevski/259684/ltcube_696816001_697420801_4FGL_J1036.2+2202_weekly_bin757.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/259684/ft2_4FGL_J1036.2+2202_weekly_bin757.fits
.....................!
real 33.77
user 33.00
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/259684/ft1_filtered_4FGL_J1036.2+2202_weekly_bin757.fits evtable="EVENTS" scfile=/scratch/kocevski/259684/ft2_4FGL_J1036.2+2202_weekly_bin757.fits sctable="SC_DATA" expcube=/scratch/kocevski/259684/ltcube_696816001_697420801_4FGL_J1036.2+2202_weekly_bin757.fits outfile=/scratch/kocevski/259684/expmap_696816001_697420801_4FGL_J1036.2+2202_weekly_bin757.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/259684/ltcube_696816001_697420801_4FGL_J1036.2+2202_weekly_bin757.fits
.....................!
real 194.48
user 187.94
sys 5.53

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/259684/ft1_filtered_4FGL_J1036.2+2202_weekly_bin757.fits scfile=/scratch/kocevski/259684/ft2_4FGL_J1036.2+2202_weekly_bin757.fits outfile=/scratch/kocevski/259684/cmap_696816001_697420801_4FGL_J1036.2+2202_weekly_bin757.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.60
user 0.41
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/259684/ft1_filtered_4FGL_J1036.2+2202_weekly_bin757.fits scfile=/scratch/kocevski/259684/ft2_4FGL_J1036.2+2202_weekly_bin757.fits outfile=/scratch/kocevski/259684/cmap_HighResolution_696816001_697420801_4FGL_J1036.2+2202_weekly_bin757.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.60
user 0.43
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .35046E-02   1.0000          .0000       .10000E+07
     2 'Prefactor '    2.1437       1.0000          .0000       .10000E+07
     3 'Prefactor '    1.6121       1.0000          .0000       .10000E+07
     4 'norm      '    45.480       1.0000          .0000       .10000E+07
     5 'Prefactor '    16.736       1.0000          .0000       .10000E+07
     6 'Prefactor '    .31088       1.0000          .0000       .10000E+07
     7 'Prefactor '    2.3054       1.0000          .0000       .10000E+07
     8 'Prefactor '    .82468       1.0000          .0000       .10000E+07
     9 'Prefactor '    25.111       1.0000          .0000       .10000E+07
    10 'Prefactor '    16.603       1.0000          .0000       .10000E+07
    11 'Prefactor '    .16562E-03   1.0000          .0000       .10000E+07
    12 'Prefactor '    .18712E-05   1.0000          .0000       .10000E+07
    13 'Prefactor '    5.7319       1.0000          .0000       .10000E+07
    14 'Prefactor '    4.4005       1.0000          .0000       .10000E+07
    15 'norm      '    .22761       1.0000          .0000       .10000E+07
    16 'Prefactor '    .12860       1.0000          .0000       .10000E+07
    17 'Prefactor '    3.4711       1.0000          .0000       .10000E+07
    18 'Prefactor '    .34333E-02   1.0000          .0000       .10000E+07
    19 'Normalizat'    .85008       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.2175       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=   14374.21     FROM MIGRAD    STATUS=CONVERGED    142 CALLS     1246 TOTAL
                     EDM=   .33E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        12.794       -.10671E-06** at limit **
   2  Prefactor     2.1788        5.1077        .25570E-06    .17006E-03
   3  Prefactor     1.6111        1.1450       -.23942E-08    .44926E-03
   4  norm          45.503        8.7605        .12501E-07    .66085E-02
   5  Prefactor     16.630        1.1019       -.26538E-08    .31434E-02
   6  Prefactor      .0000        360.17       -.50218E-06** at limit **
   7  Prefactor     2.2598        4.5106        .23154E-07   -.68079E-03
   8  Prefactor     .82705        .82181       -.24975E-07   -.10749E-02
   9  Prefactor     25.077        5.9644        .29352E-08   -.67559E-03
  10  Prefactor     16.517        5.6494        .46142E-07    .17655E-01
  11  Prefactor      .0000        5.1335       -.16367E-06** at limit **
  12  Prefactor      .0000        2.3669        .37868E-07** at limit **
  13  Prefactor     5.7694        5.9470        .76663E-09    .23497E-03
  14  Prefactor     4.3407        4.1529        .63054E-07   -.12958E-01
  15  norm          .22743        .82171       -.36708E-07** at limit **
  16  Prefactor     .12547        3.1568       -.29082E-07** at limit **
  17  Prefactor     3.4731        3.3856       -.32196E-07    .40942E-03
  18  Prefactor      .0000        7.9851       -.35416E-06** at limit **
  19  Normalizat    .85051        .14446       -.17477E-05    .21894E-04
  20  Prefactor     1.2176        .14414        .74387E-06    .20867E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Prefactor  = 2.17879
  Prefactor  = 1.61113
  norm       = 45.5027
  Prefactor  = 16.6301
  Prefactor  = 0
  Prefactor  = 2.25984
  Prefactor  = 0.827053
  Prefactor  = 25.077
  Prefactor  = 16.5174
  Prefactor  = 0
  Prefactor  = 0
  Prefactor  = 5.76936
  Prefactor  = 4.34071
  norm       = 0.227432
  Prefactor  = 0.125469
  Prefactor  = 3.47313
  Prefactor  = 0
  Normalizat = 0.850506
  Prefactor  = 1.21759
 **********
 **   18 **HESSE 
 **********

 FCN=   14374.21     FROM HESSE     STATUS=OK           355 CALLS     1601 TOTAL
                     EDM=   .73E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        12.838        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     2.1788        5.1421        .70360E-03   -1.5678    
   3  Prefactor     1.6111        1.1485        .83382E-03   -1.5683    
   4  norm          45.503        8.8346        .14829E-03   -1.5573    
   5  Prefactor     16.630        16.520        .24455E-03   -1.5626    
   6  Prefactor      .0000        17.629        .16318E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     2.2598        4.5857        .67554E-03   -1.5678    
   8  Prefactor     .82705        .82030        .51113E-03   -1.5690    
   9  Prefactor     25.077        5.9922        .19960E-03   -1.5608    
  10  Prefactor     16.517        8.0459        .24553E-03   -1.5627    
  11  Prefactor      .0000        5.1504        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor      .0000        2.3685        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     5.7694        6.0243        .41930E-03   -1.5660    
  14  Prefactor     4.3407        9.2700        .47985E-03   -1.5666    
  15  norm          .22743        .82634        .11304E-02   -1.5698    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .12547        .69393        .50328E-02   -1.5701    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     3.4731        3.3931        .54253E-03   -1.5671    
  18  Prefactor      .0000        7.9662        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    .85051        .12331        .63247E-01   -.98222    
  20  Prefactor     1.2176        .12087        .56141E-01   -.85792    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.3407e-07
Minuit parameter uncertainties:
  1  1.30327e-05
  2  5.14215
  3  1.14847
  4  8.83457
  5  16.52
  6  1.3748e-05
  7  4.58574
  8  0.820303
  9  5.99219
  10  8.0459
  11  1.58209e-05
  12  3.96473e-06
  13  6.0243
  14  9.27004
  15  0.826341
  16  0.590143
  17  3.3931
  18  1.0841e-05
  19  0.123354
  20  0.120902
Done.

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

Extracting fit parameters...

4FGL J1036.2+2202
   Spectrum: PowerLaw
236    Prefactor:  2.260e+00  4.586e+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.218e+00  1.209e-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.505e-01  1.234e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.29
Ra Dec: 159.053 22.040
Photon Flux Upper Limit: 6.85e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.37e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/259684/likelihoodResults_696816001_697420801_4FGL_J1036.2+2202_weekly_bin757.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) = 14374.2130747
delta logL = 0.00189657573355

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 14374.2129034
delta logL = 0.00206788406649

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.3399       1.0000          .0000       .10000E+07
     2 'Index     '    2.5520       1.0000          .0000       10.000    
     3 'Normalizat'    .85110       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2171       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=   14374.21     FROM MIGRAD    STATUS=CONVERGED     91 CALLS      260 TOTAL
                     EDM=   .65E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.3398        4.8045        .26800E-04    .86452E-03
   2  Index         2.5520        .97319        .12919E-01    .34849E-04
   3  Normalizat    .85111        .13798        .27943E-03   -.85522E-04
   4  Prefactor     1.2171        .14360        .24829E-03   -.90662E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.33982
  Index      = 2.55199
  Normalizat = 0.851111
  Prefactor  = 1.21707
 **********
 **   18 **HESSE 
 **********

 FCN=   14374.21     FROM HESSE     STATUS=OK            25 CALLS      285 TOTAL
                     EDM=   .58E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.3398        4.7135        .10720E-05   -1.5677    
   2  Index         2.5520        .95536        .51675E-03   -.51163    
   3  Normalizat    .85111        .13815        .11177E-04   -.98200    
   4  Prefactor     1.2171        .14371        .99314E-05   -.85808    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.76534e-11
Minuit parameter uncertainties:
  1  4.71348
  2  0.963181
  3  0.138205
  4  0.143759
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/259684': 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) = 14374.2129034
delta logL = 0.00206788558899

Extracting fit parameters...

4FGL J1036.2+2202
   Spectrum: PowerLaw
236    Prefactor:  2.340e+00  4.713e+00  0.000e+00  1.000e+06 ( 1.000e-12)
237        Index:  2.552e+00  9.632e-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.217e+00  1.438e-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.511e-01  1.382e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.29
Ra Dec: 159.053 22.040

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/259684/cmap_HighResolution_696816001_697420801_4FGL_J1036.2+2202_weekly_bin757.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.37e-03', job_status='DONE', photon_flux_upper_limit='6.85e-08', time_completed='2023-02-07 01:11:17.057060', job_id='259684', GAL2='1.22', fit_tolerance='1e-08', EG2='0.85', EG='0.85', time_epoch_completed='1675761077.06', return_code2='0', ts='0.29', comment='SUCCESS', return_code='0', GAL='1.22', dlogl='2.07e-03', ts2='0.30', photon_index_error='0.00', photon_index='2.61' WHERE bin_id='757' AND source_name='4FGL J1036.2+2202' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Feb  7 01:11:17 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0032>
Subject: Job 259684: <4FGL_J1036.2+2202_weekly_bin757> in cluster <slac> Done

Job <4FGL_J1036.2+2202_weekly_bin757> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Tue Feb  7 00:55:23 2023
Job was executed on host(s) <bullet0032>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Feb  7 00:56:26 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Feb  7 00:56:26 2023
Terminated at Tue Feb  7 01:11:17 2023
Results reported at Tue Feb  7 01:11:17 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1036.2+2202_weekly_bin757 159.053 22.0401 696816001 697420801 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 :                                   857.00 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             334.28 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   891 sec.
    Turnaround time :                            954 sec.

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

