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


Performing analysis on: 4FGL_J1033.1+4115_daily_bin738
RA = 158.275, Dec = 41.262
tmin = 430617601, tmax = 430876801
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='974839', job_status='RUN', time_executed='2021-09-02 03:23:17.297734', time_epoch_executed='1630578197.3' WHERE source_name='4FGL J1033.1+4115' and cadence='daily' and bin_id='738'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/974839

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/974839/ft1_4FGL_J1033.1+4115_daily_bin738.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/974839/ft2_4FGL_J1033.1+4115_daily_bin738.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/974839/ft1_4FGL_J1033.1+4115_daily_bin738.fits outfile=/scratch/kocevski/974839/ft1_filteredMKT_4FGL_J1033.1+4115_daily_bin738.fits ra=158.275 dec=41.262 rad=12.0 tmin=430617601.0 tmax=430876801.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.41
user 5.11
sys 0.23

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/974839/ft1_filtered_4FGL_J1033.1+4115_daily_bin738.fits" evtable="EVENTS" scfile=/scratch/kocevski/974839/ft2_4FGL_J1033.1+4115_daily_bin738.fits sctable="SC_DATA" outfile=/scratch/kocevski/974839/ltcube_430617601_430876801_4FGL_J1033.1+4115_daily_bin738.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/974839/ft2_4FGL_J1033.1+4115_daily_bin738.fits
.....................!
real 16.20
user 15.67
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/974839/ft1_filtered_4FGL_J1033.1+4115_daily_bin738.fits evtable="EVENTS" scfile=/scratch/kocevski/974839/ft2_4FGL_J1033.1+4115_daily_bin738.fits sctable="SC_DATA" expcube=/scratch/kocevski/974839/ltcube_430617601_430876801_4FGL_J1033.1+4115_daily_bin738.fits outfile=/scratch/kocevski/974839/expmap_430617601_430876801_4FGL_J1033.1+4115_daily_bin738.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/974839/ltcube_430617601_430876801_4FGL_J1033.1+4115_daily_bin738.fits
.....................!
real 193.02
user 186.20
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/974839/ft1_filtered_4FGL_J1033.1+4115_daily_bin738.fits scfile=/scratch/kocevski/974839/ft2_4FGL_J1033.1+4115_daily_bin738.fits outfile=/scratch/kocevski/974839/cmap_430617601_430876801_4FGL_J1033.1+4115_daily_bin738.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.38
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/974839/ft1_filtered_4FGL_J1033.1+4115_daily_bin738.fits scfile=/scratch/kocevski/974839/ft2_4FGL_J1033.1+4115_daily_bin738.fits outfile=/scratch/kocevski/974839/cmap_HighResolution_430617601_430876801_4FGL_J1033.1+4115_daily_bin738.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.38
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .12083E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .14984E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    21.772       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .53303E-01   1.0000         .10000E-03   10000.    
     5 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    9.8154       1.0000         .10000E-03   10000.    
     7 'Prefactor '    2.7120       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    14.033       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    2.7870       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    2.3065       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10050E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .41664       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    3.0576       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    .11278E-02   1.0000         .10000E-03   10000.    
    28 'Normalizat'    .99512       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .85810       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=   4042.100     FROM MIGRAD    STATUS=CONVERGED    733 CALLS     3659 TOTAL
                     EDM=   .42E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    21.340        .25178E-05** at limit **
   2  Prefactor     .10000E-03    34.674        .11476E-04** at limit **
   3  Prefactor     21.733        39.640       -.23461E-04   -.55542E-04
   4  Prefactor     .10022E-03    7.5856       -.39287E-06** at limit **
   5  norm          .10000E-03    13.955        .39392E-05** at limit **
   6  Prefactor     9.8158        6.5145       -.26910E-05   -.10923E-03
   7  Prefactor     2.7109        4.1827       -.35742E-06   -.30523E-03
   8  Prefactor     .10000E-03    35.953        .58192E-05** at limit **
   9  norm          14.033        4.3926        .21939E-06   -.10954E-05
  10  Prefactor     .10000E-03    2.3390       -.90194E-08** at limit **
  11  norm          2.7875        13.306       -.90761E-06   -.23257E-03
  12  Prefactor     .10000E-03    40.853       -.18083E-04** at limit **
  13  Prefactor     .10000E-03    14.434        .51910E-05** at limit **
  14  Prefactor     2.3050        5.6652        .20050E-05   -.48033E-03
  15  Prefactor     .10000E-03    3.1831       -.79263E-07** at limit **
  16  Prefactor     .10000E-03    11.593        .38494E-06** at limit **
  17  Prefactor     .10000E-03    60.924       -.10160E-04** at limit **
  18  Prefactor     .10000E-03    13.180       -.58000E-05** at limit **
  19  Prefactor     .10000E-03    60.441       -.11878E-04** at limit **
  20  norm          .41667        .24896       -.22958E-07    .68516E-03
  21  Prefactor     .10000E-03    17.201       -.63485E-05** at limit **
  22  Prefactor     .10000E-03    6.2754       -.22391E-09** at limit **
  23  Prefactor     .10000E-03    75.432        .43534E-04** at limit **
  24  norm          3.0591        10.118       -.86525E-06   -.11126E-03
  25  Prefactor     .10000E-03    2.6369       -.31148E-07** at limit **
  26  Prefactor     .10000E-03    62.855       -.29560E-05** at limit **
  27  norm          .10001E-03    1.9187       -.31387E-06** at limit **
  28  Normalizat    .99487        .18186        .27640E-05   -.70649E-04
  29  Prefactor     .85849        .22168       -.61693E-07    .10325E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100001
  Prefactor  = 0.000100003
  Prefactor  = 21.7332
  Prefactor  = 0.00010022
  norm       = 0.0001
  Prefactor  = 9.81579
  Prefactor  = 2.71091
  Prefactor  = 0.0001
  norm       = 14.0326
  Prefactor  = 0.0001
  norm       = 2.7875
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.30502
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.416673
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.05911
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000100009
  Normalizat = 0.994873
  Prefactor  = 0.858493
 **********
 **   18 **HESSE 
 **********

 FCN=   4042.100     FROM HESSE     STATUS=OK           557 CALLS     4216 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    21.511        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    35.309        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     21.733        39.957        .85843E-04   -1.4775    
   4  Prefactor     .10022E-03    13.926        .58176E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    14.143        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     9.8158        6.5283        .12767E-03   -1.5081    
   7  Prefactor     2.7109        4.1620        .15192E-03   -1.5379    
   8  Prefactor     .10000E-03    36.128        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          14.033        4.3920        .72255E-04   -1.4959    
  10  Prefactor     .10000E-03    2.3473        .94731E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          2.7875        12.817        .24373E-03   -1.5374    
  12  Prefactor     .10000E-03    40.861        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    14.434        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     2.3050        5.5449        .20711E-03   -1.5404    
  15  Prefactor     .10000E-03    3.2138        .11072E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    11.593        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    60.984        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    13.191        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    60.497        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .41667        .24839        .23712E-04   -1.5579    
  21  Prefactor     .10000E-03    17.388        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    6.2791        .15554E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    75.145        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          3.0591        10.094        .23201E-03   -1.5358    
  25  Prefactor     .10000E-03    2.7033        .20122E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    62.963        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          .10001E-03    48.577        .16957E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    .99487        .21629        .20801E-03   -.93202    
  29  Prefactor     .85849        .26304        .28171E-03   -.97607    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.09631e-09
Minuit parameter uncertainties:
  1  0.000322067
  2  0.000599385
  3  40.0063
  4  0.00350048
  5  2.76529e-05
  6  6.52878
  7  4.16248
  8  6.85584e-06
  9  4.39212
  10  9.13307e-07
  11  11.9583
  12  3.24116e-05
  13  1.83975e-05
  14  5.54615
  15  1.44755e-05
  16  2.40158e-05
  17  5.10747e-05
  18  1.20485e-05
  19  7.13725e-05
  20  0.248393
  21  1.25436e-05
  22  1.9698e-06
  23  9.66057e-05
  24  10.0995
  25  4.76136e-06
  26  1.85643e-05
  27  0.00135515
  28  0.216485
  29  0.263424
Done.

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

Extracting fit parameters...

4FGL J1033.1+4115
   Spectrum: PowerLaw
339    Prefactor:  2.305e+00  5.546e+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.585e-01  2.634e-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.949e-01  2.165e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.22
Ra Dec: 158.275 41.262
Photon Flux Upper Limit: 1.07e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.29e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/974839/likelihoodResults_430617601_430876801_4FGL_J1033.1+4115_daily_bin738.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) = 4041.95694311
delta logL = 0.142634830458

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4041.93992748
delta logL = 0.159650460817

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.5975       1.0000         .10000E-03   10000.    
     2 'Index     '    3.2368       1.0000          .0000       10.000    
     3 'Normalizat'    .96815       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .87957       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=   4041.940     FROM MIGRAD    STATUS=CONVERGED     46 CALLS      207 TOTAL
                     EDM=   .21E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.5979        52.681        .83879E-02    .66858E-03
   2  Index         3.2378        6.5797        .21614        .49702E-04
   3  Normalizat    .96839        .40498E-01    .45767E-01    .12263E-04
   4  Prefactor     .87903        .51648E-01    .44744E-01    .11749E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.59789
  Index      = 3.23782
  Normalizat = 0.968389
  Prefactor  = 0.879028
 **********
 **   18 **HESSE 
 **********

 FCN=   4041.940     FROM HESSE     STATUS=OK            33 CALLS      240 TOTAL
                     EDM=   .41E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.5979        5.7087        .10871E-03   -1.5455    
   2  Index         3.2378        2.2349        .77293E-02   -.36017    
   3  Normalizat    .96839        .21533        .21053E-03   -.94097    
   4  Prefactor     .87903        .26683        .27855E-03   -.96878    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.09208e-12
Minuit parameter uncertainties:
  1  5.71068
  2  2.32999
  3  0.21552
  4  0.267231
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/974839': 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) = 4041.9399238
delta logL = 0.159654137359

Extracting fit parameters...

4FGL J1033.1+4115
   Spectrum: PowerLaw
339    Prefactor:  1.598e+00  5.711e+00  1.000e-04  1.000e+04 ( 1.000e-12)
340        Index:  3.238e+00  2.330e+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.790e-01  2.672e-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.684e-01  2.155e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.22
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/974839/cmap_HighResolution_430617601_430876801_4FGL_J1033.1+4115_daily_bin738.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.29e-03', job_status='DONE', photon_flux_upper_limit='1.07e-07', time_completed='2021-09-02 03:35:30.012431', job_id='974839', GAL2='0.88', fit_tolerance='1e-08', EG2='0.97', EG='0.99', time_epoch_completed='1630578930.01', return_code2='0', ts='0.22', comment='SUCCESS', return_code='0', GAL='0.86', dlogl='1.60e-01', ts2='0.56', photon_index_error='0.00', photon_index='2.41' WHERE bin_id='738' AND source_name='4FGL J1033.1+4115' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  2 03:35:30 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0085>
Subject: Job 974839: <4FGL_J1033.1+4115_daily_bin738> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1033.1+4115_daily_bin738 158.275 41.262 430617601 430876801 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 :                                   726.00 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             290.46 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   872 sec.
    Turnaround time :                            893 sec.

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

