/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 215 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 make4FGLxml version 01r04.
The default diffuse model files and names are for pass 8 and 4FGL and assume you have v11r5p3 of the Fermi Science Tools or higher.

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


Performing analysis on: 4FGL_J1033.1+4115_daily_bin995
RA = 158.275, Dec = 41.262
tmin = 497232001, tmax = 497491201
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='977452', job_status='RUN', time_executed='2021-09-02 03:34:17.451913', time_epoch_executed='1630578857.45' WHERE source_name='4FGL J1033.1+4115' and cadence='daily' and bin_id='995'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/977452

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/977452/ft1_4FGL_J1033.1+4115_daily_bin995.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/977452/ft2_4FGL_J1033.1+4115_daily_bin995.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/977452/ft1_4FGL_J1033.1+4115_daily_bin995.fits outfile=/scratch/kocevski/977452/ft1_filteredMKT_4FGL_J1033.1+4115_daily_bin995.fits ra=158.275 dec=41.262 rad=12.0 tmin=497232001.0 tmax=497491201.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 6.80
user 6.51
sys 0.25

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/977452/ft2_4FGL_J1033.1+4115_daily_bin995.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/977452/ft2_4FGL_J1033.1+4115_daily_bin995.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/977452/ft1_filteredMKT_4FGL_J1033.1+4115_daily_bin995.fits evtable="EVENTS" outfile="/scratch/kocevski/977452/ft1_filtered_4FGL_J1033.1+4115_daily_bin995.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.53
user 0.35
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/977452/ft1_filtered_4FGL_J1033.1+4115_daily_bin995.fits" evtable="EVENTS" scfile=/scratch/kocevski/977452/ft2_4FGL_J1033.1+4115_daily_bin995.fits sctable="SC_DATA" outfile=/scratch/kocevski/977452/ltcube_497232001_497491201_4FGL_J1033.1+4115_daily_bin995.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/977452/ft2_4FGL_J1033.1+4115_daily_bin995.fits
.....................!
real 17.34
user 16.35
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/977452/ft1_filtered_4FGL_J1033.1+4115_daily_bin995.fits evtable="EVENTS" scfile=/scratch/kocevski/977452/ft2_4FGL_J1033.1+4115_daily_bin995.fits sctable="SC_DATA" expcube=/scratch/kocevski/977452/ltcube_497232001_497491201_4FGL_J1033.1+4115_daily_bin995.fits outfile=/scratch/kocevski/977452/expmap_497232001_497491201_4FGL_J1033.1+4115_daily_bin995.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/977452/ltcube_497232001_497491201_4FGL_J1033.1+4115_daily_bin995.fits
.....................!
real 191.32
user 186.77
sys 4.00

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 215 point sources and 0 extended sources

Setting source of interest to:
4FGL J1033.1+4115 @ 158.275 41.262

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/977452/ft1_filtered_4FGL_J1033.1+4115_daily_bin995.fits scfile=/scratch/kocevski/977452/ft2_4FGL_J1033.1+4115_daily_bin995.fits outfile=/scratch/kocevski/977452/cmap_497232001_497491201_4FGL_J1033.1+4115_daily_bin995.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=158.275 yref=41.262 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.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/977452/ft1_filtered_4FGL_J1033.1+4115_daily_bin995.fits scfile=/scratch/kocevski/977452/ft2_4FGL_J1033.1+4115_daily_bin995.fits outfile=/scratch/kocevski/977452/cmap_HighResolution_497232001_497491201_4FGL_J1033.1+4115_daily_bin995.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=158.275 yref=41.262 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.38
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/977452/ft1_filtered_4FGL_J1033.1+4115_daily_bin995.fits evtable="EVENTS" scfile=/scratch/kocevski/977452/ft2_4FGL_J1033.1+4115_daily_bin995.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/977452/Model_4FGL_J1033.1+4115_daily_bin995.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/977452/ft1_filtered_4FGL_J1033.1+4115_daily_bin995.fits.....................!
real 39.95
user 38.53
sys 1.17

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/977452/ft1_filtered_4FGL_J1033.1+4115_daily_bin995.fits', '/scratch/kocevski/977452/ft2_4FGL_J1033.1+4115_daily_bin995.fits', expMap='/scratch/kocevski/977452/expmap_497232001_497491201_4FGL_J1033.1+4115_daily_bin995.fits', expCube='/scratch/kocevski/977452/ltcube_497232001_497491201_4FGL_J1033.1+4115_daily_bin995.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/977452/Model_4FGL_J1033.1+4115_daily_bin995.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1033.1+4115'

4FGL J1033.1+4115
   Spectrum: PowerLaw
339    Prefactor:  3.495e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
340        Index:  2.412e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
341        Scale:  6.847e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/977452/ft1_filtered_4FGL_J1033.1+4115_daily_bin995.fits
Spacecraft file(s): /scratch/kocevski/977452/ft2_4FGL_J1033.1+4115_daily_bin995.fits
Exposure map: /scratch/kocevski/977452/expmap_497232001_497491201_4FGL_J1033.1+4115_daily_bin995.fits
Exposure cube: /scratch/kocevski/977452/ltcube_497232001_497491201_4FGL_J1033.1+4115_daily_bin995.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/977452/Model_4FGL_J1033.1+4115_daily_bin995.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) = 4022.0007929

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10030E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    3.4650       1.0000         .10000E-03   10000.    
     3 'Prefactor '    13.869       1.0000         .10000E-03   10000.    
     4 'Prefactor '    5.9971       1.0000         .10000E-03   10000.    
     5 'norm      '    41.067       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10082E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10037E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    7.7231       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    18.455       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .20322E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10177E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10041E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    112.01       1.0000         .10000E-03   10000.    
    18 'Prefactor '    2.0161       1.0000         .10000E-03   10000.    
    19 'Prefactor '    1.6714       1.0000         .10000E-03   10000.    
    20 'norm      '    .89090       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    19.356       1.0000         .10000E-03   10000.    
    23 'Prefactor '    25.772       1.0000         .10000E-03   10000.    
    24 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    3.8723       1.0000         .10000E-03   10000.    
    26 'Prefactor '    52.253       1.0000         .10000E-03   10000.    
    27 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.0612       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .96453       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6810E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   4021.926     FROM MIGRAD    STATUS=CONVERGED    726 CALLS     4240 TOTAL
                     EDM=   .38E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    17.532       -.35551E-05** at limit **
   2  Prefactor     3.4835        111.80        .10070E-04    .25566E-04
   3  Prefactor     13.874        61.340       -.96824E-05   -.53875E-04
   4  Prefactor     6.0053        15.500        .24303E-06   -.16097E-04
   5  norm          41.071        18.378       -.13036E-06   -.64004E-04
   6  Prefactor     .10000E-03    8.4517        .11620E-05** at limit **
   7  Prefactor     .10000E-03    2.7011        .46349E-06** at limit **
   8  Prefactor     .10000E-03    27.022        .11187E-06** at limit **
   9  norm          7.7247        4.4270        .56108E-07   -.68019E-04
  10  Prefactor     .10000E-03    2.2032        .33678E-06** at limit **
  11  norm          18.456        19.106       -.11474E-06   -.34940E-04
  12  Prefactor     .10000E-03    451.67        .97156E-05** at limit **
  13  Prefactor     .10000E-03    23.591        .22510E-06** at limit **
  14  Prefactor     .10000E-03    6.5379       -.95025E-07** at limit **
  15  Prefactor     .10000E-03    3.3713        .36557E-06** at limit **
  16  Prefactor     .10000E-03    34.811        .52102E-07** at limit **
  17  Prefactor     111.92        151.49       -.63035E-06   -.17663E-04
  18  Prefactor     2.0292        171.78        .66225E-05   -.26489E-05
  19  Prefactor     1.4034        1365.4       -.10555E-03    .11615E-04
  20  norm          .89101        .45986       -.48343E-07   -.19245E-03
  21  Prefactor     .10000E-03    44.820        .23928E-05** at limit **
  22  Prefactor     19.348        20.776        .30776E-07    .33887E-05
  23  Prefactor     25.658        311.30       -.21234E-05   -.85696E-05
  24  norm          .10000E-03    9.1547        .25714E-06** at limit **
  25  Prefactor     3.8726        3.9071       -.19151E-07   -.20287E-04
  26  Prefactor     52.270        53.211       -.58762E-08    .11801E-05
  27  norm          .10000E-03    1.9112        .22980E-06** at limit **
  28  Normalizat    1.0611        .24423        .39997E-05   -.26837E-03
  29  Prefactor     .96446        .28229       -.72765E-05    .18256E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 3.48351
  Prefactor  = 13.8738
  Prefactor  = 6.0053
  norm       = 41.0712
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 7.72468
  Prefactor  = 0.0001
  norm       = 18.4556
  Prefactor  = 0.000100003
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 111.92
  Prefactor  = 2.02923
  Prefactor  = 1.40342
  norm       = 0.891009
  Prefactor  = 0.0001
  Prefactor  = 19.3475
  Prefactor  = 25.6577
  norm       = 0.0001
  Prefactor  = 3.87257
  Prefactor  = 52.2698
  norm       = 0.0001
  Normalizat = 1.06112
  Prefactor  = 0.964461
 **********
 **   18 **HESSE 
 **********

 FCN=   4021.926     FROM HESSE     STATUS=OK           549 CALLS     4789 TOTAL
                     EDM=   .92E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    17.710        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     3.4835        104.69        .21725E-03   -1.5335    
   3  Prefactor     13.874        57.102        .10755E-03   -1.4963    
   4  Prefactor     6.0053        15.577        .16396E-03   -1.5218    
   5  norm          41.071        18.392        .62552E-04   -1.4425    
   6  Prefactor     .10000E-03    8.7518        .36007E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    2.7196        .10172E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    27.095        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          7.7247        4.4254        .96683E-04   -1.5152    
  10  Prefactor     .10000E-03    2.2140        .91931E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          18.456        19.113        .93231E-04   -1.4849    
  12  Prefactor     .10000E-03    455.25        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    23.639        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    6.6481        .15778E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    3.4001        .11373E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    34.855        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     111.92        151.82        .19004E-03   -1.3588    
  18  Prefactor     2.0292        174.79        .29151E-03   -1.5423    
  19  Prefactor     1.4034        1399.5        .32606E-02   -1.5471    
  20  norm          .89101        .46200        .29437E-04   -1.5519    
  21  Prefactor     .10000E-03    45.680        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     19.348        20.824        .45518E-03   -1.4828    
  23  Prefactor     25.658        314.21        .78910E-04   -1.4694    
  24  norm          .10000E-03    9.1627        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     3.8726        3.9083        .12148E-03   -1.5314    
  26  Prefactor     52.270        53.297        .55483E-04   -1.4261    
  27  norm          .10000E-03    1.9332        .85637E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    1.0611        .28255        .24094E-03   -.91010    
  29  Prefactor     .96446        .32405        .30816E-03   -.93924    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.20671e-10
Minuit parameter uncertainties:
  1  3.68305e-05
  2  38.2672
  3  56.3855
  4  15.5874
  5  18.3943
  6  2.66068e-05
  7  5.1928e-06
  8  0.000105417
  9  4.42561
  10  4.20111e-06
  11  19.1193
  12  0.00238582
  13  2.07826e-05
  14  3.62713e-05
  15  9.53216e-06
  16  8.90074e-06
  17  152.35
  18  37.7801
  19  90.8486
  20  0.462004
  21  9.04211e-05
  22  20.8315
  23  180.768
  24  3.99989e-06
  25  3.90856
  26  53.3461
  27  4.06706e-06
  28  0.28295
  29  0.324706
Done.

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

Extracting fit parameters...

4FGL J1033.1+4115
   Spectrum: PowerLaw
339    Prefactor:  1.000e-04  3.627e-05  1.000e-04  1.000e+04 ( 1.000e-12)
340        Index:  2.412e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
341        Scale:  6.847e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
678    Prefactor:  9.645e-01  3.247e-01  0.000e+00  1.000e+01 ( 1.000e+00)
679        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
680        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
677   Normalization:  1.061e+00  2.830e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 158.275 41.262
Photon Flux Upper Limit: 1.06e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.19e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/977452/likelihoodResults_497232001_497491201_4FGL_J1033.1+4115_daily_bin995.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) = 4021.92662672
delta logL = -0.00071706975632

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4021.92590969
delta logL = -3.88517946703e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10073E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.3979       1.0000          .0000       10.000    
     3 'Normalizat'    1.0612       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .96446       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6810E+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=   4021.926     FROM MIGRAD    STATUS=CONVERGED     87 CALLS      239 TOTAL
                     EDM=   .21E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10049E-03    91.121        .15905E-02** at limit **
   2  Index         2.3609        8.7753        .50000        .13190E-04
   3  Normalizat    1.0611        .19761E-01    .24093E-03   -.16297E-03
   4  Prefactor     .96446        .24312E-01    .30816E-03   -.70575E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100486
  Index      = 2.36093
  Normalizat = 1.06113
  Prefactor  = 0.964455
 **********
 **   18 **HESSE 
 **********

 FCN=   4021.926     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      268 TOTAL
                     EDM=   .97E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10049E-03    385.32        .31809E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.3609        5.3733        .50000       -.55603    
   3  Normalizat    1.0611        .43058E-01    .48185E-04   -.91010    
   4  Prefactor     .96446        .52975E-01    .12326E-04   -.93924    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 9.68049e-09
Minuit parameter uncertainties:
  1  0.0275415
  2  641.2
  3  0.0430596
  4  0.0529775
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/977452': 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) = 4021.9259095
delta logL = 1.59004230227e-07

Extracting fit parameters...

4FGL J1033.1+4115
   Spectrum: PowerLaw
339    Prefactor:  1.005e-04  2.754e-02  1.000e-04  1.000e+04 ( 1.000e-12)
340        Index:  2.361e+00  6.412e+02  0.000e+00  1.000e+01 (-1.000e+00)
341        Scale:  6.847e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
678    Prefactor:  9.645e-01  5.298e-02  0.000e+00  1.000e+01 ( 1.000e+00)
679        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
680        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
677   Normalization:  1.061e+00  4.306e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 158.275 41.262

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/977452/cmap_HighResolution_497232001_497491201_4FGL_J1033.1+4115_daily_bin995.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.19e-03', job_status='DONE', photon_flux_upper_limit='1.06e-07', time_completed='2021-09-02 03:46:53.684039', job_id='977452', GAL2='0.96', fit_tolerance='1e-08', EG2='1.06', EG='1.06', time_epoch_completed='1630579613.68', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.96', dlogl='1.59e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.41' WHERE bin_id='995' AND source_name='4FGL J1033.1+4115' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  2 03:46:53 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0288>
Subject: Job 977452: <4FGL_J1033.1+4115_daily_bin995> in cluster <slac> Done

Job <4FGL_J1033.1+4115_daily_bin995> was submitted from host <rhel6-64n> by user <kocevski> in cluster <slac> at Thu Sep  2 03:30:24 2021
Job was executed on host(s) <bullet0288>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  2 03:30:33 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Sep  2 03:30:33 2021
Terminated at Thu Sep  2 03:46:54 2021
Results reported at Thu Sep  2 03:46:54 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1033.1+4115_daily_bin995 158.275 41.262 497232001 497491201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1033.1+4115 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   747.00 sec.
    Max Memory :                                 1258 MB
    Average Memory :                             270.75 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   980 sec.
    Turnaround time :                            990 sec.

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

