/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 143 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 = 7427
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1033.1+4115_daily_bin368
RA = 158.275, Dec = 41.262
tmin = 334713601, tmax = 334972801
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='973150', job_status='RUN', time_executed='2021-09-02 03:18:55.476462', time_epoch_executed='1630577935.48' WHERE source_name='4FGL J1033.1+4115' and cadence='daily' and bin_id='368'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/973150

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/973150/ft1_4FGL_J1033.1+4115_daily_bin368.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/973150/ft2_4FGL_J1033.1+4115_daily_bin368.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/973150/ft1_4FGL_J1033.1+4115_daily_bin368.fits outfile=/scratch/kocevski/973150/ft1_filteredMKT_4FGL_J1033.1+4115_daily_bin368.fits ra=158.275 dec=41.262 rad=12.0 tmin=334713601.0 tmax=334972801.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 3.54
user 3.27
sys 0.21

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/973150/ft1_filtered_4FGL_J1033.1+4115_daily_bin368.fits evtable="EVENTS" scfile=/scratch/kocevski/973150/ft2_4FGL_J1033.1+4115_daily_bin368.fits sctable="SC_DATA" expcube=/scratch/kocevski/973150/ltcube_334713601_334972801_4FGL_J1033.1+4115_daily_bin368.fits outfile=/scratch/kocevski/973150/expmap_334713601_334972801_4FGL_J1033.1+4115_daily_bin368.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/973150/ltcube_334713601_334972801_4FGL_J1033.1+4115_daily_bin368.fits
.....................!
real 190.93
user 185.58
sys 4.85

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/973150/ft1_filtered_4FGL_J1033.1+4115_daily_bin368.fits scfile=/scratch/kocevski/973150/ft2_4FGL_J1033.1+4115_daily_bin368.fits outfile=/scratch/kocevski/973150/cmap_334713601_334972801_4FGL_J1033.1+4115_daily_bin368.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.56
user 0.37
sys 0.16

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    3.5723       1.0000         .10000E-03   10000.    
     7 'Prefactor '    8.3102       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    2.1003       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    22.037       1.0000         .10000E-03   10000.    
    13 'Prefactor '    10.004       1.0000         .10000E-03   10000.    
    14 'Prefactor '    8.9066       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    79.439       1.0000         .10000E-03   10000.    
    20 'norm      '    1.3882       1.0000         .10000E-03   10000.    
    21 'Prefactor '    24.320       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10053E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    1.7957       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.2026       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .67889       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=   5515.570     FROM MIGRAD    STATUS=CONVERGED    705 CALLS     3666 TOTAL
                     EDM=   .39E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    33.199        .89600E-06** at limit **
   2  Prefactor     .10000E-03    15.516       -.66484E-06** at limit **
   3  Prefactor     .10000E-03    11.626       -.83809E-05** at limit **
   4  Prefactor     .10000E-03    23.034       -.69450E-05** at limit **
   5  norm          .10000E-03    3.4192        .12533E-07** at limit **
   6  Prefactor     3.5719        5.4490       -.18029E-05   -.45696E-03
   7  Prefactor     8.3098        5.5146        .58437E-06   -.87778E-04
   8  Prefactor     .10000E-03    17.869        .71590E-05** at limit **
   9  norm          2.1003        1.6227        .93884E-07    .12926E-03
  10  Prefactor     .10000E-03    4.5166       -.24981E-06** at limit **
  11  norm          .10000E-03    3.5161        .11467E-06** at limit **
  12  Prefactor     22.054        61.688        .30096E-04   -.15775E-05
  13  Prefactor     10.003        26.600       -.23733E-06   -.76581E-04
  14  Prefactor     8.9064        5.1214        .23314E-07   -.39634E-03
  15  Prefactor     .10000E-03    3.6072       -.14128E-06** at limit **
  16  Prefactor     .10000E-03    47.388        .30170E-04** at limit **
  17  Prefactor     .10000E-03    26.874       -.11797E-04** at limit **
  18  Prefactor     .10000E-03    15.524       -.91667E-06** at limit **
  19  Prefactor     79.442        84.957        .21898E-05   -.92982E-05
  20  norm          1.3882        .36850       -.35956E-07   -.73551E-03
  21  Prefactor     24.319        22.743        .29677E-05   -.25637E-04
  22  Prefactor     .10000E-03    11.061        .65885E-05** at limit **
  23  Prefactor     .10000E-03    69.561       -.26187E-04** at limit **
  24  norm          1.7780        51.361       -.59134E-05   -.14641E-03
  25  Prefactor     .10000E-03    1.5500        .96740E-08** at limit **
  26  Prefactor     .10000E-03    19.420        .54770E-05** at limit **
  27  norm          .10000E-03    1.2223        .13044E-07** at limit **
  28  Normalizat    1.2027        .18344       -.49199E-06    .23457E-04
  29  Prefactor     .67884        .21533       -.18251E-05   -.15384E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 3.57192
  Prefactor  = 8.30981
  Prefactor  = 0.0001
  norm       = 2.10034
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 22.0545
  Prefactor  = 10.003
  Prefactor  = 8.90642
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 79.4417
  norm       = 1.38817
  Prefactor  = 24.3192
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.77805
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 1.20265
  Prefactor  = 0.678838
 **********
 **   18 **HESSE 
 **********

 FCN=   5515.570     FROM HESSE     STATUS=OK           545 CALLS     4211 TOTAL
                     EDM=   .77E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    33.946        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    15.563        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    11.622        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    23.583        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    3.4239        .13411E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     3.5719        5.4705        .20624E-03   -1.5330    
   7  Prefactor     8.3098        5.4983        .13195E-03   -1.5131    
   8  Prefactor     .10000E-03    17.912        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          2.1003        1.6251        .80934E-04   -1.5418    
  10  Prefactor     .10000E-03    4.5811        .30612E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    3.5249        .13598E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     22.054        61.514        .85326E-04   -1.4768    
  13  Prefactor     10.003        26.390        .12669E-03   -1.5075    
  14  Prefactor     8.9064        5.1255        .12150E-03   -1.5111    
  15  Prefactor     .10000E-03    3.6164        .13666E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    47.380        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    26.855        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    15.541        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     79.442        85.098        .45059E-04   -1.3923    
  20  norm          1.3882        .36944        .21756E-04   -1.5472    
  21  Prefactor     24.319        22.296        .81226E-04   -1.4721    
  22  Prefactor     .10000E-03    11.074        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    69.492        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          1.7780        49.400        .31204E-03   -1.5441    
  25  Prefactor     .10000E-03    1.5622        .90225E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    19.423        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          .10000E-03    1.2313        .80163E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    1.2027        .21290        .21272E-03   -.86521    
  29  Prefactor     .67884        .24748        .33265E-03   -1.0436    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.74743e-10
Minuit parameter uncertainties:
  1  0.000103835
  2  2.54917e-05
  3  9.72496e-06
  4  8.54932e-05
  5  7.22946e-06
  6  5.47128
  7  5.49864
  8  7.79523e-06
  9  1.62514
  10  4.74444e-05
  11  5.28286e-08
  12  61.6918
  13  26.4211
  14  5.12577
  15  8.25187e-06
  16  5.26517e-05
  17  1.23571e-05
  18  1.9088e-05
  19  85.2291
  20  0.369442
  21  22.3035
  22  1.41432e-05
  23  6.35045e-05
  24  18.7607
  25  1.37467e-06
  26  2.43188e-06
  27  1.02398e-06
  28  0.213053
  29  0.247885
Done.

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

Extracting fit parameters...

4FGL J1033.1+4115
   Spectrum: PowerLaw
339    Prefactor:  8.906e+00  5.126e+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:  6.788e-01  2.479e-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.203e+00  2.131e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.84
Ra Dec: 158.275 41.262
Photon Index (Fixed Index): 2.41 +/- 0.00
Photon Flux (Fixed Index): 6.54e-08 +/- 3.76e-08
Energy Flux (Fixed Index): 2.11e-05 +/- 1.21e-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) = 5515.34542116
delta logL = 0.224987809081

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5515.33301621
delta logL = 0.237392756101

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    9.6935       1.0000         .10000E-03   10000.    
     2 'Index     '    2.0412       1.0000          .0000       10.000    
     3 'Normalizat'    1.2292       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .65549       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=   5515.333     FROM MIGRAD    STATUS=CONVERGED     48 CALLS      203 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     9.6935        11.500        .32178E-02   -.29766E-02
   2  Index         2.0414        .83717        .19889       -.20368E-04
   3  Normalizat    1.2293        .18462        .34210E-01    .12428E-05
   4  Prefactor     .65547        .22154        .76321E-01    .24810E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 9.69348
  Index      = 2.04135
  Normalizat = 1.22928
  Prefactor  = 0.655472
 **********
 **   18 **HESSE 
 **********

 FCN=   5515.333     FROM HESSE     STATUS=OK            31 CALLS      234 TOTAL
                     EDM=   .33E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     9.6935        5.7565        .12871E-03   -1.5085    
   2  Index         2.0414        .49816        .73658E-02   -.63320    
   3  Normalizat    1.2293        .20531        .21076E-03   -.85703    
   4  Prefactor     .65547        .24567        .33790E-03   -1.0530    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.34568e-09
Minuit parameter uncertainties:
  1  5.75684
  2  0.49944
  3  0.205443
  4  0.246075
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/973150': 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) = 5515.33301613
delta logL = 0.237392834809

Extracting fit parameters...

4FGL J1033.1+4115
   Spectrum: PowerLaw
339    Prefactor:  9.693e+00  5.757e+00  1.000e-04  1.000e+04 ( 1.000e-12)
340        Index:  2.041e+00  4.994e-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:  6.555e-01  2.461e-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.229e+00  2.054e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.30
Ra Dec: 158.275 41.262
Photon Index (Free Index): 2.04 +/- 0.50
Photon Flux (Free Index): 4.72e-08 +/- 3.77e-08
Energy Flux (Free Index): 2.96e-05 +/- 2.56e-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/973150/cmap_HighResolution_334713601_334972801_4FGL_J1033.1+4115_daily_bin368.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='6.54e-08', energy_flux2='2.96e-05', photon_flux_error='3.76e-08', dlogl='2.37e-01', energy_flux='2.11e-05', photon_flux2='4.72e-08', job_status='DONE', time_completed='2021-09-02 03:31:25.641762', photon_index_error2='0.50', photon_index2='2.04', ts='5.84', fit_tolerance='1e-08', GAL='0.68', photon_index_error='0.00', energy_flux_error2='2.56e-05', EG='1.20', time_epoch_completed='1630578685.64', return_code='0', job_id='973150', GAL2='0.66', EG2='1.23', return_code2='0', energy_flux_error='1.21e-05', photon_flux_error2='3.77e-08', ts2='6.30', photon_index='2.41' WHERE bin_id='368' AND source_name='4FGL J1033.1+4115' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  2 03:31:25 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0043>
Subject: Job 973150: <4FGL_J1033.1+4115_daily_bin368> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1033.1+4115_daily_bin368 158.275 41.262 334713601 334972801 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 :                                   744.08 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             288.63 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   943 sec.
    Turnaround time :                            949 sec.

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

