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


Performing analysis on: 4FGL_J1033.1+4115_daily_bin988
RA = 158.275, Dec = 41.262
tmin = 495417601, tmax = 495676801
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='977441', job_status='RUN', time_executed='2021-09-02 03:33:26.373872', time_epoch_executed='1630578806.37' WHERE source_name='4FGL J1033.1+4115' and cadence='daily' and bin_id='988'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/977441

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/977441/ft1_4FGL_J1033.1+4115_daily_bin988.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/977441/ft2_4FGL_J1033.1+4115_daily_bin988.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/977441/ft1_4FGL_J1033.1+4115_daily_bin988.fits outfile=/scratch/kocevski/977441/ft1_filteredMKT_4FGL_J1033.1+4115_daily_bin988.fits ra=158.275 dec=41.262 rad=12.0 tmin=495417601.0 tmax=495676801.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.97
user 2.75
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/977441/ft2_4FGL_J1033.1+4115_daily_bin988.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/977441/ft1_filteredMKT_4FGL_J1033.1+4115_daily_bin988.fits evtable="EVENTS" outfile="/scratch/kocevski/977441/ft1_filtered_4FGL_J1033.1+4115_daily_bin988.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.45
user 0.31
sys 0.13

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/977441/ft1_filtered_4FGL_J1033.1+4115_daily_bin988.fits evtable="EVENTS" scfile=/scratch/kocevski/977441/ft2_4FGL_J1033.1+4115_daily_bin988.fits sctable="SC_DATA" expcube=/scratch/kocevski/977441/ltcube_495417601_495676801_4FGL_J1033.1+4115_daily_bin988.fits outfile=/scratch/kocevski/977441/expmap_495417601_495676801_4FGL_J1033.1+4115_daily_bin988.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/977441/ltcube_495417601_495676801_4FGL_J1033.1+4115_daily_bin988.fits
.....................!
real 158.94
user 154.29
sys 4.24

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/977441/ft1_filtered_4FGL_J1033.1+4115_daily_bin988.fits scfile=/scratch/kocevski/977441/ft2_4FGL_J1033.1+4115_daily_bin988.fits outfile=/scratch/kocevski/977441/cmap_495417601_495676801_4FGL_J1033.1+4115_daily_bin988.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.48
user 0.31
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/977441/ft1_filtered_4FGL_J1033.1+4115_daily_bin988.fits scfile=/scratch/kocevski/977441/ft2_4FGL_J1033.1+4115_daily_bin988.fits outfile=/scratch/kocevski/977441/cmap_HighResolution_495417601_495676801_4FGL_J1033.1+4115_daily_bin988.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.50
user 0.33
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    12.663       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    18.209       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .93930E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .34945E-01   1.0000         .10000E-03   10000.    
     8 'Prefactor '    37.558       1.0000         .10000E-03   10000.    
     9 'norm      '    10.108       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10591E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    15.666       1.0000         .10000E-03   10000.    
    12 'Prefactor '    7.6577       1.0000         .10000E-03   10000.    
    13 'Prefactor '    20.066       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    7.7510       1.0000         .10000E-03   10000.    
    16 'Prefactor '    40.665       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    24.281       1.0000         .10000E-03   10000.    
    19 'Prefactor '    33.883       1.0000         .10000E-03   10000.    
    20 'norm      '    .29578       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    26.219       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    .84737       1.0000         .10000E-01   10.000    
    29 'Prefactor '    1.1521       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=   5769.799     FROM MIGRAD    STATUS=CONVERGED    776 CALLS     3773 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    7.2701        .51435E-06** at limit **
   2  Prefactor     12.659        23.588        .23097E-05    .13200E-03
   3  Prefactor     .10000E-03    16.175        .13769E-06** at limit **
   4  Prefactor     .10000E-03    3.9113       -.85420E-06** at limit **
   5  norm          18.212        14.426        .17365E-06   -.35437E-04
   6  Prefactor     .10000E-03    34.797        .11388E-04** at limit **
   7  Prefactor     .13620E-01    294.50        .15344E-04   -.38806E-04
   8  Prefactor     37.551        38.684        .78218E-06   -.16863E-04
   9  norm          10.109        3.5553        .29263E-07    .60828E-04
  10  Prefactor     .10000E-03    6.2234       -.39269E-06** at limit **
  11  norm          15.671        11.156       -.83773E-06   -.21811E-03
  12  Prefactor     7.7011        49.698       -.12887E-05    .49241E-04
  13  Prefactor     20.064        42.164       -.12869E-05   -.51080E-04
  14  Prefactor     .10000E-03    3.6952        .39527E-06** at limit **
  15  Prefactor     7.7538        7.2216       -.11300E-06   -.13636E-03
  16  Prefactor     40.660        37.405       -.10258E-05   -.63534E-04
  17  Prefactor     .10000E-03    78.054        .50646E-06** at limit **
  18  Prefactor     24.274        32.604       -.67201E-06    .89600E-04
  19  Prefactor     33.897        49.392        .78562E-06    .23923E-04
  20  norm          .29573        .20653       -.10321E-07    .27110E-03
  21  Prefactor     .10004E-03    42.259        .15676E-04** at limit **
  22  Prefactor     .10000E-03    17.003        .39302E-05** at limit **
  23  Prefactor     .10001E-03    624.79        .24717E-04** at limit **
  24  norm          26.213        19.281        .17055E-06    .55034E-04
  25  Prefactor     .10000E-03    1.4541        .51050E-06** at limit **
  26  Prefactor     .10000E-03    14.552        .37854E-07** at limit **
  27  norm          .10000E-03    .79252       -.68965E-07** at limit **
  28  Normalizat    .84756        .19959       -.13891E-04    .24435E-03
  29  Prefactor     1.1521        .24777        .15814E-04   -.47461E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 12.659
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 18.2116
  Prefactor  = 0.0001
  Prefactor  = 0.01362
  Prefactor  = 37.5506
  norm       = 10.1091
  Prefactor  = 0.0001
  norm       = 15.6707
  Prefactor  = 7.70106
  Prefactor  = 20.0638
  Prefactor  = 0.0001
  Prefactor  = 7.75381
  Prefactor  = 40.6601
  Prefactor  = 0.0001
  Prefactor  = 24.2736
  Prefactor  = 33.8967
  norm       = 0.295733
  Prefactor  = 0.00010004
  Prefactor  = 0.000100002
  Prefactor  = 0.000100006
  norm       = 26.2132
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 0.847561
  Prefactor  = 1.15214
 **********
 **   18 **HESSE 
 **********

 FCN=   5769.799     FROM HESSE     STATUS=OK           561 CALLS     4334 TOTAL
                     EDM=   .19E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    7.2765        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     12.659        23.565        .11256E-03   -1.4996    
   3  Prefactor     .10000E-03    16.197        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    3.9514        .14689E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          18.212        14.239        .93860E-04   -1.4854    
   6  Prefactor     .10000E-03    32.782        .27356E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .13620E-01    5.7104        .34492E-01   -1.5685    
   8  Prefactor     37.551        38.694        .65398E-04   -1.4482    
   9  norm          10.109        3.5428        .81852E-04   -1.5072    
  10  Prefactor     .10000E-03    6.3986        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          15.671        11.152        .10119E-03   -1.4916    
  12  Prefactor     7.7011        49.839        .14491E-03   -1.5153    
  13  Prefactor     20.064        42.235        .89412E-04   -1.4812    
  14  Prefactor     .10000E-03    3.8698        .28533E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     7.7538        7.2304        .14403E-03   -1.5151    
  16  Prefactor     40.660        37.374        .62859E-04   -1.4432    
  17  Prefactor     .10000E-03    78.176        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     24.274        32.613        .81292E-04   -1.4722    
  19  Prefactor     33.897        49.396        .68842E-04   -1.4543    
  20  norm          .29573        .20606        .27726E-04   -1.5599    
  21  Prefactor     .10004E-03    44.638        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    17.202        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10001E-03    625.70        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          26.213        19.170        .78236E-04   -1.4684    
  25  Prefactor     .10000E-03    1.4718        .89505E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    14.554        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          .10000E-03    .79670        .66066E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    .84756        .20386        .24949E-03   -.98328    
  29  Prefactor     1.1521        .25046        .27322E-03   -.87817    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.92078e-09
Minuit parameter uncertainties:
  1  3.25867e-05
  2  23.582
  3  1.00949e-05
  4  6.2472e-05
  5  14.2417
  6  0.000173895
  7  0.555765
  8  38.7203
  9  3.54288
  10  7.57216e-05
  11  11.1535
  12  39.2298
  13  42.2983
  14  9.68783e-06
  15  7.23122
  16  37.3955
  17  0.000177195
  18  32.637
  19  49.4552
  20  0.206063
  21  0.00268375
  22  0.000368383
  23  0.00377775
  24  19.174
  25  9.67826e-06
  26  5.43459e-06
  27  3.97098e-06
  28  0.204044
  29  0.250713
Done.

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

Extracting fit parameters...

4FGL J1033.1+4115
   Spectrum: PowerLaw
339    Prefactor:  1.000e-04  9.688e-06  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:  1.152e+00  2.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.476e-01  2.040e-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: 6.53e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.05e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/977441/likelihoodResults_495417601_495676801_4FGL_J1033.1+4115_daily_bin988.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) = 5769.80038897
delta logL = -0.00123388020529

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5769.79915517
delta logL = -7.91433194536e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4095       1.0000          .0000       10.000    
     3 'Normalizat'    .84757       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1522       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=   5769.799     FROM MIGRAD    STATUS=CONVERGED     90 CALLS      246 TOTAL
                     EDM=   .18E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10005E-03    916.60        .28546E-03** at limit **
   2  Index         2.3930        8.5949        .50000        .41800E-05
   3  Normalizat    .84756        .16527        .24949E-03   -.11119E-04
   4  Prefactor     1.1521        .20791        .27322E-03   -.85716E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100054
  Index      = 2.393
  Normalizat = 0.847557
  Prefactor  = 1.15214
 **********
 **   18 **HESSE 
 **********

 FCN=   5769.799     FROM HESSE     STATUS=OK            29 CALLS      275 TOTAL
                     EDM=   .22E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10005E-03    4.1057        .57092E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.3930        6.9350        .50000       -.54849    
   3  Normalizat    .84756        .19469        .99796E-05   -.98328    
   4  Prefactor     1.1521        .24575        .10929E-04   -.87817    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.1769e-08
Minuit parameter uncertainties:
  1  0.000943624
  2  119.384
  3  0.194853
  4  0.245993
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/977441': 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) = 5769.79915507
delta logL = 1.69757186086e-08

Extracting fit parameters...

4FGL J1033.1+4115
   Spectrum: PowerLaw
339    Prefactor:  1.001e-04  9.436e-04  1.000e-04  1.000e+04 ( 1.000e-12)
340        Index:  2.393e+00  1.194e+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:  1.152e+00  2.460e-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.476e-01  1.949e-01  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/977441/cmap_HighResolution_495417601_495676801_4FGL_J1033.1+4115_daily_bin988.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.05e-03', job_status='DONE', photon_flux_upper_limit='6.53e-08', time_completed='2021-09-02 03:45:38.425291', job_id='977441', GAL2='1.15', fit_tolerance='1e-08', EG2='0.85', EG='0.85', time_epoch_completed='1630579538.43', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.15', dlogl='1.70e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.41' WHERE bin_id='988' AND source_name='4FGL J1033.1+4115' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  2 03:45:38 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0175>
Subject: Job 977441: <4FGL_J1033.1+4115_daily_bin988> in cluster <slac> Done

Job <4FGL_J1033.1+4115_daily_bin988> was submitted from host <rhel6-64n> by user <kocevski> in cluster <slac> at Thu Sep  2 03:30:23 2021
Job was executed on host(s) <bullet0175>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  2 03:30:30 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:30 2021
Terminated at Thu Sep  2 03:45:39 2021
Results reported at Thu Sep  2 03:45:39 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1033.1+4115_daily_bin988 158.275 41.262 495417601 495676801 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 :                                   727.01 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             297.34 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   908 sec.
    Turnaround time :                            916 sec.

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

