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


Performing analysis on: 4FGL_J1036.2+2202_daily_bin1759
RA = 159.053, Dec = 22.0401
tmin = 695260801, tmax = 695520001
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='554441', job_status='RUN', time_executed='2023-01-16 01:01:52.130518', time_epoch_executed='1673859712.13' WHERE source_name='4FGL J1036.2+2202' and cadence='daily' and bin_id='1759'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/554441

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/554441/ft1_4FGL_J1036.2+2202_daily_bin1759.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/554441/ft2_4FGL_J1036.2+2202_daily_bin1759.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/554441/ft1_4FGL_J1036.2+2202_daily_bin1759.fits outfile=/scratch/kocevski/554441/ft1_filteredMKT_4FGL_J1036.2+2202_daily_bin1759.fits ra=159.053 dec=22.0401 rad=12.0 tmin=695260801.0 tmax=695520001.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.00
user 2.59
sys 0.18

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

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

Number of photons that the gtmktime cut: 200

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/554441/ft1_filtered_4FGL_J1036.2+2202_daily_bin1759.fits evtable="EVENTS" scfile=/scratch/kocevski/554441/ft2_4FGL_J1036.2+2202_daily_bin1759.fits sctable="SC_DATA" expcube=/scratch/kocevski/554441/ltcube_695260801_695520001_4FGL_J1036.2+2202_daily_bin1759.fits outfile=/scratch/kocevski/554441/expmap_695260801_695520001_4FGL_J1036.2+2202_daily_bin1759.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/554441/ltcube_695260801_695520001_4FGL_J1036.2+2202_daily_bin1759.fits
.....................!
real 197.95
user 189.58
sys 5.49

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/554441/ft1_filtered_4FGL_J1036.2+2202_daily_bin1759.fits scfile=/scratch/kocevski/554441/ft2_4FGL_J1036.2+2202_daily_bin1759.fits outfile=/scratch/kocevski/554441/cmap_695260801_695520001_4FGL_J1036.2+2202_daily_bin1759.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.38
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/554441/ft1_filtered_4FGL_J1036.2+2202_daily_bin1759.fits scfile=/scratch/kocevski/554441/ft2_4FGL_J1036.2+2202_daily_bin1759.fits outfile=/scratch/kocevski/554441/cmap_HighResolution_695260801_695520001_4FGL_J1036.2+2202_daily_bin1759.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.57
user 0.39
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .75128       1.0000          .0000       .10000E+07
     2 'Prefactor '    .25843E-02   1.0000          .0000       .10000E+07
     3 'Prefactor '    .86926E-05   1.0000          .0000       .10000E+07
     4 'norm      '    .59820E-04   1.0000          .0000       .10000E+07
     5 'Prefactor '    .64839       1.0000          .0000       .10000E+07
     6 'Prefactor '    118.34       1.0000          .0000       .10000E+07
     7 'Prefactor '    .88495E-04   1.0000          .0000       .10000E+07
     8 'Prefactor '    .41830E-05   1.0000          .0000       .10000E+07
     9 'Prefactor '    7.4823       1.0000          .0000       .10000E+07
    10 'Prefactor '    24.646       1.0000          .0000       .10000E+07
    11 'Prefactor '    .14749E-02   1.0000          .0000       .10000E+07
    12 'Prefactor '    .18838E-05   1.0000          .0000       .10000E+07
    13 'Prefactor '    .85263E-03   1.0000          .0000       .10000E+07
    14 'Prefactor '    9.9636       1.0000          .0000       .10000E+07
    15 'norm      '    2.4777       1.0000          .0000       .10000E+07
    16 'Prefactor '    5.0077       1.0000          .0000       .10000E+07
    17 'Prefactor '    .28490E-03   1.0000          .0000       .10000E+07
    18 'Prefactor '    15.110       1.0000          .0000       .10000E+07
    19 'Normalizat'    .18598       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.6605       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=   2421.165     FROM MIGRAD    STATUS=CONVERGED    158 CALLS     1598 TOTAL
                     EDM=   .39E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .24025E-05    166.36       -.10500E-04** at limit **
   2  Prefactor     .39413E-08    14.461        .48981E-05** at limit **
   3  Prefactor      .0000        4.7943       -.14623E-05** at limit **
   4  norm          .84932E-08    11.265       -.13575E-05** at limit **
   5  Prefactor     .32307E-07    96.793        .48877E-05** at limit **
   6  Prefactor     118.17        6.8704       -.60680E-06    .26361    
   7  Prefactor     .76605E-08    8.6732        .45186E-05** at limit **
   8  Prefactor      .0000        2.9780       -.75852E-06** at limit **
   9  Prefactor     7.5008        11.600        .40889E-05    .57403E-02
  10  Prefactor     24.279        4.0169       -.41404E-07   -.38399E-03
  11  Prefactor     .26867E-07    24.766       -.67898E-05** at limit **
  12  Prefactor     .36637E-08    7.8336       -.37602E-05** at limit **
  13  Prefactor      .0000        5.9158       -.10832E-05** at limit **
  14  Prefactor     10.770        8.6703       -.35080E-06   -.29464E-01
  15  norm          2.4779        2.4108        .27287E-08    .49122E-03
  16  Prefactor     5.0386        4.7646       -.50103E-06    .94638E-03
  17  Prefactor      .0000        4.3593       -.31875E-06** at limit **
  18  Prefactor     15.070        1.4169       -.15359E-06    .61844E-02
  19  Normalizat    .18516        .32516       -.77020E-04    .84789E-05
  20  Prefactor     1.6609        .35043        .41215E-04    .23418E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.40247e-06
  Prefactor  = 3.94129e-09
  Prefactor  = 0
  norm       = 8.49321e-09
  Prefactor  = 3.23075e-08
  Prefactor  = 118.174
  Prefactor  = 7.66054e-09
  Prefactor  = 0
  Prefactor  = 7.50078
  Prefactor  = 24.2791
  Prefactor  = 2.68674e-08
  Prefactor  = 3.66374e-09
  Prefactor  = 0
  Prefactor  = 10.7697
  norm       = 2.47789
  Prefactor  = 5.03862
  Prefactor  = 0
  Prefactor  = 15.0703
  Normalizat = 0.185162
  Prefactor  = 1.66087
 **********
 **   18 **HESSE 
 **********

 FCN=   2421.165     FROM HESSE     STATUS=OK           327 CALLS     1925 TOTAL
                     EDM=   .73E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .24025E-05    166.87        .56640E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .39413E-08    14.611        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor      .0000        4.7897        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .84932E-08    11.271        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .32307E-07    106.03        .65000E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     118.17        111.62        .91931E-04   -1.5491    
   7  Prefactor     .76605E-08    8.6881        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor      .0000        2.9693        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     7.5008        12.133        .36640E-03   -1.5653    
  10  Prefactor     24.279        20.496        .20147E-03   -1.5609    
  11  Prefactor     .26867E-07    24.792        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .36637E-08    7.8359        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor      .0000        5.9172        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     10.770        29.988        .31721E-03   -1.5642    
  15  norm          2.4779        2.4763        .64925E-03   -1.5676    
  16  Prefactor     5.0386        5.0782        .44914E-03   -1.5663    
  17  Prefactor      .0000        4.3571        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     15.070        17.545        .25740E-03   -1.5630    
  19  Normalizat    .18516        .53606        .12033       -1.3052    
  20  Prefactor     1.6609        .52170        .46339E-01   -.73128    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.29463e-06
Minuit parameter uncertainties:
  1  0.0400456
  2  0.000481486
  3  5.46443e-06
  4  0.000619596
  5  0.00370088
  6  111.625
  7  0.000516426
  8  8.12273e-06
  9  12.1333
  10  20.496
  11  0.00163225
  12  0.000338565
  13  8.08665e-07
  14  29.9883
  15  2.47629
  16  5.07825
  17  5.0424e-06
  18  17.5446
  19  0.552245
  20  0.523427
Done.

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

Extracting fit parameters...

4FGL J1036.2+2202
   Spectrum: PowerLaw
236    Prefactor:  7.661e-09  5.164e-04  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.661e+00  5.234e-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.852e-01  5.522e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 159.053 22.040
Photon Flux Upper Limit: 1.52e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.19e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/554441/likelihoodResults_695260801_695520001_4FGL_J1036.2+2202_daily_bin1759.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): 102
logL (Free Index) = 2421.16484208
delta logL = -0.000192847125618

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 2421.16465154
delta logL = -2.30454452321e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .88551E-06   1.0000          .0000       .10000E+07
     2 'Index     '    1.7857       1.0000          .0000       10.000    
     3 'Normalizat'    .18545       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.6603       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=   2421.165     FROM MIGRAD    STATUS=CONVERGED     67 CALLS      271 TOTAL
                     EDM=   .13E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .23315E-08    .17151        .42118E-03** at limit **
   2  Index         2.9564        5.4683        .50000        .78444E-09
   3  Normalizat    .18518        .10229E-02    .12032        .27391E-03
   4  Prefactor     1.6609        .11227E-02    .46339E-01    .16013E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.33147e-09
  Index      = 2.95644
  Normalizat = 0.185176
  Prefactor  = 1.66085
 **********
 **   18 **HESSE 
 **********

 FCN=   2421.165     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      302 TOTAL
                     EDM=   .66E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .23315E-08    .86911        .84235E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.9564        5.1562        .50000       -.42104    
   3  Normalizat    .18518        .23103E-02    .52966E-03   -1.3052    
   4  Prefactor     1.6609        .25243E-02    .20481E-03   -.73129    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 6.61566e-11
Minuit parameter uncertainties:
  1  9.03622e-05
  2  8899.17
  3  0.00231027
  4  0.00252433
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/554441': 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) = 2421.16464924
delta logL = -7.39419192541e-10

Extracting fit parameters...

4FGL J1036.2+2202
   Spectrum: PowerLaw
236    Prefactor:  2.331e-09  9.036e-05  0.000e+00  1.000e+06 ( 1.000e-12)
237        Index:  2.956e+00  8.899e+03  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.661e+00  2.524e-03  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.852e-01  2.310e-03  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 159.053 22.040

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/554441/cmap_HighResolution_695260801_695520001_4FGL_J1036.2+2202_daily_bin1759.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.19e-02', job_status='DONE', photon_flux_upper_limit='1.52e-07', time_completed='2023-01-16 01:08:53.314262', job_id='554441', GAL2='1.66', fit_tolerance='1e-08', EG2='0.19', EG='0.19', time_epoch_completed='1673860133.31', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.66', dlogl='-7.39e-10', ts2='-0.00', photon_index_error='0.00', photon_index='2.61' WHERE bin_id='1759' AND source_name='4FGL J1036.2+2202' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Jan 16 01:08:53 PST 2023


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

Job <4FGL_J1036.2+2202_daily_bin1759> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Mon Jan 16 00:55:44 2023
Job was executed on host(s) <bullet0270>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Jan 16 01:00:28 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Jan 16 01:00:28 2023
Terminated at Mon Jan 16 01:08:54 2023
Results reported at Mon Jan 16 01:08:54 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1036.2+2202_daily_bin1759 159.053 22.0401 695260801 695520001 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 :                                   417.57 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             304.39 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   505 sec.
    Turnaround time :                            790 sec.

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

