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


Performing analysis on: 4FGL_J1033.1+4115_daily_bin447
RA = 158.275, Dec = 41.262
tmin = 355190401, tmax = 355449601
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='973276', job_status='RUN', time_executed='2021-09-02 03:16:10.127994', time_epoch_executed='1630577770.13' WHERE source_name='4FGL J1033.1+4115' and cadence='daily' and bin_id='447'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/973276

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/973276/ft1_4FGL_J1033.1+4115_daily_bin447.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/973276/ft2_4FGL_J1033.1+4115_daily_bin447.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/973276/ft1_4FGL_J1033.1+4115_daily_bin447.fits outfile=/scratch/kocevski/973276/ft1_filteredMKT_4FGL_J1033.1+4115_daily_bin447.fits ra=158.275 dec=41.262 rad=12.0 tmin=355190401.0 tmax=355449601.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.48
user 3.14
sys 0.23

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/973276/ft1_filtered_4FGL_J1033.1+4115_daily_bin447.fits evtable="EVENTS" scfile=/scratch/kocevski/973276/ft2_4FGL_J1033.1+4115_daily_bin447.fits sctable="SC_DATA" expcube=/scratch/kocevski/973276/ltcube_355190401_355449601_4FGL_J1033.1+4115_daily_bin447.fits outfile=/scratch/kocevski/973276/expmap_355190401_355449601_4FGL_J1033.1+4115_daily_bin447.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/973276/ltcube_355190401_355449601_4FGL_J1033.1+4115_daily_bin447.fits
.....................!
real 192.52
user 187.01
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/973276/ft1_filtered_4FGL_J1033.1+4115_daily_bin447.fits scfile=/scratch/kocevski/973276/ft2_4FGL_J1033.1+4115_daily_bin447.fits outfile=/scratch/kocevski/973276/cmap_355190401_355449601_4FGL_J1033.1+4115_daily_bin447.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.55
user 0.35
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/973276/ft1_filtered_4FGL_J1033.1+4115_daily_bin447.fits scfile=/scratch/kocevski/973276/ft2_4FGL_J1033.1+4115_daily_bin447.fits outfile=/scratch/kocevski/973276/cmap_HighResolution_355190401_355449601_4FGL_J1033.1+4115_daily_bin447.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.55
user 0.41
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .91404       1.0000         .10000E-03   10000.    
     2 'Prefactor '    10.167       1.0000         .10000E-03   10000.    
     3 'Prefactor '    7.8524       1.0000         .10000E-03   10000.    
     4 'Prefactor '    6.5804       1.0000         .10000E-03   10000.    
     5 'norm      '    .10091E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .47197       1.0000         .10000E-03   10000.    
     7 'Prefactor '    3.8084       1.0000         .10000E-03   10000.    
     8 'Prefactor '    36.337       1.0000         .10000E-03   10000.    
     9 'norm      '    7.1199       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .67431E-02   1.0000         .10000E-03   10000.    
    12 'Prefactor '    67.959       1.0000         .10000E-03   10000.    
    13 'Prefactor '    10.938       1.0000         .10000E-03   10000.    
    14 'Prefactor '    9.3159       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .67097E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10691E-02   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .12209E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .14811E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .29077E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    1.5870       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .21062E-02   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .38571E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .22693E-01   1.0000         .10000E-03   10000.    
    24 'norm      '    13.691       1.0000         .10000E-03   10000.    
    25 'Prefactor '    3.9394       1.0000         .10000E-03   10000.    
    26 'Prefactor '    23.543       1.0000         .10000E-03   10000.    
    27 'norm      '    .10065E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    .99361       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .77519       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=   5866.794     FROM MIGRAD    STATUS=CONVERGED    820 CALLS     3364 TOTAL
                     EDM=   .30E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.1626        39.808        .17614E-05    .55703E-04
   2  Prefactor     9.6179        28.809       -.56883E-06    .87592E-05
   3  Prefactor     7.6861        27.140       -.16614E-06   -.39663E-05
   4  Prefactor     6.5530        8.2019       -.68251E-07    .90236E-06
   5  norm          .10000E-03    4.1136        .44874E-07** at limit **
   6  Prefactor     .47079        3.2923        .13548E-06   -.58236E-04
   7  Prefactor     3.8125        3.6243       -.74280E-07   -.28164E-04
   8  Prefactor     36.454        32.230        .12762E-06    .25642E-04
   9  norm          7.1151        2.7152       -.11013E-07   -.13778E-04
  10  Prefactor     .10000E-03    2.2955        .10390E-07** at limit **
  11  norm          .10002E-03    5.2796       -.49660E-06** at limit **
  12  Prefactor     64.693        55.030        .70057E-07    .65383E-05
  13  Prefactor     10.897        21.750       -.21314E-05   -.12737E-03
  14  Prefactor     9.2943        4.4118        .24465E-07    .37126E-04
  15  Prefactor     .10000E-03    3.5243        .57064E-06** at limit **
  16  Prefactor     .10000E-03    10.069        .32528E-07** at limit **
  17  Prefactor     .10000E-03    164.94        .32990E-05** at limit **
  18  Prefactor     .10000E-03    8.9100        .67113E-07** at limit **
  19  Prefactor     .10000E-03    25.400       -.20382E-06** at limit **
  20  norm          1.5869        .34112       -.10643E-07   -.17092E-02
  21  Prefactor     .10006E-03    10.185        .14970E-05** at limit **
  22  Prefactor     .10000E-03    6.4127       -.11123E-07** at limit **
  23  Prefactor     .10000E-03    128.65       -.39387E-07** at limit **
  24  norm          13.545        11.215       -.12740E-06   -.17182E-03
  25  Prefactor     3.9537        3.0642        .65983E-06    .14163E-03
  26  Prefactor     23.063        42.104       -.31474E-05   -.63758E-05
  27  norm          .10000E-03    1.4181       -.14580E-05** at limit **
  28  Normalizat    .99574        .16375        .80998E-06   -.12996E-03
  29  Prefactor     .77445        .19565       -.84459E-06   -.22705E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.16256
  Prefactor  = 9.61793
  Prefactor  = 7.68615
  Prefactor  = 6.55295
  norm       = 0.0001
  Prefactor  = 0.470789
  Prefactor  = 3.81246
  Prefactor  = 36.4541
  norm       = 7.11512
  Prefactor  = 0.0001
  norm       = 0.000100021
  Prefactor  = 64.6929
  Prefactor  = 10.8966
  Prefactor  = 9.29427
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.58686
  Prefactor  = 0.000100062
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 13.5453
  Prefactor  = 3.95371
  Prefactor  = 23.0635
  norm       = 0.0001
  Normalizat = 0.99574
  Prefactor  = 0.774447
 **********
 **   18 **HESSE 
 **********

 FCN=   5866.794     FROM HESSE     STATUS=OK           563 CALLS     3927 TOTAL
                     EDM=   .34E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.1626        41.143        .25717E-02   -1.5492    
   2  Prefactor     9.6179        29.082        .12567E-03   -1.5088    
   3  Prefactor     7.6861        27.037        .14309E-03   -1.5153    
   4  Prefactor     6.5530        8.1977        .15644E-03   -1.5196    
   5  norm          .10000E-03    4.1330        .15170E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .47079        6.7136        .26533E-02   -1.5571    
   7  Prefactor     3.8125        3.6065        .13292E-03   -1.5317    
   8  Prefactor     36.454        31.723        .66484E-04   -1.4500    
   9  norm          7.1151        2.7109        .75412E-04   -1.5174    
  10  Prefactor     .10000E-03    2.3167        .11268E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10002E-03    38.348        .32297E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     64.693        55.107        .48689E-04   -1.4098    
  13  Prefactor     10.897        20.745        .12114E-03   -1.5048    
  14  Prefactor     9.2943        4.3901        .10476E-03   -1.5098    
  15  Prefactor     .10000E-03    7.8267        .25802E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    10.079        .20718E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    165.95        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    8.9241        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    25.418        .21403E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          1.5869        .33519        .19659E-04   -1.5456    
  21  Prefactor     .10006E-03    38.898        .41387E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    6.4303        .18937E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    129.38        .18272E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          13.545        10.933        .10825E-03   -1.4972    
  25  Prefactor     3.9537        3.0856        .10249E-03   -1.5310    
  26  Prefactor     23.063        41.971        .82554E-04   -1.4747    
  27  norm          .10000E-03    1.4094        .17534E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    .99574        .19425        .21281E-03   -.93173    
  29  Prefactor     .77445        .23119        .30123E-03   -1.0068    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.38443e-08
Minuit parameter uncertainties:
  1  13.8418
  2  29.1251
  3  27.0802
  4  8.19912
  5  9.08947e-07
  6  3.55578
  7  3.60666
  8  31.738
  9  2.71092
  10  1.38381e-06
  11  0.00180453
  12  55.1509
  13  20.7586
  14  4.39023
  15  5.3073e-05
  16  1.53298e-06
  17  0.00068254
  18  1.39786e-06
  19  2.61254e-05
  20  0.335194
  21  0.00310198
  22  4.96783e-06
  23  3.53849e-05
  24  10.9349
  25  3.08576
  26  42.0248
  27  3.31975e-06
  28  0.194383
  29  0.231479
Done.

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

Extracting fit parameters...

4FGL J1033.1+4115
   Spectrum: PowerLaw
339    Prefactor:  9.294e+00  4.390e+00  1.000e-04  1.000e+04 ( 1.000e-12)
340        Index:  2.412e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
341        Scale:  6.847e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
678    Prefactor:  7.744e-01  2.315e-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:  9.957e-01  1.944e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 12.85
Ra Dec: 158.275 41.262
Photon Index (Fixed Index): 2.41 +/- 0.00
Photon Flux (Fixed Index): 6.83e-08 +/- 3.22e-08
Energy Flux (Fixed Index): 2.20e-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) = 5866.64946308
delta logL = 0.144318498734

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5866.64922668
delta logL = 0.144554897136

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    10.396       1.0000         .10000E-03   10000.    
     2 'Index     '    2.1600       1.0000          .0000       10.000    
     3 'Normalizat'    1.0138       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .75768       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=   5866.649     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      263 TOTAL
                     EDM=   .55E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     10.388        117.83        .31067E-02    .35913E-04
   2  Index         2.1590        5.9762        .17630        .24608E-04
   3  Normalizat    1.0138        .15160        .44485E-01    .76345E-05
   4  Prefactor     .75774        .15310        .68740E-01    .19426E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 10.388
  Index      = 2.15902
  Normalizat = 1.01384
  Prefactor  = 0.75774
 **********
 **   18 **HESSE 
 **********

 FCN=   5866.649     FROM HESSE     STATUS=OK            33 CALLS      296 TOTAL
                     EDM=   .36E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     10.388        5.1802        .11509E-03   -1.5063    
   2  Index         2.1590        .45356        .65762E-02   -.60431    
   3  Normalizat    1.0138        .18257        .21116E-03   -.92568    
   4  Prefactor     .75774        .22818        .30416E-03   -1.0131    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.57431e-13
Minuit parameter uncertainties:
  1  5.18042
  2  0.454479
  3  0.182685
  4  0.228466
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/973276': 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) = 5866.64922211
delta logL = 0.144559469132

Extracting fit parameters...

4FGL J1033.1+4115
   Spectrum: PowerLaw
339    Prefactor:  1.039e+01  5.180e+00  1.000e-04  1.000e+04 ( 1.000e-12)
340        Index:  2.159e+00  4.545e-01  0.000e+00  1.000e+01 (-1.000e+00)
341        Scale:  6.847e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
678    Prefactor:  7.577e-01  2.285e-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.014e+00  1.827e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 13.09
Ra Dec: 158.275 41.262
Photon Index (Free Index): 2.16 +/- 0.45
Photon Flux (Free Index): 5.71e-08 +/- 3.45e-08
Energy Flux (Free Index): 2.77e-05 +/- 2.00e-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/973276/cmap_HighResolution_355190401_355449601_4FGL_J1033.1+4115_daily_bin447.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='6.83e-08', energy_flux2='2.77e-05', photon_flux_error='3.22e-08', dlogl='1.45e-01', energy_flux='2.20e-05', photon_flux2='5.71e-08', job_status='DONE', time_completed='2021-09-02 03:29:13.343764', photon_index_error2='0.45', photon_index2='2.16', ts='12.85', fit_tolerance='1e-08', GAL='0.77', photon_index_error='0.00', energy_flux_error2='2.00e-05', EG='1.00', time_epoch_completed='1630578553.34', return_code='0', job_id='973276', GAL2='0.76', EG2='1.01', return_code2='0', energy_flux_error='1.04e-05', photon_flux_error2='3.45e-08', ts2='13.09', photon_index='2.41' WHERE bin_id='447' AND source_name='4FGL J1033.1+4115' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  2 03:29:13 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0254>
Subject: Job 973276: <4FGL_J1033.1+4115_daily_bin447> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1033.1+4115_daily_bin447 158.275 41.262 355190401 355449601 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 :                                   776.11 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             314.04 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   799 sec.
    Turnaround time :                            805 sec.

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

