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


Performing analysis on: 4FGL_J1033.1+4115_daily_bin576
RA = 158.275, Dec = 41.262
tmin = 388627201, tmax = 388886401
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='974610', job_status='RUN', time_executed='2021-09-02 03:22:20.168000', time_epoch_executed='1630578140.17' WHERE source_name='4FGL J1033.1+4115' and cadence='daily' and bin_id='576'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/974610

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/974610/ft1_4FGL_J1033.1+4115_daily_bin576.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/974610/ft2_4FGL_J1033.1+4115_daily_bin576.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/974610/ft1_4FGL_J1033.1+4115_daily_bin576.fits outfile=/scratch/kocevski/974610/ft1_filteredMKT_4FGL_J1033.1+4115_daily_bin576.fits ra=158.275 dec=41.262 rad=12.0 tmin=388627201.0 tmax=388886401.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.13
user 3.86
sys 0.24

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/974610/ft2_4FGL_J1033.1+4115_daily_bin576.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/974610/ft1_filteredMKT_4FGL_J1033.1+4115_daily_bin576.fits evtable="EVENTS" outfile="/scratch/kocevski/974610/ft1_filtered_4FGL_J1033.1+4115_daily_bin576.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.64
user 0.37
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/974610/ft1_filtered_4FGL_J1033.1+4115_daily_bin576.fits" evtable="EVENTS" scfile=/scratch/kocevski/974610/ft2_4FGL_J1033.1+4115_daily_bin576.fits sctable="SC_DATA" outfile=/scratch/kocevski/974610/ltcube_388627201_388886401_4FGL_J1033.1+4115_daily_bin576.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/974610/ft2_4FGL_J1033.1+4115_daily_bin576.fits
.....................!
real 16.34
user 15.97
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/974610/ft1_filtered_4FGL_J1033.1+4115_daily_bin576.fits evtable="EVENTS" scfile=/scratch/kocevski/974610/ft2_4FGL_J1033.1+4115_daily_bin576.fits sctable="SC_DATA" expcube=/scratch/kocevski/974610/ltcube_388627201_388886401_4FGL_J1033.1+4115_daily_bin576.fits outfile=/scratch/kocevski/974610/expmap_388627201_388886401_4FGL_J1033.1+4115_daily_bin576.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/974610/ltcube_388627201_388886401_4FGL_J1033.1+4115_daily_bin576.fits
.....................!
real 191.01
user 186.57
sys 4.03

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/974610/ft1_filtered_4FGL_J1033.1+4115_daily_bin576.fits scfile=/scratch/kocevski/974610/ft2_4FGL_J1033.1+4115_daily_bin576.fits outfile=/scratch/kocevski/974610/cmap_388627201_388886401_4FGL_J1033.1+4115_daily_bin576.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.40
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/974610/ft1_filtered_4FGL_J1033.1+4115_daily_bin576.fits scfile=/scratch/kocevski/974610/ft2_4FGL_J1033.1+4115_daily_bin576.fits outfile=/scratch/kocevski/974610/cmap_HighResolution_388627201_388886401_4FGL_J1033.1+4115_daily_bin576.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.57
user 0.41
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .13768E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10516       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .26057E-02   1.0000         .10000E-03   10000.    
     4 'Prefactor '    5.5924       1.0000         .10000E-03   10000.    
     5 'norm      '    .32522E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .40210E-02   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .45056       1.0000         .10000E-03   10000.    
     8 'Prefactor '    21.679       1.0000         .10000E-03   10000.    
     9 'norm      '    7.2898       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    2.8505       1.0000         .10000E-03   10000.    
    12 'Prefactor '    8.2974       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .45940E-02   1.0000         .10000E-03   10000.    
    14 'Prefactor '    1.5216       1.0000         .10000E-03   10000.    
    15 'Prefactor '    9.4135       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .75215E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10141E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .21509E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .23664E-02   1.0000         .10000E-03   10000.    
    20 'norm      '    3.5826       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .46295E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    6.3489       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    3.8571       1.0000         .10000E-03   10000.    
    25 'Prefactor '    2.8791       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10060E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    4.3501       1.0000         .10000E-03   10000.    
    28 'Normalizat'    .96119       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .82353       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=   5368.151     FROM MIGRAD    STATUS=CONVERGED    810 CALLS     3253 TOTAL
                     EDM=   .71E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  8.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    8.0981        .36402E-07** at limit **
   2  Prefactor     .10006E-03    234.69        .58821E-04** at limit **
   3  Prefactor     .10000E-03    30.675        .26775E-05** at limit **
   4  Prefactor     5.5781        9.5080       -.47864E-06   -.30853E-04
   5  norm          .10000E-03    3.7252        .19848E-06** at limit **
   6  Prefactor     .10002E-03    5.5669        .69830E-05** at limit **
   7  Prefactor     .46070        2.4020        .36169E-06    .24959E-03
   8  Prefactor     21.517        25.401        .65571E-05    .91214E-04
   9  norm          7.2948        3.2620        .81523E-07   -.78562E-04
  10  Prefactor     .10000E-03    3.2084        .74705E-06** at limit **
  11  norm          2.8808        10.681        .20695E-05    .71987E-04
  12  Prefactor     11.114        52.224       -.25693E-05   -.13442E-04
  13  Prefactor     .10000E-03    43.169        .34375E-05** at limit **
  14  Prefactor     1.5265        3.5576       -.37474E-05   -.31717E-03
  15  Prefactor     9.3876        6.0578        .69249E-06   -.10319E-03
  16  Prefactor     .10000E-03    13.511        .28387E-06** at limit **
  17  Prefactor     .10000E-03    31.578       -.22430E-05** at limit **
  18  Prefactor     .10000E-03    8.2009       -.62960E-07** at limit **
  19  Prefactor     .10000E-03    60.435       -.23833E-05** at limit **
  20  norm          3.5852        .54064        .10747E-06    .20245E-02
  21  Prefactor     .10001E-03    42.795       -.63721E-05** at limit **
  22  Prefactor     6.0025        18.452       -.19813E-05    .12202E-03
  23  Prefactor     .10000E-03    32.888       -.43370E-06** at limit **
  24  norm          4.1234        15.586       -.13732E-05    .13983E-03
  25  Prefactor     2.8874        3.7620       -.81845E-06    .13507E-03
  26  Prefactor     .10000E-03    22.937        .22881E-05** at limit **
  27  norm          4.3475        3.1776        .14482E-06    .13643E-03
  28  Normalizat    .96033        .17391       -.14704E-05    .12228E-03
  29  Prefactor     .82330        .20868        .15109E-06   -.21430E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 0.000100061
  Prefactor  = 0.0001
  Prefactor  = 5.57806
  norm       = 0.0001
  Prefactor  = 0.000100015
  Prefactor  = 0.460701
  Prefactor  = 21.5174
  norm       = 7.29483
  Prefactor  = 0.0001
  norm       = 2.88076
  Prefactor  = 11.114
  Prefactor  = 0.0001
  Prefactor  = 1.52649
  Prefactor  = 9.38755
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.5852
  Prefactor  = 0.000100007
  Prefactor  = 6.00251
  Prefactor  = 0.0001
  norm       = 4.12344
  Prefactor  = 2.88736
  Prefactor  = 0.0001
  norm       = 4.34754
  Normalizat = 0.960326
  Prefactor  = 0.823299
 **********
 **   18 **HESSE 
 **********

 FCN=   5368.151     FROM HESSE     STATUS=OK           559 CALLS     3812 TOTAL
                     EDM=   .24E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    8.1084        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10006E-03    256.54        .66950E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    30.795        .19976E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     5.5781        9.4707        .16988E-03   -1.5236    
   5  norm          .10000E-03    3.7312        .13810E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10002E-03    24.481        .23160E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .46070        7.5016        .20755E-02   -1.5572    
   8  Prefactor     21.517        25.563        .86027E-04   -1.4780    
   9  norm          7.2948        3.2591        .85458E-04   -1.5168    
  10  Prefactor     .10000E-03    3.2791        .25519E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          2.8808        10.560        .24082E-03   -1.5368    
  12  Prefactor     11.114        52.063        .13918E-03   -1.5041    
  13  Prefactor     .10000E-03    43.318        .19317E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     1.5265        3.5636        .19721E-03   -1.5461    
  15  Prefactor     9.3876        6.0270        .13062E-03   -1.5095    
  16  Prefactor     .10000E-03    13.522        .20938E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    31.591        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    8.2055        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    60.558        .20072E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          3.5852        .54344        .19367E-04   -1.5329    
  21  Prefactor     .10001E-03    42.990        .42390E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     6.0025        18.414        .15930E-03   -1.5218    
  23  Prefactor     .10000E-03    32.894        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          4.1234        15.423        .20548E-03   -1.5302    
  25  Prefactor     2.8874        3.7305        .14880E-03   -1.5368    
  26  Prefactor     .10000E-03    22.970        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          4.3475        3.1652        .10494E-03   -1.5291    
  28  Normalizat    .96033        .19759        .22245E-03   -.94372    
  29  Prefactor     .82330        .24317        .30502E-03   -.98875    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.35097e-09
Minuit parameter uncertainties:
  1  2.2576e-06
  2  0.00793193
  3  2.96938e-05
  4  9.47322
  5  7.9943e-06
  6  0.00122863
  7  3.71821
  8  25.5762
  9  3.25915
  10  8.26681e-07
  11  10.5669
  12  48.1779
  13  9.1352e-05
  14  3.56413
  15  6.02736
  16  6.07857e-05
  17  2.57626e-05
  18  1.09739e-05
  19  5.59671e-05
  20  0.543445
  21  0.00107852
  22  18.4314
  23  6.63949e-06
  24  15.4382
  25  3.73081
  26  0.000127823
  27  3.16529
  28  0.197741
  29  0.243487
Done.

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

Extracting fit parameters...

4FGL J1033.1+4115
   Spectrum: PowerLaw
339    Prefactor:  1.526e+00  3.564e+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:  8.233e-01  2.435e-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.603e-01  1.977e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.24
Ra Dec: 158.275 41.262
Photon Flux Upper Limit: 7.71e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.97e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/974610/likelihoodResults_388627201_388886401_4FGL_J1033.1+4115_daily_bin576.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5368.0485694
delta logL = 0.102850148328

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5368.0359123
delta logL = 0.115507246115

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.1026       1.0000         .10000E-03   10000.    
     2 'Index     '    3.0634       1.0000          .0000       10.000    
     3 'Normalizat'    .95033       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .83051       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=   5368.036     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      208 TOTAL
                     EDM=   .69E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.1032        51.506        .11298E-01    .65215E-03
   2  Index         3.0617        6.5175        .21965        .53075E-04
   3  Normalizat    .95003        .37278E-01    .45541E-01   -.36662E-04
   4  Prefactor     .83106        .47920E-01    .68641E-01   -.62249E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.10322
  Index      = 3.06168
  Normalizat = 0.950032
  Prefactor  = 0.831062
 **********
 **   18 **HESSE 
 **********

 FCN=   5368.036     FROM HESSE     STATUS=OK            33 CALLS      241 TOTAL
                     EDM=   .85E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.1032        3.0182        .12269E-03   -1.5498    
   2  Index         3.0617        1.6091        .10896E-01   -.39810    
   3  Normalizat    .95003        .19126        .22347E-03   -.94724    
   4  Prefactor     .83106        .24271        .30368E-03   -.98593    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.46029e-09
Minuit parameter uncertainties:
  1  3.01866
  2  1.64373
  3  0.191399
  4  0.243023
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/974610': 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) = 5368.03590803
delta logL = 0.115511514729

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
678    Prefactor:  8.311e-01  2.430e-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.500e-01  1.914e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.24
Ra Dec: 158.275 41.262

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/974610/cmap_HighResolution_388627201_388886401_4FGL_J1033.1+4115_daily_bin576.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.97e-03', job_status='DONE', photon_flux_upper_limit='7.71e-08', time_completed='2021-09-02 03:36:04.798955', job_id='974610', GAL2='0.83', fit_tolerance='1e-08', EG2='0.95', EG='0.96', time_epoch_completed='1630578964.8', return_code2='0', ts='0.24', comment='SUCCESS', return_code='0', GAL='0.82', dlogl='1.16e-01', ts2='0.47', photon_index_error='0.00', photon_index='2.41' WHERE bin_id='576' AND source_name='4FGL J1033.1+4115' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  2 03:36:04 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0073>
Subject: Job 974610: <4FGL_J1033.1+4115_daily_bin576> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1033.1+4115_daily_bin576 158.275 41.262 388627201 388886401 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 :                                   821.48 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             304.29 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   939 sec.
    Turnaround time :                            943 sec.

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

