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


Performing analysis on: 4FGL_J1033.1+4115_daily_bin95
RA = 158.275, Dec = 41.262
tmin = 263952001, tmax = 264211201
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='973067', job_status='RUN', time_executed='2021-09-02 03:18:38.415933', time_epoch_executed='1630577918.42' WHERE source_name='4FGL J1033.1+4115' and cadence='daily' and bin_id='95'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/973067

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/973067/ft1_4FGL_J1033.1+4115_daily_bin95.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/973067/ft2_4FGL_J1033.1+4115_daily_bin95.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/973067/ft1_4FGL_J1033.1+4115_daily_bin95.fits outfile=/scratch/kocevski/973067/ft1_filteredMKT_4FGL_J1033.1+4115_daily_bin95.fits ra=158.275 dec=41.262 rad=12.0 tmin=263952001.0 tmax=264211201.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 1.82
user 1.53
sys 0.19

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/973067/ft1_filtered_4FGL_J1033.1+4115_daily_bin95.fits evtable="EVENTS" scfile=/scratch/kocevski/973067/ft2_4FGL_J1033.1+4115_daily_bin95.fits sctable="SC_DATA" expcube=/scratch/kocevski/973067/ltcube_263952001_264211201_4FGL_J1033.1+4115_daily_bin95.fits outfile=/scratch/kocevski/973067/expmap_263952001_264211201_4FGL_J1033.1+4115_daily_bin95.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/973067/ltcube_263952001_264211201_4FGL_J1033.1+4115_daily_bin95.fits
.....................!
real 192.14
user 187.11
sys 4.15

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/973067/ft1_filtered_4FGL_J1033.1+4115_daily_bin95.fits scfile=/scratch/kocevski/973067/ft2_4FGL_J1033.1+4115_daily_bin95.fits outfile=/scratch/kocevski/973067/cmap_263952001_264211201_4FGL_J1033.1+4115_daily_bin95.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/973067/ft1_filtered_4FGL_J1033.1+4115_daily_bin95.fits scfile=/scratch/kocevski/973067/ft2_4FGL_J1033.1+4115_daily_bin95.fits outfile=/scratch/kocevski/973067/cmap_HighResolution_263952001_264211201_4FGL_J1033.1+4115_daily_bin95.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=158.275 yref=41.262 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.56
user 0.42
sys 0.13

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    14.995       1.0000         .10000E-03   10000.    
     2 'Prefactor '    21.241       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    25.072       1.0000         .10000E-03   10000.    
     5 'norm      '    18.015       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .16498E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    55.404       1.0000         .10000E-03   10000.    
     9 'norm      '    7.9922       1.0000         .10000E-03   10000.    
    10 'Prefactor '    6.9885       1.0000         .10000E-03   10000.    
    11 'norm      '    10.474       1.0000         .10000E-03   10000.    
    12 'Prefactor '    17.063       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10936E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    28.296       1.0000         .10000E-03   10000.    
    15 'Prefactor '    12.710       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .16726E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    2.2268       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    3.6213       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    .55057       1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.0648       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .57714       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=   5774.472     FROM MIGRAD    STATUS=CONVERGED    734 CALLS     3763 TOTAL
                     EDM=   .84E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          14.995        17.847       -.23914E-07   -.59097E-05
   2  Prefactor     21.243        28.599        .64417E-07   -.28919E-05
   3  Prefactor     .10000E-03    13.271        .68822E-06** at limit **
   4  Prefactor     25.074        13.358       -.10781E-06    .11079E-03
   5  norm          18.015        15.887        .86813E-07    .33696E-05
   6  Prefactor     .10000E-03    4.5368       -.28579E-07** at limit **
   7  Prefactor     .10002E-03    4.8808       -.26522E-05** at limit **
   8  Prefactor     55.405        35.417        .29971E-07    .23828E-04
   9  norm          7.9922        3.4446       -.28435E-07   -.15343E-03
  10  Prefactor     6.9891        4.7768       -.29438E-06    .53635E-03
  11  norm          10.474        7.5632        .18301E-07    .65156E-04
  12  Prefactor     17.064        28.759        .17874E-07    .15429E-04
  13  Prefactor     .10001E-03    53.497       -.77003E-05** at limit **
  14  Prefactor     28.295        6.8737        .25485E-07    .14274E-03
  15  Prefactor     12.713        6.1063        .39724E-06    .85226E-03
  16  Prefactor     .10000E-03    8.2561       -.66399E-06** at limit **
  17  Prefactor     .10000E-03    46.092        .51704E-05** at limit **
  18  Prefactor     .10000E-03    34.111       -.11577E-05** at limit **
  19  Prefactor     .10000E-03    213.88        .41218E-05** at limit **
  20  norm          2.2268        .40050        .45478E-08    .76335E-03
  21  Prefactor     .10000E-03    9.1008       -.10135E-05** at limit **
  22  Prefactor     .10000E-03    6.2268        .51696E-07** at limit **
  23  Prefactor     .10000E-03    48.610        .24727E-05** at limit **
  24  norm          3.6220        7.6800        .20515E-05    .61060E-03
  25  Prefactor     .10000E-03    1.0068        .61101E-07** at limit **
  26  Prefactor     .10000E-03    14.104       -.52992E-06** at limit **
  27  norm          .55024        1.5879        .15139E-07    .44348E-04
  28  Normalizat    1.0648        .18031       -.16864E-06    .20580E-03
  29  Prefactor     .57698        .21313       -.30405E-06    .10902E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 14.995
  Prefactor  = 21.2434
  Prefactor  = 0.0001
  Prefactor  = 25.0742
  norm       = 18.0153
  Prefactor  = 0.0001
  Prefactor  = 0.000100025
  Prefactor  = 55.405
  norm       = 7.99224
  Prefactor  = 6.98914
  norm       = 10.4737
  Prefactor  = 17.0635
  Prefactor  = 0.000100006
  Prefactor  = 28.2949
  Prefactor  = 12.7128
  Prefactor  = 0.0001
  Prefactor  = 0.000100003
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 2.22683
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 3.62201
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.550243
  Normalizat = 1.06484
  Prefactor  = 0.576982
 **********
 **   18 **HESSE 
 **********

 FCN=   5774.472     FROM HESSE     STATUS=OK           555 CALLS     4318 TOTAL
                     EDM=   .40E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          14.995        17.882        .10343E-03   -1.4933    
   2  Prefactor     21.243        28.702        .86907E-04   -1.4786    
   3  Prefactor     .10000E-03    13.292        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     25.074        13.297        .80001E-04   -1.4706    
   5  norm          18.015        15.901        .94364E-04   -1.4859    
   6  Prefactor     .10000E-03    4.5821        .15794E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10002E-03    8.6808        .20873E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     55.405        35.476        .53891E-04   -1.4218    
   9  norm          7.9922        3.4476        .44662E-03   -1.5142    
  10  Prefactor     6.9891        4.5012        .12272E-03   -1.5179    
  11  norm          10.474        7.5610        .12380E-03   -1.5061    
  12  Prefactor     17.064        28.756        .96960E-04   -1.4882    
  13  Prefactor     .10001E-03    54.969        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     28.295        6.8813        .75315E-04   -1.4644    
  15  Prefactor     12.713        6.1677        .11236E-03   -1.4995    
  16  Prefactor     .10000E-03    8.2640        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    46.444        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    34.528        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    215.49        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          2.2268        .40091        .19638E-04   -1.5410    
  21  Prefactor     .10000E-03    9.1553        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    6.2340        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    48.711        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          3.6220        8.1408        .10616E-02   -1.5327    
  25  Prefactor     .10000E-03    1.0153        .74429E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    14.110        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          .55024        1.4228        .15744E-02   -1.5560    
  28  Normalizat    1.0648        .20750        .22284E-03   -.90889    
  29  Prefactor     .57698        .24289        .36085E-03   -1.0856    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.98465e-09
Minuit parameter uncertainties:
  1  17.8884
  2  28.7204
  3  5.01611e-05
  4  13.2982
  5  15.905
  6  1.00062e-06
  7  0.000931096
  8  35.4896
  9  3.44764
  10  4.50138
  11  7.56171
  12  28.779
  13  0.00115747
  14  6.88149
  15  6.16797
  16  3.76504e-05
  17  0.000685217
  18  0.000107506
  19  0.00110067
  20  0.400913
  21  5.17874e-05
  22  4.22534e-06
  23  0.00033746
  24  8.14331
  25  2.24314e-06
  26  3.63978e-05
  27  1.42285
  28  0.207656
  29  0.243333
Done.

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

Extracting fit parameters...

4FGL J1033.1+4115
   Spectrum: PowerLaw
339    Prefactor:  2.829e+01  6.881e+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.770e-01  2.433e-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.065e+00  2.077e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 72.29
Ra Dec: 158.275 41.262
Photon Index (Fixed Index): 2.41 +/- 0.00
Photon Flux (Fixed Index): 2.08e-07 +/- 5.05e-08
Energy Flux (Fixed Index): 6.70e-05 +/- 1.63e-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) = 5770.8964139
delta logL = 3.57545380154

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5770.66162302
delta logL = 3.81024468199

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    34.246       1.0000         .10000E-03   10000.    
     2 'Index     '    1.8524       1.0000          .0000       10.000    
     3 'Normalizat'    1.1328       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .52374       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=   5770.662     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      214 TOTAL
                     EDM=   .84E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     34.246        8.9194        .17119E-02   -.18245E-02
   2  Index         1.8524        .18626        .80727E-01    .86969E-04
   3  Normalizat    1.1328        .17680        .36798E-01    .36225E-04
   4  Prefactor     .52378        .21506        .85216E-01    .29731E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 34.2462
  Index      = 1.85236
  Normalizat = 1.13282
  Prefactor  = 0.523783
 **********
 **   18 **HESSE 
 **********

 FCN=   5770.662     FROM HESSE     STATUS=OK            31 CALLS      245 TOTAL
                     EDM=   .77E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     34.246        8.9253        .68477E-04   -1.4537    
   2  Index         1.8524        .19091        .34870E-02   -.68094    
   3  Normalizat    1.1328        .19779        .21749E-03   -.88705    
   4  Prefactor     .52378        .23921        .37758E-03   -1.1090    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.7429e-10
Minuit parameter uncertainties:
  1  8.92563
  2  0.190982
  3  0.197919
  4  0.239668
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/973067': 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) = 5770.66162288
delta logL = 3.81024481994

Extracting fit parameters...

4FGL J1033.1+4115
   Spectrum: PowerLaw
339    Prefactor:  3.425e+01  8.926e+00  1.000e-04  1.000e+04 ( 1.000e-12)
340        Index:  1.852e+00  1.910e-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.238e-01  2.397e-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.133e+00  1.979e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 79.74
Ra Dec: 158.275 41.262
Photon Index (Free Index): 1.85 +/- 0.19
Photon Flux (Free Index): 1.41e-07 +/- 4.47e-08
Energy Flux (Free Index): 1.45e-04 +/- 6.51e-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/973067/cmap_HighResolution_263952001_264211201_4FGL_J1033.1+4115_daily_bin95.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.08e-07', energy_flux2='1.45e-04', photon_flux_error='5.05e-08', dlogl='3.81e+00', energy_flux='6.70e-05', photon_flux2='1.41e-07', job_status='DONE', time_completed='2021-09-02 03:31:53.445602', photon_index_error2='0.19', photon_index2='1.85', ts='72.29', fit_tolerance='1e-08', GAL='0.58', photon_index_error='0.00', energy_flux_error2='6.51e-05', EG='1.06', time_epoch_completed='1630578713.45', return_code='0', job_id='973067', GAL2='0.52', EG2='1.13', return_code2='0', energy_flux_error='1.63e-05', photon_flux_error2='4.47e-08', ts2='79.74', photon_index='2.41' WHERE bin_id='95' AND source_name='4FGL J1033.1+4115' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  2 03:31:53 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0105>
Subject: Job 973067: <4FGL_J1033.1+4115_daily_bin95> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1033.1+4115_daily_bin95 158.275 41.262 263952001 264211201 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 :                                   788.22 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             290.33 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   987 sec.
    Turnaround time :                            989 sec.

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

