/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 6 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 = 7304
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1033.1+4115_daily_bin384
RA = 158.275, Dec = 41.262
tmin = 338860801, tmax = 339120001
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='973175', job_status='RUN', time_executed='2021-09-02 03:16:02.211434', time_epoch_executed='1630577762.21' WHERE source_name='4FGL J1033.1+4115' and cadence='daily' and bin_id='384'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/973175

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

Retrieving the FT1 file...

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

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

Retrieving 49 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/973175/ft1_4FGL_J1033.1+4115_daily_bin384.fits


Retrieving the FT1 file...

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

Retrieving 49 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/973175/ft2_4FGL_J1033.1+4115_daily_bin384.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/973175/ft1_4FGL_J1033.1+4115_daily_bin384.fits outfile=/scratch/kocevski/973175/ft1_filteredMKT_4FGL_J1033.1+4115_daily_bin384.fits ra=158.275 dec=41.262 rad=12.0 tmin=338860801.0 tmax=339120001.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.87
user 4.54
sys 0.23

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/973175/ft1_filtered_4FGL_J1033.1+4115_daily_bin384.fits" evtable="EVENTS" scfile=/scratch/kocevski/973175/ft2_4FGL_J1033.1+4115_daily_bin384.fits sctable="SC_DATA" outfile=/scratch/kocevski/973175/ltcube_338860801_339120001_4FGL_J1033.1+4115_daily_bin384.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/973175/ft2_4FGL_J1033.1+4115_daily_bin384.fits
.....................!
real 16.03
user 15.54
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/973175/ft1_filtered_4FGL_J1033.1+4115_daily_bin384.fits evtable="EVENTS" scfile=/scratch/kocevski/973175/ft2_4FGL_J1033.1+4115_daily_bin384.fits sctable="SC_DATA" expcube=/scratch/kocevski/973175/ltcube_338860801_339120001_4FGL_J1033.1+4115_daily_bin384.fits outfile=/scratch/kocevski/973175/expmap_338860801_339120001_4FGL_J1033.1+4115_daily_bin384.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/973175/ltcube_338860801_339120001_4FGL_J1033.1+4115_daily_bin384.fits
.....................!
real 193.61
user 187.02
sys 4.49

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/973175/ft1_filtered_4FGL_J1033.1+4115_daily_bin384.fits scfile=/scratch/kocevski/973175/ft2_4FGL_J1033.1+4115_daily_bin384.fits outfile=/scratch/kocevski/973175/cmap_338860801_339120001_4FGL_J1033.1+4115_daily_bin384.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.56
user 0.40
sys 0.15

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    20.159       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10039E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    8.2526       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10955E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    1.0656       1.0000         .10000E-03   10000.    
    10 'Prefactor '    9.5558       1.0000         .10000E-03   10000.    
    11 'norm      '    1.8230       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .11724E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    6.5766       1.0000         .10000E-03   10000.    
    14 'Prefactor '    8.7752       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .85835       1.0000         .10000E-03   10000.    
    16 'Prefactor '    8.0037       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .12189E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10082E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10865E-01   1.0000         .10000E-03   10000.    
    20 'norm      '    1.3836       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10052E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    15.684       1.0000         .10000E-03   10000.    
    25 'Prefactor '    5.5633       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .11601E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    1.8818       1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.3259       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .58250       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=   5683.463     FROM MIGRAD    STATUS=CONVERGED   1315 CALLS     4797 TOTAL
                     EDM=   .19E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    4.5289        .15665E-02** at limit **
   2  Prefactor     .10000E-03    8.7602        .18142E-02** at limit **
   3  Prefactor     20.165        34.347        .89208E-04    .10578E-04
   4  Prefactor     .10000E-03    3.6161        .13944E-02** at limit **
   5  norm          8.2496        12.957        .13956E-03   -.15559E-04
   6  Prefactor     .10000E-03    6.4254        .23263E-02** at limit **
   7  Prefactor     .10000E-03    1.3023        .83600E-03** at limit **
   8  Prefactor     .10000E-03    16.234        .18142E-02** at limit **
   9  norm          1.0664        1.8017        .14914E-02    .33925E-03
  10  Prefactor     9.5559        4.5646        .10682E-03    .11707E-03
  11  norm          1.8241        5.7316        .15461E-02    .97742E-04
  12  Prefactor     .10000E-03    108.47        .18142E-02** at limit **
  13  Prefactor     6.5443        37.287        .15648E-03    .45988E-04
  14  Prefactor     8.7759        4.8983        .11706E-03    .66722E-04
  15  Prefactor     .86334        7.0065        .30806E-03    .89308E-04
  16  Prefactor     7.9866        37.752        .14172E-03    .45724E-05
  17  Prefactor     .10000E-03    37.232        .18142E-02** at limit **
  18  Prefactor     .10000E-03    6.7240        .18142E-02** at limit **
  19  Prefactor     .10001E-03    112.01        .21439    ** at limit **
  20  norm          1.3836        .33408        .20664E-04   -.29489E-03
  21  Prefactor     .10000E-03    7.3170        .18142E-02** at limit **
  22  Prefactor     .10000E-03    4.5388        .15682E-02** at limit **
  23  Prefactor     .10000E-03    27.225        .18142E-02** at limit **
  24  norm          15.689        13.092        .10113E-03   -.29790E-04
  25  Prefactor     5.5646        3.3814        .10379E-03   -.51436E-03
  26  Prefactor     .10000E-03    78.058        .18142E-02** at limit **
  27  norm          1.8814        2.4289        .12949E-03   -.14767E-03
  28  Normalizat    1.3256        .20982        .20568E-03   -.96133E-04
  29  Prefactor     .58273        .24310        .36069E-03   -.36563E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 20.1654
  Prefactor  = 0.0001
  norm       = 8.24957
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.06637
  Prefactor  = 9.55594
  norm       = 1.82407
  Prefactor  = 0.0001
  Prefactor  = 6.54429
  Prefactor  = 8.77587
  Prefactor  = 0.863344
  Prefactor  = 7.98662
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100009
  norm       = 1.38356
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 15.6888
  Prefactor  = 5.56457
  Prefactor  = 0.0001
  norm       = 1.88139
  Normalizat = 1.32565
  Prefactor  = 0.582733
 **********
 **   18 **HESSE 
 **********

 FCN=   5683.463     FROM HESSE     STATUS=OK           537 CALLS     5334 TOTAL
                     EDM=   .16E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    4.5290        .31331E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    8.7605        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     20.165        34.335        .35683E-05   -1.4810    
   4  Prefactor     .10000E-03    3.6168        .27887E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          8.2496        12.957        .55822E-05   -1.5133    
   6  Prefactor     .10000E-03    6.4762        .46527E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    1.3024        .16720E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    16.236        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          1.0664        1.8004        .59657E-04   -1.5501    
  10  Prefactor     9.5559        4.5645        .42728E-05   -1.5090    
  11  norm          1.8241        5.7277        .61846E-04   -1.5438    
  12  Prefactor     .10000E-03    108.50        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     6.5443        37.047        .62594E-05   -1.5196    
  14  Prefactor     8.7759        4.8974        .46823E-05   -1.5115    
  15  Prefactor     .86334        6.9607        .12322E-04   -1.5522    
  16  Prefactor     7.9866        37.712        .56690E-05   -1.5143    
  17  Prefactor     .10000E-03    37.233        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    6.7241        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10001E-03    116.79        .20859       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          1.3836        .33408        .82655E-06   -1.5473    
  21  Prefactor     .10000E-03    7.3180        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    4.5389        .31365E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    27.225        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          15.689        13.093        .40453E-05   -1.4916    
  25  Prefactor     5.5646        3.3811        .41517E-05   -1.5236    
  26  Prefactor     .10000E-03    78.070        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          1.8814        2.4288        .51796E-05   -1.5434    
  28  Normalizat    1.3256        .20999        .41136E-04   -.82804    
  29  Prefactor     .58273        .24328        .14427E-04   -1.0832    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.56847e-10
Minuit parameter uncertainties:
  1  4.00028e-07
  2  3.63003e-06
  3  34.369
  4  2.77842e-06
  5  12.961
  6  2.53296e-05
  7  8.98971e-07
  8  4.42858e-06
  9  1.80047
  10  4.5647
  11  5.72942
  12  0.000381792
  13  31.1706
  14  4.89767
  15  4.90335
  16  34.7454
  17  0.000179427
  18  1.42585e-05
  19  0.00207879
  20  0.334078
  21  6.11559e-07
  22  2.32484e-06
  23  9.62049e-05
  24  13.0951
  25  3.38123
  26  0.000256794
  27  2.42894
  28  0.210123
  29  0.243715
Done.

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

Extracting fit parameters...

4FGL J1033.1+4115
   Spectrum: PowerLaw
339    Prefactor:  8.776e+00  4.898e+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:  5.827e-01  2.437e-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.326e+00  2.101e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 9.09
Ra Dec: 158.275 41.262
Photon Index (Fixed Index): 2.41 +/- 0.00
Photon Flux (Fixed Index): 6.45e-08 +/- 3.59e-08
Energy Flux (Fixed Index): 2.08e-05 +/- 1.16e-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) = 5683.42688724
delta logL = 0.0362915663782

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5683.42199387
delta logL = 0.0411849287411

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    9.1878       1.0000         .10000E-03   10000.    
     2 'Index     '    2.2659       1.0000          .0000       10.000    
     3 'Normalizat'    1.3352       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .57531       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=   5683.422     FROM MIGRAD    STATUS=CONVERGED     83 CALLS      237 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     9.1880        5.2853        .12401E-03   -.12850E-02
   2  Index         2.2658        .50916        .70019E-02   -.24089E-03
   3  Normalizat    1.3353        .20059        .20509E-03    .10810E-03
   4  Prefactor     .57524        .23929        .36287E-03    .70148E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 9.18801
  Index      = 2.26576
  Normalizat = 1.33526
  Prefactor  = 0.575239
 **********
 **   18 **HESSE 
 **********

 FCN=   5683.422     FROM HESSE     STATUS=OK            23 CALLS      260 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     9.1880        5.2565        .24802E-04   -1.5102    
   2  Index         2.2658        .50613        .28008E-03   -.57860    
   3  Normalizat    1.3353        .20069        .41018E-04   -.82520    
   4  Prefactor     .57524        .23940        .14515E-04   -1.0864    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.22128e-09
Minuit parameter uncertainties:
  1  5.25673
  2  0.50737
  3  0.200809
  4  0.239825
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/973175': 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) = 5683.42199379
delta logL = 0.0411850127248

Extracting fit parameters...

4FGL J1033.1+4115
   Spectrum: PowerLaw
339    Prefactor:  9.188e+00  5.257e+00  1.000e-04  1.000e+04 ( 1.000e-12)
340        Index:  2.266e+00  5.074e-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:  5.752e-01  2.398e-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.335e+00  2.008e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 9.15
Ra Dec: 158.275 41.262
Photon Index (Free Index): 2.27 +/- 0.51
Photon Flux (Free Index): 5.68e-08 +/- 4.22e-08
Energy Flux (Free Index): 2.27e-05 +/- 1.52e-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/973175/cmap_HighResolution_338860801_339120001_4FGL_J1033.1+4115_daily_bin384.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='6.45e-08', energy_flux2='2.27e-05', photon_flux_error='3.59e-08', dlogl='4.12e-02', energy_flux='2.08e-05', photon_flux2='5.68e-08', job_status='DONE', time_completed='2021-09-02 03:30:42.505121', photon_index_error2='0.51', photon_index2='2.27', ts='9.09', fit_tolerance='1e-08', GAL='0.58', photon_index_error='0.00', energy_flux_error2='1.52e-05', EG='1.33', time_epoch_completed='1630578642.51', return_code='0', job_id='973175', GAL2='0.58', EG2='1.34', return_code2='0', energy_flux_error='1.16e-05', photon_flux_error2='4.22e-08', ts2='9.15', photon_index='2.41' WHERE bin_id='384' AND source_name='4FGL J1033.1+4115' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  2 03:30:42 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0209>
Subject: Job 973175: <4FGL_J1033.1+4115_daily_bin384> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1033.1+4115_daily_bin384 158.275 41.262 338860801 339120001 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 :                                   867.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             330.26 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   898 sec.
    Turnaround time :                            903 sec.

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

