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


Performing analysis on: 4FGL_J1033.1+4115_daily_bin650
RA = 158.275, Dec = 41.262
tmin = 407808001, tmax = 408067201
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='974715', job_status='RUN', time_executed='2021-09-02 03:24:06.664479', time_epoch_executed='1630578246.66' WHERE source_name='4FGL J1033.1+4115' and cadence='daily' and bin_id='650'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/974715

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/974715/ft1_4FGL_J1033.1+4115_daily_bin650.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/974715/ft2_4FGL_J1033.1+4115_daily_bin650.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/974715/ft1_4FGL_J1033.1+4115_daily_bin650.fits outfile=/scratch/kocevski/974715/ft1_filteredMKT_4FGL_J1033.1+4115_daily_bin650.fits ra=158.275 dec=41.262 rad=12.0 tmin=407808001.0 tmax=408067201.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 4.39
user 3.88
sys 0.24

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/974715/ft2_4FGL_J1033.1+4115_daily_bin650.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/974715/ft1_filteredMKT_4FGL_J1033.1+4115_daily_bin650.fits evtable="EVENTS" outfile="/scratch/kocevski/974715/ft1_filtered_4FGL_J1033.1+4115_daily_bin650.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.81
user 0.34
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/974715/ft1_filtered_4FGL_J1033.1+4115_daily_bin650.fits" evtable="EVENTS" scfile=/scratch/kocevski/974715/ft2_4FGL_J1033.1+4115_daily_bin650.fits sctable="SC_DATA" outfile=/scratch/kocevski/974715/ltcube_407808001_408067201_4FGL_J1033.1+4115_daily_bin650.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/974715/ft2_4FGL_J1033.1+4115_daily_bin650.fits
.....................!
real 14.72
user 13.89
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/974715/ft1_filtered_4FGL_J1033.1+4115_daily_bin650.fits evtable="EVENTS" scfile=/scratch/kocevski/974715/ft2_4FGL_J1033.1+4115_daily_bin650.fits sctable="SC_DATA" expcube=/scratch/kocevski/974715/ltcube_407808001_408067201_4FGL_J1033.1+4115_daily_bin650.fits outfile=/scratch/kocevski/974715/expmap_407808001_408067201_4FGL_J1033.1+4115_daily_bin650.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/974715/ltcube_407808001_408067201_4FGL_J1033.1+4115_daily_bin650.fits
.....................!
real 192.16
user 186.40
sys 5.02

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/974715/ft1_filtered_4FGL_J1033.1+4115_daily_bin650.fits scfile=/scratch/kocevski/974715/ft2_4FGL_J1033.1+4115_daily_bin650.fits outfile=/scratch/kocevski/974715/cmap_407808001_408067201_4FGL_J1033.1+4115_daily_bin650.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.72
user 0.37
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/974715/ft1_filtered_4FGL_J1033.1+4115_daily_bin650.fits scfile=/scratch/kocevski/974715/ft2_4FGL_J1033.1+4115_daily_bin650.fits outfile=/scratch/kocevski/974715/cmap_HighResolution_407808001_408067201_4FGL_J1033.1+4115_daily_bin650.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.64
user 0.40
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.2731       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10159E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10370E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    9.0707       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .65423       1.0000         .10000E-03   10000.    
     8 'Prefactor '    10.269       1.0000         .10000E-03   10000.    
     9 'norm      '    6.1483       1.0000         .10000E-03   10000.    
    10 'Prefactor '    2.8811       1.0000         .10000E-03   10000.    
    11 'norm      '    .31484E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    1.8379       1.0000         .10000E-03   10000.    
    15 'Prefactor '    3.4158       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10408E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    3.0206       1.0000         .10000E-03   10000.    
    18 'Prefactor '    21.002       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    1.7908       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10794E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10760E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    8.6372       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.1301       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .72323       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=   4023.596     FROM MIGRAD    STATUS=CONVERGED    769 CALLS     3725 TOTAL
                     EDM=   .89E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.2731        14.054        .17472E-05    .37215E-04
   2  Prefactor     .10000E-03    28.365        .13007E-05** at limit **
   3  Prefactor     .10000E-03    63.146        .15033E-05** at limit **
   4  Prefactor     .10000E-03    4.6744       -.48639E-07** at limit **
   5  norm          .10000E-03    14.454       -.93567E-06** at limit **
   6  Prefactor     9.0738        7.1919       -.31374E-07   -.30403E-05
   7  Prefactor     .66130        8.0977       -.12528E-05   -.18152E-03
   8  Prefactor     10.230        37.527       -.81513E-05   -.24895E-03
   9  norm          6.1485        3.6840        .14966E-07    .13492E-04
  10  Prefactor     2.8731        6.0973        .97220E-06    .41328E-04
  11  norm          .10017E-03    16.214        .51568E-05** at limit **
  12  Prefactor     .10000E-03    19.831       -.10393E-06** at limit **
  13  Prefactor     .10000E-03    22.077       -.30598E-07** at limit **
  14  Prefactor     1.8382        4.7943        .11984E-07   -.30766E-03
  15  Prefactor     3.4144        5.8465        .54725E-06   -.74253E-04
  16  Prefactor     .10000E-03    13.403        .22467E-06** at limit **
  17  Prefactor     3.2289        704.49       -.28269E-04   -.14644E-04
  18  Prefactor     20.992        21.508       -.38625E-06   -.13162E-04
  19  Prefactor     .10000E-03    6212.3        .37766E-04** at limit **
  20  norm          1.7908        .42142       -.10760E-07   -.31625E-03
  21  Prefactor     .10000E-03    7.1117       -.10661E-06** at limit **
  22  Prefactor     .10000E-03    9.8075       -.12536E-06** at limit **
  23  Prefactor     .10000E-03    45.835       -.98348E-06** at limit **
  24  norm          8.6375        10.600       -.51796E-07    .89401E-05
  25  Prefactor     .10000E-03    1.3518       -.39838E-06** at limit **
  26  Prefactor     .10000E-03    16.344        .58659E-06** at limit **
  27  norm          .10000E-03    .97526       -.66963E-07** at limit **
  28  Normalizat    1.1299        .20074       -.84146E-06   -.34833E-03
  29  Prefactor     .72337        .24346        .21241E-05   -.21220E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 2.2731
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 9.0738
  Prefactor  = 0.661301
  Prefactor  = 10.2302
  norm       = 6.14852
  Prefactor  = 2.87308
  norm       = 0.000100166
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.83817
  Prefactor  = 3.41443
  Prefactor  = 0.0001
  Prefactor  = 3.22894
  Prefactor  = 20.9924
  Prefactor  = 0.000100004
  norm       = 1.79082
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 8.63747
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 1.12987
  Prefactor  = 0.723366
 **********
 **   18 **HESSE 
 **********

 FCN=   4023.596     FROM HESSE     STATUS=OK           551 CALLS     4276 TOTAL
                     EDM=   .49E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.2731        14.358        .13619E-02   -1.5406    
   2  Prefactor     .10000E-03    28.503        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    63.687        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    4.6825        .13392E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    14.756        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     9.0738        7.1891        .13308E-03   -1.5105    
   7  Prefactor     .66130        7.4292        .28918E-03   -1.5545    
   8  Prefactor     10.230        38.219        .12503E-03   -1.5068    
   9  norm          6.1485        3.6828        .91004E-04   -1.5212    
  10  Prefactor     2.8731        5.7392        .18326E-03   -1.5369    
  11  norm          .10017E-03    40.445        .38644E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    19.836        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    22.098        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     1.8382        4.7393        .21127E-03   -1.5437    
  15  Prefactor     3.4144        5.8536        .95603E-03   -1.5338    
  16  Prefactor     .10000E-03    13.405        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     3.2289        688.95        .23350E-03   -1.5349    
  18  Prefactor     20.992        21.499        .87401E-04   -1.4791    
  19  Prefactor     .10000E-03    6204.0        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          1.7908        .42176        .19299E-04   -1.5440    
  21  Prefactor     .10000E-03    7.1279        .16519E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    9.8463        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    45.831        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          8.6375        10.595        .13639E-03   -1.5120    
  25  Prefactor     .10000E-03    2.2250        .14256E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    16.344        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          .10000E-03    .98272        .61166E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    1.1299        .23024        .20837E-03   -.88799    
  29  Prefactor     .72337        .27916        .31533E-03   -1.0262    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.89252e-09
Minuit parameter uncertainties:
  1  11.4296
  2  8.00135e-05
  3  0.000131708
  4  1.98634e-06
  5  3.97229e-05
  6  7.18979
  7  4.4334
  8  38.3109
  9  3.68291
  10  5.74028
  11  0.00518364
  12  9.73658e-06
  13  7.77782e-06
  14  4.7403
  15  5.85461
  16  2.18459e-06
  17  95.4638
  18  21.5069
  19  0.0066265
  20  0.421758
  21  7.58948e-06
  22  9.61305e-06
  23  6.26417e-05
  24  10.5976
  25  1.04184e-05
  26  1.95006e-05
  27  1.39278e-06
  28  0.230449
  29  0.279699
Done.

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

Extracting fit parameters...

4FGL J1033.1+4115
   Spectrum: PowerLaw
339    Prefactor:  1.838e+00  4.740e+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

GAL_V02
   Spectrum: PowerLaw
678    Prefactor:  7.234e-01  2.797e-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.130e+00  2.304e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/974715/likelihoodResults_407808001_408067201_4FGL_J1033.1+4115_daily_bin650.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) = 4023.57148924
delta logL = 0.0246635781632

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4023.5664014
delta logL = 0.0297514170061

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.3538       1.0000         .10000E-03   10000.    
     2 'Index     '    2.1294       1.0000          .0000       10.000    
     3 'Normalizat'    1.1332       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .71891       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.

 FCN=   4023.566     FROM MIGRAD    STATUS=CONVERGED     46 CALLS      197 TOTAL
                     EDM=   .12E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.3539        5.6083        .66790E-02   -.29056E-02
   2  Index         2.1295        1.0896        .25094E-01    .28724E-04
   3  Normalizat    1.1332        .19197        .36787E-01    .11899E-05
   4  Prefactor     .71889        .23899        .71445E-01    .16011E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.35386
  Index      = 2.12948
  Normalizat = 1.13317
  Prefactor  = 0.718889
 **********
 **   18 **HESSE 
 **********

 FCN=   4023.566     FROM HESSE     STATUS=OK            29 CALLS      226 TOTAL
                     EDM=   .14E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.3539        5.3409        .21088E-03   -1.5401    
   2  Index         2.1295        1.0445        .10038E-02   -.61151    
   3  Normalizat    1.1332        .22271        .20809E-03   -.88694    
   4  Prefactor     .71889        .27643        .31619E-03   -1.0279    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.37465e-08
Minuit parameter uncertainties:
  1  5.34198
  2  1.05617
  3  0.222896
  4  0.276965
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/974715': 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) = 4023.56640139
delta logL = 0.0297514265612

Extracting fit parameters...

4FGL J1033.1+4115
   Spectrum: PowerLaw
339    Prefactor:  2.354e+00  5.342e+00  1.000e-04  1.000e+04 ( 1.000e-12)
340        Index:  2.129e+00  1.056e+00  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:  7.189e-01  2.770e-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.133e+00  2.229e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.18
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/974715/cmap_HighResolution_407808001_408067201_4FGL_J1033.1+4115_daily_bin650.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.05e-03', job_status='DONE', photon_flux_upper_limit='1.04e-07', time_completed='2021-09-02 03:36:16.905069', job_id='974715', GAL2='0.72', fit_tolerance='1e-08', EG2='1.13', EG='1.13', time_epoch_completed='1630578976.91', return_code2='0', ts='0.18', comment='SUCCESS', return_code='0', GAL='0.72', dlogl='2.98e-02', ts2='0.24', photon_index_error='0.00', photon_index='2.41' WHERE bin_id='650' AND source_name='4FGL J1033.1+4115' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  2 03:36:16 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0048>
Subject: Job 974715: <4FGL_J1033.1+4115_daily_bin650> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1033.1+4115_daily_bin650 158.275 41.262 407808001 408067201 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 :                                   721.09 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             276.78 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   937 sec.
    Turnaround time :                            948 sec.

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

