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


Performing analysis on: 4FGL_J1033.1+4115_daily_bin545
RA = 158.275, Dec = 41.262
tmin = 380592001, tmax = 380851201
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='973430', job_status='RUN', time_executed='2021-09-02 03:18:58.906623', time_epoch_executed='1630577938.91' WHERE source_name='4FGL J1033.1+4115' and cadence='daily' and bin_id='545'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/973430

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/973430/ft1_4FGL_J1033.1+4115_daily_bin545.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/973430/ft2_4FGL_J1033.1+4115_daily_bin545.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/973430/ft1_4FGL_J1033.1+4115_daily_bin545.fits outfile=/scratch/kocevski/973430/ft1_filteredMKT_4FGL_J1033.1+4115_daily_bin545.fits ra=158.275 dec=41.262 rad=12.0 tmin=380592001.0 tmax=380851201.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.03
user 3.74
sys 0.23

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/973430/ft2_4FGL_J1033.1+4115_daily_bin545.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/973430/ft1_filteredMKT_4FGL_J1033.1+4115_daily_bin545.fits evtable="EVENTS" outfile="/scratch/kocevski/973430/ft1_filtered_4FGL_J1033.1+4115_daily_bin545.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.46
user 0.27
sys 0.16

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/973430/ft1_filtered_4FGL_J1033.1+4115_daily_bin545.fits evtable="EVENTS" scfile=/scratch/kocevski/973430/ft2_4FGL_J1033.1+4115_daily_bin545.fits sctable="SC_DATA" expcube=/scratch/kocevski/973430/ltcube_380592001_380851201_4FGL_J1033.1+4115_daily_bin545.fits outfile=/scratch/kocevski/973430/expmap_380592001_380851201_4FGL_J1033.1+4115_daily_bin545.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/973430/ltcube_380592001_380851201_4FGL_J1033.1+4115_daily_bin545.fits
.....................!
real 156.77
user 151.40
sys 4.95

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/973430/ft1_filtered_4FGL_J1033.1+4115_daily_bin545.fits scfile=/scratch/kocevski/973430/ft2_4FGL_J1033.1+4115_daily_bin545.fits outfile=/scratch/kocevski/973430/cmap_380592001_380851201_4FGL_J1033.1+4115_daily_bin545.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.49
user 0.32
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/973430/ft1_filtered_4FGL_J1033.1+4115_daily_bin545.fits scfile=/scratch/kocevski/973430/ft2_4FGL_J1033.1+4115_daily_bin545.fits outfile=/scratch/kocevski/973430/cmap_HighResolution_380592001_380851201_4FGL_J1033.1+4115_daily_bin545.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.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    .10030E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10218E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .11849E-02   1.0000         .10000E-03   10000.    
     7 'Prefactor '    1.1597       1.0000         .10000E-03   10000.    
     8 'Prefactor '    64.496       1.0000         .10000E-03   10000.    
     9 'norm      '    4.3048       1.0000         .10000E-03   10000.    
    10 'Prefactor '    1.8758       1.0000         .10000E-03   10000.    
    11 'norm      '    10.054       1.0000         .10000E-03   10000.    
    12 'Prefactor '    18.245       1.0000         .10000E-03   10000.    
    13 'Prefactor '    51.187       1.0000         .10000E-03   10000.    
    14 'Prefactor '    2.8159       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .13707E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    76.990       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    10.179       1.0000         .10000E-03   10000.    
    20 'norm      '    .95709       1.0000         .10000E-03   10000.    
    21 'Prefactor '    9.2683       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    85.883       1.0000         .10000E-03   10000.    
    25 'Prefactor '    1.3649       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10052E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    .78241       1.0000         .10000E-01   10.000    
    29 'Prefactor '    1.1718       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=   5688.680     FROM MIGRAD    STATUS=CONVERGED    733 CALLS     3721 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    5.5641       -.26197E-06** at limit **
   2  Prefactor     .10000E-03    8.6212       -.34063E-06** at limit **
   3  Prefactor     .10000E-03    21.741        .55635E-07** at limit **
   4  Prefactor     .10000E-03    5.4500       -.11474E-06** at limit **
   5  norm          .10000E-03    4.4341       -.13047E-06** at limit **
   6  Prefactor     .10009E-03    8.5163       -.36670E-05** at limit **
   7  Prefactor     1.1596        2.9865        .95297E-06    .84106E-03
   8  Prefactor     64.517        43.630        .55965E-07    .50740E-04
   9  norm          4.3055        2.9866        .18304E-06    .73992E-03
  10  Prefactor     1.8753        4.0437        .61229E-06    .55103E-03
  11  norm          10.054        10.134       -.38472E-06   -.64715E-04
  12  Prefactor     18.249        54.543        .27552E-06    .12638E-04
  13  Prefactor     51.296        38.955       -.39821E-06   -.52935E-04
  14  Prefactor     2.8142        5.4665        .15015E-05    .64912E-03
  15  Prefactor     .10000E-03    7.4330        .16783E-05** at limit **
  16  Prefactor     .10000E-03    24.913       -.62825E-06** at limit **
  17  Prefactor     77.019        93.167        .15973E-05    .83470E-04
  18  Prefactor     .10000E-03    9.2019        .20993E-06** at limit **
  19  Prefactor     10.212        180.09        .27262E-05    .27983E-04
  20  norm          .95706        .30035        .10325E-07    .73593E-03
  21  Prefactor     9.2742        16.887        .32091E-06    .52449E-04
  22  Prefactor     .10000E-03    5.7191        .30194E-07** at limit **
  23  Prefactor     .10000E-03    38.331        .16303E-06** at limit **
  24  norm          85.871        26.442        .12831E-06    .19047E-03
  25  Prefactor     1.3647        2.2333        .59163E-06    .84170E-03
  26  Prefactor     .10000E-03    22.586        .49604E-08** at limit **
  27  norm          .10000E-03    .77234       -.27930E-07** at limit **
  28  Normalizat    .78255        .18452       -.26174E-05    .23620E-03
  29  Prefactor     1.1718        .21601        .17690E-05    .21823E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.00010009
  Prefactor  = 1.1596
  Prefactor  = 64.5173
  norm       = 4.30552
  Prefactor  = 1.87525
  norm       = 10.0539
  Prefactor  = 18.249
  Prefactor  = 51.2958
  Prefactor  = 2.81424
  Prefactor  = 0.000100002
  Prefactor  = 0.000100001
  Prefactor  = 77.0194
  Prefactor  = 0.0001
  Prefactor  = 10.212
  norm       = 0.957056
  Prefactor  = 9.27418
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 85.8712
  Prefactor  = 1.36473
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 0.782546
  Prefactor  = 1.17175
 **********
 **   18 **HESSE 
 **********

 FCN=   5688.680     FROM HESSE     STATUS=OK           547 CALLS     4268 TOTAL
                     EDM=   .74E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    5.5782        .17391E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    8.6418        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    21.803        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    5.4929        .17199E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    4.4442        .15508E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10009E-03    16.053        .25629E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     1.1596        2.9119        .18865E-03   -1.5493    
   8  Prefactor     64.517        43.662        .49970E-04   -1.4100    
   9  norm          4.3055        2.9840        .10447E-03   -1.5293    
  10  Prefactor     1.8753        3.9166        .19568E-03   -1.5434    
  11  norm          10.054        10.123        .12637E-03   -1.5074    
  12  Prefactor     18.249        54.607        .93766E-04   -1.4853    
  13  Prefactor     51.296        38.655        .56055E-04   -1.4274    
  14  Prefactor     2.8142        5.5451        .22498E-03   -1.5372    
  15  Prefactor     .10000E-03    7.6618        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    25.067        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     77.019        93.581        .45765E-04   -1.3950    
  18  Prefactor     .10000E-03    9.2195        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     10.212        180.44        .12559E-03   -1.5069    
  20  norm          .95706        .30130        .21934E-04   -1.5512    
  21  Prefactor     9.2742        16.859        .13164E-03   -1.5099    
  22  Prefactor     .10000E-03    5.7240        .17615E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    38.347        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          85.871        26.393        .43350E-04   -1.3852    
  25  Prefactor     1.3647        2.2219        .14106E-03   -1.5474    
  26  Prefactor     .10000E-03    22.597        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          .10000E-03    .77543        .64715E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    .78255        .20966        .25814E-03   -1.0072    
  29  Prefactor     1.1718        .24949        .27066E-03   -.87205    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.37891e-09
Minuit parameter uncertainties:
  1  5.21101e-05
  2  7.84278e-05
  3  8.80861e-05
  4  2.23837e-06
  5  7.15225e-06
  6  0.00240981
  7  2.91224
  8  43.6836
  9  2.98411
  10  3.91718
  11  10.1248
  12  54.7571
  13  38.6736
  14  5.54613
  15  0.000237685
  16  0.000305495
  17  93.7607
  18  6.55305e-05
  19  86.1565
  20  0.3013
  21  16.8677
  22  1.20337e-05
  23  0.000104334
  24  26.3965
  25  2.22203
  26  1.72422e-05
  27  1.72079e-06
  28  0.209872
  29  0.24974
Done.

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

Extracting fit parameters...

4FGL J1033.1+4115
   Spectrum: PowerLaw
339    Prefactor:  2.814e+00  5.546e+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:  1.172e+00  2.497e-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:  7.825e-01  2.099e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/973430/likelihoodResults_380592001_380851201_4FGL_J1033.1+4115_daily_bin545.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) = 5688.05951201
delta logL = 0.620954946444

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5688.05435718
delta logL = 0.626109776863

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.4793       1.0000         .10000E-03   10000.    
     2 'Index     '    3.6649       1.0000          .0000       10.000    
     3 'Normalizat'    .72882       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2145       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=   5688.054     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      249 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.4800        26.512        .88237E-02    .68622E-03
   2  Index         3.6647        3.8746        .13799        .11534E-03
   3  Normalizat    .72881        .48332E-01    .42674E-01    .11477E-04
   4  Prefactor     1.2146        .60425E-01    .60230E-01   -.43246E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.47998
  Index      = 3.66473
  Normalizat = 0.728815
  Prefactor  = 1.21462
 **********
 **   18 **HESSE 
 **********

 FCN=   5688.054     FROM HESSE     STATUS=OK            33 CALLS      282 TOTAL
                     EDM=   .11E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.4800        6.7225        .76576E-04   -1.5465    
   2  Index         3.6647        2.5977        .69391E-02   -.27033    
   3  Normalizat    .72881        .20550        .26634E-03   -1.0277    
   4  Prefactor     1.2146        .25397        .26636E-03   -.85883    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.07295e-10
Minuit parameter uncertainties:
  1  6.30943
  2  2.74358
  3  0.205719
  4  0.254229
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/973430': 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) = 5688.05435646
delta logL = 0.626110494745

Extracting fit parameters...

4FGL J1033.1+4115
   Spectrum: PowerLaw
339    Prefactor:  1.480e+00  6.309e+00  1.000e-04  1.000e+04 ( 1.000e-12)
340        Index:  3.665e+00  2.744e+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:  1.215e+00  2.542e-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:  7.288e-01  2.057e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.70
Ra Dec: 158.275 41.262
Photon Index (Free Index): 3.66 +/- 2.74
Photon Flux (Free Index): 6.42e-08 +/- 5.79e-08
Energy Flux (Free Index): 1.03e-05 +/- 1.07e-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/973430/cmap_HighResolution_380592001_380851201_4FGL_J1033.1+4115_daily_bin545.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.31e-03', comment='SUCCESS', energy_flux2='1.03e-05', dlogl='6.26e-01', photon_flux2='6.42e-08', job_status='DONE', time_completed='2021-09-02 03:31:06.243527', photon_index_error2='2.74', photon_index2='3.66', ts='0.35', fit_tolerance='1e-08', GAL='1.17', photon_index_error='0.00', photon_flux_upper_limit='1.07e-07', energy_flux_error2='1.07e-05', EG='0.78', time_epoch_completed='1630578666.24', return_code='0', job_id='973430', GAL2='1.21', EG2='0.73', return_code2='0', photon_flux_error2='5.79e-08', ts2='1.70', photon_index='2.41' WHERE bin_id='545' AND source_name='4FGL J1033.1+4115' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  2 03:31:06 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0071>
Subject: Job 973430: <4FGL_J1033.1+4115_daily_bin545> in cluster <slac> Done

Job <4FGL_J1033.1+4115_daily_bin545> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Thu Sep  2 03:16:01 2021
Job was executed on host(s) <bullet0071>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  2 03:16:15 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:16:15 2021
Terminated at Thu Sep  2 03:31:06 2021
Results reported at Thu Sep  2 03:31:06 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1033.1+4115_daily_bin545 158.275 41.262 380592001 380851201 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 :                                   717.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             261.45 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   891 sec.
    Turnaround time :                            905 sec.

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

