/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/pyfits/__init__.py:22: PyFITSDeprecationWarning: PyFITS is deprecated, please use astropy.io.fits
  PyFITSDeprecationWarning)  # noqa

Likelihood Analysis Tool
Support Contact: Daniel Kocevski (daniel.kocevski@nasa.gov)


Waiting 6 seconds before starting...
Proceeding.

Importing modules...
This is make3FGLxml version 01r0.
The default diffuse model files and names are for pass 8 and assume you have v10r00p05 of the Fermi Science Tools or higher.
This is make4FGLxml version 01r04.
The default diffuse model files and names are for pass 8 and 4FGL and assume you have v11r5p3 of the Fermi Science Tools or higher.

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

/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/cbook/deprecation.py:106: MatplotlibDeprecationWarning: The mpl_toolkits.axes_grid module was deprecated in version 2.1. Use mpl_toolkits.axes_grid1 and mpl_toolkits.axisartist provies the same functionality instead.
  warnings.warn(message, mplDeprecation, stacklevel=1)

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

number of points = 7438
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1033.1+4115_daily_bin1004
RA = 158.275, Dec = 41.262
tmin = 499564801, tmax = 499824001
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='977466', job_status='RUN', time_executed='2021-09-02 03:30:52.424793', time_epoch_executed='1630578652.42' WHERE source_name='4FGL J1033.1+4115' and cadence='daily' and bin_id='1004'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/977466

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/977466/ft1_4FGL_J1033.1+4115_daily_bin1004.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/977466/ft2_4FGL_J1033.1+4115_daily_bin1004.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/977466/ft1_4FGL_J1033.1+4115_daily_bin1004.fits outfile=/scratch/kocevski/977466/ft1_filteredMKT_4FGL_J1033.1+4115_daily_bin1004.fits ra=158.275 dec=41.262 rad=12.0 tmin=499564801.0 tmax=499824001.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 5.25
user 4.84
sys 0.27

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/977466/ft1_filtered_4FGL_J1033.1+4115_daily_bin1004.fits" evtable="EVENTS" scfile=/scratch/kocevski/977466/ft2_4FGL_J1033.1+4115_daily_bin1004.fits sctable="SC_DATA" outfile=/scratch/kocevski/977466/ltcube_499564801_499824001_4FGL_J1033.1+4115_daily_bin1004.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/977466/ft2_4FGL_J1033.1+4115_daily_bin1004.fits
.....................!
real 16.79
user 16.39
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/977466/ft1_filtered_4FGL_J1033.1+4115_daily_bin1004.fits evtable="EVENTS" scfile=/scratch/kocevski/977466/ft2_4FGL_J1033.1+4115_daily_bin1004.fits sctable="SC_DATA" expcube=/scratch/kocevski/977466/ltcube_499564801_499824001_4FGL_J1033.1+4115_daily_bin1004.fits outfile=/scratch/kocevski/977466/expmap_499564801_499824001_4FGL_J1033.1+4115_daily_bin1004.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/977466/ltcube_499564801_499824001_4FGL_J1033.1+4115_daily_bin1004.fits
.....................!
real 191.86
user 186.77
sys 4.56

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/977466/ft1_filtered_4FGL_J1033.1+4115_daily_bin1004.fits scfile=/scratch/kocevski/977466/ft2_4FGL_J1033.1+4115_daily_bin1004.fits outfile=/scratch/kocevski/977466/cmap_499564801_499824001_4FGL_J1033.1+4115_daily_bin1004.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.59
user 0.40
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/977466/ft1_filtered_4FGL_J1033.1+4115_daily_bin1004.fits scfile=/scratch/kocevski/977466/ft2_4FGL_J1033.1+4115_daily_bin1004.fits outfile=/scratch/kocevski/977466/cmap_HighResolution_499564801_499824001_4FGL_J1033.1+4115_daily_bin1004.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.39
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    11.793       1.0000         .10000E-03   10000.    
     2 'Prefactor '    13.405       1.0000         .10000E-03   10000.    
     3 'Prefactor '    36.626       1.0000         .10000E-03   10000.    
     4 'Prefactor '    4.6531       1.0000         .10000E-03   10000.    
     5 'norm      '    2.4420       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10061E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    46.995       1.0000         .10000E-03   10000.    
     9 'norm      '    9.2293       1.0000         .10000E-03   10000.    
    10 'Prefactor '    4.7965       1.0000         .10000E-03   10000.    
    11 'norm      '    .10225E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10070E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .26078E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10584E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    10.815       1.0000         .10000E-03   10000.    
    16 'Prefactor '    17.229       1.0000         .10000E-03   10000.    
    17 'Prefactor '    189.17       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .21466E-02   1.0000         .10000E-03   10000.    
    20 'norm      '    .25267       1.0000         .10000E-03   10000.    
    21 'Prefactor '    32.954       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    35.815       1.0000         .10000E-03   10000.    
    24 'norm      '    3.5196       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10060E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    .36349E-01   1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.2076       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .73795       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6810E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   4738.009     FROM MIGRAD    STATUS=CONVERGED    100 CALLS     3062 TOTAL
                     EDM=   .19E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY= 13.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          11.788        2.8974       -.22746E-05   -.16484E-02
   2  Prefactor     13.452        19.212        .79892E-05    .42661E-02
   3  Prefactor     36.595        14.263       -.11713E-04    .43435E-03
   4  Prefactor     4.6570        1.8516        .55274E-05    .51953E-02
   5  norm          2.4478        1.1565       -.20455E-05   -.51039E-03
   6  Prefactor     .10000E-03    3.5660       -.15179E-07** at limit **
   7  Prefactor     .10000E-03    1.4738       -.36932E-06** at limit **
   8  Prefactor     46.986        3.7407       -.24714E-05    .23800E-03
   9  norm          9.2303        3.8614        .16629E-05    .10891E-02
  10  Prefactor     4.7974        4.0044       -.59238E-06   -.64160E-03
  11  norm          .10000E-03    4.2871        .21074E-06** at limit **
  12  Prefactor     .10001E-03    32.247       -.11194E-04** at limit **
  13  Prefactor     .10301E-03    43.086        .92300E-04** at limit **
  14  Prefactor     .10000E-03    2.3216       -.47454E-07** at limit **
  15  Prefactor     10.832        3.4671        .76175E-05    .13165E-01
  16  Prefactor     17.190        15.919       -.55243E-05   -.43651E-02
  17  Prefactor     189.14        19.822       -.82678E-05    .18578E-01
  18  Prefactor     .10000E-03    8.6424        .82933E-06** at limit **
  19  Prefactor     .58475E-03    123.23       -.11830E-03** at limit **
  20  norm          .25288        .25484        .16101E-06   -.21300E-03
  21  Prefactor     32.939        7.2524        .17089E-05   -.35430E-02
  22  Prefactor     .10000E-03    11.602        .20093E-05** at limit **
  23  Prefactor     35.836        10.550        .97773E-05   -.39070E-02
  24  norm          3.5276        2.9691        .36410E-05    .80642E-03
  25  Prefactor     .10000E-03    1.1516        .20072E-07** at limit **
  26  Prefactor     .10000E-03    21.779        .17466E-05** at limit **
  27  norm          .45666E-01    2.9379       -.64652E-05   -.35692E-03
  28  Normalizat    1.2074        .21566       -.17246E-05   -.25880E-04
  29  Prefactor     .73783        .26158       -.40615E-06   -.69217E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 11.7879
  Prefactor  = 13.4521
  Prefactor  = 36.595
  Prefactor  = 4.65701
  norm       = 2.44781
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 46.9859
  norm       = 9.23031
  Prefactor  = 4.79736
  norm       = 0.0001
  Prefactor  = 0.000100013
  Prefactor  = 0.000103005
  Prefactor  = 0.0001
  Prefactor  = 10.8317
  Prefactor  = 17.19
  Prefactor  = 189.135
  Prefactor  = 0.0001
  Prefactor  = 0.000584751
  norm       = 0.252879
  Prefactor  = 32.9386
  Prefactor  = 0.000100004
  Prefactor  = 35.8364
  norm       = 3.52762
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0456662
  Normalizat = 1.2074
  Prefactor  = 0.737829
 **********
 **   18 **HESSE 
 **********

 FCN=   4738.009     FROM HESSE     STATUS=OK           621 CALLS     3683 TOTAL
                     EDM=   .40E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          11.788        13.323        .29164E-02   -1.5021    
   2  Prefactor     13.452        28.860        .27350E-02   -1.4974    
   3  Prefactor     36.595        34.969        .16556E-02   -1.4497    
   4  Prefactor     4.6570        6.6910        .46643E-02   -1.5276    
   5  norm          2.4478        11.677        .65452E-02   -1.5395    
   6  Prefactor     .10000E-03    3.5352        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    1.4622        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     46.986        48.293        .14623E-02   -1.4336    
   9  norm          9.2303        3.8742        .32981E-02   -1.5100    
  10  Prefactor     4.7974        4.0315        .45925E-02   -1.5270    
  11  norm          .10000E-03    4.2798        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10001E-03    34.656        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10301E-03    64.635        .10724E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    2.3134        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     10.832        7.5442        .30457E-02   -1.5050    
  16  Prefactor     17.190        29.591        .24123E-02   -1.4879    
  17  Prefactor     189.14        120.28        .73404E-03   -1.2949    
  18  Prefactor     .10000E-03    8.6387        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .58475E-03    1023.7        .10082E-01   -1.5704    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .25288        .28205        .75917E-02   -1.5607    
  21  Prefactor     32.939        24.967        .17451E-02   -1.4559    
  22  Prefactor     .10000E-03    11.616        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     35.836        88.615        .16741E-02   -1.4510    
  24  norm          3.5276        22.815        .53872E-02   -1.5332    
  25  Prefactor     .10000E-03    1.1496        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    21.801        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          .45666E-01    1.8599        .55459E-01   -1.5665    
  28  Normalizat    1.2074        .19765        .49655E-01   -.86375    
  29  Prefactor     .73783        .22829        .75033E-01   -1.0206    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.02963e-06
Minuit parameter uncertainties:
  1  13.3265
  2  28.8898
  3  34.9887
  4  6.69207
  5  10.6956
  6  2.52995e-05
  7  1.44075e-05
  8  48.3328
  9  3.87428
  10  4.03169
  11  5.91189e-05
  12  0.00136393
  13  0.0279047
  14  1.08495e-05
  15  7.54487
  16  29.6164
  17  120.434
  18  6.23467e-05
  19  1.43412
  20  0.282054
  21  24.975
  22  0.000411988
  23  88.9431
  24  17.9522
  25  3.32899e-06
  26  4.89837e-06
  27  0.582249
  28  0.197777
  29  0.228582
Done.

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

Extracting fit parameters...

4FGL J1033.1+4115
   Spectrum: PowerLaw
339    Prefactor:  1.000e-04  1.085e-05  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.378e-01  2.286e-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.207e+00  1.978e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/977466/likelihoodResults_499564801_499824001_4FGL_J1033.1+4115_daily_bin1004.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) = 4738.01149849
delta logL = -0.0020341415302

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4738.00946436
delta logL = -1.83044903679e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4179       1.0000          .0000       10.000    
     3 'Normalizat'    1.2074       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .73784       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6810E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4738.005     FROM MIGRAD    STATUS=CONVERGED    205 CALLS      360 TOTAL
                     EDM=   .86E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .14342E-02    .19460        .26676E-02** at limit **
   2  Index         6.4827        3.6328        .50000        .99498E-05
   3  Normalizat    1.1990        .20461E-01    .21952E-03   -.18243E-03
   4  Prefactor     .74460        .24669E-01    .33213E-03   -.14911E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.00143425
  Index      = 6.4827
  Normalizat = 1.19896
  Prefactor  = 0.744601
 **********
 **   18 **HESSE 
 **********

 FCN=   4738.005     FROM HESSE     STATUS=OK            31 CALLS      391 TOTAL
                     EDM=   .13E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .14342E-02    .75988E-01    .14138E-03   -1.5715    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         6.4827        8.1493        .13853E-01    .30107    
   3  Normalizat    1.1990        .23295        .43905E-04   -.86635    
   4  Prefactor     .74460        .27117        .13285E-04   -1.0180    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.2731e-10
Minuit parameter uncertainties:
  1  0.0201382
  2  7.63836
  3  0.233149
  4  0.271654
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/977466': 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) = 4738.00490716
delta logL = 0.0045571866076

Extracting fit parameters...

4FGL J1033.1+4115
   Spectrum: PowerLaw
339    Prefactor:  1.434e-03  2.014e-02  1.000e-04  1.000e+04 ( 1.000e-12)
340        Index:  6.483e+00  7.638e+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:  7.446e-01  2.717e-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.199e+00  2.331e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
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/977466/cmap_HighResolution_499564801_499824001_4FGL_J1033.1+4115_daily_bin1004.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.87e-03', job_status='DONE', photon_flux_upper_limit='7.59e-08', time_completed='2021-09-02 03:43:46.378243', job_id='977466', GAL2='0.74', fit_tolerance='1e-08', EG2='1.20', EG='1.21', time_epoch_completed='1630579426.38', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.74', dlogl='4.56e-03', ts2='0.01', photon_index_error='0.00', photon_index='2.41' WHERE bin_id='1004' AND source_name='4FGL J1033.1+4115' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  2 03:43:46 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0049>
Subject: Job 977466: <4FGL_J1033.1+4115_daily_bin1004> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1033.1+4115_daily_bin1004 158.275 41.262 499564801 499824001 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 :                                   769.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             323.48 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   789 sec.
    Turnaround time :                            801 sec.

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

