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


Performing analysis on: 4FGL_J1033.1+4115_daily_bin448
RA = 158.275, Dec = 41.262
tmin = 355449601, tmax = 355708801
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='973277', job_status='RUN', time_executed='2021-09-02 03:18:50.087913', time_epoch_executed='1630577930.09' WHERE source_name='4FGL J1033.1+4115' and cadence='daily' and bin_id='448'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/973277

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/973277/ft1_4FGL_J1033.1+4115_daily_bin448.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/973277/ft2_4FGL_J1033.1+4115_daily_bin448.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/973277/ft1_4FGL_J1033.1+4115_daily_bin448.fits outfile=/scratch/kocevski/973277/ft1_filteredMKT_4FGL_J1033.1+4115_daily_bin448.fits ra=158.275 dec=41.262 rad=12.0 tmin=355449601.0 tmax=355708801.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.15
sys 0.18

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/973277/ft1_filtered_4FGL_J1033.1+4115_daily_bin448.fits" evtable="EVENTS" scfile=/scratch/kocevski/973277/ft2_4FGL_J1033.1+4115_daily_bin448.fits sctable="SC_DATA" outfile=/scratch/kocevski/973277/ltcube_355449601_355708801_4FGL_J1033.1+4115_daily_bin448.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/973277/ft2_4FGL_J1033.1+4115_daily_bin448.fits
.....................!
real 13.59
user 13.16
sys 0.37

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/973277/ft1_filtered_4FGL_J1033.1+4115_daily_bin448.fits evtable="EVENTS" scfile=/scratch/kocevski/973277/ft2_4FGL_J1033.1+4115_daily_bin448.fits sctable="SC_DATA" expcube=/scratch/kocevski/973277/ltcube_355449601_355708801_4FGL_J1033.1+4115_daily_bin448.fits outfile=/scratch/kocevski/973277/expmap_355449601_355708801_4FGL_J1033.1+4115_daily_bin448.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/973277/ltcube_355449601_355708801_4FGL_J1033.1+4115_daily_bin448.fits
.....................!
real 191.11
user 185.59
sys 4.98

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/973277/ft1_filtered_4FGL_J1033.1+4115_daily_bin448.fits scfile=/scratch/kocevski/973277/ft2_4FGL_J1033.1+4115_daily_bin448.fits outfile=/scratch/kocevski/973277/cmap_355449601_355708801_4FGL_J1033.1+4115_daily_bin448.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.54
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/973277/ft1_filtered_4FGL_J1033.1+4115_daily_bin448.fits scfile=/scratch/kocevski/973277/ft2_4FGL_J1033.1+4115_daily_bin448.fits outfile=/scratch/kocevski/973277/cmap_HighResolution_355449601_355708801_4FGL_J1033.1+4115_daily_bin448.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.38
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    19.620       1.0000         .10000E-03   10000.    
     3 'Prefactor '    5.7983       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    1.0134       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    6.5812       1.0000         .10000E-03   10000.    
     9 'norm      '    4.5444       1.0000         .10000E-03   10000.    
    10 'Prefactor '    4.3304       1.0000         .10000E-03   10000.    
    11 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    33.724       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10966E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    12.142       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .88975       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    52.147       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    96.394       1.0000         .10000E-03   10000.    
    20 'norm      '    .76648       1.0000         .10000E-03   10000.    
    21 'Prefactor '    10.532       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .10395E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10596E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    96.720       1.0000         .10000E-03   10000.    
    27 'norm      '    .36250       1.0000         .10000E-03   10000.    
    28 'Normalizat'    .90716       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .84923       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=   5156.464     FROM MIGRAD    STATUS=CONVERGED    738 CALLS     3795 TOTAL
                     EDM=   .98E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    4.0795       -.62008E-08** at limit **
   2  Prefactor     19.620        17.372        .25064E-06   -.13716E-04
   3  Prefactor     5.8016        29.367        .60420E-06   -.95209E-05
   4  Prefactor     .10000E-03    5.5996        .17159E-06** at limit **
   5  norm          .10000E-03    6.7383       -.85321E-07** at limit **
   6  Prefactor     1.0122        5.7352        .80065E-05    .22510E-03
   7  Prefactor     .10014E-03    2.2389       -.19669E-05** at limit **
   8  Prefactor     6.5850        24.463        .39529E-06   -.26466E-04
   9  norm          4.5447        2.5106       -.12516E-06   -.29858E-05
  10  Prefactor     4.3360        3.8411        .30064E-07   -.24364E-03
  11  norm          .10000E-03    3.5644        .13816E-07** at limit **
  12  Prefactor     33.739        49.199       -.19517E-05   -.36131E-04
  13  Prefactor     .10000E-03    56.477        .15911E-05** at limit **
  14  Prefactor     12.146        5.6448        .63252E-07   -.38075E-03
  15  Prefactor     .89898        4.3589        .35774E-06   -.18946E-03
  16  Prefactor     .10000E-03    18.993        .14238E-05** at limit **
  17  Prefactor     52.149        65.032        .82495E-07   -.79144E-05
  18  Prefactor     .10000E-03    15.889       -.60413E-06** at limit **
  19  Prefactor     96.339        82.292        .75121E-05    .28939E-04
  20  norm          .76647        .28244       -.31131E-08   -.14329E-02
  21  Prefactor     10.538        14.904       -.34258E-06   -.12477E-03
  22  Prefactor     .10000E-03    10.312        .14375E-05** at limit **
  23  Prefactor     .10000E-03    31.001       -.31068E-05** at limit **
  24  norm          .10000E-03    25.970        .49957E-06** at limit **
  25  Prefactor     .10002E-03    2.2453        .32309E-05** at limit **
  26  Prefactor     96.689        57.631       -.50280E-05   -.92120E-04
  27  norm          .36289        2.3270        .16131E-05    .59626E-03
  28  Normalizat    .90681        .16923       -.22704E-05   -.68853E-04
  29  Prefactor     .84979        .19688       -.13737E-06   -.26948E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 19.6203
  Prefactor  = 5.80155
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 1.01223
  Prefactor  = 0.000100144
  Prefactor  = 6.58499
  norm       = 4.54474
  Prefactor  = 4.33604
  norm       = 0.0001
  Prefactor  = 33.7387
  Prefactor  = 0.0001
  Prefactor  = 12.1455
  Prefactor  = 0.898984
  Prefactor  = 0.0001
  Prefactor  = 52.1491
  Prefactor  = 0.0001
  Prefactor  = 96.3385
  norm       = 0.766467
  Prefactor  = 10.5377
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100024
  Prefactor  = 96.6888
  norm       = 0.362887
  Normalizat = 0.90681
  Prefactor  = 0.849786
 **********
 **   18 **HESSE 
 **********

 FCN=   5156.464     FROM HESSE     STATUS=OK           557 CALLS     4352 TOTAL
                     EDM=   .28E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    4.0797        .14164E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     19.620        17.341        .90423E-04   -1.4822    
   3  Prefactor     5.8016        29.334        .16679E-03   -1.5226    
   4  Prefactor     .10000E-03    5.6418        .16592E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    6.8020        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     1.0122        6.1335        .16548E-02   -1.5507    
   7  Prefactor     .10014E-03    21.313        .17755E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     6.5850        24.496        .15643E-03   -1.5195    
   9  norm          4.5447        2.5138        .81757E-04   -1.5282    
  10  Prefactor     4.3360        3.6452        .11849E-03   -1.5291    
  11  norm          .10000E-03    3.5693        .13235E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     33.739        49.272        .69004E-04   -1.4546    
  13  Prefactor     .10000E-03    56.518        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     12.146        5.6360        .10815E-03   -1.5011    
  15  Prefactor     .89898        7.3493        .26991E-02   -1.5518    
  16  Prefactor     .10000E-03    19.009        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     52.149        65.063        .55540E-04   -1.4262    
  18  Prefactor     .10000E-03    15.920        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     96.339        82.379        .20470E-03   -1.3742    
  20  norm          .76647        .28287        .21768E-04   -1.5533    
  21  Prefactor     10.538        14.941        .12346E-03   -1.5059    
  22  Prefactor     .10000E-03    10.351        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    31.007        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10000E-03    26.591        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10002E-03    12.309        .17601E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     96.689        60.214        .20436E-03   -1.3738    
  27  norm          .36289        3.8263        .18534E-02   -1.5587    
  28  Normalizat    .90681        .19675        .21366E-03   -.96221    
  29  Prefactor     .84979        .22883        .27850E-03   -.97918    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.81895e-08
Minuit parameter uncertainties:
  1  6.23232e-07
  2  17.3458
  3  26.1111
  4  2.43574e-05
  5  1.95537e-05
  6  4.98387
  7  0.00350908
  8  24.5337
  9  2.5139
  10  3.64541
  11  4.27007e-06
  12  49.3316
  13  6.9979e-05
  14  5.63621
  15  5.14135
  16  1.218e-05
  17  65.1516
  18  3.79478e-05
  19  82.4772
  20  0.282867
  21  14.9459
  22  4.08621e-05
  23  7.50374e-05
  24  0.000206944
  25  0.00107738
  26  60.252
  27  2.35657
  28  0.19691
  29  0.229084
Done.

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

Extracting fit parameters...

4FGL J1033.1+4115
   Spectrum: PowerLaw
339    Prefactor:  1.215e+01  5.636e+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.498e-01  2.291e-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.068e-01  1.969e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 11.33
Ra Dec: 158.275 41.262
Photon Index (Fixed Index): 2.41 +/- 0.00
Photon Flux (Fixed Index): 8.92e-08 +/- 4.14e-08
Energy Flux (Fixed Index): 2.88e-05 +/- 1.33e-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) = 5156.29179814
delta logL = 0.171773228897

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5156.28722724
delta logL = 0.176344135632

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    10.236       1.0000         .10000E-03   10000.    
     2 'Index     '    2.7229       1.0000          .0000       10.000    
     3 'Normalizat'    .87472       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .87652       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=   5156.287     FROM MIGRAD    STATUS=CONVERGED     46 CALLS      233 TOTAL
                     EDM=   .12E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     10.236        66.739        .31309E-02    .58721E-03
   2  Index         2.7229        3.4684        .12632        .97002E-04
   3  Normalizat    .87472        .10257        .44578E-01    .97632E-05
   4  Prefactor     .87653        .91227E-01    .44705E-01    .11699E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 10.2362
  Index      = 2.72291
  Normalizat = 0.874716
  Prefactor  = 0.876529
 **********
 **   18 **HESSE 
 **********

 FCN=   5156.287     FROM HESSE     STATUS=OK            33 CALLS      266 TOTAL
                     EDM=   .18E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     10.236        6.3174        .90738E-04   -1.5068    
   2  Index         2.7229        .56489        .48989E-02   -.47284    
   3  Normalizat    .87472        .18981        .21696E-03   -.97354    
   4  Prefactor     .87653        .23242        .27470E-03   -.96966    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.84523e-09
Minuit parameter uncertainties:
  1  6.31779
  2  0.566421
  3  0.189957
  4  0.232681
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/973277': 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) = 5156.28722724
delta logL = 0.176344136324

Extracting fit parameters...

4FGL J1033.1+4115
   Spectrum: PowerLaw
339    Prefactor:  1.024e+01  6.318e+00  1.000e-04  1.000e+04 ( 1.000e-12)
340        Index:  2.723e+00  5.664e-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.765e-01  2.327e-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:  8.747e-01  1.900e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 11.72
Ra Dec: 158.275 41.262
Photon Index (Free Index): 2.72 +/- 0.57
Photon Flux (Free Index): 1.12e-07 +/- 5.87e-08
Energy Flux (Free Index): 2.65e-05 +/- 1.16e-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/973277/cmap_HighResolution_355449601_355708801_4FGL_J1033.1+4115_daily_bin448.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='8.92e-08', energy_flux2='2.65e-05', photon_flux_error='4.14e-08', dlogl='1.76e-01', energy_flux='2.88e-05', photon_flux2='1.12e-07', job_status='DONE', time_completed='2021-09-02 03:31:07.005200', photon_index_error2='0.57', photon_index2='2.72', ts='11.33', fit_tolerance='1e-08', GAL='0.85', photon_index_error='0.00', energy_flux_error2='1.16e-05', EG='0.91', time_epoch_completed='1630578667.01', return_code='0', job_id='973277', GAL2='0.88', EG2='0.87', return_code2='0', energy_flux_error='1.33e-05', photon_flux_error2='5.87e-08', ts2='11.72', photon_index='2.41' WHERE bin_id='448' AND source_name='4FGL J1033.1+4115' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  2 03:31:07 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0134>
Subject: Job 973277: <4FGL_J1033.1+4115_daily_bin448> in cluster <slac> Done

Job <4FGL_J1033.1+4115_daily_bin448> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Thu Sep  2 03:15:50 2021
Job was executed on host(s) <bullet0134>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  2 03:15:54 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Sep  2 03:15:54 2021
Terminated at Thu Sep  2 03:31:07 2021
Results reported at Thu Sep  2 03:31:07 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1033.1+4115_daily_bin448 158.275 41.262 355449601 355708801 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 :                                   730.08 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             253.28 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   913 sec.
    Turnaround time :                            917 sec.

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

