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


Performing analysis on: 4FGL_J1036.2+2202_daily_bin1758
RA = 159.053, Dec = 22.0401
tmin = 695001601, tmax = 695260801
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='362350', job_status='RUN', time_executed='2023-01-13 00:33:56.849643', time_epoch_executed='1673598836.85' WHERE source_name='4FGL J1036.2+2202' and cadence='daily' and bin_id='1758'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/362350

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/362350/ft1_4FGL_J1036.2+2202_daily_bin1758.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/362350/ft2_4FGL_J1036.2+2202_daily_bin1758.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/362350/ft1_4FGL_J1036.2+2202_daily_bin1758.fits outfile=/scratch/kocevski/362350/ft1_filteredMKT_4FGL_J1036.2+2202_daily_bin1758.fits ra=159.053 dec=22.0401 rad=12.0 tmin=695001601.0 tmax=695260801.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 2.80
user 2.58
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/362350/ft2_4FGL_J1036.2+2202_daily_bin1758.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/362350/ft1_filteredMKT_4FGL_J1036.2+2202_daily_bin1758.fits evtable="EVENTS" outfile="/scratch/kocevski/362350/ft1_filtered_4FGL_J1036.2+2202_daily_bin1758.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: 318

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/362350/ft1_filtered_4FGL_J1036.2+2202_daily_bin1758.fits" evtable="EVENTS" scfile=/scratch/kocevski/362350/ft2_4FGL_J1036.2+2202_daily_bin1758.fits sctable="SC_DATA" outfile=/scratch/kocevski/362350/ltcube_695001601_695260801_4FGL_J1036.2+2202_daily_bin1758.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/362350/ft2_4FGL_J1036.2+2202_daily_bin1758.fits
.....................!
real 16.02
user 15.58
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/362350/ft1_filtered_4FGL_J1036.2+2202_daily_bin1758.fits evtable="EVENTS" scfile=/scratch/kocevski/362350/ft2_4FGL_J1036.2+2202_daily_bin1758.fits sctable="SC_DATA" expcube=/scratch/kocevski/362350/ltcube_695001601_695260801_4FGL_J1036.2+2202_daily_bin1758.fits outfile=/scratch/kocevski/362350/expmap_695001601_695260801_4FGL_J1036.2+2202_daily_bin1758.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/362350/ltcube_695001601_695260801_4FGL_J1036.2+2202_daily_bin1758.fits
.....................!
real 192.48
user 186.43
sys 5.47

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/362350/ft1_filtered_4FGL_J1036.2+2202_daily_bin1758.fits scfile=/scratch/kocevski/362350/ft2_4FGL_J1036.2+2202_daily_bin1758.fits outfile=/scratch/kocevski/362350/cmap_695001601_695260801_4FGL_J1036.2+2202_daily_bin1758.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.61
user 0.38
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/362350/ft1_filtered_4FGL_J1036.2+2202_daily_bin1758.fits scfile=/scratch/kocevski/362350/ft2_4FGL_J1036.2+2202_daily_bin1758.fits outfile=/scratch/kocevski/362350/cmap_HighResolution_695001601_695260801_4FGL_J1036.2+2202_daily_bin1758.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=159.053 yref=22.0401 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.56
user 0.39
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    177.07       1.0000          .0000       .10000E+07
     2 'Prefactor '    14.442       1.0000          .0000       .10000E+07
     3 'Prefactor '    .24614E-05   1.0000          .0000       .10000E+07
     4 'norm      '    10.486       1.0000          .0000       .10000E+07
     5 'Prefactor '    .16085E-05   1.0000          .0000       .10000E+07
     6 'Prefactor '    .75480E-04   1.0000          .0000       .10000E+07
     7 'Prefactor '    17.071       1.0000          .0000       .10000E+07
     8 'Prefactor '    .50261E-05   1.0000          .0000       .10000E+07
     9 'Prefactor '    17.098       1.0000          .0000       .10000E+07
    10 'Prefactor '    19.410       1.0000          .0000       .10000E+07
    11 'Prefactor '    11.362       1.0000          .0000       .10000E+07
    12 'Prefactor '    .59636E-06   1.0000          .0000       .10000E+07
    13 'Prefactor '    .34280E-02   1.0000          .0000       .10000E+07
    14 'Prefactor '    11.842       1.0000          .0000       .10000E+07
    15 'norm      '    .29898E-06   1.0000          .0000       .10000E+07
    16 'Prefactor '    .37192E-08   1.0000          .0000       .10000E+07
    17 'Prefactor '    5.1497       1.0000          .0000       .10000E+07
    18 'Prefactor '    13.552       1.0000          .0000       .10000E+07
    19 'Normalizat'    .83398       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.3642       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=   3588.933     FROM MIGRAD    STATUS=CONVERGED    194 CALLS     1637 TOTAL
                     EDM=   .33E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     240.88        195.73       -.44314E-05   -.94667E-04
   2  Prefactor     14.258        5.9174        .62034E-07    .15763E-01
   3  Prefactor      .0000        2.0607       -.86936E-07** at limit **
   4  norm          10.384        11.923        .27132E-06   -.64537E-02
   5  Prefactor     .13323E-08    115.02        .90283E-07** at limit **
   6  Prefactor      .0000        172.02        .14111E-04** at limit **
   7  Prefactor     16.788        13.518        .42227E-06    .46549E-02
   8  Prefactor     .55511E-10    4.1123       -.41091E-06** at limit **
   9  Prefactor     17.374        12.001        .54156E-07    .15228E-02
  10  Prefactor     20.261        17.986       -.17175E-05    .20584E-02
  11  Prefactor     11.287        38.302       -.11854E-05   -.74683E-03
  12  Prefactor      .0000        6.0009       -.60990E-08** at limit **
  13  Prefactor     .27756E-09    10.529       -.44880E-06** at limit **
  14  Prefactor     11.691        22.934        .51518E-05    .19990E-02
  15  norm           .0000        1.3608        .20807E-06** at limit **
  16  Prefactor      .0000        1.3585        .51804E-06** at limit **
  17  Prefactor     5.1704        7.0297       -.45449E-06    .54600E-04
  18  Prefactor     13.742        15.983       -.10266E-05   -.13990E-02
  19  Normalizat    .82519        .30569        .18538E-04    .30243E-03
  20  Prefactor     1.3621        .30824       -.12258E-04    .24417E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 240.877
  Prefactor  = 14.2582
  Prefactor  = 0
  norm       = 10.3839
  Prefactor  = 1.33227e-09
  Prefactor  = 0
  Prefactor  = 16.7882
  Prefactor  = 5.55112e-11
  Prefactor  = 17.3744
  Prefactor  = 20.2608
  Prefactor  = 11.2866
  Prefactor  = 0
  Prefactor  = 2.77556e-10
  Prefactor  = 11.6905
  norm       = 0
  Prefactor  = 0
  Prefactor  = 5.17038
  Prefactor  = 13.7425
  Normalizat = 0.825188
  Prefactor  = 1.36213
 **********
 **   18 **HESSE 
 **********

 FCN=   3588.933     FROM HESSE     STATUS=OK           335 CALLS     1972 TOTAL
                     EDM=   .51E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     240.88        195.45        .75158E-04   -1.5398    
   2  Prefactor     14.258        14.205        .26330E-03   -1.5632    
   3  Prefactor      .0000        2.0657        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          10.384        13.241        .30916E-03   -1.5644    
   5  Prefactor     .13323E-08    115.48        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor      .0000        172.58        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     16.788        13.662        .24214E-03   -1.5626    
   8  Prefactor     .55511E-10    4.1432        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     17.374        11.946        .24195E-03   -1.5625    
  10  Prefactor     20.261        18.053        .22706E-03   -1.5618    
  11  Prefactor     11.287        37.160        .29696E-03   -1.5641    
  12  Prefactor      .0000        6.0192        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .27756E-09    10.537        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     11.691        22.984        .29086E-03   -1.5640    
  15  norm           .0000        1.3600        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor      .0000        1.3686        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     5.1704        7.0698        .44278E-03   -1.5662    
  18  Prefactor     13.742        16.033        .27183E-03   -1.5634    
  19  Normalizat    .82519        .25851        .66647E-01   -.99141    
  20  Prefactor     1.3621        .25980        .57208E-01   -.81478    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.06433e-09
Minuit parameter uncertainties:
  1  195.459
  2  14.205
  3  5.58745e-06
  4  13.2415
  5  0.000789774
  6  4.88931e-05
  7  13.6624
  8  3.09099e-05
  9  11.9458
  10  18.0526
  11  37.1606
  12  1.31694e-05
  13  0.00010623
  14  22.9842
  15  6.94089e-06
  16  3.39249e-06
  17  7.06984
  18  16.033
  19  0.258894
  20  0.260052
Done.

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

Extracting fit parameters...

4FGL J1036.2+2202
   Spectrum: PowerLaw
236    Prefactor:  1.679e+01  1.366e+01  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.362e+00  2.601e-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.252e-01  2.589e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.47
Ra Dec: 159.053 22.040
Photon Index (Fixed Index): 2.61 +/- 0.00
Photon Flux (Fixed Index): 9.39e-08 +/- 7.63e-08
Energy Flux (Fixed Index): 2.43e-05 +/- 1.98e-05

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

Saving results to:
/scratch/kocevski/362350/likelihoodResults_695001601_695260801_4FGL_J1036.2+2202_daily_bin1758.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) = 3588.66695391
delta logL = 0.266461801477

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3588.64983052
delta logL = 0.283585195359

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    11.335       1.0000          .0000       .10000E+07
     2 'Index     '    3.3174       1.0000          .0000       10.000    
     3 'Normalizat'    .75753       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.4118       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=   3588.650     FROM MIGRAD    STATUS=CONVERGED     59 CALLS      269 TOTAL
                     EDM=   .18E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     11.329        159.66        .29732E-03    .11778E-02
   2  Index         3.3176        6.6509        .15269        .62785E-04
   3  Normalizat    .75744        .11107        .69230E-01    .90817E-05
   4  Prefactor     1.4123        .10289        .56351E-01   -.12727E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 11.329
  Index      = 3.31762
  Normalizat = 0.75744
  Prefactor  = 1.41232
 **********
 **   18 **HESSE 
 **********

 FCN=   3588.650     FROM HESSE     STATUS=OK            31 CALLS      300 TOTAL
                     EDM=   .67E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     11.329        15.557        .11893E-04   -1.5641    
   2  Index         3.3176        1.1875        .57009E-02   -.34317    
   3  Normalizat    .75744        .30702        .30635E-03   -1.0167    
   4  Prefactor     1.4123        .31772        .24916E-03   -.80026    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.68573e-12
Minuit parameter uncertainties:
  1  15.5571
  2  1.20051
  3  0.307727
  4  0.318163
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/362350': 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) = 3588.64982597
delta logL = 0.283589743575

Extracting fit parameters...

4FGL J1036.2+2202
   Spectrum: PowerLaw
236    Prefactor:  1.133e+01  1.556e+01  0.000e+00  1.000e+06 ( 1.000e-12)
237        Index:  3.318e+00  1.201e+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.412e+00  3.182e-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:  7.574e-01  3.077e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.17
Ra Dec: 159.053 22.040
Photon Index (Free Index): 3.32 +/- 1.20
Photon Flux (Free Index): 1.48e-07 +/- 1.15e-07
Energy Flux (Free Index): 2.60e-05 +/- 1.79e-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/362350/cmap_HighResolution_695001601_695260801_4FGL_J1036.2+2202_daily_bin1758.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.96e-02', comment='SUCCESS', photon_flux='9.39e-08', energy_flux2='2.60e-05', photon_flux_error='7.63e-08', dlogl='2.84e-01', energy_flux='2.43e-05', photon_flux2='1.48e-07', job_status='DONE', time_completed='2023-01-13 00:41:34.049538', photon_index_error2='1.20', photon_index2='3.32', ts='2.47', fit_tolerance='1e-08', GAL='1.36', photon_index_error='0.00', photon_flux_upper_limit='2.50e-07', energy_flux_error2='1.79e-05', EG='0.83', time_epoch_completed='1673599294.05', return_code='0', job_id='362350', GAL2='1.41', EG2='0.76', return_code2='0', energy_flux_error='1.98e-05', photon_flux_error2='1.15e-07', ts2='3.17', photon_index='2.61' WHERE bin_id='1758' AND source_name='4FGL J1036.2+2202' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Jan 13 00:41:34 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0225>
Subject: Job 362350: <4FGL_J1036.2+2202_daily_bin1758> in cluster <slac> Done

Job <4FGL_J1036.2+2202_daily_bin1758> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Fri Jan 13 00:30:29 2023
Job was executed on host(s) <bullet0225>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Jan 13 00:32:44 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Jan 13 00:32:44 2023
Terminated at Fri Jan 13 00:41:34 2023
Results reported at Fri Jan 13 00:41:34 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1036.2+2202_daily_bin1758 159.053 22.0401 695001601 695260801 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 :                                   459.37 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             330.63 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   530 sec.
    Turnaround time :                            665 sec.

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

