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


Performing analysis on: 4FGL_J1033.1+4115_daily_bin704
RA = 158.275, Dec = 41.262
tmin = 421804801, tmax = 422064001
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='974791', job_status='RUN', time_executed='2021-09-02 03:22:53.783532', time_epoch_executed='1630578173.78' WHERE source_name='4FGL J1033.1+4115' and cadence='daily' and bin_id='704'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/974791

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/974791/ft1_4FGL_J1033.1+4115_daily_bin704.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/974791/ft2_4FGL_J1033.1+4115_daily_bin704.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/974791/ft1_4FGL_J1033.1+4115_daily_bin704.fits outfile=/scratch/kocevski/974791/ft1_filteredMKT_4FGL_J1033.1+4115_daily_bin704.fits ra=158.275 dec=41.262 rad=12.0 tmin=421804801.0 tmax=422064001.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.71
user 3.35
sys 0.25

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/974791/ft1_filtered_4FGL_J1033.1+4115_daily_bin704.fits evtable="EVENTS" scfile=/scratch/kocevski/974791/ft2_4FGL_J1033.1+4115_daily_bin704.fits sctable="SC_DATA" expcube=/scratch/kocevski/974791/ltcube_421804801_422064001_4FGL_J1033.1+4115_daily_bin704.fits outfile=/scratch/kocevski/974791/expmap_421804801_422064001_4FGL_J1033.1+4115_daily_bin704.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/974791/ltcube_421804801_422064001_4FGL_J1033.1+4115_daily_bin704.fits
.....................!
real 193.79
user 187.86
sys 4.93

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/974791/ft1_filtered_4FGL_J1033.1+4115_daily_bin704.fits scfile=/scratch/kocevski/974791/ft2_4FGL_J1033.1+4115_daily_bin704.fits outfile=/scratch/kocevski/974791/cmap_421804801_422064001_4FGL_J1033.1+4115_daily_bin704.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.66
user 0.40
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/974791/ft1_filtered_4FGL_J1033.1+4115_daily_bin704.fits scfile=/scratch/kocevski/974791/ft2_4FGL_J1033.1+4115_daily_bin704.fits outfile=/scratch/kocevski/974791/cmap_HighResolution_421804801_422064001_4FGL_J1033.1+4115_daily_bin704.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.66
user 0.41
sys 0.19

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    59.470       1.0000         .10000E-03   10000.    
     2 'Prefactor '    5.4700       1.0000         .10000E-03   10000.    
     3 'Prefactor '    42.670       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .18460E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    9.8379       1.0000         .10000E-03   10000.    
     9 'norm      '    13.803       1.0000         .10000E-03   10000.    
    10 'Prefactor '    1.3048       1.0000         .10000E-03   10000.    
    11 'norm      '    20.695       1.0000         .10000E-03   10000.    
    12 'Prefactor '    42.319       1.0000         .10000E-03   10000.    
    13 'Prefactor '    69.050       1.0000         .10000E-03   10000.    
    14 'Prefactor '    15.435       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .11850E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10040E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    54.691       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10038E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    71.255       1.0000         .10000E-03   10000.    
    20 'norm      '    2.1437       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10033E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10033E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    4.2185       1.0000         .10000E-03   10000.    
    25 'Prefactor '    2.2426       1.0000         .10000E-03   10000.    
    26 'Prefactor '    23.314       1.0000         .10000E-03   10000.    
    27 'norm      '    5.8061       1.0000         .10000E-03   10000.    
    28 'Normalizat'    .51754       1.0000         .10000E-01   10.000    
    29 'Prefactor '    1.5289       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=   6361.753     FROM MIGRAD    STATUS=CONVERGED    716 CALLS     3712 TOTAL
                     EDM=   .10E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          59.467        27.376        .34929E-06   -.13734E-04
   2  Prefactor     5.5035        88.623       -.24928E-05    .13330E-04
   3  Prefactor     42.672        58.175        .17978E-05    .14597E-04
   4  Prefactor     .10000E-03    2.9605        .69406E-07** at limit **
   5  norm          .10000E-03    4.5159        .18782E-06** at limit **
   6  Prefactor     .10000E-03    2.4018        .13487E-06** at limit **
   7  Prefactor     .10000E-03    1.3492       -.67451E-07** at limit **
   8  Prefactor     9.8173        34.847        .55451E-06   -.17645E-04
   9  norm          13.802        4.0326        .76911E-08    .89028E-05
  10  Prefactor     1.3086        4.6732        .14024E-05    .38653E-04
  11  norm          20.699        14.862       -.49135E-07    .33526E-04
  12  Prefactor     42.300        48.730       -.31145E-07   -.26227E-04
  13  Prefactor     68.986        43.592       -.57949E-07   -.55780E-04
  14  Prefactor     15.436        6.5234        .41705E-07    .46276E-04
  15  Prefactor     .10000E-03    3.7307       -.23710E-05** at limit **
  16  Prefactor     .10000E-03    14.030       -.42656E-06** at limit **
  17  Prefactor     54.571        65.825       -.67375E-06   -.12324E-03
  18  Prefactor     .10000E-03    15.400        .21463E-06** at limit **
  19  Prefactor     71.285        92.582        .74756E-06    .21671E-04
  20  norm          2.1439        .41260       -.36938E-07    .10503E-03
  21  Prefactor     .10000E-03    26.157       -.99574E-06** at limit **
  22  Prefactor     .10000E-03    5.8909       -.16121E-07** at limit **
  23  Prefactor     .10000E-03    56.875        .15797E-06** at limit **
  24  norm          4.2222        11.224        .80130E-05   -.56802E-04
  25  Prefactor     2.2401        4.2496        .38274E-06   -.11905E-03
  26  Prefactor     23.297        73.890       -.28120E-05   -.56633E-05
  27  norm          5.8060        4.0373        .14518E-06   -.25797E-04
  28  Normalizat    .51762        .18725       -.12213E-05   -.13940E-04
  29  Prefactor     1.5288        .22514       -.14422E-06   -.14447E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 59.4665
  Prefactor  = 5.50353
  Prefactor  = 42.6715
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 9.81726
  norm       = 13.8018
  Prefactor  = 1.30862
  norm       = 20.6992
  Prefactor  = 42.3005
  Prefactor  = 68.9861
  Prefactor  = 15.4364
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 54.5712
  Prefactor  = 0.0001
  Prefactor  = 71.2849
  norm       = 2.14386
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 4.22224
  Prefactor  = 2.24006
  Prefactor  = 23.2972
  norm       = 5.80597
  Normalizat = 0.51762
  Prefactor  = 1.52877
 **********
 **   18 **HESSE 
 **********

 FCN=   6361.753     FROM HESSE     STATUS=OK           557 CALLS     4269 TOTAL
                     EDM=   .21E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          59.467        27.168        .52026E-04   -1.4164    
   2  Prefactor     5.5035        82.855        .17180E-03   -1.5239    
   3  Prefactor     42.672        57.119        .61370E-04   -1.4401    
   4  Prefactor     .10000E-03    2.9648        .13402E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    4.5345        .16553E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    4.9356        .23990E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    1.3528        .90278E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     9.8173        34.785        .12776E-03   -1.5081    
   9  norm          13.802        4.0279        .83495E-04   -1.4965    
  10  Prefactor     1.3086        4.6391        .29964E-03   -1.5479    
  11  norm          20.699        14.817        .88045E-04   -1.4798    
  12  Prefactor     42.300        48.732        .61623E-04   -1.4406    
  13  Prefactor     68.986        43.342        .24153E-03   -1.4045    
  14  Prefactor     15.436        6.5191        .10195E-03   -1.4922    
  15  Prefactor     .10000E-03    3.7505        .14992E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    14.035        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     54.571        65.818        .27119E-03   -1.4229    
  18  Prefactor     .10000E-03    15.428        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     71.285        92.593        .23779E-03   -1.4017    
  20  norm          2.1439        .41245        .21603E-04   -1.5415    
  21  Prefactor     .10000E-03    26.756        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    5.8964        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    56.915        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          4.2222        11.223        .98099E-03   -1.5297    
  25  Prefactor     2.2401        4.3588        .16423E-03   -1.5409    
  26  Prefactor     23.297        76.640        .82958E-04   -1.4742    
  27  norm          5.8060        4.0541        .11618E-03   -1.5226    
  28  Normalizat    .51762        .21328        .33394E-03   -1.1161    
  29  Prefactor     1.5288        .26103        .26660E-03   -.76737    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.07005e-10
Minuit parameter uncertainties:
  1  27.1734
  2  42.7788
  3  57.1924
  4  4.68048e-07
  5  3.37303e-06
  6  3.04538e-06
  7  4.86274e-06
  8  34.8569
  9  4.02795
  10  4.64038
  11  14.8199
  12  48.7778
  13  43.3622
  14  6.51942
  15  9.3515e-06
  16  2.74135e-05
  17  65.9058
  18  4.52485e-05
  19  92.7809
  20  0.412455
  21  0.000269276
  22  4.06194e-06
  23  0.000177808
  24  11.2288
  25  4.35942
  26  76.9669
  27  4.0543
  28  0.213613
  29  0.261262
Done.

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

Extracting fit parameters...

4FGL J1033.1+4115
   Spectrum: PowerLaw
339    Prefactor:  1.544e+01  6.519e+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.529e+00  2.613e-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:  5.176e-01  2.136e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 11.73
Ra Dec: 158.275 41.262
Photon Index (Fixed Index): 2.41 +/- 0.00
Photon Flux (Fixed Index): 1.13e-07 +/- 4.78e-08
Energy Flux (Fixed Index): 3.66e-05 +/- 1.54e-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) = 6361.74509997
delta logL = 0.00829349456762

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6361.73937028
delta logL = 0.0140231883288

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    14.651       1.0000         .10000E-03   10000.    
     2 'Index     '    2.4823       1.0000          .0000       10.000    
     3 'Normalizat'    .51145       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.5352       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=   6361.739     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      209 TOTAL
                     EDM=   .39E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     14.654        103.67        .26160E-02    .82259E-04
   2  Index         2.4822        3.3788        .12829        .89398E-04
   3  Normalizat    .51149        .11570        .75832E-01    .37330E-04
   4  Prefactor     1.5352        .13601        .60196E-01    .24996E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 14.6542
  Index      = 2.48219
  Normalizat = 0.511488
  Prefactor  = 1.53517
 **********
 **   18 **HESSE 
 **********

 FCN=   6361.739     FROM HESSE     STATUS=OK            33 CALLS      242 TOTAL
                     EDM=   .27E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     14.654        8.0020        .10464E-03   -1.4942    
   2  Index         2.4822        .43749        .51744E-02   -.52772    
   3  Normalizat    .51149        .20153        .33580E-03   -1.1189    
   4  Prefactor     1.5352        .26080        .26616E-03   -.76559    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.70717e-12
Minuit parameter uncertainties:
  1  8.0026
  2  0.438241
  3  0.20182
  4  0.261027
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/974791': 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) = 6361.73937012
delta logL = 0.0140233446136

Extracting fit parameters...

4FGL J1033.1+4115
   Spectrum: PowerLaw
339    Prefactor:  1.465e+01  8.003e+00  1.000e-04  1.000e+04 ( 1.000e-12)
340        Index:  2.482e+00  4.382e-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.535e+00  2.610e-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:  5.115e-01  2.018e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 11.74
Ra Dec: 158.275 41.262
Photon Index (Free Index): 2.48 +/- 0.44
Photon Flux (Free Index): 1.17e-07 +/- 5.25e-08
Energy Flux (Free Index): 3.47e-05 +/- 1.79e-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/974791/cmap_HighResolution_421804801_422064001_4FGL_J1033.1+4115_daily_bin704.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.13e-07', energy_flux2='3.47e-05', photon_flux_error='4.78e-08', dlogl='1.40e-02', energy_flux='3.66e-05', photon_flux2='1.17e-07', job_status='DONE', time_completed='2021-09-02 03:36:41.495084', photon_index_error2='0.44', photon_index2='2.48', ts='11.73', fit_tolerance='1e-08', GAL='1.53', photon_index_error='0.00', energy_flux_error2='1.79e-05', EG='0.52', time_epoch_completed='1630579001.5', return_code='0', job_id='974791', GAL2='1.54', EG2='0.51', return_code2='0', energy_flux_error='1.54e-05', photon_flux_error2='5.25e-08', ts2='11.74', photon_index='2.41' WHERE bin_id='704' AND source_name='4FGL J1033.1+4115' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  2 03:36:41 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0130>
Subject: Job 974791: <4FGL_J1033.1+4115_daily_bin704> in cluster <slac> Done

Job <4FGL_J1033.1+4115_daily_bin704> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Thu Sep  2 03:20:33 2021
Job was executed on host(s) <bullet0130>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  2 03:20:50 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:20:50 2021
Terminated at Thu Sep  2 03:36:42 2021
Results reported at Thu Sep  2 03:36:42 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1033.1+4115_daily_bin704 158.275 41.262 421804801 422064001 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 :                                   815.40 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             323.87 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   952 sec.
    Turnaround time :                            969 sec.

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

