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


Performing analysis on: 4FGL_J1033.1+4115_daily_bin984
RA = 158.275, Dec = 41.262
tmin = 494380801, tmax = 494640001
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='977435', job_status='RUN', time_executed='2021-09-02 03:30:41.345172', time_epoch_executed='1630578641.35' WHERE source_name='4FGL J1033.1+4115' and cadence='daily' and bin_id='984'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/977435

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/977435/ft1_4FGL_J1033.1+4115_daily_bin984.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/977435/ft2_4FGL_J1033.1+4115_daily_bin984.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/977435/ft1_4FGL_J1033.1+4115_daily_bin984.fits outfile=/scratch/kocevski/977435/ft1_filteredMKT_4FGL_J1033.1+4115_daily_bin984.fits ra=158.275 dec=41.262 rad=12.0 tmin=494380801.0 tmax=494640001.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.70
user 3.45
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/977435/ft1_filtered_4FGL_J1033.1+4115_daily_bin984.fits" evtable="EVENTS" scfile=/scratch/kocevski/977435/ft2_4FGL_J1033.1+4115_daily_bin984.fits sctable="SC_DATA" outfile=/scratch/kocevski/977435/ltcube_494380801_494640001_4FGL_J1033.1+4115_daily_bin984.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/977435/ft2_4FGL_J1033.1+4115_daily_bin984.fits
.....................!
real 16.36
user 15.88
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/977435/ft1_filtered_4FGL_J1033.1+4115_daily_bin984.fits evtable="EVENTS" scfile=/scratch/kocevski/977435/ft2_4FGL_J1033.1+4115_daily_bin984.fits sctable="SC_DATA" expcube=/scratch/kocevski/977435/ltcube_494380801_494640001_4FGL_J1033.1+4115_daily_bin984.fits outfile=/scratch/kocevski/977435/expmap_494380801_494640001_4FGL_J1033.1+4115_daily_bin984.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/977435/ltcube_494380801_494640001_4FGL_J1033.1+4115_daily_bin984.fits
.....................!
real 194.48
user 188.58
sys 5.09

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/977435/ft1_filtered_4FGL_J1033.1+4115_daily_bin984.fits scfile=/scratch/kocevski/977435/ft2_4FGL_J1033.1+4115_daily_bin984.fits outfile=/scratch/kocevski/977435/cmap_494380801_494640001_4FGL_J1033.1+4115_daily_bin984.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.39
sys 0.15

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10687E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    16.056       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10252E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    58.359       1.0000         .10000E-03   10000.    
     6 'Prefactor '    7.7278       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10061E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .64632E-02   1.0000         .10000E-03   10000.    
     9 'norm      '    1.5670       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    27.606       1.0000         .10000E-03   10000.    
    12 'Prefactor '    16.860       1.0000         .10000E-03   10000.    
    13 'Prefactor '    39.814       1.0000         .10000E-03   10000.    
    14 'Prefactor '    6.4536       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    28.318       1.0000         .10000E-03   10000.    
    18 'Prefactor '    2.0292       1.0000         .10000E-03   10000.    
    19 'Prefactor '    32.246       1.0000         .10000E-03   10000.    
    20 'norm      '    .93314       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10081E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    11.094       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    6.1678       1.0000         .10000E-03   10000.    
    25 'Prefactor '    3.0808       1.0000         .10000E-03   10000.    
    26 'Prefactor '    87.699       1.0000         .10000E-03   10000.    
    27 'norm      '    .42999       1.0000         .10000E-03   10000.    
    28 'Normalizat'    .80633       1.0000         .10000E-01   10.000    
    29 'Prefactor '    1.0256       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=   5905.055     FROM MIGRAD    STATUS=CONVERGED    746 CALLS     3861 TOTAL
                     EDM=   .12E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    10.036        .11268E-06** at limit **
   2  Prefactor     .10000E-03    60.646        .43932E-06** at limit **
   3  Prefactor     16.045        19.917        .32556E-06    .26734E-04
   4  Prefactor     .10000E-03    10.657       -.20209E-06** at limit **
   5  norm          58.354        18.022        .26750E-06    .10052E-04
   6  Prefactor     7.7274        5.3632        .71445E-07   -.24288E-04
   7  Prefactor     .10000E-03    1.8128        .58188E-06** at limit **
   8  Prefactor     .10000E-03    153.30        .51263E-05** at limit **
   9  norm          1.5671        1.4420        .33179E-07    .59482E-04
  10  Prefactor     .10000E-03    1.2310        .30634E-06** at limit **
  11  norm          27.595        13.096        .35424E-07   -.47350E-04
  12  Prefactor     16.666        60.920        .58145E-06    .13537E-04
  13  Prefactor     39.813        26.737        .21391E-06   -.86351E-05
  14  Prefactor     6.4524        4.3990        .98046E-07   -.39321E-04
  15  Prefactor     .10000E-03    1.6101        .17803E-06** at limit **
  16  Prefactor     .10000E-03    11.006        .40226E-07** at limit **
  17  Prefactor     28.295        82.743        .19795E-05    .34944E-06
  18  Prefactor     2.0301        20.288       -.37300E-06   -.12451E-04
  19  Prefactor     32.231        84.840        .12401E-05   -.75655E-07
  20  norm          .93313        .31978        .59021E-08   -.16723E-03
  21  Prefactor     .10000E-03    19.995        .46515E-06** at limit **
  22  Prefactor     11.097        17.835       -.36852E-06   -.25604E-04
  23  Prefactor     .10000E-03    49.952        .61608E-07** at limit **
  24  norm          6.1690        13.785       -.19058E-07   -.20699E-04
  25  Prefactor     3.0801        3.4721       -.38710E-06   -.28703E-03
  26  Prefactor     87.677        62.882       -.11354E-05   -.71074E-04
  27  norm          .43182        3.4085       -.32064E-06   -.13374E-03
  28  Normalizat    .80654        .18716       -.41632E-05   -.57409E-04
  29  Prefactor     1.0253        .22703        .34926E-05   -.19456E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 16.0445
  Prefactor  = 0.0001
  norm       = 58.3537
  Prefactor  = 7.72744
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.56709
  Prefactor  = 0.0001
  norm       = 27.595
  Prefactor  = 16.6663
  Prefactor  = 39.8131
  Prefactor  = 6.45243
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 28.2946
  Prefactor  = 2.03013
  Prefactor  = 32.231
  norm       = 0.933126
  Prefactor  = 0.0001
  Prefactor  = 11.0969
  Prefactor  = 0.0001
  norm       = 6.16903
  Prefactor  = 3.08006
  Prefactor  = 87.6775
  norm       = 0.431821
  Normalizat = 0.80654
  Prefactor  = 1.02531
 **********
 **   18 **HESSE 
 **********

 FCN=   5905.055     FROM HESSE     STATUS=OK           559 CALLS     4420 TOTAL
                     EDM=   .25E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    10.069        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    62.825        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     16.045        19.915        .99954E-04   -1.4907    
   4  Prefactor     .10000E-03    10.980        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          58.354        18.023        .52516E-04   -1.4179    
   6  Prefactor     7.7274        5.3605        .14202E-03   -1.5152    
   7  Prefactor     .10000E-03    1.9028        .20367E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    149.05        .65364E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          1.5671        1.4596        .86172E-04   -1.5458    
  10  Prefactor     .10000E-03    1.2472        .83548E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          27.595        12.818        .76248E-04   -1.4657    
  12  Prefactor     16.666        61.312        .97541E-04   -1.4891    
  13  Prefactor     39.813        26.712        .63524E-04   -1.4445    
  14  Prefactor     6.4524        4.3913        .12437E-03   -1.5200    
  15  Prefactor     .10000E-03    1.6191        .95265E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    11.013        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     28.295        82.899        .75286E-04   -1.4644    
  18  Prefactor     2.0301        20.285        .29042E-03   -1.5423    
  19  Prefactor     32.231        84.935        .70563E-04   -1.4572    
  20  norm          .93313        .32317        .23144E-04   -1.5515    
  21  Prefactor     .10000E-03    20.288        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     11.097        18.006        .12028E-03   -1.5042    
  23  Prefactor     .10000E-03    50.000        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          6.1690        13.747        .16165E-03   -1.5211    
  25  Prefactor     3.0801        3.4736        .13294E-03   -1.5357    
  26  Prefactor     87.677        62.766        .21451E-03   -1.3832    
  27  norm          .43182        3.4385        .25832E-03   -1.5577    
  28  Normalizat    .80654        .19483        .24005E-03   -.99827    
  29  Prefactor     1.0253        .23889        .27769E-03   -.91891    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.4537e-10
Minuit parameter uncertainties:
  1  1.03352e-06
  2  0.000162597
  3  19.9231
  4  2.51464e-05
  5  18.0246
  6  5.36085
  7  2.11453e-05
  8  0.000254984
  9  1.45965
  10  9.11498e-06
  11  12.8191
  12  61.5454
  13  26.7197
  14  4.39155
  15  5.21079e-06
  16  6.72313e-06
  17  83.2392
  18  12.8398
  19  85.2557
  20  0.323168
  21  9.13182e-05
  22  18.0148
  23  1.47843e-05
  24  13.7537
  25  3.47381
  26  62.8132
  27  2.43697
  28  0.194998
  29  0.239137
Done.

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

Extracting fit parameters...

4FGL J1033.1+4115
   Spectrum: PowerLaw
339    Prefactor:  6.452e+00  4.392e+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.025e+00  2.391e-01  0.000e+00  1.000e+01 ( 1.000e+00)
679        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
680        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
677   Normalization:  8.065e-01  1.950e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.41
Ra Dec: 158.275 41.262
Photon Index (Fixed Index): 2.41 +/- 0.00
Photon Flux (Fixed Index): 4.74e-08 +/- 3.22e-08
Energy Flux (Fixed Index): 1.53e-05 +/- 1.04e-05

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) = 5905.04536243
delta logL = 0.00941516801504

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5905.043107
delta logL = 0.0116706013496

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.1690       1.0000         .10000E-03   10000.    
     2 'Index     '    2.5258       1.0000          .0000       10.000    
     3 'Normalizat'    .79956       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0313       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=   5905.043     FROM MIGRAD    STATUS=CONVERGED     87 CALLS      252 TOTAL
                     EDM=   .23E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.1688        4.8036        .11893E-03    .77977E-03
   2  Index         2.5260        .78206        .86734E-02    .83113E-04
   3  Normalizat    .79955        .19032        .24096E-03   -.65581E-04
   4  Prefactor     1.0313        .24018        .27699E-03   -.86849E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.16881
  Index      = 2.52598
  Normalizat = 0.799551
  Prefactor  = 1.03134
 **********
 **   18 **HESSE 
 **********

 FCN=   5905.043     FROM HESSE     STATUS=OK            25 CALLS      277 TOTAL
                     EDM=   .21E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.1688        4.6315        .47570E-05   -1.5211    
   2  Index         2.5260        .75277        .34693E-03   -.51761    
   3  Normalizat    .79955        .19011        .96385E-05   -1.0009    
   4  Prefactor     1.0313        .24011        .11080E-04   -.91692    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.08253e-10
Minuit parameter uncertainties:
  1  4.63175
  2  0.756589
  3  0.190273
  4  0.240357
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/977435': 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) = 5905.04310698
delta logL = 0.0116706207455

Extracting fit parameters...

4FGL J1033.1+4115
   Spectrum: PowerLaw
339    Prefactor:  6.169e+00  4.632e+00  1.000e-04  1.000e+04 ( 1.000e-12)
340        Index:  2.526e+00  7.566e-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:  1.031e+00  2.404e-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.996e-01  1.903e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.44
Ra Dec: 158.275 41.262
Photon Index (Free Index): 2.53 +/- 0.76
Photon Flux (Free Index): 5.22e-08 +/- 4.59e-08
Energy Flux (Free Index): 1.47e-05 +/- 1.01e-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/977435/cmap_HighResolution_494380801_494640001_4FGL_J1033.1+4115_daily_bin984.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='4.74e-08', energy_flux2='1.47e-05', photon_flux_error='3.22e-08', dlogl='1.17e-02', energy_flux='1.53e-05', photon_flux2='5.22e-08', job_status='DONE', time_completed='2021-09-02 03:44:14.948533', photon_index_error2='0.76', photon_index2='2.53', ts='4.41', fit_tolerance='1e-08', GAL='1.03', photon_index_error='0.00', energy_flux_error2='1.01e-05', EG='0.81', time_epoch_completed='1630579454.95', return_code='0', job_id='977435', GAL2='1.03', EG2='0.80', return_code2='0', energy_flux_error='1.04e-05', photon_flux_error2='4.59e-08', ts2='4.44', photon_index='2.41' WHERE bin_id='984' AND source_name='4FGL J1033.1+4115' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  2 03:44:14 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0272>
Subject: Job 977435: <4FGL_J1033.1+4115_daily_bin984> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1033.1+4115_daily_bin984 158.275 41.262 494380801 494640001 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 :                                   809.19 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             332.52 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   828 sec.
    Turnaround time :                            832 sec.

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

