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


Performing analysis on: 4FGL_J1033.1+4115_daily_bin434
RA = 158.275, Dec = 41.262
tmin = 351820801, tmax = 352080001
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='973255', job_status='RUN', time_executed='2021-09-02 03:19:19.737383', time_epoch_executed='1630577959.74' WHERE source_name='4FGL J1033.1+4115' and cadence='daily' and bin_id='434'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/973255

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/973255/ft1_4FGL_J1033.1+4115_daily_bin434.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/973255/ft2_4FGL_J1033.1+4115_daily_bin434.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/973255/ft1_4FGL_J1033.1+4115_daily_bin434.fits outfile=/scratch/kocevski/973255/ft1_filteredMKT_4FGL_J1033.1+4115_daily_bin434.fits ra=158.275 dec=41.262 rad=12.0 tmin=351820801.0 tmax=352080001.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.75
user 3.49
sys 0.22

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/973255/ft1_filtered_4FGL_J1033.1+4115_daily_bin434.fits evtable="EVENTS" scfile=/scratch/kocevski/973255/ft2_4FGL_J1033.1+4115_daily_bin434.fits sctable="SC_DATA" expcube=/scratch/kocevski/973255/ltcube_351820801_352080001_4FGL_J1033.1+4115_daily_bin434.fits outfile=/scratch/kocevski/973255/expmap_351820801_352080001_4FGL_J1033.1+4115_daily_bin434.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/973255/ltcube_351820801_352080001_4FGL_J1033.1+4115_daily_bin434.fits
.....................!
real 190.58
user 185.87
sys 4.04

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/973255/ft1_filtered_4FGL_J1033.1+4115_daily_bin434.fits scfile=/scratch/kocevski/973255/ft2_4FGL_J1033.1+4115_daily_bin434.fits outfile=/scratch/kocevski/973255/cmap_351820801_352080001_4FGL_J1033.1+4115_daily_bin434.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 1.09
user 0.39
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/973255/ft1_filtered_4FGL_J1033.1+4115_daily_bin434.fits scfile=/scratch/kocevski/973255/ft2_4FGL_J1033.1+4115_daily_bin434.fits outfile=/scratch/kocevski/973255/cmap_HighResolution_351820801_352080001_4FGL_J1033.1+4115_daily_bin434.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.58
user 0.41
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    11.739       1.0000         .10000E-03   10000.    
     5 'norm      '    3.9731       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .80566       1.0000         .10000E-03   10000.    
     8 'Prefactor '    4.7098       1.0000         .10000E-03   10000.    
     9 'norm      '    15.446       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10040E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    7.8961       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    4.6197       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    27.308       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .58085       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    14.369       1.0000         .10000E-03   10000.    
    25 'Prefactor '    7.6519       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10205E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    .60395       1.0000         .10000E-01   10.000    
    29 'Prefactor '    1.1474       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=   5269.458     FROM MIGRAD    STATUS=CONVERGED    716 CALLS     3737 TOTAL
                     EDM=   .80E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    6.3545        .29211E-06** at limit **
   2  Prefactor     .10000E-03    6.5972       -.37149E-06** at limit **
   3  Prefactor     .10000E-03    9.5417        .13416E-05** at limit **
   4  Prefactor     11.739        9.4368       -.76412E-07   -.16661E-04
   5  norm          3.9712        6.4266        .18212E-05   -.12141E-02
   6  Prefactor     .10000E-03    1.3040       -.17289E-07** at limit **
   7  Prefactor     .80476        2.2864        .15225E-06   -.28300E-03
   8  Prefactor     4.7113        46.020        .10153E-05    .25494E-05
   9  norm          15.446        4.1243        .16189E-06    .28598E-03
  10  Prefactor     .10000E-03    2.8155        .13569E-07** at limit **
  11  norm          7.8951        8.8487       -.99369E-07   -.37511E-04
  12  Prefactor     .10000E-03    23.972       -.41310E-05** at limit **
  13  Prefactor     .10000E-03    20.352        .16665E-05** at limit **
  14  Prefactor     4.6197        3.0942       -.17213E-07    .30171E-05
  15  Prefactor     .10000E-03    2.4266        .43388E-07** at limit **
  16  Prefactor     .10000E-03    10.410       -.18121E-05** at limit **
  17  Prefactor     .10000E-03    22.880       -.28248E-05** at limit **
  18  Prefactor     27.299        30.190       -.43944E-05   -.19281E-03
  19  Prefactor     .10000E-03    19.732        .29780E-05** at limit **
  20  norm          .58085        .22834        .27765E-08    .59055E-04
  21  Prefactor     .10000E-03    3.8281       -.45721E-08** at limit **
  22  Prefactor     .10000E-03    12.117        .21126E-06** at limit **
  23  Prefactor     .10000E-03    36.649        .53727E-05** at limit **
  24  norm          14.367        13.030        .27819E-06   -.19595E-03
  25  Prefactor     7.6541        3.3039        .11215E-07   -.56937E-04
  26  Prefactor     .10000E-03    55.304       -.26557E-05** at limit **
  27  norm          .10000E-03    1.8477        .65281E-08** at limit **
  28  Normalizat    .60400        .14876        .18905E-06   -.16073E-04
  29  Prefactor     1.1474        .19204       -.51662E-07   -.67489E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 11.7391
  norm       = 3.97116
  Prefactor  = 0.0001
  Prefactor  = 0.804764
  Prefactor  = 4.71127
  norm       = 15.446
  Prefactor  = 0.0001
  norm       = 7.89511
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 4.61973
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 27.2985
  Prefactor  = 0.0001
  norm       = 0.580852
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  norm       = 14.3669
  Prefactor  = 7.65408
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 0.604
  Prefactor  = 1.14739
 **********
 **   18 **HESSE 
 **********

 FCN=   5269.458     FROM HESSE     STATUS=OK           547 CALLS     4284 TOTAL
                     EDM=   .40E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    6.3889        .17873E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    6.6099        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    9.5673        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     11.739        9.4210        .11692E-03   -1.5023    
   5  norm          3.9712        9.7448        .10118E-02   -1.5309    
   6  Prefactor     .10000E-03    1.3057        .80950E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .80476        2.2355        .17680E-03   -1.5529    
   8  Prefactor     4.7113        45.627        .18542E-03   -1.5274    
   9  norm          15.446        4.1378        .73731E-04   -1.4922    
  10  Prefactor     .10000E-03    2.9132        .23669E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          7.8951        8.8136        .14269E-03   -1.5146    
  12  Prefactor     .10000E-03    24.160        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    20.453        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     4.6197        3.0910        .10020E-03   -1.5278    
  15  Prefactor     .10000E-03    2.4770        .11037E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    10.454        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    22.978        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     27.299        30.739        .76662E-04   -1.4663    
  19  Prefactor     .10000E-03    19.827        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .58085        .22862        .21060E-04   -1.5556    
  21  Prefactor     .10000E-03    3.8349        .13868E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    12.305        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    36.960        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          14.367        13.098        .52832E-03   -1.4950    
  25  Prefactor     7.6541        3.2965        .41760E-03   -1.5155    
  26  Prefactor     .10000E-03    55.596        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          .10000E-03    1.9002        .19232E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    .60400        .17304        .24325E-03   -1.0781    
  29  Prefactor     1.1474        .22416        .24057E-03   -.87966    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.98658e-09
Minuit parameter uncertainties:
  1  9.05697e-06
  2  1.65511e-05
  3  5.74885e-05
  4  9.42223
  5  9.74868
  6  1.13528e-06
  7  2.23577
  8  29.352
  9  4.13786
  10  7.09446e-07
  11  8.81506
  12  0.00029113
  13  0.000109864
  14  3.09116
  15  1.45484e-06
  16  8.64547e-05
  17  0.000202811
  18  30.7569
  19  0.000193008
  20  0.228625
  21  1.32019e-06
  22  8.15258e-06
  23  0.00047567
  24  13.101
  25  3.29661
  26  0.000285735
  27  8.6361e-07
  28  0.173192
  29  0.224344
Done.

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

Extracting fit parameters...

4FGL J1033.1+4115
   Spectrum: PowerLaw
339    Prefactor:  4.620e+00  3.091e+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.147e+00  2.243e-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.040e-01  1.732e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 7.41
Ra Dec: 158.275 41.262
Photon Index (Fixed Index): 2.41 +/- 0.00
Photon Flux (Fixed Index): 3.39e-08 +/- 2.27e-08
Energy Flux (Fixed Index): 1.09e-05 +/- 7.32e-06

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) = 5267.97203561
delta logL = 1.48581716435

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5267.95158981
delta logL = 1.50626296458

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.4113       1.0000         .10000E-03   10000.    
     2 'Index     '    1.6162       1.0000          .0000       10.000    
     3 'Normalizat'    .62310       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1307       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=   5267.952     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      211 TOTAL
                     EDM=   .24E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.4123        3.5015        .43187E-02    .39122E-04
   2  Index         1.6163        .34167        .16152       -.50302E-04
   3  Normalizat    .62314        .14295        .41254E-01    .27702E-04
   4  Prefactor     1.1307        .19051        .54724E-01    .27068E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.4123
  Index      = 1.61632
  Normalizat = 0.623136
  Prefactor  = 1.13067
 **********
 **   18 **HESSE 
 **********

 FCN=   5267.952     FROM HESSE     STATUS=OK            33 CALLS      244 TOTAL
                     EDM=   .49E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.4123        3.7602        .10639E-03   -1.5243    
   2  Index         1.6163        .39884        .65732E-02   -.74332    
   3  Normalizat    .62314        .16687        .23962E-03   -1.0701    
   4  Prefactor     1.1307        .22244        .24196E-03   -.88492    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.92506e-12
Minuit parameter uncertainties:
  1  3.76036
  2  0.399622
  3  0.167007
  4  0.222621
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/973255': 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) = 5267.95158973
delta logL = 1.50626305037

Extracting fit parameters...

4FGL J1033.1+4115
   Spectrum: PowerLaw
339    Prefactor:  5.412e+00  3.760e+00  1.000e-04  1.000e+04 ( 1.000e-12)
340        Index:  1.616e+00  3.996e-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:  1.131e+00  2.226e-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.231e-01  1.670e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 10.44
Ra Dec: 158.275 41.262
Photon Index (Free Index): 1.62 +/- 0.40
Photon Flux (Free Index): 1.94e-08 +/- 1.49e-08
Energy Flux (Free Index): 4.16e-05 +/- 4.63e-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/973255/cmap_HighResolution_351820801_352080001_4FGL_J1033.1+4115_daily_bin434.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='3.39e-08', energy_flux2='4.16e-05', photon_flux_error='2.27e-08', dlogl='1.51e+00', energy_flux='1.09e-05', photon_flux2='1.94e-08', job_status='DONE', time_completed='2021-09-02 03:31:47.520254', photon_index_error2='0.40', photon_index2='1.62', ts='7.41', fit_tolerance='1e-08', GAL='1.15', photon_index_error='0.00', energy_flux_error2='4.63e-05', EG='0.60', time_epoch_completed='1630578707.52', return_code='0', job_id='973255', GAL2='1.13', EG2='0.62', return_code2='0', energy_flux_error='7.32e-06', photon_flux_error2='1.49e-08', ts2='10.44', photon_index='2.41' WHERE bin_id='434' AND source_name='4FGL J1033.1+4115' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  2 03:31:47 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0268>
Subject: Job 973255: <4FGL_J1033.1+4115_daily_bin434> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1033.1+4115_daily_bin434 158.275 41.262 351820801 352080001 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 :                                   736.27 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             305.53 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   955 sec.
    Turnaround time :                            960 sec.

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

