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


Performing analysis on: 4FGL_J1033.1+4115_daily_bin830
RA = 158.275, Dec = 41.262
tmin = 454464001, tmax = 454723201
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='976298', job_status='RUN', time_executed='2021-09-02 03:26:06.772461', time_epoch_executed='1630578366.77' WHERE source_name='4FGL J1033.1+4115' and cadence='daily' and bin_id='830'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/976298

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/976298/ft1_4FGL_J1033.1+4115_daily_bin830.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/976298/ft2_4FGL_J1033.1+4115_daily_bin830.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/976298/ft1_4FGL_J1033.1+4115_daily_bin830.fits outfile=/scratch/kocevski/976298/ft1_filteredMKT_4FGL_J1033.1+4115_daily_bin830.fits ra=158.275 dec=41.262 rad=12.0 tmin=454464001.0 tmax=454723201.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 3.61
user 3.37
sys 0.22

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/976298/ft1_filtered_4FGL_J1033.1+4115_daily_bin830.fits evtable="EVENTS" scfile=/scratch/kocevski/976298/ft2_4FGL_J1033.1+4115_daily_bin830.fits sctable="SC_DATA" expcube=/scratch/kocevski/976298/ltcube_454464001_454723201_4FGL_J1033.1+4115_daily_bin830.fits outfile=/scratch/kocevski/976298/expmap_454464001_454723201_4FGL_J1033.1+4115_daily_bin830.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/976298/ltcube_454464001_454723201_4FGL_J1033.1+4115_daily_bin830.fits
.....................!
real 194.46
user 188.50
sys 4.07

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/976298/ft1_filtered_4FGL_J1033.1+4115_daily_bin830.fits scfile=/scratch/kocevski/976298/ft2_4FGL_J1033.1+4115_daily_bin830.fits outfile=/scratch/kocevski/976298/cmap_454464001_454723201_4FGL_J1033.1+4115_daily_bin830.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.58
user 0.40
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/976298/ft1_filtered_4FGL_J1033.1+4115_daily_bin830.fits scfile=/scratch/kocevski/976298/ft2_4FGL_J1033.1+4115_daily_bin830.fits outfile=/scratch/kocevski/976298/cmap_HighResolution_454464001_454723201_4FGL_J1033.1+4115_daily_bin830.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.56
user 0.40
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    21.840       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10441E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    17.120       1.0000         .10000E-03   10000.    
     4 'Prefactor '    22.071       1.0000         .10000E-03   10000.    
     5 'norm      '    20.673       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10716E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10072E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .16438E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    5.4001       1.0000         .10000E-03   10000.    
    10 'Prefactor '    1.3257       1.0000         .10000E-03   10000.    
    11 'norm      '    9.1508       1.0000         .10000E-03   10000.    
    12 'Prefactor '    72.346       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10045E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .15646E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    2.1203       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .58196E-02   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    78.855       1.0000         .10000E-03   10000.    
    20 'norm      '    1.9657       1.0000         .10000E-03   10000.    
    21 'Prefactor '    33.690       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    2.5144       1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.2174       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .72944       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=   6018.318     FROM MIGRAD    STATUS=CONVERGED    742 CALLS     3730 TOTAL
                     EDM=   .58E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  8.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          21.841        17.148        .38395E-06    .88489E-04
   2  Prefactor     .10000E-03    14.567       -.47572E-06** at limit **
   3  Prefactor     17.095        30.449       -.12858E-05    .48832E-04
   4  Prefactor     22.071        12.421       -.28693E-07    .16679E-04
   5  norm          20.670        13.250       -.23721E-07    .14279E-03
   6  Prefactor     .10004E-03    6.3952        .28319E-05** at limit **
   7  Prefactor     .10000E-03    2.2092        .15092E-06** at limit **
   8  Prefactor     .10000E-03    96.748       -.32299E-06** at limit **
   9  norm          5.3993        3.2089       -.43964E-07    .33626E-03
  10  Prefactor     1.3253        3.4900       -.36708E-06    .13329E-04
  11  norm          9.1513        8.4229       -.20659E-06    .27298E-04
  12  Prefactor     72.319        72.760       -.26545E-05   -.78204E-06
  13  Prefactor     .10000E-03    21.801       -.22877E-05** at limit **
  14  Prefactor     .10000E-03    6.7233       -.68399E-06** at limit **
  15  Prefactor     2.1164        4.8573        .44063E-06    .38628E-03
  16  Prefactor     .10004E-03    125.04       -.34728E-04** at limit **
  17  Prefactor     .10000E-03    24.373       -.20005E-05** at limit **
  18  Prefactor     .10000E-03    17.473        .11814E-05** at limit **
  19  Prefactor     78.856        73.050       -.37761E-07    .49832E-05
  20  norm          1.9657        .41289        .11155E-07    .60465E-03
  21  Prefactor     33.692        21.435        .26773E-06    .64556E-04
  22  Prefactor     .10000E-03    6.6814       -.21195E-06** at limit **
  23  Prefactor     .10000E-03    88.762        .49024E-05** at limit **
  24  norm          .10000E-03    3.9435       -.13428E-07** at limit **
  25  Prefactor     .10000E-03    2.0736       -.22805E-06** at limit **
  26  Prefactor     .10000E-03    33.352        .10498E-05** at limit **
  27  norm          2.5156        3.4361       -.27015E-05   -.17588E-03
  28  Normalizat    1.2173        .17918       -.64766E-07    .19986E-03
  29  Prefactor     .72950        .21127        .11073E-05    .11141E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 21.8407
  Prefactor  = 0.0001
  Prefactor  = 17.0945
  Prefactor  = 22.0711
  norm       = 20.6703
  Prefactor  = 0.000100037
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 5.39931
  Prefactor  = 1.32534
  norm       = 9.15127
  Prefactor  = 72.3192
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 2.11642
  Prefactor  = 0.000100037
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 78.8561
  norm       = 1.96571
  Prefactor  = 33.6919
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.51559
  Normalizat = 1.21734
  Prefactor  = 0.729499
 **********
 **   18 **HESSE 
 **********

 FCN=   6018.318     FROM HESSE     STATUS=OK           547 CALLS     4277 TOTAL
                     EDM=   .27E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          21.841        17.153        .85708E-04   -1.4773    
   2  Prefactor     .10000E-03    14.564        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     17.095        30.436        .96799E-04   -1.4881    
   4  Prefactor     22.071        12.412        .85259E-04   -1.4768    
   5  norm          20.670        13.210        .88093E-04   -1.4798    
   6  Prefactor     .10004E-03    17.297        .33110E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    2.2308        .11233E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    98.117        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          5.3993        3.1868        .10215E-03   -1.5243    
  10  Prefactor     1.3253        3.4387        .22421E-03   -1.5478    
  11  norm          9.1513        8.3900        .13249E-03   -1.5103    
  12  Prefactor     72.319        72.760        .47200E-04   -1.4005    
  13  Prefactor     .10000E-03    21.934        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    6.9383        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     2.1164        4.8158        .24571E-03   -1.5417    
  16  Prefactor     .10004E-03    131.43        .67545E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    24.377        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    17.532        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     78.856        73.113        .45224E-04   -1.3930    
  20  norm          1.9657        .41400        .21373E-04   -1.5428    
  21  Prefactor     33.692        21.492        .69038E-04   -1.4546    
  22  Prefactor     .10000E-03    6.6843        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    88.724        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10000E-03    3.9450        .15044E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    2.1281        .21825E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    33.399        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          2.5156        3.4555        .81289E-03   -1.5391    
  28  Normalizat    1.2173        .21086        .22658E-03   -.86069    
  29  Prefactor     .72950        .24711        .34385E-03   -1.0238    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.68252e-09
Minuit parameter uncertainties:
  1  17.1573
  2  0.000107102
  3  30.4636
  4  12.4133
  5  13.2115
  6  0.00160147
  7  1.27106e-05
  8  0.000108306
  9  3.18694
  10  3.43923
  11  8.39104
  12  72.8493
  13  0.000290578
  14  8.63393e-05
  15  4.81666
  16  0.00443851
  17  5.22114e-06
  18  3.05028e-05
  19  73.1967
  20  0.413998
  21  21.4973
  22  1.88431e-06
  23  0.000194179
  24  4.74358e-07
  25  5.34353e-06
  26  1.29719e-05
  27  3.45579
  28  0.211013
  29  0.247485
Done.

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

Extracting fit parameters...

4FGL J1033.1+4115
   Spectrum: PowerLaw
339    Prefactor:  1.000e-04  8.634e-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:  7.295e-01  2.475e-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.217e+00  2.110e-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: 8.49e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.57e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/976298/likelihoodResults_454464001_454723201_4FGL_J1033.1+4115_daily_bin830.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) = 6018.31896288
delta logL = -0.000687853649652

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6018.31827246
delta logL = 2.57032843365e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .16032E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5270       1.0000          .0000       10.000    
     3 'Normalizat'    1.2172       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .72967       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=   6016.574     FROM MIGRAD    STATUS=CONVERGED    115 CALLS      289 TOTAL
                     EDM=   .33E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .23172E-01    .23872        .16431E-02    .26021E-03
   2  Index         6.3618        2.9404        .12479        .90229E-04
   3  Normalizat    1.0995        .49863E-01    .53451E-01   -.19713E-03
   4  Prefactor     .82686        .60539E-01    .73454E-01   -.11998E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0231723
  Index      = 6.36184
  Normalizat = 1.09954
  Prefactor  = 0.826864
 **********
 **   18 **HESSE 
 **********

 FCN=   6016.574     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      322 TOTAL
                     EDM=   .48E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .23172E-01    .48795        .74134E-04   -1.5678    
   2  Index         6.3618        7.4684        .49880E-02    .27585    
   3  Normalizat    1.0995        .16654        .23635E-03   -.89767    
   4  Prefactor     .82686        .19838        .32508E-03   -.98746    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.78697e-10
Minuit parameter uncertainties:
  1  0.212211
  2  5.15965
  3  0.166622
  4  0.19855
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/976298': 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): 102
logL (Free Index) = 6016.57435759
delta logL = 1.7439174338

Extracting fit parameters...

4FGL J1033.1+4115
   Spectrum: PowerLaw
339    Prefactor:  2.317e-02  2.122e-01  1.000e-04  1.000e+04 ( 1.000e-12)
340        Index:  6.362e+00  5.160e+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.269e-01  1.986e-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.100e+00  1.666e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.72
Ra Dec: 158.275 41.262
Photon Index (Free Index): 6.36 +/- 5.16
Photon Flux (Free Index): 9.04e-08 +/- 5.73e-08
Energy Flux (Free Index): 1.11e-05 +/- 8.04e-06

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/976298/cmap_HighResolution_454464001_454723201_4FGL_J1033.1+4115_daily_bin830.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.57e-03', comment='SUCCESS', energy_flux2='1.11e-05', dlogl='1.74e+00', photon_flux2='9.04e-08', job_status='DONE', time_completed='2021-09-02 03:41:27.789421', photon_index_error2='5.16', photon_index2='6.36', ts='-0.00', fit_tolerance='1e-08', GAL='0.73', photon_index_error='0.00', photon_flux_upper_limit='8.49e-08', energy_flux_error2='8.04e-06', EG='1.22', time_epoch_completed='1630579287.79', return_code='0', job_id='976298', GAL2='0.83', EG2='1.10', return_code2='102', photon_flux_error2='5.73e-08', ts2='3.72', photon_index='2.41' WHERE bin_id='830' AND source_name='4FGL J1033.1+4115' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  2 03:41:27 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0107>
Subject: Job 976298: <4FGL_J1033.1+4115_daily_bin830> in cluster <slac> Done

Job <4FGL_J1033.1+4115_daily_bin830> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Thu Sep  2 03:25:36 2021
Job was executed on host(s) <bullet0107>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  2 03:25:52 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Sep  2 03:25:52 2021
Terminated at Thu Sep  2 03:41:28 2021
Results reported at Thu Sep  2 03:41:28 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1033.1+4115_daily_bin830 158.275 41.262 454464001 454723201 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 :                                   913.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             324.13 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   936 sec.
    Turnaround time :                            952 sec.

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

