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


Performing analysis on: 4FGL_J1033.1+4115_daily_bin714
RA = 158.275, Dec = 41.262
tmin = 424396801, tmax = 424656001
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='974804', job_status='RUN', time_executed='2021-09-02 03:24:38.345072', time_epoch_executed='1630578278.35' WHERE source_name='4FGL J1033.1+4115' and cadence='daily' and bin_id='714'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/974804

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/974804/ft1_4FGL_J1033.1+4115_daily_bin714.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/974804/ft2_4FGL_J1033.1+4115_daily_bin714.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/974804/ft1_4FGL_J1033.1+4115_daily_bin714.fits outfile=/scratch/kocevski/974804/ft1_filteredMKT_4FGL_J1033.1+4115_daily_bin714.fits ra=158.275 dec=41.262 rad=12.0 tmin=424396801.0 tmax=424656001.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 5.14
user 4.85
sys 0.23

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/974804/ft1_filtered_4FGL_J1033.1+4115_daily_bin714.fits evtable="EVENTS" scfile=/scratch/kocevski/974804/ft2_4FGL_J1033.1+4115_daily_bin714.fits sctable="SC_DATA" expcube=/scratch/kocevski/974804/ltcube_424396801_424656001_4FGL_J1033.1+4115_daily_bin714.fits outfile=/scratch/kocevski/974804/expmap_424396801_424656001_4FGL_J1033.1+4115_daily_bin714.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/974804/ltcube_424396801_424656001_4FGL_J1033.1+4115_daily_bin714.fits
.....................!
real 191.85
user 187.19
sys 3.88

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/974804/ft1_filtered_4FGL_J1033.1+4115_daily_bin714.fits scfile=/scratch/kocevski/974804/ft2_4FGL_J1033.1+4115_daily_bin714.fits outfile=/scratch/kocevski/974804/cmap_424396801_424656001_4FGL_J1033.1+4115_daily_bin714.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.78
user 0.41
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/974804/ft1_filtered_4FGL_J1033.1+4115_daily_bin714.fits scfile=/scratch/kocevski/974804/ft2_4FGL_J1033.1+4115_daily_bin714.fits outfile=/scratch/kocevski/974804/cmap_HighResolution_424396801_424656001_4FGL_J1033.1+4115_daily_bin714.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.69
user 0.42
sys 0.15

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/974804/ft1_filtered_4FGL_J1033.1+4115_daily_bin714.fits', '/scratch/kocevski/974804/ft2_4FGL_J1033.1+4115_daily_bin714.fits', expMap='/scratch/kocevski/974804/expmap_424396801_424656001_4FGL_J1033.1+4115_daily_bin714.fits', expCube='/scratch/kocevski/974804/ltcube_424396801_424656001_4FGL_J1033.1+4115_daily_bin714.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/974804/Model_4FGL_J1033.1+4115_daily_bin714.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/974804/ft1_filtered_4FGL_J1033.1+4115_daily_bin714.fits
Spacecraft file(s): /scratch/kocevski/974804/ft2_4FGL_J1033.1+4115_daily_bin714.fits
Exposure map: /scratch/kocevski/974804/expmap_424396801_424656001_4FGL_J1033.1+4115_daily_bin714.fits
Exposure cube: /scratch/kocevski/974804/ltcube_424396801_424656001_4FGL_J1033.1+4115_daily_bin714.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/974804/Model_4FGL_J1033.1+4115_daily_bin714.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) = 1970.32832124

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10016E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    16.552       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    8.1806       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    5.2663       1.0000         .10000E-03   10000.    
    10 'Prefactor '    11.096       1.0000         .10000E-03   10000.    
    11 'norm      '    27.713       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10078E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    23.598       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10218E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    62.252       1.0000         .10000E-03   10000.    
    17 'Prefactor '    178.52       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10052E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .86347       1.0000         .10000E-03   10000.    
    21 'Prefactor '    1.8915       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10096E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .11061E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10179E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10031E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    .82568       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .61272       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=   1970.322     FROM MIGRAD    STATUS=CONVERGED    706 CALLS     3620 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    13.469        .52036E-05** at limit **
   2  Prefactor     16.555        17.526       -.51719E-06   -.89512E-04
   3  Prefactor     .10000E-03    10.361       -.22821E-05** at limit **
   4  Prefactor     .10000E-03    7.1772       -.16348E-06** at limit **
   5  norm          8.1793        17.453       -.39353E-05   -.85478E-03
   6  Prefactor     .10000E-03    2.0401        .26399E-07** at limit **
   7  Prefactor     .10000E-03    2.3285       -.79146E-08** at limit **
   8  Prefactor     .10000E-03    19.221       -.11403E-04** at limit **
   9  norm          5.2663        4.6252        .20846E-06   -.36063E-04
  10  Prefactor     11.096        7.4702       -.70010E-07   -.56770E-05
  11  norm          27.716        19.126        .55257E-06    .39686E-04
  12  Prefactor     .10000E-03    24.620        .23361E-04** at limit **
  13  Prefactor     .10000E-03    28.596        .13545E-04** at limit **
  14  Prefactor     23.598        12.352        .25318E-05    .11575E-03
  15  Prefactor     .10000E-03    4.9513        .23685E-06** at limit **
  16  Prefactor     62.218        77.668       -.33032E-04    .16694E-04
  17  Prefactor     178.52        159.13        .78579E-06    .34988E-05
  18  Prefactor     .10000E-03    48.071       -.30326E-04** at limit **
  19  Prefactor     .10000E-03    157.09       -.12720E-03** at limit **
  20  norm          .86364        .50522        .65135E-07    .92606E-03
  21  Prefactor     1.8813        128.33       -.47486E-05    .43293E-04
  22  Prefactor     .10000E-03    19.673       -.69535E-05** at limit **
  23  Prefactor     .10000E-03    99.620        .57781E-04** at limit **
  24  norm          .10000E-03    35.812       -.24376E-04** at limit **
  25  Prefactor     .10000E-03    8.4925        .81779E-06** at limit **
  26  Prefactor     .10000E-03    74.606        .54016E-04** at limit **
  27  norm          .10000E-03    3.8263        .22791E-07** at limit **
  28  Normalizat    .82552        .25055        .22857E-05    .17155E-03
  29  Prefactor     .61294        .29879        .91317E-06    .12116E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 16.5555
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 8.17933
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 5.2663
  Prefactor  = 11.0958
  norm       = 27.7162
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 23.5984
  Prefactor  = 0.0001
  Prefactor  = 62.2185
  Prefactor  = 178.518
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.863637
  Prefactor  = 1.88131
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 0.825515
  Prefactor  = 0.61294
 **********
 **   18 **HESSE 
 **********

 FCN=   1970.322     FROM HESSE     STATUS=OK           537 CALLS     4157 TOTAL
                     EDM=   .32E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    13.483        .15887E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     16.555        17.499        .98445E-04   -1.4894    
   3  Prefactor     .10000E-03    10.362        .13957E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    7.2121        .11614E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          8.1793        17.560        .70086E-03   -1.5136    
   6  Prefactor     .10000E-03    2.0416        .61919E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    2.3369        .66099E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    19.230        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          5.2663        4.6217        .85462E-04   -1.5249    
  10  Prefactor     11.096        7.4784        .94421E-04   -1.5042    
  11  norm          27.716        19.131        .76101E-04   -1.4655    
  12  Prefactor     .10000E-03    24.605        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    28.615        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     23.598        12.413        .82459E-04   -1.4736    
  15  Prefactor     .10000E-03    4.9651        .96428E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     62.218        77.690        .50858E-04   -1.4129    
  17  Prefactor     178.52        159.55        .15104E-03   -1.3028    
  18  Prefactor     .10000E-03    48.141        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    156.69        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .86364        .50536        .22721E-04   -1.5522    
  21  Prefactor     1.8813        127.25        .30253E-03   -1.5434    
  22  Prefactor     .10000E-03    19.674        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    99.521        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10000E-03    35.870        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    8.5964        .12607E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    74.537        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          .10000E-03    3.8311        .84787E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    .82552        .29575        .20962E-03   -.99129    
  29  Prefactor     .61294        .34948        .30137E-03   -1.0704    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.15919e-09
Minuit parameter uncertainties:
  1  4.05782e-06
  2  17.5045
  3  2.87544e-06
  4  1.01871e-05
  5  17.5713
  6  2.75407e-07
  7  1.272e-06
  8  6.55252e-06
  9  4.62204
  10  7.47903
  11  19.1354
  12  1.18788e-06
  13  9.5287e-05
  14  12.4143
  15  4.01244e-05
  16  77.8174
  17  159.943
  18  6.15198e-05
  19  4.28682e-05
  20  0.505358
  21  31.0131
  22  2.63686e-05
  23  2.33456e-05
  24  0.000182463
  25  1.93766e-05
  26  1.71789e-05
  27  1.24308e-06
  28  0.296327
  29  0.350727
Done.

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

Extracting fit parameters...

4FGL J1033.1+4115
   Spectrum: PowerLaw
339    Prefactor:  2.360e+01  1.241e+01  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:  6.129e-01  3.507e-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:  8.255e-01  2.963e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 8.71
Ra Dec: 158.275 41.262
Photon Index (Fixed Index): 2.41 +/- 0.00
Photon Flux (Fixed Index): 1.73e-07 +/- 9.11e-08
Energy Flux (Fixed Index): 5.59e-05 +/- 2.94e-05

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) = 1969.89616113
delta logL = 0.425597202662

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 1969.89601269
delta logL = 0.425745637657

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    15.645       1.0000         .10000E-03   10000.    
     2 'Index     '    2.9642       1.0000          .0000       10.000    
     3 'Normalizat'    .74304       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .68635       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=   1969.896     FROM MIGRAD    STATUS=CONVERGED     81 CALLS      288 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     15.647        13.346        .70889E-04   -.17906E-02
   2  Index         2.9643        .68447        .29435E-02   -.43074E-03
   3  Normalizat    .74303        .29595        .21899E-03    .77327E-04
   4  Prefactor     .68630        .35985        .28630E-03    .19432E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 15.6468
  Index      = 2.96429
  Normalizat = 0.743028
  Prefactor  = 0.686299
 **********
 **   18 **HESSE 
 **********

 FCN=   1969.896     FROM HESSE     STATUS=OK            23 CALLS      311 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     15.647        12.488        .14178E-04   -1.4917    
   2  Index         2.9643        .64017        .11774E-03   -.41932    
   3  Normalizat    .74303        .29537        .87596E-05   -1.0222    
   4  Prefactor     .68630        .35934        .57260E-04   -1.0407    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.3836e-09
Minuit parameter uncertainties:
  1  12.4901
  2  0.64229
  3  0.296005
  4  0.360566
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/974804': 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) = 1969.89601242
delta logL = 0.425745909567

Extracting fit parameters...

4FGL J1033.1+4115
   Spectrum: PowerLaw
339    Prefactor:  1.565e+01  1.249e+01  1.000e-04  1.000e+04 ( 1.000e-12)
340        Index:  2.964e+00  6.423e-01  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:  6.863e-01  3.606e-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:  7.430e-01  2.960e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 10.06
Ra Dec: 158.275 41.262
Photon Index (Free Index): 2.96 +/- 0.64
Photon Flux (Free Index): 2.39e-07 +/- 1.19e-07
Energy Flux (Free Index): 4.86e-05 +/- 2.17e-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/974804/cmap_HighResolution_424396801_424656001_4FGL_J1033.1+4115_daily_bin714.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.73e-07', energy_flux2='4.86e-05', photon_flux_error='9.11e-08', dlogl='4.26e-01', energy_flux='5.59e-05', photon_flux2='2.39e-07', job_status='DONE', time_completed='2021-09-02 03:32:57.184885', photon_index_error2='0.64', photon_index2='2.96', ts='8.71', fit_tolerance='1e-08', GAL='0.61', photon_index_error='0.00', energy_flux_error2='2.17e-05', EG='0.83', time_epoch_completed='1630578777.18', return_code='0', job_id='974804', GAL2='0.69', EG2='0.74', return_code2='0', energy_flux_error='2.94e-05', photon_flux_error2='1.19e-07', ts2='10.06', photon_index='2.41' WHERE bin_id='714' AND source_name='4FGL J1033.1+4115' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  2 03:32:57 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0230>
Subject: Job 974804: <4FGL_J1033.1+4115_daily_bin714> in cluster <slac> Done

Job <4FGL_J1033.1+4115_daily_bin714> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Thu Sep  2 03:20:34 2021
Job was executed on host(s) <bullet0230>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  2 03:20:52 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:20:52 2021
Terminated at Thu Sep  2 03:32:57 2021
Results reported at Thu Sep  2 03:32:57 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1033.1+4115_daily_bin714 158.275 41.262 424396801 424656001 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 :                                   495.29 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             238.44 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   725 sec.
    Turnaround time :                            743 sec.

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

