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


Performing analysis on: 4FGL_J1033.1+4115_daily_bin1033
RA = 158.275, Dec = 41.262
tmin = 507081601, tmax = 507340801
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='977512', job_status='RUN', time_executed='2021-09-02 03:30:55.986850', time_epoch_executed='1630578655.99' WHERE source_name='4FGL J1033.1+4115' and cadence='daily' and bin_id='1033'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/977512

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/977512/ft1_4FGL_J1033.1+4115_daily_bin1033.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/977512/ft2_4FGL_J1033.1+4115_daily_bin1033.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/977512/ft1_4FGL_J1033.1+4115_daily_bin1033.fits outfile=/scratch/kocevski/977512/ft1_filteredMKT_4FGL_J1033.1+4115_daily_bin1033.fits ra=158.275 dec=41.262 rad=12.0 tmin=507081601.0 tmax=507340801.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.58
user 4.36
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/977512/ft1_filtered_4FGL_J1033.1+4115_daily_bin1033.fits" evtable="EVENTS" scfile=/scratch/kocevski/977512/ft2_4FGL_J1033.1+4115_daily_bin1033.fits sctable="SC_DATA" outfile=/scratch/kocevski/977512/ltcube_507081601_507340801_4FGL_J1033.1+4115_daily_bin1033.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/977512/ft2_4FGL_J1033.1+4115_daily_bin1033.fits
.....................!
real 14.64
user 14.18
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/977512/ft1_filtered_4FGL_J1033.1+4115_daily_bin1033.fits evtable="EVENTS" scfile=/scratch/kocevski/977512/ft2_4FGL_J1033.1+4115_daily_bin1033.fits sctable="SC_DATA" expcube=/scratch/kocevski/977512/ltcube_507081601_507340801_4FGL_J1033.1+4115_daily_bin1033.fits outfile=/scratch/kocevski/977512/expmap_507081601_507340801_4FGL_J1033.1+4115_daily_bin1033.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/977512/ltcube_507081601_507340801_4FGL_J1033.1+4115_daily_bin1033.fits
.....................!
real 193.23
user 186.69
sys 4.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/977512/ft1_filtered_4FGL_J1033.1+4115_daily_bin1033.fits scfile=/scratch/kocevski/977512/ft2_4FGL_J1033.1+4115_daily_bin1033.fits outfile=/scratch/kocevski/977512/cmap_507081601_507340801_4FGL_J1033.1+4115_daily_bin1033.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.57
user 0.40
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/977512/ft1_filtered_4FGL_J1033.1+4115_daily_bin1033.fits scfile=/scratch/kocevski/977512/ft2_4FGL_J1033.1+4115_daily_bin1033.fits outfile=/scratch/kocevski/977512/cmap_HighResolution_507081601_507340801_4FGL_J1033.1+4115_daily_bin1033.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.65
user 0.40
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10040E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    1.3132       1.0000         .10000E-03   10000.    
     5 'norm      '    .10014E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    28.592       1.0000         .10000E-03   10000.    
     9 'norm      '    1.2505       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10073E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    36.069       1.0000         .10000E-03   10000.    
    13 'Prefactor '    7.7735       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10088E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .14762E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    68.912       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    12.188       1.0000         .10000E-03   10000.    
    20 'norm      '    1.9760       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    12.731       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    8.1334       1.0000         .10000E-03   10000.    
    25 'Prefactor '    4.5967       1.0000         .10000E-03   10000.    
    26 'Prefactor '    19.001       1.0000         .10000E-03   10000.    
    27 'norm      '    1.1658       1.0000         .10000E-03   10000.    
    28 'Normalizat'    .95073       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .89935       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=   4950.359     FROM MIGRAD    STATUS=CONVERGED    716 CALLS     3661 TOTAL
                     EDM=   .40E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    5.8844        .65312E-07** at limit **
   2  Prefactor     .10000E-03    11.954        .42447E-07** at limit **
   3  Prefactor     .10000E-03    30.910       -.71917E-06** at limit **
   4  Prefactor     1.3149        15.714        .20538E-04   -.13525E-03
   5  norm          .10000E-03    12.990        .44290E-06** at limit **
   6  Prefactor     .10000E-03    2.0633        .10936E-06** at limit **
   7  Prefactor     .10000E-03    1.8020        .34289E-06** at limit **
   8  Prefactor     28.585        36.908        .53073E-06   -.10307E-04
   9  norm          1.2504        1.3529        .33497E-07    .26821E-04
  10  Prefactor     .10000E-03    3.3453        .46691E-06** at limit **
  11  norm          .10000E-03    4.3266        .54774E-07** at limit **
  12  Prefactor     36.072        37.884       -.24294E-07   -.28076E-04
  13  Prefactor     7.7724        18.648        .91787E-06    .50542E-04
  14  Prefactor     .10000E-03    2.9615       -.54646E-06** at limit **
  15  Prefactor     .10000E-03    4.2731       -.86878E-07** at limit **
  16  Prefactor     .10000E-03    104.74       -.11095E-05** at limit **
  17  Prefactor     68.917        78.760       -.51196E-06   -.31472E-04
  18  Prefactor     .10000E-03    11.374        .39804E-06** at limit **
  19  Prefactor     12.074        186.05        .33711E-04    .38744E-04
  20  norm          1.9760        .42716       -.14736E-07   -.98688E-03
  21  Prefactor     .10000E-03    8.3117       -.26607E-07** at limit **
  22  Prefactor     12.732        17.893        .20260E-06   -.30610E-04
  23  Prefactor     .10000E-03    29.787        .13176E-05** at limit **
  24  norm          8.1346        14.580        .53877E-06   -.99759E-05
  25  Prefactor     4.5969        3.0695       -.15196E-07   -.65703E-04
  26  Prefactor     19.001        34.445        .16211E-06   -.64298E-05
  27  norm          1.1660        2.3753        .16125E-06   -.79046E-04
  28  Normalizat    .95067        .17307        .17129E-05    .14894E-03
  29  Prefactor     .89934        .21510       -.58408E-05   -.15454E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.31493
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 28.5849
  norm       = 1.25044
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 36.0722
  Prefactor  = 7.77237
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 68.9173
  Prefactor  = 0.0001
  Prefactor  = 12.0736
  norm       = 1.97602
  Prefactor  = 0.0001
  Prefactor  = 12.7324
  Prefactor  = 0.0001
  norm       = 8.13463
  Prefactor  = 4.59693
  Prefactor  = 19.0011
  norm       = 1.16598
  Normalizat = 0.950674
  Prefactor  = 0.899337
 **********
 **   18 **HESSE 
 **********

 FCN=   4950.359     FROM HESSE     STATUS=OK           545 CALLS     4206 TOTAL
                     EDM=   .91E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    5.8876        .16670E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    11.981        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    31.029        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     1.3149        15.987        .19228E-02   -1.5479    
   5  norm          .10000E-03    13.181        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    2.0721        .98697E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    1.8311        .92179E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     28.585        37.202        .74925E-04   -1.4638    
   9  norm          1.2504        1.3630        .83022E-04   -1.5484    
  10  Prefactor     .10000E-03    3.4684        .25105E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    4.3335        .14284E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     36.072        37.890        .66730E-04   -1.4506    
  13  Prefactor     7.7724        18.438        .14382E-03   -1.5150    
  14  Prefactor     .10000E-03    3.0234        .11820E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    4.3292        .28083E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    106.58        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     68.917        78.865        .48353E-04   -1.4046    
  18  Prefactor     .10000E-03    11.391        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     12.074        186.99        .11474E-03   -1.5013    
  20  norm          1.9760        .43039        .19707E-04   -1.5427    
  21  Prefactor     .10000E-03    8.3328        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     12.732        17.995        .11226E-03   -1.4994    
  23  Prefactor     .10000E-03    29.793        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          8.1346        14.563        .14058E-03   -1.5137    
  25  Prefactor     4.5969        3.0631        .94207E-04   -1.5279    
  26  Prefactor     19.001        34.336        .91884E-04   -1.4836    
  27  norm          1.1660        2.3131        .14432E-03   -1.5492    
  28  Normalizat    .95067        .20550        .21568E-03   -.94702    
  29  Prefactor     .89934        .25236        .28295E-03   -.96164    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.05919e-10
Minuit parameter uncertainties:
  1  9.37634e-06
  2  3.40728e-05
  3  5.54056e-05
  4  9.17265
  5  9.99164e-05
  6  8.26142e-06
  7  1.84227e-05
  8  37.2323
  9  1.36301
  10  3.61362e-05
  11  7.6119e-06
  12  37.9155
  13  18.4514
  14  5.27084e-05
  15  6.83938e-07
  16  0.000516534
  17  78.985
  18  4.12658e-05
  19  95.387
  20  0.430392
  21  3.09287e-06
  22  18.0023
  23  0.000110107
  24  14.5697
  25  3.06322
  26  34.3719
  27  2.31327
  28  0.205666
  29  0.252688
Done.

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

Extracting fit parameters...

4FGL J1033.1+4115
   Spectrum: PowerLaw
339    Prefactor:  1.000e-04  5.271e-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:  8.993e-01  2.527e-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:  9.507e-01  2.057e-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.64e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.13e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/977512/likelihoodResults_507081601_507340801_4FGL_J1033.1+4115_daily_bin1033.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) = 4950.36011678
delta logL = -0.0015778347888

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4950.35853977
delta logL = -8.21296453068e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10206E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4336       1.0000          .0000       10.000    
     3 'Normalizat'    .95048       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .89965       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=   4950.359     FROM MIGRAD    STATUS=CONVERGED     90 CALLS      237 TOTAL
                     EDM=   .17E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10001E-03    4.3758        .12024E-02** at limit **
   2  Index         2.4552        6.2015        .50000       -.61703E-04
   3  Normalizat    .95067        .19319        .21568E-03   -.26145E-04
   4  Prefactor     .89934        .24830        .28295E-03   -.85982E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100012
  Index      = 2.45515
  Normalizat = 0.950669
  Prefactor  = 0.899343
 **********
 **   18 **HESSE 
 **********

 FCN=   4950.359     FROM HESSE     STATUS=OK            29 CALLS      266 TOTAL
                     EDM=   .87E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10001E-03    3.1752        .24047E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.4552        6.2264        .50000       -.53399    
   3  Normalizat    .95067        .19340        .86270E-05   -.94702    
   4  Prefactor     .89934        .24858        .11318E-04   -.96164    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.67681e-09
Minuit parameter uncertainties:
  1  0.000395296
  2  4.33035
  3  0.193542
  4  0.248891
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/977512': 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) = 4950.35853834
delta logL = 6.09762537351e-07

Extracting fit parameters...

4FGL J1033.1+4115
   Spectrum: PowerLaw
339    Prefactor:  1.000e-04  3.953e-04  1.000e-04  1.000e+04 ( 1.000e-12)
340        Index:  2.455e+00  4.330e+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:  8.993e-01  2.489e-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:  9.507e-01  1.935e-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/977512/cmap_HighResolution_507081601_507340801_4FGL_J1033.1+4115_daily_bin1033.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.13e-03', job_status='DONE', photon_flux_upper_limit='6.64e-08', time_completed='2021-09-02 03:44:37.073044', job_id='977512', GAL2='0.90', fit_tolerance='1e-08', EG2='0.95', EG='0.95', time_epoch_completed='1630579477.07', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.90', dlogl='6.10e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.41' WHERE bin_id='1033' AND source_name='4FGL J1033.1+4115' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  2 03:44:37 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0258>
Subject: Job 977512: <4FGL_J1033.1+4115_daily_bin1033> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1033.1+4115_daily_bin1033 158.275 41.262 507081601 507340801 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 :                                   813.32 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             326.33 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   832 sec.
    Turnaround time :                            848 sec.

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

