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


Performing analysis on: 4FGL_J1033.1+4115_daily_bin546
RA = 158.275, Dec = 41.262
tmin = 380851201, tmax = 381110401
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='973431', job_status='RUN', time_executed='2021-09-02 03:19:09.352550', time_epoch_executed='1630577949.35' WHERE source_name='4FGL J1033.1+4115' and cadence='daily' and bin_id='546'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/973431

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/973431/ft1_4FGL_J1033.1+4115_daily_bin546.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/973431/ft2_4FGL_J1033.1+4115_daily_bin546.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/973431/ft1_4FGL_J1033.1+4115_daily_bin546.fits outfile=/scratch/kocevski/973431/ft1_filteredMKT_4FGL_J1033.1+4115_daily_bin546.fits ra=158.275 dec=41.262 rad=12.0 tmin=380851201.0 tmax=381110401.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.51
user 3.25
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/973431/ft1_filtered_4FGL_J1033.1+4115_daily_bin546.fits" evtable="EVENTS" scfile=/scratch/kocevski/973431/ft2_4FGL_J1033.1+4115_daily_bin546.fits sctable="SC_DATA" outfile=/scratch/kocevski/973431/ltcube_380851201_381110401_4FGL_J1033.1+4115_daily_bin546.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/973431/ft2_4FGL_J1033.1+4115_daily_bin546.fits
.....................!
real 15.60
user 15.22
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/973431/ft1_filtered_4FGL_J1033.1+4115_daily_bin546.fits evtable="EVENTS" scfile=/scratch/kocevski/973431/ft2_4FGL_J1033.1+4115_daily_bin546.fits sctable="SC_DATA" expcube=/scratch/kocevski/973431/ltcube_380851201_381110401_4FGL_J1033.1+4115_daily_bin546.fits outfile=/scratch/kocevski/973431/expmap_380851201_381110401_4FGL_J1033.1+4115_daily_bin546.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/973431/ltcube_380851201_381110401_4FGL_J1033.1+4115_daily_bin546.fits
.....................!
real 190.28
user 185.84
sys 3.99

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/973431/ft1_filtered_4FGL_J1033.1+4115_daily_bin546.fits scfile=/scratch/kocevski/973431/ft2_4FGL_J1033.1+4115_daily_bin546.fits outfile=/scratch/kocevski/973431/cmap_380851201_381110401_4FGL_J1033.1+4115_daily_bin546.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.41
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/973431/ft1_filtered_4FGL_J1033.1+4115_daily_bin546.fits scfile=/scratch/kocevski/973431/ft2_4FGL_J1033.1+4115_daily_bin546.fits outfile=/scratch/kocevski/973431/cmap_HighResolution_380851201_381110401_4FGL_J1033.1+4115_daily_bin546.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.40
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .79479E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    20.730       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .40827E-02   1.0000         .10000E-03   10000.    
     4 'Prefactor '    16.839       1.0000         .10000E-03   10000.    
     5 'norm      '    6.3394       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .28394E-02   1.0000         .10000E-03   10000.    
     7 'Prefactor '    1.7960       1.0000         .10000E-03   10000.    
     8 'Prefactor '    60.794       1.0000         .10000E-03   10000.    
     9 'norm      '    12.079       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10033E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .11831E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10086E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    5.2222       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    43.592       1.0000         .10000E-03   10000.    
    18 'Prefactor '    15.772       1.0000         .10000E-03   10000.    
    19 'Prefactor '    5.0305       1.0000         .10000E-03   10000.    
    20 'norm      '    2.5070       1.0000         .10000E-03   10000.    
    21 'Prefactor '    4.3014       1.0000         .10000E-03   10000.    
    22 'Prefactor '    20.048       1.0000         .10000E-03   10000.    
    23 'Prefactor '    116.97       1.0000         .10000E-03   10000.    
    24 'norm      '    35.777       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .11099E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    3.6135       1.0000         .10000E-03   10000.    
    28 'Normalizat'    .93413       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .87612       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=   6231.735     FROM MIGRAD    STATUS=CONVERGED    741 CALLS     3756 TOTAL
                     EDM=   .41E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10003E-03    30.796        .46391E-05** at limit **
   2  Prefactor     20.694        29.283        .25674E-05    .35717E-03
   3  Prefactor     .10000E-03    159.92       -.20972E-05** at limit **
   4  Prefactor     16.841        10.244        .28480E-07    .12942E-04
   5  norm          6.3419        11.107       -.21539E-06    .58368E-04
   6  Prefactor     .10012E-03    28.613       -.63261E-05** at limit **
   7  Prefactor     1.7966        2.9569       -.16561E-07   -.14381E-04
   8  Prefactor     60.773        35.386       -.29561E-06    .39339E-04
   9  norm          12.078        3.8608       -.47219E-07    .16392E-03
  10  Prefactor     .10000E-03    2.3508        .23438E-07** at limit **
  11  norm          .10000E-03    2.5986        .44741E-07** at limit **
  12  Prefactor     .10000E-03    87.274        .25660E-05** at limit **
  13  Prefactor     .10000E-03    10.810        .30615E-07** at limit **
  14  Prefactor     5.2225        3.7483       -.17610E-07    .74026E-05
  15  Prefactor     .10000E-03    3.4439        .95917E-07** at limit **
  16  Prefactor     .10000E-03    20.450        .33298E-07** at limit **
  17  Prefactor     43.647        77.396        .26501E-05   -.15095E-04
  18  Prefactor     15.770        15.091        .14980E-07    .12140E-05
  19  Prefactor     5.0622        540.99        .45753E-05   -.11550E-05
  20  norm          2.5069        .46654        .20335E-07    .23139E-04
  21  Prefactor     4.3068        25.209       -.28358E-05   -.35334E-04
  22  Prefactor     20.045        19.553        .18597E-06    .29350E-04
  23  Prefactor     117.06        119.97        .30871E-05   -.21808E-04
  24  norm          35.780        18.477        .29760E-06    .32705E-04
  25  Prefactor     .10000E-03    2.5250       -.99882E-07** at limit **
  26  Prefactor     .10000E-03    58.053       -.69450E-06** at limit **
  27  norm          3.6137        3.0972        .20315E-06    .61597E-04
  28  Normalizat    .93420        .17779       -.14881E-06    .18466E-03
  29  Prefactor     .87607        .20360       -.70447E-07    .19915E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100033
  Prefactor  = 20.6939
  Prefactor  = 0.0001
  Prefactor  = 16.8408
  norm       = 6.34189
  Prefactor  = 0.00010012
  Prefactor  = 1.7966
  Prefactor  = 60.7728
  norm       = 12.078
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.22249
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 43.6473
  Prefactor  = 15.7702
  Prefactor  = 5.06223
  norm       = 2.50689
  Prefactor  = 4.30682
  Prefactor  = 20.0449
  Prefactor  = 117.06
  norm       = 35.7797
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.61368
  Normalizat = 0.934201
  Prefactor  = 0.876074
 **********
 **   18 **HESSE 
 **********

 FCN=   6231.735     FROM HESSE     STATUS=OK           561 CALLS     4317 TOTAL
                     EDM=   .31E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10003E-03    42.627        .48889E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     20.694        28.072        .87971E-04   -1.4798    
   3  Prefactor     .10000E-03    165.18        .38938E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     16.841        10.239        .97602E-04   -1.4887    
   5  norm          6.3419        11.043        .15942E-03   -1.5204    
   6  Prefactor     .10012E-03    56.589        .35844E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     1.7966        2.9234        .16604E-03   -1.5440    
   8  Prefactor     60.773        35.425        .51460E-04   -1.4147    
   9  norm          12.078        3.8476        .84372E-04   -1.5013    
  10  Prefactor     .10000E-03    2.3737        .11792E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    2.6017        .12427E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    87.371        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    10.817        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     5.2225        3.7483        .12452E-03   -1.5251    
  15  Prefactor     .10000E-03    3.5067        .14299E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    20.508        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     43.647        76.827        .60720E-04   -1.4386    
  18  Prefactor     15.770        15.094        .10085E-03   -1.4914    
  19  Prefactor     5.0622        536.58        .17929E-03   -1.5258    
  20  norm          2.5069        .46935        .20987E-04   -1.5391    
  21  Prefactor     4.3068        25.428        .97123E-03   -1.5293    
  22  Prefactor     20.045        19.606        .89454E-04   -1.4812    
  23  Prefactor     117.06        118.56        .18602E-03   -1.3540    
  24  norm          35.780        18.394        .67001E-04   -1.4511    
  25  Prefactor     .10000E-03    4.4877        .23344E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    58.131        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          3.6137        3.0020        .12030E-03   -1.5328    
  28  Normalizat    .93420        .20325        .24715E-03   -.95269    
  29  Prefactor     .87607        .23401        .31210E-03   -.96982    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.11158e-09
Minuit parameter uncertainties:
  1  0.00237518
  2  28.0895
  3  0.000119698
  4  10.2396
  5  11.0462
  6  0.00520762
  7  2.92365
  8  35.4375
  9  3.84765
  10  1.92569e-06
  11  1.70747e-06
  12  0.000137131
  13  2.56817e-06
  14  3.74849
  15  4.33852e-06
  16  8.71308e-06
  17  77.0016
  18  15.0973
  19  105.218
  20  0.469355
  21  20.9431
  22  19.6125
  23  118.799
  24  18.3966
  25  2.78915e-05
  26  2.92211e-05
  27  3.00217
  28  0.203414
  29  0.234279
Done.

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

Extracting fit parameters...

4FGL J1033.1+4115
   Spectrum: PowerLaw
339    Prefactor:  5.222e+00  3.748e+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:  8.761e-01  2.343e-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:  9.342e-01  2.034e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 6.99
Ra Dec: 158.275 41.262
Photon Index (Fixed Index): 2.41 +/- 0.00
Photon Flux (Fixed Index): 3.84e-08 +/- 2.75e-08
Energy Flux (Fixed Index): 1.24e-05 +/- 8.88e-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) = 6231.29758563
delta logL = 0.437634861569

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6231.29256823
delta logL = 0.442652264358

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.5519       1.0000         .10000E-03   10000.    
     2 'Index     '    1.8777       1.0000          .0000       10.000    
     3 'Normalizat'    .95073       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .86413       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=   6231.293     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      206 TOTAL
                     EDM=   .17E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.5488        5.0655        .42627E-02    .61168E-05
   2  Index         1.8772        .50723        .23065       -.33675E-04
   3  Normalizat    .95095        .16294        .45547E-01   -.10130E-03
   4  Prefactor     .86393        .20033        .70990E-01    .10560E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.54884
  Index      = 1.87725
  Normalizat = 0.950951
  Prefactor  = 0.863934
 **********
 **   18 **HESSE 
 **********

 FCN=   6231.293     FROM HESSE     STATUS=OK            33 CALLS      239 TOTAL
                     EDM=   .20E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.5488        4.4784        .13895E-03   -1.5237    
   2  Index         1.8772        .54268        .84056E-02   -.67456    
   3  Normalizat    .95095        .18971        .24523E-03   -.94692    
   4  Prefactor     .86393        .23270        .31410E-03   -.97413    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.00545e-10
Minuit parameter uncertainties:
  1  4.4787
  2  0.544441
  3  0.189844
  4  0.232962
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/973431': 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) = 6231.29256721
delta logL = 0.442653278251

Extracting fit parameters...

4FGL J1033.1+4115
   Spectrum: PowerLaw
339    Prefactor:  5.549e+00  4.479e+00  1.000e-04  1.000e+04 ( 1.000e-12)
340        Index:  1.877e+00  5.444e-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:  8.639e-01  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:  9.510e-01  1.898e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 7.86
Ra Dec: 158.275 41.262
Photon Index (Free Index): 1.88 +/- 0.54
Photon Flux (Free Index): 2.34e-08 +/- 2.40e-08
Energy Flux (Free Index): 2.23e-05 +/- 2.57e-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/973431/cmap_HighResolution_380851201_381110401_4FGL_J1033.1+4115_daily_bin546.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='3.84e-08', energy_flux2='2.23e-05', photon_flux_error='2.75e-08', dlogl='4.43e-01', energy_flux='1.24e-05', photon_flux2='2.34e-08', job_status='DONE', time_completed='2021-09-02 03:32:27.097290', photon_index_error2='0.54', photon_index2='1.88', ts='6.99', fit_tolerance='1e-08', GAL='0.88', photon_index_error='0.00', energy_flux_error2='2.57e-05', EG='0.93', time_epoch_completed='1630578747.1', return_code='0', job_id='973431', GAL2='0.86', EG2='0.95', return_code2='0', energy_flux_error='8.88e-06', photon_flux_error2='2.40e-08', ts2='7.86', photon_index='2.41' WHERE bin_id='546' AND source_name='4FGL J1033.1+4115' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  2 03:32:27 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0256>
Subject: Job 973431: <4FGL_J1033.1+4115_daily_bin546> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1033.1+4115_daily_bin546 158.275 41.262 380851201 381110401 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 :                                   792.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             280.06 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   972 sec.
    Turnaround time :                            985 sec.

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

