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


Performing analysis on: 4FGL_J1033.1+4115_daily_bin1412
RA = 158.275, Dec = 41.262
tmin = 605318401, tmax = 605577601
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='979232', job_status='RUN', time_executed='2021-09-02 03:37:18.502721', time_epoch_executed='1630579038.5' WHERE source_name='4FGL J1033.1+4115' and cadence='daily' and bin_id='1412'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/979232

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/979232/ft1_4FGL_J1033.1+4115_daily_bin1412.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/979232/ft2_4FGL_J1033.1+4115_daily_bin1412.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/979232/ft1_4FGL_J1033.1+4115_daily_bin1412.fits outfile=/scratch/kocevski/979232/ft1_filteredMKT_4FGL_J1033.1+4115_daily_bin1412.fits ra=158.275 dec=41.262 rad=12.0 tmin=605318401.0 tmax=605577601.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.56
user 5.30
sys 0.23

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/979232/ft1_filtered_4FGL_J1033.1+4115_daily_bin1412.fits evtable="EVENTS" scfile=/scratch/kocevski/979232/ft2_4FGL_J1033.1+4115_daily_bin1412.fits sctable="SC_DATA" expcube=/scratch/kocevski/979232/ltcube_605318401_605577601_4FGL_J1033.1+4115_daily_bin1412.fits outfile=/scratch/kocevski/979232/expmap_605318401_605577601_4FGL_J1033.1+4115_daily_bin1412.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/979232/ltcube_605318401_605577601_4FGL_J1033.1+4115_daily_bin1412.fits
.....................!
real 193.73
user 187.36
sys 4.54

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/979232/ft1_filtered_4FGL_J1033.1+4115_daily_bin1412.fits scfile=/scratch/kocevski/979232/ft2_4FGL_J1033.1+4115_daily_bin1412.fits outfile=/scratch/kocevski/979232/cmap_605318401_605577601_4FGL_J1033.1+4115_daily_bin1412.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 1.05
user 0.40
sys 0.16

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10025E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10012E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    7.8182       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10054E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    44.267       1.0000         .10000E-03   10000.    
     9 'norm      '    13.466       1.0000         .10000E-03   10000.    
    10 'Prefactor '    18.119       1.0000         .10000E-03   10000.    
    11 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .98272E-02   1.0000         .10000E-03   10000.    
    13 'Prefactor '    82.859       1.0000         .10000E-03   10000.    
    14 'Prefactor '    5.3850       1.0000         .10000E-03   10000.    
    15 'Prefactor '    8.8107       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10078E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    184.69       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .11339E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    1.7817       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .10042E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    12.020       1.0000         .10000E-03   10000.    
    27 'norm      '    10.995       1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.1077       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .72910       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=   5285.747     FROM MIGRAD    STATUS=CONVERGED    731 CALLS     3660 TOTAL
                     EDM=   .36E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    7.0064        .14616E-06** at limit **
   2  Prefactor     .10000E-03    13.634       -.19211E-06** at limit **
   3  Prefactor     .10000E-03    13.248       -.69199E-08** at limit **
   4  Prefactor     .10000E-03    11.354        .11576E-05** at limit **
   5  norm          .10000E-03    7.1968       -.36090E-07** at limit **
   6  Prefactor     7.8220        7.7805        .44207E-07    .15715E-04
   7  Prefactor     .10000E-03    3.7131        .20037E-06** at limit **
   8  Prefactor     44.304        40.306        .46332E-06    .13643E-04
   9  norm          13.467        4.3718       -.21768E-07    .15603E-04
  10  Prefactor     18.109        8.1880       -.28003E-06   -.14378E-04
  11  norm          .10000E-03    8.7459       -.75603E-06** at limit **
  12  Prefactor     .10000E-03    415.78        .11115E-06** at limit **
  13  Prefactor     82.730        90.616        .16173E-05    .20508E-04
  14  Prefactor     5.3880        5.2477       -.59772E-07    .50973E-05
  15  Prefactor     8.8244        12.698        .13397E-05    .63269E-04
  16  Prefactor     .10000E-03    18.039        .60478E-06** at limit **
  17  Prefactor     184.60        108.27        .45212E-05    .15457E-04
  18  Prefactor     .10000E-03    24.623       -.14949E-05** at limit **
  19  Prefactor     .10000E-03    94.752        .63210E-07** at limit **
  20  norm          1.7818        .43115        .14135E-07    .73804E-04
  21  Prefactor     .10000E-03    14.835       -.14992E-06** at limit **
  22  Prefactor     .10000E-03    10.022       -.64821E-06** at limit **
  23  Prefactor     .10000E-03    28.045        .11771E-05** at limit **
  24  norm          .10000E-03    14.627       -.11237E-06** at limit **
  25  Prefactor     .10000E-03    1.3279        .65097E-07** at limit **
  26  Prefactor     12.009        40.889       -.19022E-06   -.26878E-06
  27  norm          10.997        4.9023        .54425E-07    .13769E-04
  28  Normalizat    1.1074        .20382        .15089E-05   -.71961E-04
  29  Prefactor     .72909        .23373       -.30203E-05    .38943E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 7.82201
  Prefactor  = 0.0001
  Prefactor  = 44.3037
  norm       = 13.4672
  Prefactor  = 18.1091
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 82.7298
  Prefactor  = 5.38795
  Prefactor  = 8.82436
  Prefactor  = 0.0001
  Prefactor  = 184.598
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.78178
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 12.009
  norm       = 10.9966
  Normalizat = 1.10743
  Prefactor  = 0.729088
 **********
 **   18 **HESSE 
 **********

 FCN=   5285.747     FROM HESSE     STATUS=OK           547 CALLS     4207 TOTAL
                     EDM=   .10E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    7.0153        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    13.662        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    13.253        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    11.499        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    7.2200        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     7.8220        7.8118        .14341E-03   -1.5149    
   7  Prefactor     .10000E-03    3.7437        .13636E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     44.304        40.530        .60258E-04   -1.4376    
   9  norm          13.467        4.3716        .82824E-04   -1.4974    
  10  Prefactor     18.109        8.1824        .94092E-04   -1.4857    
  11  norm          .10000E-03    8.7995        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    424.74        .18144E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     82.730        87.991        .22064E-03   -1.3886    
  14  Prefactor     5.3880        5.2377        .15592E-03   -1.5244    
  15  Prefactor     8.8244        12.307        .67518E-03   -1.5114    
  16  Prefactor     .10000E-03    18.015        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     184.60        109.47        .14855E-03   -1.2982    
  18  Prefactor     .10000E-03    24.654        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    94.886        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          1.7818        .43153        .22566E-04   -1.5441    
  21  Prefactor     .10000E-03    14.893        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    10.033        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    28.037        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10000E-03    14.737        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    1.3292        .81695E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     12.009        40.869        .11554E-03   -1.5015    
  27  norm          10.997        4.9063        .99055E-04   -1.5045    
  28  Normalizat    1.1074        .24099        .24228E-03   -.89514    
  29  Prefactor     .72909        .27120        .34690E-03   -1.0240    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.04213e-10
Minuit parameter uncertainties:
  1  2.44629e-06
  2  9.11745e-07
  3  1.22715e-06
  4  8.70057e-06
  5  1.04575e-06
  6  7.81283
  7  1.79147e-06
  8  40.5549
  9  4.37169
  10  8.18289
  11  2.47777e-05
  12  0.000617348
  13  88.1303
  14  5.23816
  15  12.3101
  16  1.81148e-05
  17  109.595
  18  2.68794e-06
  19  1.66416e-05
  20  0.43153
  21  8.8513e-06
  22  3.78975e-06
  23  4.34411e-06
  24  9.44728e-07
  25  1.68013e-07
  26  40.9643
  27  4.90646
  28  0.241227
  29  0.271693
Done.

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

Extracting fit parameters...

4FGL J1033.1+4115
   Spectrum: PowerLaw
339    Prefactor:  5.388e+00  5.238e+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.291e-01  2.717e-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.107e+00  2.412e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.55
Ra Dec: 158.275 41.262
Photon Index (Fixed Index): 2.41 +/- 0.00
Photon Flux (Fixed Index): 3.96e-08 +/- 3.84e-08
Energy Flux (Fixed Index): 1.28e-05 +/- 1.24e-05

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

Saving results to:
/scratch/kocevski/979232/likelihoodResults_605318401_605577601_4FGL_J1033.1+4115_daily_bin1412.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) = 5285.35923066
delta logL = 0.388155601444

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5285.31755236
delta logL = 0.429833908351

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.9974       1.0000         .10000E-03   10000.    
     2 'Index     '    1.8539       1.0000          .0000       10.000    
     3 'Normalizat'    1.1250       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .70919       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=   5285.318     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      214 TOTAL
                     EDM=   .10E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.9957        7.1573        .37914E-02    .14017E-03
   2  Index         1.8541        .52561        .20924       -.52548E-04
   3  Normalizat    1.1250        .19037        .54397E-01   -.54472E-04
   4  Prefactor     .70904        .22715        .79265E-01   -.80800E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.99574
  Index      = 1.85408
  Normalizat = 1.12502
  Prefactor  = 0.709038
 **********
 **   18 **HESSE 
 **********

 FCN=   5285.318     FROM HESSE     STATUS=OK            33 CALLS      247 TOTAL
                     EDM=   .13E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.9957        5.9392        .15166E-03   -1.5179    
   2  Index         1.8541        .51611        .78248E-02   -.68050    
   3  Normalizat    1.1250        .22494        .24052E-03   -.88952    
   4  Prefactor     .70904        .26708        .35097E-03   -1.0317    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.34913e-11
Minuit parameter uncertainties:
  1  5.93966
  2  0.517634
  3  0.225133
  4  0.267564
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/979232': 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) = 5285.31755189
delta logL = 0.429834371951

Extracting fit parameters...

4FGL J1033.1+4115
   Spectrum: PowerLaw
339    Prefactor:  6.996e+00  5.940e+00  1.000e-04  1.000e+04 ( 1.000e-12)
340        Index:  1.854e+00  5.176e-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:  7.090e-01  2.676e-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.125e+00  2.251e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.42
Ra Dec: 158.275 41.262
Photon Index (Free Index): 1.85 +/- 0.52
Photon Flux (Free Index): 2.89e-08 +/- 2.90e-08
Energy Flux (Free Index): 2.95e-05 +/- 3.69e-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/979232/cmap_HighResolution_605318401_605577601_4FGL_J1033.1+4115_daily_bin1412.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.80e-03', comment='SUCCESS', photon_flux='3.96e-08', energy_flux2='2.95e-05', photon_flux_error='3.84e-08', dlogl='4.30e-01', energy_flux='1.28e-05', photon_flux2='2.89e-08', job_status='DONE', time_completed='2021-09-02 03:51:20.733400', photon_index_error2='0.52', photon_index2='1.85', ts='1.55', fit_tolerance='1e-08', GAL='0.73', photon_index_error='0.00', photon_flux_upper_limit='1.27e-07', energy_flux_error2='3.69e-05', EG='1.11', time_epoch_completed='1630579880.73', return_code='0', job_id='979232', GAL2='0.71', EG2='1.13', return_code2='0', energy_flux_error='1.24e-05', photon_flux_error2='2.90e-08', ts2='2.42', photon_index='2.41' WHERE bin_id='1412' AND source_name='4FGL J1033.1+4115' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  2 03:51:20 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0137>
Subject: Job 979232: <4FGL_J1033.1+4115_daily_bin1412> in cluster <slac> Done

Job <4FGL_J1033.1+4115_daily_bin1412> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Thu Sep  2 03:35:33 2021
Job was executed on host(s) <bullet0137>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  2 03:37:00 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:37:00 2021
Terminated at Thu Sep  2 03:51:21 2021
Results reported at Thu Sep  2 03:51:21 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1033.1+4115_daily_bin1412 158.275 41.262 605318401 605577601 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 :                                   824.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             340.48 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   861 sec.
    Turnaround time :                            948 sec.

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

