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


Performing analysis on: 4FGL_J1033.1+4115_daily_bin823
RA = 158.275, Dec = 41.262
tmin = 452649601, tmax = 452908801
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='976288', job_status='RUN', time_executed='2021-09-02 03:26:02.983587', time_epoch_executed='1630578362.98' WHERE source_name='4FGL J1033.1+4115' and cadence='daily' and bin_id='823'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/976288

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/976288/ft1_4FGL_J1033.1+4115_daily_bin823.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/976288/ft2_4FGL_J1033.1+4115_daily_bin823.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/976288/ft1_4FGL_J1033.1+4115_daily_bin823.fits outfile=/scratch/kocevski/976288/ft1_filteredMKT_4FGL_J1033.1+4115_daily_bin823.fits ra=158.275 dec=41.262 rad=12.0 tmin=452649601.0 tmax=452908801.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.41
user 3.21
sys 0.18

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/976288/ft1_filtered_4FGL_J1033.1+4115_daily_bin823.fits" evtable="EVENTS" scfile=/scratch/kocevski/976288/ft2_4FGL_J1033.1+4115_daily_bin823.fits sctable="SC_DATA" outfile=/scratch/kocevski/976288/ltcube_452649601_452908801_4FGL_J1033.1+4115_daily_bin823.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/976288/ft2_4FGL_J1033.1+4115_daily_bin823.fits
.....................!
real 13.21
user 12.78
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/976288/ft1_filtered_4FGL_J1033.1+4115_daily_bin823.fits evtable="EVENTS" scfile=/scratch/kocevski/976288/ft2_4FGL_J1033.1+4115_daily_bin823.fits sctable="SC_DATA" expcube=/scratch/kocevski/976288/ltcube_452649601_452908801_4FGL_J1033.1+4115_daily_bin823.fits outfile=/scratch/kocevski/976288/expmap_452649601_452908801_4FGL_J1033.1+4115_daily_bin823.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/976288/ltcube_452649601_452908801_4FGL_J1033.1+4115_daily_bin823.fits
.....................!
real 189.76
user 185.36
sys 4.00

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/976288/ft1_filtered_4FGL_J1033.1+4115_daily_bin823.fits scfile=/scratch/kocevski/976288/ft2_4FGL_J1033.1+4115_daily_bin823.fits outfile=/scratch/kocevski/976288/cmap_452649601_452908801_4FGL_J1033.1+4115_daily_bin823.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.57
user 0.39
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/976288/ft1_filtered_4FGL_J1033.1+4115_daily_bin823.fits scfile=/scratch/kocevski/976288/ft2_4FGL_J1033.1+4115_daily_bin823.fits outfile=/scratch/kocevski/976288/cmap_HighResolution_452649601_452908801_4FGL_J1033.1+4115_daily_bin823.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.55
user 0.40
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    26.260       1.0000         .10000E-03   10000.    
     2 'Prefactor '    5.9957       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10174E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    1.9577       1.0000         .10000E-03   10000.    
     5 'norm      '    17.412       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10127E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    3.1963       1.0000         .10000E-03   10000.    
     8 'Prefactor '    6.6017       1.0000         .10000E-03   10000.    
     9 'norm      '    7.9822       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10075E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10058E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10916E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    71.167       1.0000         .10000E-03   10000.    
    14 'Prefactor '    7.5017       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .39824       1.0000         .10000E-03   10000.    
    16 'Prefactor '    14.859       1.0000         .10000E-03   10000.    
    17 'Prefactor '    133.17       1.0000         .10000E-03   10000.    
    18 'Prefactor '    5.5199       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10235E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    1.4733       1.0000         .10000E-03   10000.    
    21 'Prefactor '    8.9854       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10053E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    10.355       1.0000         .10000E-03   10000.    
    25 'Prefactor '    2.5452       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    1.8592       1.0000         .10000E-03   10000.    
    28 'Normalizat'    .61588       1.0000         .10000E-01   10.000    
    29 'Prefactor '    1.1294       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=   6024.387     FROM MIGRAD    STATUS=CONVERGED    742 CALLS     3718 TOTAL
                     EDM=   .18E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          26.261        20.868       -.25753E-06    .47313E-05
   2  Prefactor     5.9912        23.348        .40632E-06   -.98050E-06
   3  Prefactor     .10000E-03    12.197       -.61189E-07** at limit **
   4  Prefactor     1.9554        5.6107       -.37447E-07    .36247E-05
   5  norm          17.414        10.931        .11367E-07    .93905E-06
   6  Prefactor     .10000E-03    4.3603       -.95277E-07** at limit **
   7  Prefactor     3.1970        3.1230        .16743E-06    .24861E-04
   8  Prefactor     6.6053        25.317        .67606E-06    .60407E-05
   9  norm          7.9823        3.0489       -.14155E-07    .22094E-04
  10  Prefactor     .10000E-03    1.5780       -.18165E-06** at limit **
  11  norm          .10000E-03    4.0674       -.88329E-07** at limit **
  12  Prefactor     .10000E-03    95.498        .64716E-06** at limit **
  13  Prefactor     71.255        63.153        .38524E-05    .15351E-03
  14  Prefactor     7.5022        4.3058        .76927E-07    .74379E-04
  15  Prefactor     .35536        50.588       -.43036E-05    .63871E-04
  16  Prefactor     14.860        28.624       -.59352E-08    .21941E-04
  17  Prefactor     132.92        98.684       -.33091E-05   -.10798E-03
  18  Prefactor     5.5186        27.780       -.16032E-06    .53361E-05
  19  Prefactor     .10000E-03    27.788       -.25864E-07** at limit **
  20  norm          1.4733        .33278       -.11578E-07    .20230E-03
  21  Prefactor     8.9882        12.693        .61221E-07   -.11433E-05
  22  Prefactor     .10000E-03    3.9360       -.69838E-07** at limit **
  23  Prefactor     .10000E-03    83.908        .61433E-06** at limit **
  24  norm          10.355        10.886       -.34223E-06   -.60456E-05
  25  Prefactor     2.5447        2.9943        .66544E-06   -.31551E-03
  26  Prefactor     .10000E-03    53.077       -.38737E-05** at limit **
  27  norm          1.8587        2.7222       -.59134E-06   -.19626E-03
  28  Normalizat    .61558        .18478       -.46095E-05    .10671E-03
  29  Prefactor     1.1300        .23005        .50709E-05   -.47954E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 26.2607
  Prefactor  = 5.99124
  Prefactor  = 0.0001
  Prefactor  = 1.95542
  norm       = 17.4141
  Prefactor  = 0.0001
  Prefactor  = 3.19701
  Prefactor  = 6.60534
  norm       = 7.98225
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 71.2551
  Prefactor  = 7.50222
  Prefactor  = 0.355358
  Prefactor  = 14.8604
  Prefactor  = 132.919
  Prefactor  = 5.51863
  Prefactor  = 0.0001
  norm       = 1.47329
  Prefactor  = 8.98819
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 10.355
  Prefactor  = 2.54475
  Prefactor  = 0.000100002
  norm       = 1.85874
  Normalizat = 0.61558
  Prefactor  = 1.12997
 **********
 **   18 **HESSE 
 **********

 FCN=   6024.387     FROM HESSE     STATUS=OK           563 CALLS     4281 TOTAL
                     EDM=   .43E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          26.261        20.723        .78175E-04   -1.4683    
   2  Prefactor     5.9912        23.190        .16398E-03   -1.5218    
   3  Prefactor     .10000E-03    12.215        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     1.9554        5.5723        .29650E-03   -1.5428    
   5  norm          17.414        10.932        .95982E-04   -1.4873    
   6  Prefactor     .10000E-03    4.4817        .31617E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     3.1970        3.1101        .12791E-03   -1.5350    
   8  Prefactor     6.6053        25.296        .15618E-03   -1.5194    
   9  norm          7.9823        3.0489        .80965E-04   -1.5143    
  10  Prefactor     .10000E-03    1.5886        .95015E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    4.0818        .15282E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    97.635        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     71.255        79.984        .23793E-03   -1.4018    
  14  Prefactor     7.5022        4.2978        .11255E-03   -1.5160    
  15  Prefactor     .35536        82.103        .24127E-02   -1.5589    
  16  Prefactor     14.860        28.594        .10391E-03   -1.4937    
  17  Prefactor     132.92        101.47        .17448E-03   -1.3397    
  18  Prefactor     5.5186        27.753        .17101E-03   -1.5238    
  19  Prefactor     .10000E-03    27.805        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          1.4733        .33331        .20071E-04   -1.5465    
  21  Prefactor     8.9882        12.684        .13371E-03   -1.5108    
  22  Prefactor     .10000E-03    3.9375        .15037E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    84.107        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          10.355        10.868        .12451E-03   -1.5064    
  25  Prefactor     2.5447        3.0171        .67130E-03   -1.5389    
  26  Prefactor     .10000E-03    53.742        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          1.8587        2.7035        .14169E-03   -1.5435    
  28  Normalizat    .61558        .19168        .25647E-03   -1.0733    
  29  Prefactor     1.1300        .23607        .25611E-03   -.88514    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.26932e-10
Minuit parameter uncertainties:
  1  20.7285
  2  23.2247
  3  3.44549e-07
  4  5.57375
  5  10.9336
  6  2.14017e-06
  7  3.11025
  8  25.3375
  9  3.04891
  10  6.87178e-07
  11  2.02051e-06
  12  0.000178618
  13  80.1052
  14  4.29794
  15  10.8164
  16  28.6207
  17  101.608
  18  24.7695
  19  1.21598e-05
  20  0.33331
  21  12.6877
  22  9.88804e-07
  23  0.000300152
  24  10.87
  25  3.01732
  26  0.000597082
  27  2.70365
  28  0.191892
  29  0.236289
Done.

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

Extracting fit parameters...

4FGL J1033.1+4115
   Spectrum: PowerLaw
339    Prefactor:  7.502e+00  4.298e+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.130e+00  2.363e-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.156e-01  1.919e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 6.90
Ra Dec: 158.275 41.262
Photon Index (Fixed Index): 2.41 +/- 0.00
Photon Flux (Fixed Index): 5.51e-08 +/- 3.15e-08
Energy Flux (Fixed Index): 1.78e-05 +/- 1.02e-05

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6024.28381097
delta logL = 0.103320322654

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6024.28173378
delta logL = 0.105397511568

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    8.4445       1.0000         .10000E-03   10000.    
     2 'Index     '    2.1792       1.0000          .0000       10.000    
     3 'Normalizat'    .62702       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1196       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=   6024.282     FROM MIGRAD    STATUS=CONVERGED     81 CALLS      292 TOTAL
                     EDM=   .49E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     8.4450        4.9418        .12280E-03   -.28809E-02
   2  Index         2.1790        .49069        .68981E-02   -.51597E-03
   3  Normalizat    .62706        .17768        .25427E-03    .19109E-03
   4  Prefactor     1.1195        .23261        .25712E-03    .22086E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 8.44502
  Index      = 2.17905
  Normalizat = 0.627058
  Prefactor  = 1.11953
 **********
 **   18 **HESSE 
 **********

 FCN=   6024.282     FROM HESSE     STATUS=OK            23 CALLS      315 TOTAL
                     EDM=   .51E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     8.4450        4.9009        .24561E-04   -1.5127    
   2  Index         2.1790        .48646        .27592E-03   -.59945    
   3  Normalizat    .62706        .17785        .10171E-04   -1.0685    
   4  Prefactor     1.1195        .23280        .51424E-04   -.88845    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.11174e-09
Minuit parameter uncertainties:
  1  4.90115
  2  0.487594
  3  0.178008
  4  0.233013
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/976288': 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) = 6024.28173373
delta logL = 0.105397559779

Extracting fit parameters...

4FGL J1033.1+4115
   Spectrum: PowerLaw
339    Prefactor:  8.445e+00  4.901e+00  1.000e-04  1.000e+04 ( 1.000e-12)
340        Index:  2.179e+00  4.876e-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.120e+00  2.330e-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.271e-01  1.780e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 7.07
Ra Dec: 158.275 41.262
Photon Index (Free Index): 2.18 +/- 0.49
Photon Flux (Free Index): 4.74e-08 +/- 3.30e-08
Energy Flux (Free Index): 2.21e-05 +/- 1.72e-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/976288/cmap_HighResolution_452649601_452908801_4FGL_J1033.1+4115_daily_bin823.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='5.51e-08', energy_flux2='2.21e-05', photon_flux_error='3.15e-08', dlogl='1.05e-01', energy_flux='1.78e-05', photon_flux2='4.74e-08', job_status='DONE', time_completed='2021-09-02 03:39:17.130856', photon_index_error2='0.49', photon_index2='2.18', ts='6.90', fit_tolerance='1e-08', GAL='1.13', photon_index_error='0.00', energy_flux_error2='1.72e-05', EG='0.62', time_epoch_completed='1630579157.13', return_code='0', job_id='976288', GAL2='1.12', EG2='0.63', return_code2='0', energy_flux_error='1.02e-05', photon_flux_error2='3.30e-08', ts2='7.07', photon_index='2.41' WHERE bin_id='823' AND source_name='4FGL J1033.1+4115' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  2 03:39:17 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0253>
Subject: Job 976288: <4FGL_J1033.1+4115_daily_bin823> in cluster <slac> Done

Job <4FGL_J1033.1+4115_daily_bin823> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Thu Sep  2 03:25:36 2021
Job was executed on host(s) <bullet0253>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  2 03:25:49 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:25:49 2021
Terminated at Thu Sep  2 03:39:18 2021
Results reported at Thu Sep  2 03:39:18 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1033.1+4115_daily_bin823 158.275 41.262 452649601 452908801 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 :                                   790.34 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             333.44 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   808 sec.
    Turnaround time :                            822 sec.

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

