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


Performing analysis on: 4FGL_J1033.1+4115_daily_bin666
RA = 158.275, Dec = 41.262
tmin = 411955201, tmax = 412214401
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='974737', job_status='RUN', time_executed='2021-09-02 03:23:18.955093', time_epoch_executed='1630578198.96' WHERE source_name='4FGL J1033.1+4115' and cadence='daily' and bin_id='666'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/974737

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/974737/ft1_4FGL_J1033.1+4115_daily_bin666.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/974737/ft2_4FGL_J1033.1+4115_daily_bin666.fits


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

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

Done.
real 5.78
user 5.34
sys 0.29

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/974737/ft1_filtered_4FGL_J1033.1+4115_daily_bin666.fits evtable="EVENTS" scfile=/scratch/kocevski/974737/ft2_4FGL_J1033.1+4115_daily_bin666.fits sctable="SC_DATA" expcube=/scratch/kocevski/974737/ltcube_411955201_412214401_4FGL_J1033.1+4115_daily_bin666.fits outfile=/scratch/kocevski/974737/expmap_411955201_412214401_4FGL_J1033.1+4115_daily_bin666.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/974737/ltcube_411955201_412214401_4FGL_J1033.1+4115_daily_bin666.fits
.....................!
real 199.15
user 188.31
sys 5.46

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/974737/ft1_filtered_4FGL_J1033.1+4115_daily_bin666.fits scfile=/scratch/kocevski/974737/ft2_4FGL_J1033.1+4115_daily_bin666.fits outfile=/scratch/kocevski/974737/cmap_411955201_412214401_4FGL_J1033.1+4115_daily_bin666.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.69
user 0.37
sys 0.18

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/974737/ft1_filtered_4FGL_J1033.1+4115_daily_bin666.fits scfile=/scratch/kocevski/974737/ft2_4FGL_J1033.1+4115_daily_bin666.fits outfile=/scratch/kocevski/974737/cmap_HighResolution_411955201_412214401_4FGL_J1033.1+4115_daily_bin666.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.41
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    13.757       1.0000         .10000E-03   10000.    
     2 'Prefactor '    9.2282       1.0000         .10000E-03   10000.    
     3 'Prefactor '    59.408       1.0000         .10000E-03   10000.    
     4 'Prefactor '    4.1818       1.0000         .10000E-03   10000.    
     5 'norm      '    .10016E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    10.463       1.0000         .10000E-03   10000.    
     7 'Prefactor '    3.0302       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10363E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    8.5496       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10033E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    8.4590       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    1.7069       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10053E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    95.724       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10864E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    1.9170       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10115E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .24342E-02   1.0000         .10000E-03   10000.    
    24 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    1.8316       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10523E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    5.9632       1.0000         .10000E-03   10000.    
    28 'Normalizat'    .70998       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .94163       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=   3658.482     FROM MIGRAD    STATUS=CONVERGED    731 CALLS     3738 TOTAL
                     EDM=   .21E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          13.748        21.060        .16131E-06   -.35576E-05
   2  Prefactor     9.2658        41.820        .27462E-06    .89118E-05
   3  Prefactor     59.396        46.468        .14343E-06   -.21274E-04
   4  Prefactor     4.1836        6.4027        .14118E-06   -.56632E-05
   5  norm          .10000E-03    15.903        .23229E-06** at limit **
   6  Prefactor     10.464        7.3002        .11959E-06   -.68829E-05
   7  Prefactor     3.0304        3.5690        .10232E-06   -.77504E-05
   8  Prefactor     .10000E-03    43.884       -.48252E-06** at limit **
   9  norm          8.5505        4.0969        .37945E-07   -.81904E-05
  10  Prefactor     .10000E-03    3.5630       -.97806E-07** at limit **
  11  norm          8.4577        13.017        .29532E-05   -.18157E-04
  12  Prefactor     .10000E-03    23.217        .15949E-07** at limit **
  13  Prefactor     .10000E-03    13.097       -.15325E-07** at limit **
  14  Prefactor     1.7086        3.8499       -.93038E-07   -.53365E-04
  15  Prefactor     .10000E-03    2.2459       -.27492E-07** at limit **
  16  Prefactor     .10000E-03    16.519       -.65605E-07** at limit **
  17  Prefactor     95.696        83.702       -.16132E-06   -.21542E-04
  18  Prefactor     .10000E-03    11.211        .30102E-07** at limit **
  19  Prefactor     .10000E-03    135.23        .72512E-06** at limit **
  20  norm          1.9172        .47509        .18696E-08   -.77498E-04
  21  Prefactor     .10000E-03    8.0197        .13241E-07** at limit **
  22  Prefactor     .10000E-03    12.691       -.25278E-07** at limit **
  23  Prefactor     .10001E-03    459.75       -.51277E-05** at limit **
  24  norm          .10000E-03    4.8106        .19716E-08** at limit **
  25  Prefactor     1.8313        4.4421        .42479E-06    .10446E-04
  26  Prefactor     .10000E-03    77.837       -.31773E-06** at limit **
  27  norm          5.9646        4.6588       -.92603E-07   -.23461E-04
  28  Normalizat    .70994        .19844       -.70568E-06    .16860E-05
  29  Prefactor     .94135        .24351       -.49985E-06   -.80234E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 13.7484
  Prefactor  = 9.2658
  Prefactor  = 59.3955
  Prefactor  = 4.18361
  norm       = 0.0001
  Prefactor  = 10.4636
  Prefactor  = 3.03038
  Prefactor  = 0.0001
  norm       = 8.55045
  Prefactor  = 0.0001
  norm       = 8.45768
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.70862
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 95.6962
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 1.91721
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100008
  norm       = 0.0001
  Prefactor  = 1.83131
  Prefactor  = 0.0001
  norm       = 5.96456
  Normalizat = 0.709942
  Prefactor  = 0.941347
 **********
 **   18 **HESSE 
 **********

 FCN=   3658.482     FROM HESSE     STATUS=OK           549 CALLS     4287 TOTAL
                     EDM=   .41E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          13.748        21.034        .10799E-03   -1.4966    
   2  Prefactor     9.2658        41.397        .13193E-03   -1.5099    
   3  Prefactor     59.396        46.350        .52053E-04   -1.4165    
   4  Prefactor     4.1836        6.3915        .18374E-03   -1.5299    
   5  norm          .10000E-03    16.040        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     10.464        7.3155        .12387E-03   -1.5061    
   7  Prefactor     3.0304        3.5560        .11722E-03   -1.5360    
   8  Prefactor     .10000E-03    44.253        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          8.5505        4.0967        .81729E-04   -1.5123    
  10  Prefactor     .10000E-03    3.6059        .11091E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          8.4577        13.016        .68916E-03   -1.5126    
  12  Prefactor     .10000E-03    23.223        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    13.102        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     1.7086        3.7998        .16618E-03   -1.5447    
  15  Prefactor     .10000E-03    2.2532        .88516E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    16.531        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     95.696        83.784        .20541E-03   -1.3748    
  18  Prefactor     .10000E-03    11.217        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    135.89        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          1.9172        .47530        .20000E-04   -1.5431    
  21  Prefactor     .10000E-03    8.0410        .16727E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    12.717        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10001E-03    467.13        .20044E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10000E-03    4.8159        .12956E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     1.8313        4.3791        .17645E-03   -1.5437    
  26  Prefactor     .10000E-03    77.944        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          5.9646        4.6049        .10282E-03   -1.5219    
  28  Normalizat    .70994        .23277        .23474E-03   -1.0350    
  29  Prefactor     .94135        .28586        .26683E-03   -.94711    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.11118e-11
Minuit parameter uncertainties:
  1  21.0455
  2  39.2152
  3  46.3784
  4  6.39256
  5  2.33692e-05
  6  7.3161
  7  3.55621
  8  0.000149323
  9  4.09681
  10  7.75598e-06
  11  13.0201
  12  1.19206e-06
  13  1.16522e-06
  14  3.8003
  15  2.51005e-06
  16  1.98311e-05
  17  83.888
  18  4.58113e-06
  19  0.000625864
  20  0.475297
  21  1.52757e-06
  22  8.89147e-06
  23  0.00393054
  24  4.665e-08
  25  4.37982
  26  0.000212752
  27  4.60514
  28  0.233093
  29  0.286321
Done.

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

Extracting fit parameters...

4FGL J1033.1+4115
   Spectrum: PowerLaw
339    Prefactor:  1.709e+00  3.800e+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:  9.413e-01  2.863e-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:  7.099e-01  2.331e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/974737/likelihoodResults_411955201_412214401_4FGL_J1033.1+4115_daily_bin666.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) = 3658.48048667
delta logL = 0.00186771822882

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3658.48022706
delta logL = 0.00212733112357

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.7924       1.0000         .10000E-03   10000.    
     2 'Index     '    2.3238       1.0000          .0000       10.000    
     3 'Normalizat'    .71111       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .94025       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=   3658.480     FROM MIGRAD    STATUS=CONVERGED     81 CALLS      229 TOTAL
                     EDM=   .21E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.7926        4.0898        .17012E-03   -.11768E-02
   2  Index         2.3230        1.3566        .13820E-01   -.12152E-03
   3  Normalizat    .71112        .21738        .23456E-03    .15309E-03
   4  Prefactor     .94024        .28158        .26697E-03    .14748E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.79264
  Index      = 2.32297
  Normalizat = 0.711121
  Prefactor  = 0.940237
 **********
 **   18 **HESSE 
 **********

 FCN=   3658.480     FROM HESSE     STATUS=OK            23 CALLS      252 TOTAL
                     EDM=   .23E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.7926        4.0034        .68049E-05   -1.5440    
   2  Index         2.3230        1.3294        .55282E-03   -.56499    
   3  Normalizat    .71112        .21758        .93824E-05   -1.0346    
   4  Prefactor     .94024        .28179        .53393E-04   -.94749    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.27576e-09
Minuit parameter uncertainties:
  1  4.00404
  2  1.35235
  3  0.217845
  4  0.282229
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/974737': 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) = 3658.4802269
delta logL = 0.00212749249295

Extracting fit parameters...

4FGL J1033.1+4115
   Spectrum: PowerLaw
339    Prefactor:  1.793e+00  4.004e+00  1.000e-04  1.000e+04 ( 1.000e-12)
340        Index:  2.323e+00  1.352e+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:  9.402e-01  2.822e-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:  7.111e-01  2.178e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.28
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/974737/cmap_HighResolution_411955201_412214401_4FGL_J1033.1+4115_daily_bin666.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.02e-03', job_status='DONE', photon_flux_upper_limit='9.08e-08', time_completed='2021-09-02 03:35:08.437931', job_id='974737', GAL2='0.94', fit_tolerance='1e-08', EG2='0.71', EG='0.71', time_epoch_completed='1630578908.44', return_code2='0', ts='0.28', comment='SUCCESS', return_code='0', GAL='0.94', dlogl='2.13e-03', ts2='0.28', photon_index_error='0.00', photon_index='2.41' WHERE bin_id='666' AND source_name='4FGL J1033.1+4115' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  2 03:35:08 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0202>
Subject: Job 974737: <4FGL_J1033.1+4115_daily_bin666> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1033.1+4115_daily_bin666 158.275 41.262 411955201 412214401 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 :                                   693.36 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             277.93 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   867 sec.
    Turnaround time :                            879 sec.

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

