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


Performing analysis on: 4FGL_J1036.2+2202_daily_bin1777
RA = 159.053, Dec = 22.0401
tmin = 699926401, tmax = 700185601
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='912135', job_status='RUN', time_executed='2023-03-11 00:33:56.863509', time_epoch_executed='1678523636.86' WHERE source_name='4FGL J1036.2+2202' and cadence='daily' and bin_id='1777'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/912135

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/912135/ft1_4FGL_J1036.2+2202_daily_bin1777.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/912135/ft2_4FGL_J1036.2+2202_daily_bin1777.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/912135/ft1_4FGL_J1036.2+2202_daily_bin1777.fits outfile=/scratch/kocevski/912135/ft1_filteredMKT_4FGL_J1036.2+2202_daily_bin1777.fits ra=159.053 dec=22.0401 rad=12.0 tmin=699926401.0 tmax=700185601.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.74
user 3.47
sys 0.24

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

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

Number of photons that the gtmktime cut: 534

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/912135/ft1_filtered_4FGL_J1036.2+2202_daily_bin1777.fits evtable="EVENTS" scfile=/scratch/kocevski/912135/ft2_4FGL_J1036.2+2202_daily_bin1777.fits sctable="SC_DATA" expcube=/scratch/kocevski/912135/ltcube_699926401_700185601_4FGL_J1036.2+2202_daily_bin1777.fits outfile=/scratch/kocevski/912135/expmap_699926401_700185601_4FGL_J1036.2+2202_daily_bin1777.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/912135/ltcube_699926401_700185601_4FGL_J1036.2+2202_daily_bin1777.fits
.....................!
real 192.61
user 186.66
sys 5.36

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/912135/ft1_filtered_4FGL_J1036.2+2202_daily_bin1777.fits scfile=/scratch/kocevski/912135/ft2_4FGL_J1036.2+2202_daily_bin1777.fits outfile=/scratch/kocevski/912135/cmap_699926401_700185601_4FGL_J1036.2+2202_daily_bin1777.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/912135/ft1_filtered_4FGL_J1036.2+2202_daily_bin1777.fits scfile=/scratch/kocevski/912135/ft2_4FGL_J1036.2+2202_daily_bin1777.fits outfile=/scratch/kocevski/912135/cmap_HighResolution_699926401_700185601_4FGL_J1036.2+2202_daily_bin1777.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=159.053 yref=22.0401 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.55
user 0.39
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .62412E-03   1.0000          .0000       .10000E+07
     2 'Prefactor '    .26177E-05   1.0000          .0000       .10000E+07
     3 'Prefactor '    1.3172       1.0000          .0000       .10000E+07
     4 'norm      '    12.741       1.0000          .0000       .10000E+07
     5 'Prefactor '    29.596       1.0000          .0000       .10000E+07
     6 'Prefactor '    .63767E-05   1.0000          .0000       .10000E+07
     7 'Prefactor '    3.9118       1.0000          .0000       .10000E+07
     8 'Prefactor '    .84742E-05   1.0000          .0000       .10000E+07
     9 'Prefactor '    39.370       1.0000          .0000       .10000E+07
    10 'Prefactor '    .90730E-02   1.0000          .0000       .10000E+07
    11 'Prefactor '    .54837E-01   1.0000          .0000       .10000E+07
    12 'Prefactor '    6.1519       1.0000          .0000       .10000E+07
    13 'Prefactor '    .24863E-03   1.0000          .0000       .10000E+07
    14 'Prefactor '    5.8370       1.0000          .0000       .10000E+07
    15 'norm      '    .61657E-05   1.0000          .0000       .10000E+07
    16 'Prefactor '    3.6271       1.0000          .0000       .10000E+07
    17 'Prefactor '    .23663E-04   1.0000          .0000       .10000E+07
    18 'Prefactor '    10.864       1.0000          .0000       .10000E+07
    19 'Normalizat'    .99867       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.1653       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=   5932.106     FROM MIGRAD    STATUS=CONVERGED    142 CALLS     1212 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .28244E-06    40.981        .15779E-05** at limit **
   2  Prefactor     .11602E-07    4.4830       -.47775E-07** at limit **
   3  Prefactor     1.3189        1.7281        .53934E-07    .17007E-02
   4  norm          12.759        8.9484        .81760E-07    .77453E-01
   5  Prefactor     28.451        28.874        .44389E-07    .49951E-01
   6  Prefactor     .22593E-07    17.485        .16660E-06** at limit **
   7  Prefactor     3.8560        8.0610       -.41004E-06   -.15426E-02
   8  Prefactor      .0000        .95896        .78632E-08** at limit **
   9  Prefactor     39.337        10.919        .16809E-07   -.12313    
  10  Prefactor     .35638E-07    3.8973       -.84572E-08** at limit **
  11  Prefactor      .0000        16.171        .74338E-07** at limit **
  12  Prefactor     6.0899        7.2275       -.62317E-07   -.60157E-02
  13  Prefactor     .33307E-09    3.4314       -.12970E-06** at limit **
  14  Prefactor     5.6971        8.0403       -.17358E-07    .51804E-01
  15  norm           .0000        1.0490        .92802E-08** at limit **
  16  Prefactor     3.6271        2.8868       -.11179E-06   -.23465E-02
  17  Prefactor     .63616E-07    8.3072        .32310E-07** at limit **
  18  Prefactor     10.694        6.5977        .15860E-07    .68091E-01
  19  Normalizat    .99988        .21712        .34471E-05    .21890E-04
  20  Prefactor     1.1654        .21978       -.20752E-05    .53928E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.82441e-07
  Prefactor  = 1.16018e-08
  Prefactor  = 1.31892
  norm       = 12.7592
  Prefactor  = 28.4513
  Prefactor  = 2.2593e-08
  Prefactor  = 3.85604
  Prefactor  = 0
  Prefactor  = 39.3369
  Prefactor  = 3.56382e-08
  Prefactor  = 0
  Prefactor  = 6.08988
  Prefactor  = 3.33067e-10
  Prefactor  = 5.69715
  norm       = 0
  Prefactor  = 3.62714
  Prefactor  = 6.36158e-08
  Prefactor  = 10.6938
  Normalizat = 0.999884
  Prefactor  = 1.16537
 **********
 **   18 **HESSE 
 **********

 FCN=   5932.106     FROM HESSE     STATUS=OK           331 CALLS     1543 TOTAL
                     EDM=   .53E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .28244E-06    41.622        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .11602E-07    8.0078        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     1.3189        1.7550        .95901E-03   -1.5685    
   4  norm          12.759        9.4824        .28037E-03   -1.5637    
   5  Prefactor     28.451        32.889        .18384E-03   -1.5601    
   6  Prefactor     .22593E-07    17.561        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     3.8560        8.0592        .50986E-03   -1.5669    
   8  Prefactor      .0000        .95755        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     39.337        11.817        .15939E-03   -1.5583    
  10  Prefactor     .35638E-07    7.1899        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor      .0000        15.893        .15353E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     6.0899        7.4290        .40453E-03   -1.5659    
  13  Prefactor     .33307E-09    3.4439        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     5.6971        14.918        .41545E-03   -1.5660    
  15  norm           .0000        1.0467        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     3.6271        2.8885        .53024E-03   -1.5670    
  17  Prefactor     .63616E-07    8.5771        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     10.694        16.243        .30372E-03   -1.5643    
  19  Normalizat    .99988        .18703        .46150E-01   -.93034    
  20  Prefactor     1.1654        .18825        .58020E-01   -.87404    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.31627e-07
Minuit parameter uncertainties:
  1  0.00685721
  2  0.000609013
  3  1.75501
  4  9.48244
  5  32.8893
  6  0.00125919
  7  8.05926
  8  3.89109e-06
  9  11.8171
  10  0.00101204
  11  1.5859e-05
  12  7.42904
  13  6.87072e-05
  14  14.9176
  15  3.9624e-06
  16  2.88852
  17  0.00147721
  18  16.2431
  19  0.18715
  20  0.188362
Done.

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

Extracting fit parameters...

4FGL J1036.2+2202
   Spectrum: PowerLaw
236    Prefactor:  3.856e+00  8.059e+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.165e+00  1.884e-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:  9.999e-01  1.871e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.27
Ra Dec: 159.053 22.040
Photon Flux Upper Limit: 1.20e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.39e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/912135/likelihoodResults_699926401_700185601_4FGL_J1036.2+2202_daily_bin1777.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) = 5931.19851451
delta logL = 0.907926249813

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5931.16691202
delta logL = 0.939528739407

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .71997       1.0000          .0000       .10000E+07
     2 'Index     '    4.8477       1.0000          .0000       10.000    
     3 'Normalizat'    .92370       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2198       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=   5931.167     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      300 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .71641        9.4690        .59102E-03    .54580E-02
   2  Index         4.8505        3.5476        .17007        .87117E-04
   3  Normalizat    .92378        .50507E-01    .45204E-01   -.86540E-04
   4  Prefactor     1.2197        .53621E-01    .56887E-01   -.99094E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.71641
  Index      = 4.8505
  Normalizat = 0.923777
  Prefactor  = 1.21966
 **********
 **   18 **HESSE 
 **********

 FCN=   5931.167     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      331 TOTAL
                     EDM=   .38E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .71641        21.030        .48019E-05   -1.5691    
   2  Index         4.8505        7.4151        .61560E-02   -.29904E-01
   3  Normalizat    .92378        .19980        .26746E-03   -.95630    
   4  Prefactor     1.2197        .20853        .25155E-03   -.85728    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.81789e-07
Minuit parameter uncertainties:
  1  7.76301
  2  7.24982
  3  0.199958
  4  0.208671
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/912135': 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): 102
logL (Free Index) = 5931.16690987
delta logL = 0.939530888252

Extracting fit parameters...

4FGL J1036.2+2202
   Spectrum: PowerLaw
236    Prefactor:  7.164e-01  7.763e+00  0.000e+00  1.000e+06 ( 1.000e-12)
237        Index:  4.851e+00  7.250e+00  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.220e+00  2.087e-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:  9.238e-01  2.000e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.31
Ra Dec: 159.053 22.040
Photon Index (Free Index): 4.85 +/- 7.25
Photon Flux (Free Index): 7.93e-08 +/- 6.36e-08
Energy Flux (Free Index): 1.07e-05 +/- 1.24e-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/912135/cmap_HighResolution_699926401_700185601_4FGL_J1036.2+2202_daily_bin1777.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.39e-03', comment='SUCCESS', energy_flux2='1.07e-05', dlogl='9.40e-01', photon_flux2='7.93e-08', job_status='DONE', time_completed='2023-03-11 00:42:38.564064', photon_index_error2='7.25', photon_index2='4.85', ts='0.27', fit_tolerance='1e-08', GAL='1.17', photon_index_error='0.00', photon_flux_upper_limit='1.20e-07', energy_flux_error2='1.24e-05', EG='1.00', time_epoch_completed='1678524158.56', return_code='0', job_id='912135', GAL2='1.22', EG2='0.92', return_code2='102', photon_flux_error2='6.36e-08', ts2='2.31', photon_index='2.61' WHERE bin_id='1777' AND source_name='4FGL J1036.2+2202' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Mar 11 00:42:38 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0163>
Subject: Job 912135: <4FGL_J1036.2+2202_daily_bin1777> in cluster <slac> Done

Job <4FGL_J1036.2+2202_daily_bin1777> was submitted from host <rhel6-64c> by user <kocevski> in cluster <slac> at Sat Mar 11 00:30:20 2023
Job was executed on host(s) <bullet0163>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Mar 11 00:30:21 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Mar 11 00:30:21 2023
Terminated at Sat Mar 11 00:42:39 2023
Results reported at Sat Mar 11 00:42:39 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1036.2+2202_daily_bin1777 159.053 22.0401 699926401 700185601 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 :                                   523.05 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             253.73 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   737 sec.
    Turnaround time :                            739 sec.

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

