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


Performing analysis on: 4FGL_J1033.1+4115_daily_bin233
RA = 158.275, Dec = 41.262
tmin = 299721601, tmax = 299980801
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='974574', job_status='RUN', time_executed='2021-09-02 03:20:39.313532', time_epoch_executed='1630578039.31' WHERE source_name='4FGL J1033.1+4115' and cadence='daily' and bin_id='233'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/974574

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/974574/ft1_4FGL_J1033.1+4115_daily_bin233.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/974574/ft2_4FGL_J1033.1+4115_daily_bin233.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/974574/ft1_4FGL_J1033.1+4115_daily_bin233.fits outfile=/scratch/kocevski/974574/ft1_filteredMKT_4FGL_J1033.1+4115_daily_bin233.fits ra=158.275 dec=41.262 rad=12.0 tmin=299721601.0 tmax=299980801.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.50
user 3.17
sys 0.28

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/974574/ft1_filtered_4FGL_J1033.1+4115_daily_bin233.fits" evtable="EVENTS" scfile=/scratch/kocevski/974574/ft2_4FGL_J1033.1+4115_daily_bin233.fits sctable="SC_DATA" outfile=/scratch/kocevski/974574/ltcube_299721601_299980801_4FGL_J1033.1+4115_daily_bin233.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/974574/ft2_4FGL_J1033.1+4115_daily_bin233.fits
.....................!
real 17.45
user 17.05
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/974574/ft1_filtered_4FGL_J1033.1+4115_daily_bin233.fits evtable="EVENTS" scfile=/scratch/kocevski/974574/ft2_4FGL_J1033.1+4115_daily_bin233.fits sctable="SC_DATA" expcube=/scratch/kocevski/974574/ltcube_299721601_299980801_4FGL_J1033.1+4115_daily_bin233.fits outfile=/scratch/kocevski/974574/expmap_299721601_299980801_4FGL_J1033.1+4115_daily_bin233.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/974574/ltcube_299721601_299980801_4FGL_J1033.1+4115_daily_bin233.fits
.....................!
real 193.61
user 187.88
sys 5.20

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/974574/ft1_filtered_4FGL_J1033.1+4115_daily_bin233.fits scfile=/scratch/kocevski/974574/ft2_4FGL_J1033.1+4115_daily_bin233.fits outfile=/scratch/kocevski/974574/cmap_299721601_299980801_4FGL_J1033.1+4115_daily_bin233.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.68
user 0.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/974574/ft1_filtered_4FGL_J1033.1+4115_daily_bin233.fits scfile=/scratch/kocevski/974574/ft2_4FGL_J1033.1+4115_daily_bin233.fits outfile=/scratch/kocevski/974574/cmap_HighResolution_299721601_299980801_4FGL_J1033.1+4115_daily_bin233.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.78
user 0.40
sys 0.18

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .20164E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    47.021       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .47334E-02   1.0000         .10000E-03   10000.    
     5 'norm      '    20.466       1.0000         .10000E-03   10000.    
     6 'Prefactor '    2.8676       1.0000         .10000E-03   10000.    
     7 'Prefactor '    5.6941       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    8.9028       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .56529E-02   1.0000         .10000E-03   10000.    
    11 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .36604       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10066E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .30335       1.0000         .10000E-03   10000.    
    17 'Prefactor '    61.947       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    45.156       1.0000         .10000E-03   10000.    
    20 'norm      '    .96968       1.0000         .10000E-03   10000.    
    21 'Prefactor '    20.166       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .74964       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    8.7056       1.0000         .10000E-03   10000.    
    25 'Prefactor '    2.1459       1.0000         .10000E-03   10000.    
    26 'Prefactor '    42.242       1.0000         .10000E-03   10000.    
    27 'norm      '    .10026E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    .61286       1.0000         .10000E-01   10.000    
    29 'Prefactor '    1.0561       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=   5480.895     FROM MIGRAD    STATUS=CONVERGED    794 CALLS     3931 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    28.610       -.11502E-05** at limit **
   2  Prefactor     .10000E-03    96.991       -.45971E-06** at limit **
   3  Prefactor     47.035        30.497       -.16364E-05   -.22001E-03
   4  Prefactor     .11755E-03    7.5672        .29587E-05** at limit **
   5  norm          20.463        11.812       -.67199E-07   -.11401E-03
   6  Prefactor     2.8657        4.6741        .53088E-06    .11058E-03
   7  Prefactor     5.6971        3.9369       -.24400E-06   -.78121E-03
   8  Prefactor     .10001E-03    93.099        .46455E-05** at limit **
   9  norm          8.9022        3.2671        .77314E-08   -.54238E-04
  10  Prefactor     .10008E-03    2.3097       -.71437E-07** at limit **
  11  norm          .10000E-03    7.8063        .40073E-06** at limit **
  12  Prefactor     .10000E-03    24.768        .14086E-06** at limit **
  13  Prefactor     .10000E-03    18.398        .22753E-06** at limit **
  14  Prefactor     .36656        2.1967        .20316E-05    .53449E-03
  15  Prefactor     .10000E-03    4.3639        .40529E-06** at limit **
  16  Prefactor     .51892E-02    21.405       -.80552E-06    .55340E-04
  17  Prefactor     61.877        77.657        .63459E-07   -.47115E-04
  18  Prefactor     .10000E-03    18.014        .36749E-06** at limit **
  19  Prefactor     45.036        90.652       -.96609E-06   -.79750E-04
  20  norm          .96989        .32575       -.75412E-07   -.57132E-02
  21  Prefactor     20.189        21.270       -.14463E-05   -.57841E-03
  22  Prefactor     .67229        13.516        .33225E-05   -.38292E-03
  23  Prefactor     .10000E-03    28.392        .50169E-06** at limit **
  24  norm          8.6952        15.670        .53806E-06   -.24567E-03
  25  Prefactor     2.1458        1.8095       -.39102E-07   -.26843E-03
  26  Prefactor     42.239        32.869       -.29838E-07   -.50577E-04
  27  norm          .10000E-03    .55262        .27133E-07** at limit **
  28  Normalizat    .61307        .15608        .24568E-06   -.70264E-03
  29  Prefactor     1.0561        .19315       -.15020E-05   -.61092E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 47.0353
  Prefactor  = 0.000117551
  norm       = 20.4634
  Prefactor  = 2.86567
  Prefactor  = 5.69707
  Prefactor  = 0.000100006
  norm       = 8.90224
  Prefactor  = 0.00010008
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.366559
  Prefactor  = 0.0001
  Prefactor  = 0.0051892
  Prefactor  = 61.8768
  Prefactor  = 0.0001
  Prefactor  = 45.0359
  norm       = 0.969886
  Prefactor  = 20.1889
  Prefactor  = 0.672294
  Prefactor  = 0.000100001
  norm       = 8.69523
  Prefactor  = 2.14581
  Prefactor  = 42.2391
  norm       = 0.0001
  Normalizat = 0.613073
  Prefactor  = 1.0561
 **********
 **   18 **HESSE 
 **********

 FCN=   5480.895     FROM HESSE     STATUS=OK           565 CALLS     4496 TOTAL
                     EDM=   .77E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    29.261        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    100.06        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     47.035        30.208        .58474E-04   -1.4335    
   4  Prefactor     .11755E-03    6.3636        .55884E-01   -1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          20.463        11.805        .88536E-04   -1.4803    
   6  Prefactor     2.8657        4.6636        .19460E-03   -1.5369    
   7  Prefactor     5.6971        3.6007        .10436E-03   -1.5231    
   8  Prefactor     .10001E-03    95.828        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          8.9022        3.2654        .77960E-04   -1.5111    
  10  Prefactor     .10008E-03    44.412        .19378E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    7.9962        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    24.801        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    18.445        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .36656        2.1238        .21152E-03   -1.5587    
  15  Prefactor     .10000E-03    4.5299        .30134E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .51892E-02    25.990        .10733       -1.5694    
  17  Prefactor     61.877        77.741        .50982E-04   -1.4133    
  18  Prefactor     .10000E-03    18.097        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     45.036        91.067        .59664E-04   -1.4365    
  20  norm          .96989        .32942        .21912E-04   -1.5511    
  21  Prefactor     20.189        21.748        .89191E-04   -1.4809    
  22  Prefactor     .67229        87.339        .42898E-02   -1.5544    
  23  Prefactor     .10000E-03    28.443        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          8.6952        15.692        .13585E-03   -1.5118    
  25  Prefactor     2.1458        1.8130        .87458E-04   -1.5415    
  26  Prefactor     42.239        32.860        .61679E-04   -1.4407    
  27  norm          .10000E-03    .55396        .53718E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    .61307        .17775        .24048E-03   -1.0743    
  29  Prefactor     1.0561        .21939        .24564E-03   -.90882    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.69004e-09
Minuit parameter uncertainties:
  1  0.000221593
  2  6.22355e-05
  3  30.218
  4  0.0211389
  5  11.8066
  6  4.66419
  7  3.60088
  8  0.00151242
  9  3.26543
  10  0.00376162
  11  1.56811e-05
  12  2.60549e-06
  13  3.21469e-05
  14  1.76451
  15  2.38046e-05
  16  0.727693
  17  77.8693
  18  4.57657e-05
  19  91.3505
  20  0.329422
  21  21.7569
  22  15.3472
  23  0.000277908
  24  15.6993
  25  1.81305
  26  32.8745
  27  6.68179e-07
  28  0.177916
  29  0.219578
Done.

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

Extracting fit parameters...

4FGL J1033.1+4115
   Spectrum: PowerLaw
339    Prefactor:  3.666e-01  1.765e+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:  1.056e+00  2.196e-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:  6.131e-01  1.779e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/974574/likelihoodResults_299721601_299980801_4FGL_J1033.1+4115_daily_bin233.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) = 5480.89146753
delta logL = 0.00376850070188

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5480.89130234
delta logL = 0.00393368128425

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .33964       1.0000         .10000E-03   10000.    
     2 'Index     '    2.6592       1.0000          .0000       10.000    
     3 'Normalizat'    .61208       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0568       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=   5480.891     FROM MIGRAD    STATUS=CONVERGED    100 CALLS      257 TOTAL
                     EDM=   .23E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .34078        2.2164        .18979E-03   -.83263E-05
   2  Index         2.6694        2.9053        .14853E-01    .20860E-04
   3  Normalizat    .61197        .16551        .24069E-03   -.23144E-04
   4  Prefactor     1.0569        .21736        .24556E-03   -.43612E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.340781
  Index      = 2.66937
  Normalizat = 0.611968
  Prefactor  = 1.05693
 **********
 **   18 **HESSE 
 **********

 FCN=   5480.891     FROM HESSE     STATUS=OK            25 CALLS      282 TOTAL
                     EDM=   .34E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .34078        2.0372        .75916E-05   -1.5591    
   2  Index         2.6694        2.8057        .29707E-02   -.48491    
   3  Normalizat    .61197        .16564        .96277E-05   -1.0748    
   4  Prefactor     1.0569        .21752        .98224E-05   -.90855    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.4375e-12
Minuit parameter uncertainties:
  1  1.66626
  2  3.03918
  3  0.165774
  4  0.217704
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/974574': 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) = 5480.89129432
delta logL = 0.00394170177879

Extracting fit parameters...

4FGL J1033.1+4115
   Spectrum: PowerLaw
339    Prefactor:  3.408e-01  1.666e+00  1.000e-04  1.000e+04 ( 1.000e-12)
340        Index:  2.669e+00  3.039e+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:  1.057e+00  2.177e-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:  6.120e-01  1.658e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.05
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/974574/cmap_HighResolution_299721601_299980801_4FGL_J1033.1+4115_daily_bin233.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.77e-03', job_status='DONE', photon_flux_upper_limit='4.88e-08', time_completed='2021-09-02 03:35:43.034673', job_id='974574', GAL2='1.06', fit_tolerance='1e-08', EG2='0.61', EG='0.61', time_epoch_completed='1630578943.03', return_code2='0', ts='0.05', comment='SUCCESS', return_code='0', GAL='1.06', dlogl='3.94e-03', ts2='0.06', photon_index_error='0.00', photon_index='2.41' WHERE bin_id='233' AND source_name='4FGL J1033.1+4115' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  2 03:35:43 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0031>
Subject: Job 974574: <4FGL_J1033.1+4115_daily_bin233> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1033.1+4115_daily_bin233 158.275 41.262 299721601 299980801 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 :                                   893.01 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             330.65 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   922 sec.
    Turnaround time :                            924 sec.

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

