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


Performing analysis on: 4FGL_J1033.1+4115_daily_bin999
RA = 158.275, Dec = 41.262
tmin = 498268801, tmax = 498528001
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='977459', job_status='RUN', time_executed='2021-09-02 03:30:48.691088', time_epoch_executed='1630578648.69' WHERE source_name='4FGL J1033.1+4115' and cadence='daily' and bin_id='999'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/977459

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/977459/ft1_4FGL_J1033.1+4115_daily_bin999.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/977459/ft2_4FGL_J1033.1+4115_daily_bin999.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/977459/ft1_4FGL_J1033.1+4115_daily_bin999.fits outfile=/scratch/kocevski/977459/ft1_filteredMKT_4FGL_J1033.1+4115_daily_bin999.fits ra=158.275 dec=41.262 rad=12.0 tmin=498268801.0 tmax=498528001.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 4.84
user 4.54
sys 0.26

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/977459/ft1_filtered_4FGL_J1033.1+4115_daily_bin999.fits" evtable="EVENTS" scfile=/scratch/kocevski/977459/ft2_4FGL_J1033.1+4115_daily_bin999.fits sctable="SC_DATA" outfile=/scratch/kocevski/977459/ltcube_498268801_498528001_4FGL_J1033.1+4115_daily_bin999.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/977459/ft2_4FGL_J1033.1+4115_daily_bin999.fits
.....................!
real 16.67
user 16.08
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/977459/ft1_filtered_4FGL_J1033.1+4115_daily_bin999.fits evtable="EVENTS" scfile=/scratch/kocevski/977459/ft2_4FGL_J1033.1+4115_daily_bin999.fits sctable="SC_DATA" expcube=/scratch/kocevski/977459/ltcube_498268801_498528001_4FGL_J1033.1+4115_daily_bin999.fits outfile=/scratch/kocevski/977459/expmap_498268801_498528001_4FGL_J1033.1+4115_daily_bin999.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/977459/ltcube_498268801_498528001_4FGL_J1033.1+4115_daily_bin999.fits
.....................!
real 193.03
user 186.51
sys 4.49

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/977459/ft1_filtered_4FGL_J1033.1+4115_daily_bin999.fits scfile=/scratch/kocevski/977459/ft2_4FGL_J1033.1+4115_daily_bin999.fits outfile=/scratch/kocevski/977459/cmap_498268801_498528001_4FGL_J1033.1+4115_daily_bin999.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.39
sys 0.15

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    27.020       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    12.625       1.0000         .10000E-03   10000.    
     5 'norm      '    22.280       1.0000         .10000E-03   10000.    
     6 'Prefactor '    3.8450       1.0000         .10000E-03   10000.    
     7 'Prefactor '    5.9746       1.0000         .10000E-03   10000.    
     8 'Prefactor '    65.703       1.0000         .10000E-03   10000.    
     9 'norm      '    5.0098       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .16726E-02   1.0000         .10000E-03   10000.    
    11 'norm      '    8.8449       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10124E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    26.092       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .56666       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .68326       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10046E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    7.3999       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    5.9069       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    37.794       1.0000         .10000E-03   10000.    
    27 'norm      '    7.9065       1.0000         .10000E-03   10000.    
    28 'Normalizat'    .66683       1.0000         .10000E-01   10.000    
    29 'Prefactor '    1.1457       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=   4690.285     FROM MIGRAD    STATUS=CONVERGED   1297 CALLS     4873 TOTAL
                     EDM=   .53E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    9.6404        .18142E-02** at limit **
   2  Prefactor     27.025        27.109        .77070E-04    .16226E-05
   3  Prefactor     .10000E-03    57.107        .18142E-02** at limit **
   4  Prefactor     12.626        11.898        .11274E-03   -.91665E-04
   5  norm          22.286        20.143        .84858E-04   -.25723E-04
   6  Prefactor     3.8460        6.3159        .20581E-03   -.76837E-04
   7  Prefactor     5.9650        4.4723        .11795E-03   -.76079E-03
   8  Prefactor     65.700        39.327        .49512E-04   -.78115E-04
   9  norm          5.0100        3.3840        .99146E-04   -.51485E-04
  10  Prefactor     .10001E-03    37.768        .21741E-02** at limit **
  11  norm          8.8426        10.937        .13477E-03   -.13142E-03
  12  Prefactor     .10000E-03    33.468        .18142E-02** at limit **
  13  Prefactor     .10000E-03    14.997        .18142E-02** at limit **
  14  Prefactor     .10000E-03    2.0359        .94862E-03** at limit **
  15  Prefactor     .10000E-03    2.7958        .11132E-02** at limit **
  16  Prefactor     26.090        29.824        .78425E-04   -.39575E-04
  17  Prefactor     .43452        88.604        .17888        .42883E-04
  18  Prefactor     .10000E-03    11.253        .18142E-02** at limit **
  19  Prefactor     .10000E-03    32.538        .18142E-02** at limit **
  20  norm          .68323        .28766        .22258E-04   -.12769E-03
  21  Prefactor     .10000E-03    8.7876        .18142E-02** at limit **
  22  Prefactor     7.3979        12.891        .14744E-03   -.30304E-04
  23  Prefactor     .10000E-03    28.239        .18142E-02** at limit **
  24  norm          5.9053        7.7326        .16523E-03   -.59999E-04
  25  Prefactor     .10000E-03    2.6805        .16697E-02** at limit **
  26  Prefactor     37.774        37.279        .65194E-04   -.83703E-06
  27  norm          7.9047        3.8139        .87293E-04   -.25917E-04
  28  Normalizat    .66664        .20930        .25378E-03   -.24088E-03
  29  Prefactor     1.1458        .25743        .25908E-03   -.15015E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 27.025
  Prefactor  = 0.0001
  Prefactor  = 12.6258
  norm       = 22.2862
  Prefactor  = 3.84597
  Prefactor  = 5.96499
  Prefactor  = 65.6996
  norm       = 5.00996
  Prefactor  = 0.000100005
  norm       = 8.84261
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 26.0901
  Prefactor  = 0.434517
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.683227
  Prefactor  = 0.0001
  Prefactor  = 7.39793
  Prefactor  = 0.0001
  norm       = 5.90527
  Prefactor  = 0.0001
  Prefactor  = 37.7738
  norm       = 7.90474
  Normalizat = 0.666636
  Prefactor  = 1.14578
 **********
 **   18 **HESSE 
 **********

 FCN=   4690.285     FROM HESSE     STATUS=OK           533 CALLS     5406 TOTAL
                     EDM=   .55E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    9.6407        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     27.025        27.111        .30828E-05   -1.4668    
   3  Prefactor     .10000E-03    57.117        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     12.626        11.897        .45095E-05   -1.4997    
   5  norm          22.286        20.142        .33943E-05   -1.4763    
   6  Prefactor     3.8460        6.3154        .82325E-05   -1.5316    
   7  Prefactor     5.9650        4.4638        .47179E-05   -1.5219    
   8  Prefactor     65.700        39.326        .99024E-05   -1.4085    
   9  norm          5.0100        3.3839        .39658E-05   -1.5260    
  10  Prefactor     .10001E-03    38.280        .43482E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          8.8426        10.936        .53909E-05   -1.5113    
  12  Prefactor     .10000E-03    33.469        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    14.997        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    2.0361        .18972E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    2.7962        .22264E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     26.090        29.827        .31370E-05   -1.4686    
  17  Prefactor     .43452        89.420        .17778       -1.5576    
  18  Prefactor     .10000E-03    11.254        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    32.538        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .68323        .28766        .89032E-06   -1.5543    
  21  Prefactor     .10000E-03    8.7923        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     7.3979        12.891        .58975E-05   -1.5164    
  23  Prefactor     .10000E-03    28.239        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          5.9053        7.7325        .66091E-05   -1.5222    
  25  Prefactor     .10000E-03    2.6864        .33393E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     37.774        37.279        .13039E-04   -1.4478    
  27  norm          7.9047        3.8139        .34917E-05   -1.5146    
  28  Normalizat    .66664        .20947        .10151E-04   -1.0523    
  29  Prefactor     1.1458        .25765        .51817E-04   -.88017    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.52722e-10
Minuit parameter uncertainties:
  1  9.228e-06
  2  27.1231
  3  2.31519e-05
  4  11.8994
  5  20.1481
  6  6.31648
  7  4.46407
  8  39.3416
  9  3.38401
  10  0.000898424
  11  10.9389
  12  4.1444e-05
  13  3.78618e-06
  14  1.09616e-06
  15  1.57619e-06
  16  29.8439
  17  12.4842
  18  2.15632e-06
  19  1.45446e-05
  20  0.287657
  21  8.27979e-05
  22  12.8961
  23  6.47632e-05
  24  7.73384
  25  3.78382e-05
  26  37.3017
  27  3.81401
  28  0.209716
  29  0.25793
Done.

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

Extracting fit parameters...

4FGL J1033.1+4115
   Spectrum: PowerLaw
339    Prefactor:  1.000e-04  1.096e-06  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.146e+00  2.579e-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.666e-01  2.097e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/977459/likelihoodResults_498268801_498528001_4FGL_J1033.1+4115_daily_bin999.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) = 4690.28722586
delta logL = -0.00232039926232

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4690.28490552
delta logL = -5.74837031309e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4138       1.0000          .0000       10.000    
     3 'Normalizat'    .66665       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1458       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   4690.285     FROM MIGRAD    STATUS=FAILED        89 CALLS      240 TOTAL
                     EDM=   .13E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10008E-03    147.93        .94865E-03** at limit **
   2  Index         2.4539        8.5881        .50000       -.43110E-05
   3  Normalizat    .66664        .39261E-01    .25377E-03    .18233E-04
   4  Prefactor     1.1458        .51463E-01    .25908E-03    .13559E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   4690.285     FROM SIMPLEX   STATUS=UNCHANGED    152 CALLS      392 TOTAL
                     EDM=   .12E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10008E-03    147.93        .24313E-03** at limit **
   2  Index         2.4539        8.5881        .76850E-04   -.43110E-05
   3  Normalizat    .66664        .39261E-01    .14443E-05    .18233E-04
   4  Prefactor     1.1458        .51463E-01    .12563E-05    .13559E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4690.285     FROM MIGRAD    STATUS=CONVERGED     39 CALLS      431 TOTAL
                     EDM=   .54E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    2.0489        .18973E-03** at limit **
   2  Index         2.5322        6.7980        .20000       -.31093E-07
   3  Normalizat    .66664        .19416        .10151E-04    .20160E-04
   4  Prefactor     1.1458        .25499        .10363E-04    .14700E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.53223
  Normalizat = 0.666637
  Prefactor  = 1.14578
 **********
 **   18 **HESSE 
 **********

 FCN=   4690.285     FROM HESSE     STATUS=OK            25 CALLS      456 TOTAL
                     EDM=   .14E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    2.0436        .37946E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.5322        6.3614        .80000E-02   -.51617    
   3  Normalizat    .66664        .19418        .20302E-05   -1.0523    
   4  Prefactor     1.1458        .25497        .20727E-05   -.88017    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.42932e-12
Minuit parameter uncertainties:
  1  2.30682e-06
  2  298.086
  3  0.194381
  4  0.255244
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/977459': 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) = 4690.28490537
delta logL = 8.93751348485e-08

Extracting fit parameters...

4FGL J1033.1+4115
   Spectrum: PowerLaw
339    Prefactor:  1.000e-04  2.307e-06  1.000e-04  1.000e+04 ( 1.000e-12)
340        Index:  2.532e+00  2.981e+02  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.146e+00  2.552e-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.666e-01  1.944e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 158.275 41.262

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/977459/cmap_HighResolution_498268801_498528001_4FGL_J1033.1+4115_daily_bin999.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.64e-03', job_status='DONE', photon_flux_upper_limit='6.00e-08', time_completed='2021-09-02 03:45:40.846505', job_id='977459', GAL2='1.15', fit_tolerance='1e-08', EG2='0.67', EG='0.67', time_epoch_completed='1630579540.85', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.15', dlogl='8.94e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.41' WHERE bin_id='999' AND source_name='4FGL J1033.1+4115' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  2 03:45:40 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0221>
Subject: Job 977459: <4FGL_J1033.1+4115_daily_bin999> in cluster <slac> Done

Job <4FGL_J1033.1+4115_daily_bin999> was submitted from host <rhel6-64n> by user <kocevski> in cluster <slac> at Thu Sep  2 03:30:25 2021
Job was executed on host(s) <bullet0221>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  2 03:30:34 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Sep  2 03:30:34 2021
Terminated at Thu Sep  2 03:45:41 2021
Results reported at Thu Sep  2 03:45:41 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1033.1+4115_daily_bin999 158.275 41.262 498268801 498528001 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 :                                   882.00 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             308.28 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   907 sec.
    Turnaround time :                            916 sec.

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

